EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElCertificateRequest.LoadKeyFromBufferPEM

TElCertificateRequest     See also    


 

This method loads the private key from the memory buffer. Buffer should contain certificate in PEM format.

 
 

Declaration

[C#]
    void LoadKeyFromBufferPEM(byte[] Buffer, int StartIndex, int Size, string Passphrase);

[VB.NET]
    Sub LoadKeyFromBufferPEM(ByVal Buffer As Byte(), ByVal StartIndex As Integer, ByVal Size As Integer, ByVal Passphrase As String)

[Pascal]
    procedure LoadKeyFromBufferPEM( Buffer : pointer; Size : integer; const Passphrase : string);

[VB6]
    not implemented;

[ActiveX]
    not implemented;

[DLL]
    not implemented;
 
 

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
  • Passphrase - the pass phrase to decrypt the certificate data. If certificate is not encrypted, set this parameter to an empty string.
 
 

Return value

    Returns 0 on success, and PEM error code otherwise.

 
 

PEM Error Codes

[.NET] [Pascal] Value Description
PEM_DECODE_RESULT_INVALID_FORMAT 7425 (0x1D01) Buffer doesn't contain a valid PEM sequence
PEM_DECODE_RESULT_INVALID_PASSPHRASE 7426 (0x1D02) A non-valid passphrase was specified
PEM_DECODE_RESULT_NOT_ENOUGH_SPACE 7427 (0x1D03) There is no enough space to write encoded/decoded data
PEM_DECODE_RESULT_UNKNOWN_CIPHER 7428 (0x1D04) The message was encrypted using unknown cipher
Declared in
[.NET] [Pascal]
Namespace: SBPEM
Assembly: SecureBlackbox
Unit: SBPEM

 
 

Description

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

 
 

See also:     LoadKeyFromBuffer     LoadKeyFromStream     LoadKeyFromStreamPEM     KeyMaterial    

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