Load the random bytes that comprise a symetric key into the component.
The provided data does not have the P6R meta-data header. Calling this function requires that the p6cryptokey component was initialized with a p6IRandom component which is uses to generate part of the keys meta-data.
- Parameters
-
pBuffer | [ in ] Buffer holding the key data |
cBuffer | [ in ] Number of data bytes in pBuffer |
keySize | [ in ] The key size in bits |
- Returns
Success | P6R::eOk | |
Failure | P6R::eNotInitialized | A successful call to initialize must be called before this function. |
P6R::eInvalidArg | pszFilename is equal to NULL. |
P6R::eInvalidState | pRandom not set during call to initialize(). |