Discuss this help topic in SecureBlackbox Forum

TElCertificateRequest.LoadKeyFromBuffer

TElCertificateRequest     See also     


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


This method loads private key from buffer.

Declaration

[C#/Java]
    int LoadKeyFromBuffer(byte[] Buffer, int StartIndex, int Size);

[VB.NET]
    Function LoadKeyFromBuffer(ByVal Buffer As Byte(), ByVal StartIndex As Integer, ByVal Size As Integer) As Integer

[Pascal]
    function LoadKeyFromBuffer( Buffer : pointer; Size : integer) : integer;

[C++]
    int32_t LoadKeyFromBuffer(void * Buffer, int32_t Size);

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

Parameters

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

Description

    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