Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IGenKeys2::genSymmetricKeyFromData ( p6ICryptoKey **  ppKey,
P6CHAR pData,
P6UINT32  cData 
)
pure virtual

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
SuccessP6R::eOk 
FailureeInvalidArgOne of the parameters is NULL or cData is zero.
eNotInitializedA successful call to initialize was not made before this call.
eTooBigThe specified key was too long.