Discuss this help topic in SecureBlackbox Forum

TElHashFunction.IsAlgorithmSupported

TElHashFunction     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Tells whether the algorithm is supported by the given cryptographic provider.

Declaration

[C#/Java]
    static bool IsAlgorithmSupported(byte[] OID, TElCustomCryptoProvider CryptoProvider /* = null */);
    static bool IsAlgorithmSupported(int Algorithm, TElCustomCryptoProvider CryptoProvider /* = null */);
    static bool IsAlgorithmSupported(byte[] OID, TElCustomCryptoProviderManager Manager, TElCustomCryptoProvider CryptoProvider);
    static bool IsAlgorithmSupported(int Algorithm, TElCustomCryptoProviderManager Manager, TElCustomCryptoProvider CryptoProvider);

[VB.NET]
    Shared Function IsAlgorithmSupported(ByVal OID As Byte(), CryptoProvider As TElCustomCryptoProvider = Nothing) As Boolean
    Shared Function IsAlgorithmSupported(Algorithm As Integer CryptoProvider As TElCustomCryptoProvider = Nothing) As Boolean
    Shared Function IsAlgorithmSupported(ByVal OID As Byte(), ByVal Manager As TElCustomCryptoProviderManager, CryptoProvider As TElCustomCryptoProvider) As Boolean
    Shared Function IsAlgorithmSupported(Algorithm As Integer, ByVal Manager As TElCustomCryptoProviderManager, CryptoProvider As TElCustomCryptoProvider) As Boolean

[Pascal]
    class function IsAlgorithmSupported(const OID : BufferTupe; CryptoProvider : TElCustomCryptoProvider = nil) : boolean;
    class function IsAlgorithmSupported(Algorithm : integer; CryptoProvider : TElCustomCryptoProvider = nil) : boolean;
    class function IsAlgorithmSupported(const OID : BufferTupe; Manager : TElCustomCryptoProviderManager; CryptoProvider : TElCustomCryptoProvider) : boolean;
    class function IsAlgorithmSupported(Algorithm : integer; Manager : TElCustomCryptoProviderManager; CryptoProvider : TElCustomCryptoProvider) : boolean;

[C++]
    static bool IsAlgorithmSupported(int32_t Algorithm, TElCustomCryptoProvider &CryptoProvider);
    static bool IsAlgorithmSupported(int32_t Algorithm, TElCustomCryptoProvider *CryptoProvider);
    static bool IsAlgorithmSupported(const std::vector<uint8_t> &OID, TElCustomCryptoProvider &CryptoProvider);
    static bool IsAlgorithmSupported(const std::vector<uint8_t> &OID, TElCustomCryptoProvider *CryptoProvider);
    static bool IsAlgorithmSupported(int32_t Algorithm, TElCustomCryptoProviderManager &Manager, TElCustomCryptoProvider &CryptoProvider);
    static bool IsAlgorithmSupported(int32_t Algorithm, TElCustomCryptoProviderManager *Manager, TElCustomCryptoProvider *CryptoProvider);
    static bool IsAlgorithmSupported(const std::vector<uint8_t> &OID, TElCustomCryptoProviderManager &Manager, TElCustomCryptoProvider &CryptoProvider);
    static bool IsAlgorithmSupported(const std::vector<uint8_t> &OID, TElCustomCryptoProviderManager *Manager, TElCustomCryptoProvider *CryptoProvider);

[PHP]
    bool IsAlgorithmSupported(integer $Algorithm, TElCustomCryptoProvider $CryptoProvider)
    bool IsAlgorithmSupported(array of byte|string|NULL $OID, TElCustomCryptoProvider $CryptoProvider)
    bool IsAlgorithmSupported(integer $Algorithm, TElCustomCryptoProviderManager $Manager, TElCustomCryptoProvider $CryptoProvider)
    bool IsAlgorithmSupported(array of byte|string|NULL $OID, TElCustomCryptoProviderManager $Manager, TElCustomCryptoProvider $CryptoProvider)

Parameters

  • OID - Well-known OID (Object ID) of the hash algorithm
  • Algorithm - SecureBlackbox-defined identifier of the algorithm
  • CryptoProvider - Cryptographic provider used for hashing
  • Manager - Cryptographic provider manager to be used
  • FIPSMode -

Possible hash algorithms:



Possible HMAC algorithms:



Return value

    …

Description

    Use this method to find out whether the algorithm is supported by the given CryptoProvider.

See also:     CryptoProvider    

Discuss this help topic in SecureBlackbox Forum