Discuss this help topic in SecureBlackbox Forum



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

Loads private key to the TElDomainKeysSigner instance.


    bool SetPrivateKey(byte[] Modulus, byte[] Exponent);
    bool SetPrivateKey(byte[] Buffer);

    Function SetPrivateKey(ByVal Modulus As Byte(), ByVal Exponent As Byte()) As Boolean
    Function SetPrivateKey(ByVal Buffer As Byte()) As Boolean

    function SetPrivateKey(Modulus: Pointer; ModulusSize: Integer; Exponent: Pointer; ExponentSize: Integer): Boolean;
    function SetPrivateKey(Buffer: Pointer; BufferSize: Integer): Boolean;

    bool SetPrivateKey(void * Modulus, int32_t ModulusSize, void * Exponent, int32_t ExponentSize);
    bool SetPrivateKey(void * Buffer, int32_t BufferSize);

    bool SetPrivateKey(TSBPointer|array of byte|string|NULL $Modulus, integer $ModulusSize, TSBPointer|array of byte|string|NULL $Exponent, integer $ExponentSize)
    bool SetPrivateKey(TSBPointer|array of byte|string|NULL $Buffer, integer $BufferSize)


  • Modulus - pointer to the key modulus
  • ModulusSize - size of the key modulus
  • Exponent - pointer to the key exponent
  • ExponentSize - size of the key exponent
  • Buffer - buffer with key
  • BufferSize - size of the key

Return value

     True if key has was copied successfully.
     False otherwise.


    Use this method when you want to load private key. Note, that the copy of the key is created so you can free allocated memory.

Discuss this help topic in SecureBlackbox Forum