Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IEncryptEnvelope::initialize ( P6ENCENVFLAGS  flags,
P6UINT16  numPubKeys,
P6CRYPTOCIPHER  mode,
P6UINT32  keySize,
p6IRandom pRandom 
)
pure virtual

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
SuccessP6R::eOk 
FailureP6R::eAlreadyInitializedCan only call this function once.
P6R::eInvalidArgThe pRandom pointer must be non-NULL.
P6R::eNoMemoryInsufficient memory to initialize component.
P6R::eInvalidStateUnable to seed the random number generator.