Discuss this help topic in SecureBlackbox Forum

TElSymmetricCryptoFactory.CreateInstance

TElSymmetricCryptoFactory     See also     


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


Creates an algorithm-specific instance of public key cryptography class

Declaration

[C#/Java]
    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) : TElSymmetricCrypto;
    function CreateInstance(Alg : integer; Mode : TSBSymmetricCryptoMode) : TElSymmetricCrypto;

[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)

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