Discuss this help topic in SecureBlackbox Forum


TElX509Certificate     See also     

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

Loads the certificate's corresponding private key from the memory buffer in form PRIVATEKEYBLOB format compatible with CryptoAPI.


    int LoadKeyFromBufferMS([in] byte[] Buffer);

    Function LoadKeyFromBufferMS(ByVal Buffer As Byte()) As Integer

    function LoadKeyFromBufferMS(Buffer: Pointer; Size: integer) : integer;

    int32_t LoadKeyFromBufferMS(void * Buffer, int32_t Size);

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


  • Buffer - the buffer from which the key is loaded.
  • Size - size of the buffer from which the data is loaded.

Return value

    0 - if the key was successfully loaded.
    Otherwise MS error code.


    This method attempts to read the certificate's private key from the provided memory location of the given size. The private key must have been saved in PRIVATEKEYBLOB format compatible with CryptoAPI

Discuss this help topic in SecureBlackbox Forum