This method allows the creation of a symmetric key from existing data supplied by the caller.
- Parameters
-
ppKey | [ out ] The address of a ppointer to a P6R::p6ICryptoKey in which will be placed a pointer to the newly created P6R::ICryptokey. |
pData | [ in ] A pointer to the data to use for the key. |
cData | [ in ] The size in bytes of the data in pData. The key size will be auomatically calculated as (cData*8) bits. |
- Returns
Success | P6R::eOk | |
Failure | eInvalidArg | One of the parameters is NULL or cData is zero. |
eNotInitialized | A successful call to initialize was not made before this call. |
eTooBig | The specified key was too long. |