Discuss this help topic in SecureBlackbox Forum

TElX509Certificate.LoadKeyFromBufferMS

TElX509Certificate     See also     


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


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

Declaration

[C#]
    int LoadKeyFromBufferMS(byte[] Buffer);
    int LoadKeyFromBufferMS(byte[] Buffer, int StartIndex, int Count);

[VB.NET]
    Function LoadKeyFromBufferMS(ByVal Buffer As Byte()) As Integer
    Function LoadKeyFromBufferMS(ByVal Buffer As Byte(), ByVal StartIndex As Integer, ByVal Count As Integer) As Integer

[Pascal]
    function LoadKeyFromBufferMS(Buffer: Pointer; Size: integer) : integer;

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

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

[Java]
    int loadKeyFromBufferMS(byte[] Buffer, int StartIndex, int Count);
    int loadKeyFromBufferMS(byte[] Buffer);

Parameters

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

Return value

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

Description

    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