Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IDHKeyExchange::genDHKeyPair ( P6DHGROUP  keyType,
P6CHAR pPrime,
P6UINT32  generator 
)
pure virtual

Generates the public - private Diffie-Hellman key pair based on the selected built in primes.

This method can be called over and over again. Any existing key data from a previous call will be freed.

Parameters
keyType[ in ] indicates which built in primes to use for the key generation.
pPrime[ in ] Only set if DH_RAW is selected for keyType, otherwise should be set to NULL Contains the Safe prime in hexidecimal character format.
generator[ in ] Generator for the subgroup GF(p), where 'p' is in pPrime
Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to initialize was not made before this call.
P6R::eFailAndExceptionThe key pair generation failed. Exception record provides detailed error info.
P6R::eKeyGenFailedThe key pair generation failed. Exception record provides detailed error info.