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

This function does the same operation as the loadKey() method except that the key data resides in a buffer not a file.

That is the key data must contain the P6R meta-data header.

Parameters
pBuffer[ in ] Buffer holding the key data
cBuffer[ in ] Number of data bytes in pBuffer
Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to initialize must be called before this function.
P6R::eInvalidArgpBuffer is equal to NULL.
P6R::eWrongKeyTypeLoaded key has an unrecognized key type.
P6R::eFormatErrorCannot read key's metadata in pBuffer
P6R::eInvalidVersionThe key's metadata contains an unexpected key version number.
P6R::eTooSmallThere key data was too small to be a valid key