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
Success | P6R::eOk | The key was successfully loaded. |
Failure | P6R::eNotInitialized | The initialize() method must be successfully called before calling this method. |
P6R::eInvalidArg | pRandom is NULL when flags contains CKF_FORCENEWIV flag. |