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
| Success | P6R::eOk | |
| Failure | eInvalidArg | One of the parameters is NULL or keySize is zero. |
| eNotInitialized | A successful call to initialize was not made before this call. |
| eTryAgain | The generated keys where not valid, call again. Exception record provides detailed error info. |
| eIoError | Could not create either the public of private key file. |
| eKeyGenFail | The key generation calculation failed. Exception record provides detailed error info. |