EC Algorithm Generate a public - private EC key pair and save them into the named files in PEM format.
Note, that currently the generated private key file is not encrypted.
- Parameters
-
curveId | [ in ] A numeric code representiation of an eliptic curve (e.g., CURVE_SECP112R1 for "secp112r1") |
cipher | [ in ] One of the valid EC values: { CIPHER_EC, CIPHER_ECDSA, CIPHER_ECDH, CIPHER_ECMQV } |
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 |
- Returns
Success | P6R::eOk | |
Failure | eInvalidArg | One of the parameters is NULL. |
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. |
eKeyGenFail | The key generation calculation failed. Exception record provides detailed error info. |