Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IGenKeys2::genECKeyPair ( P6ECCURVE  curveId,
P6CRYPTOCIPHER  cipher,
p6ICryptoKey **  ppPubKey,
p6ICryptoKey **  ppPrvKey 
)
pure virtual

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
SuccessP6R::eOk 
FailureeInvalidArgOne of the parameters is NULL.
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.
eKeyGenFailThe key generation calculation failed. Exception record provides detailed error info.