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
Success | P6R::eOk | |
Failure | P6R::eNotInitialized | A successful call to initialize must be called before this function. |
P6R::eInvalidArg | pBuffer is equal to NULL. |
P6R::eWrongKeyType | Loaded key has an unrecognized key type. |
P6R::eFormatError | Cannot read key's metadata in pBuffer |
P6R::eInvalidVersion | The key's metadata contains an unexpected key version number. |
P6R::eTooSmall | There key data was too small to be a valid key |