Sets up the object to run properly.
This component does not do key management. It is the calling application's responsibility to manage and provide the proper keys to this component.
- Parameters
-
flags | [ in ] Set perferences for the new object. |
numPubKeys | [ in ] Maximun number of public keys that will be loaded into object. |
mode | [ in ] the type of cipher to use for encryption |
keySize | [ in ] Number of bytes used in generating key (16 bytes == 128 bit key) |
pRandom | [ in ] A cryptographically strong random number generator is required to generate any key type. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eAlreadyInitialized | Can only call this function once. |
P6R::eInvalidArg | The pRandom pointer must be non-NULL. |
P6R::eNoMemory | Insufficient memory to initialize component. |
P6R::eInvalidState | Unable to seed the random number generator. |