Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ICryptoKeyInitPEM::loadPEMPrivateRSAKeyFromBuffer ( P6VOID pBuffer,
P6UINT32  cBuffer,
const P6CHAR pszPassPhrase 
)
pure virtual

Load a PEM encoded RSA private key from the provided buffer.

Parameters
pBuffer[ in ] The address of a P6VOID buffer to decode and load.
cBuffer[ in ] The number of valid bytes in pBuffer.
pszPassPhrase[ in ] (optional) A passphrase that is to be used to decrypt the data in pBuffer, or NULL if the dats in pBuffer is not encrypted.
Returns
SuccessP6R::eOkThe key was successfully loaded.
FailureP6R::eNotInitializedThe initialize() method must be successfully called before calling this method.
P6R::eInvalidArgpRandom is NULL when flags contains CKF_FORCENEWIV flag.