Discuss this help topic in SecureBlackbox Forum

TElPublicKeyCryptoFactory.CreateInstance

TElPublicKeyCryptoFactory     See also     


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


Creates an algorithm-specific instance of public key cryptography class

Declaration

[C#/Java]
    TElPublicKeyCrypto CreateInstance(byte[] OID);
    TElPublicKeyCrypto CreateInstance(int Alg);

[VB.NET]
    Function CreateInstance(ByVal OID As Byte()) As TElPublicKeyCrypto
    Function CreateInstance(ByVal Alg As Integer) As TElPublicKeyCrypto

[Pascal]
    function CreateInstance(OID: AnsiString) : TElPublicKeyCrypto;
    function CreateInstance(OID: Integer) : TElPublicKeyCrypto;

[C++]
    TElPublicKeyCryptoHandle CreateInstance(const std::vector<uint8_t> &OID);
    TElPublicKeyCryptoHandle CreateInstance(int32_t Alg);

[PHP]
    TElPublicKeyCrypto CreateInstance(array of byte|string|NULL $OID)
    TElPublicKeyCrypto CreateInstance(integer $Alg)

Parameters

  • OID - Well-known OID (Object ID) of the algorithm
  • Alg - SecureBlackbox-defined identifier of the algorithm

Description

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

See also:     IsAlgorithmSupported     RegisteredClasses     RegisterClass    

Discuss this help topic in SecureBlackbox Forum