Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IGenKeys::genRSAKeyPair ( p6ICryptoKey **  ppPubKey,
p6ICryptoKey **  ppPrvKey,
P6UINT32  keySize 
)
pure virtual

RSA Algorithm Generate a public - private RSA key pair and save them in p6ICryptoKey objects.

Note, that currently the generated private key file is not encrypted.

Parameters
ppPubKey[ out ] The address of an p6ICryptoKey interface pointer in which will be returned the generated public key
ppPrvKey[ out ] The address of an p6ICryptoKey interface pointer in which will be returned the generated private key
keySize[ in ] Number of bits used in generating key pair.
Returns
SuccessP6R::eOk 
FailureeInvalidArgOne of the parameters is NULL or keySize is zero.
eNotInitializedA successful call to initialize was not made before this call.
eTryAgainThe generated keys where not valid, call again. Exception record provides detailed error info.
eIoErrorCould not create either the public of private key file.
eKeyGenFailThe key generation calculation failed. Exception record provides detailed error info.