Discuss this help topic in SecureBlackbox Forum

TElSymmetricCryptoFactory.CreateInstance

TElSymmetricCryptoFactory     See also     


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


Creates an algorithm-specific instance of public key cryptography class

Declaration

[C#]
    TElSymmetricCrypto CreateInstance(byte[] OID, TSBSymmetricCryptoMode Mode);
    TElSymmetricCrypto CreateInstance(int Alg, TSBSymmetricCryptoMode Mode);
    TElSymmetricCrypto CreateInstance(int Alg, int Mac, TSBSymmetricCryptoMode Mode);

[VB.NET]
    Function CreateInstance(ByVal OID As Byte(), ByVal Mode As TSBSymmetricCryptoMode) As TElSymmetricCrypto
    Function CreateInstance(ByVal Alg As Integer, ByVal Mode As TSBSymmetricCryptoMode) As TElSymmetricCrypto
    Function CreateInstance(ByVal Alg As Integer, ByVal Mac As Integer, ByVal Mode As TSBSymmetricCryptoMode) As TElSymmetricCrypto

[Pascal]
    function CreateInstance(const OID : ByteArray; Mode : TSBSymmetricCryptoMode = cmDefault) : TElSymmetricCrypto; overload;
    function CreateInstance(Alg : integer; Mode : TSBSymmetricCryptoMode = cmDefault) : TElSymmetricCrypto; overload;
    function CreateInstance(Alg : integer; Mac : integer; Mode : TSBSymmetricCryptoMode = cmDefault) : TElSymmetricCrypto; overload;

[C++]
    TElSymmetricCryptoHandle CreateInstance(const std::vector<uint8_t> &OID, TSBSymmetricCryptoMode Mode);
    TElSymmetricCryptoHandle CreateInstance(int32_t Alg, TSBSymmetricCryptoMode Mode);
    TElSymmetricCryptoHandle CreateInstance(int32_t Alg, int32_t Mac, TSBSymmetricCryptoMode Mode);

[PHP]
    TElSymmetricCrypto CreateInstance(array of byte|string|NULL $OID, integer $Mode)
    TElSymmetricCrypto CreateInstance(integer $Alg, integer $Mode)
    TElSymmetricCrypto CreateInstance(integer $Alg, integer $Mac, integer $Mode)

[Java]
    TElSymmetricCrypto createInstance(int Alg, TSBSymmetricCryptoMode Mode);
    TElSymmetricCrypto createInstance(int Alg, int Mac, TSBSymmetricCryptoMode Mode);
    TElSymmetricCrypto createInstance(byte[] OID, TSBSymmetricCryptoMode Mode);

Parameters

  • OID - Well-known OID (Object ID) of the algorithm
  • Alg - SecureBlackbox-defined identifier of the algorithm
  • Mode - Encryption / decryption mode
  • Mac -

Identifiers of the algorithms

Possible modes

Return value

    …

Description

     Use this method to create an instance of algorithm-specific cryptography class. Use this instnace to perform encryption operations.

See also:     IsAlgorithmSupported     RegisterClass    

Discuss this help topic in SecureBlackbox Forum