Discuss this help topic in SecureBlackbox Forum

TElCustomCryptoProviderManager.GetSuitableProvider

TElCustomCryptoProviderManager     See also     


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


Selects an appropriate crypto provider.

Declaration

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

[VB.NET]
    Function GetSuitableProvider(ByVal Operation As Integer, ByVal Algorithm As Integer, ByVal Mode As Integer, ByVal Key As TElCustomCryptoKey, ByVal Params As TElCPParameters) As TElCustomCryptoProvider
    Function GetSuitableProvider(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 TElCustomCryptoProvider
    Function GetSuitableProvider(ByVal Algorithm As Integer, ByVal Mode As Integer) As TElCustomCryptoProvider
    Function GetSuitableProvider(ByVal AlgOID As Byte(), ByVal AlgParams As Byte(), ByVal Mode As Integer) As TElCustomCryptoProvider

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

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

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

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

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

    Chosen crypto provider.

Description

    Use this method to select a crypto provider, which is appropriate for your purposes.

See also:     CryptoProviders     IsAlgorithmSupported     IsOperationSupported    

Discuss this help topic in SecureBlackbox Forum