Discuss this help topic in SecureBlackbox Forum

TElCustomCryptoProviderManager.IsOperationSupported

TElCustomCryptoProviderManager     See also     


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


Checks whether the desired operation is supported by the providers from list.

Declaration

[C#]
    bool IsOperationSupported(int Operation, int Algorithm, int Mode, TElCustomCryptoKey Key, TElCPParameters Params);
    bool IsOperationSupported(int Operation, byte[] AlgOID, byte[] AlgParams, int Mode, TElCustomCryptoKey Key, TElCPParameters Params);

[VB.NET]
    Function IsOperationSupported(ByVal Operation As Integer, ByVal Algorithm As Integer, ByVal Mode As Integer, ByVal Key As TElCustomCryptoKey, ByVal Params As TElCPParameters) As Boolean
    Function IsOperationSupported(ByVal Operation As Integer, ByVal AlgOID As Byte(), ByVal AlgParams As Byte(), ByVal Mode As Integer, ByVal Key As TElCustomCryptoKey, ByVal Params As TElCPParameters) As Boolean

[Pascal]
    function IsOperationSupported(Operation: integer; Algorithm: integer; Mode: integer; Key: TElCustomCryptoKey; Params: TElRelativeDistinguishedName): boolean;
    function IsOperationSupported(Operation: integer; AlgOID, AlgParams: ByteArray; Mode: integer; Key: TElCustomCryptoKey; Params: TElRelativeDistinguishedName): boolean;

[C++]
    bool IsOperationSupported(int32_t Operation, int32_t Algorithm, int32_t Mode, TElCustomCryptoKey &Key, TElRelativeDistinguishedName &Params);
    bool IsOperationSupported(int32_t Operation, int32_t Algorithm, int32_t Mode, TElCustomCryptoKey *Key, TElRelativeDistinguishedName *Params);
    bool IsOperationSupported(int32_t Operation, const std::vector<uint8_t> &AlgOID, const std::vector<uint8_t> &AlgParams, int32_t Mode, TElCustomCryptoKey &Key, TElRelativeDistinguishedName &Params);
    bool IsOperationSupported(int32_t Operation, const std::vector<uint8_t> &AlgOID, const std::vector<uint8_t> &AlgParams, int32_t Mode, TElCustomCryptoKey *Key, TElRelativeDistinguishedName *Params);

[PHP]
    bool IsOperationSupported(integer $Operation, integer $Algorithm, integer $Mode, TElCustomCryptoKey $Key, TElRelativeDistinguishedName $Params)
    bool IsOperationSupported(integer $Operation, array of byte|string|NULL $AlgOID, array of byte|string|NULL $AlgParams, integer $Mode, TElCustomCryptoKey $Key, TElRelativeDistinguishedName $Params)

[Java]
    boolean isOperationSupported(int Operation, byte[] AlgOID, byte[] AlgParams, int Mode, TElCustomCryptoKey Key, TElCPParameters Params);
    boolean isOperationSupported(int Operation, int Algorithm, int Mode, TElCustomCryptoKey Key, TElCPParameters Params);

Parameters

  • Operation - defines operation type
  • Algorithm - specifies the algorithm which must be used
  • AlgOID - algorithm OID
  • AlgParams - algorithm parameters
  • Mode - specifies symmetric encryption mode
  • Key - contains necessary key
  • Params - additional crypto provider parameters

Possible operations:

Symmetric algorithms:

Public key algorithms:

Password-based encryption algorithms:

Hash algorithms:

MAC algorithms:

Encryption modes:

Return value

    Returns True if the specified operation is supported by at least one crypto provider from the list.

Description

    Use this method to check if at least one of the crypto providers from the list supports the desired operation.

See also:     CryptoProviders     GetSuitableProvider     IsAlgorithmSupported    

Discuss this help topic in SecureBlackbox Forum