EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElX509Certificate.LoadKeyFromBufferMS

TElX509Certificate     See also    


 

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

 
 

Declaration

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

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

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

[VB6]
    Sub IElCertificateX6.LoadKeyFromBufferMS(Data As Variant)

[ActiveX]
    HRESULT _stdcall IElCertificateX6.LoadKeyFromBufferMS([in] VARIANT Data);

[DLL]
    not implemented;
 
 

Parameters

  • Buffer (Data) - 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.

 
 

MS Error Codes

[Pascal] Value Description
SB_MSKEYBLOB_ERROR_UNSUPPORTED_BLOB_TYPE 8449 (0x2101) Format has type that is not supported. Supported types are PRIVATEKEYBLOB and PUBLICKEYBLOB
SB_MSKEYBLOB_ERROR_INVALID_FORMAT 8450 (0x2102) Buffer doesn't contain valid MS key blob sequence.
SB_MSKEYBLOB_ERROR_UNSUPPORTED_VERSION 8451 (0x2103) Key version is not supported.
SB_MSKEYBLOB_ERROR_BUFFER_TOO_SMALL 8452 (0x2104) The buffer is too small.
SB_MSKEYBLOB_ERROR_NO_PRIVATE_KEY 8453 (0x2105) There is no private key but attempt to save it was made.
SB_MSKEYBLOB_ERROR_UNSUPPORTED_ALGORITHM 8454 (0x2106) Key contains unsupported algorithm or certificate algorithm is DH (Diffie-Hellman).
Declared in
[.NET] [Pascal]
Namespace: SBMSKeyBlob
Assembly: SecureBlackbox
Unit: SBMSKeyBlob

 
 

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

 
 

See also:     LoadKeyFromBufferAuto     LoadKeyFromBuffer     LoadKeyFromStreamMS     SaveKeyToBufferMS     SaveKeyToStreamMS     LoadKeyFromBufferNET     LoadKeyFromBufferPEM     LoadKeyFromBufferPVK    

 
Contact Us | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2012, EldoS Corporation