Discuss this help topic in SecureBlackbox Forum


TElCertificateRequest     See also     

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

This method loads private key from buffer.


    int LoadKeyFromBuffer(byte[] Buffer, int StartIndex, int Size);

    Function LoadKeyFromBuffer(ByVal Buffer As Byte(), ByVal StartIndex As Integer, ByVal Size As Integer) As Integer

    function LoadKeyFromBuffer( Buffer : pointer; Size : integer) : integer;

    int32_t LoadKeyFromBuffer(void * Buffer, int32_t Size);

    integer LoadKeyFromBuffer(TSBPointer|array of byte|string|NULL $Buffer, integer $Size)


  • Buffer - pointer to buffer with private key data
  • StartIndex - index of the first byte of the key data in Buffer
  • Size - the length of the key data in bytes

Return value

    Returns 0 on success, and error code otherwise.


    Use this method to load a private key to be used for request regeneration from buffer.

See also:     LoadKeyFromBufferPEM     LoadKeyFromStream     LoadKeyFromStreamPEM    

Discuss this help topic in SecureBlackbox Forum