Discuss this help topic in SecureBlackbox Forum

TElDomainKeysSigner.SetPrivateKey

TElDomainKeysSigner     


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


Loads private key to the TElDomainKeysSigner instance.

Declaration

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

[VB.NET]
    Function SetPrivateKey(ByVal Modulus As Byte(), ByVal Exponent As Byte()) As Boolean
    Function SetPrivateKey(ByVal Buffer As Byte()) As Boolean

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

[C++]
    bool SetPrivateKey(void * Modulus, int32_t ModulusSize, void * Exponent, int32_t ExponentSize);
    bool SetPrivateKey(void * Buffer, int32_t BufferSize);

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

[Java]
    boolean setPrivateKey(byte[] Modulus, byte[] Exponent);
    boolean setPrivateKey(byte[] Buffer);

Parameters

  • 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.

Description

    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