Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IDHKeyExchange::genDHKeyPairByBinary ( P6BSTR  prime,
P6BSTR  generator 
)
pure virtual

Generates the public - private Diffie-Hellman key pair based on a passed in prime.

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

Parameters
prime[ in ] Contains the Safe prime in binary format.
generator[ in ] Generator for the subgroup GF(p) in binary format, where 'p' is in prime,
Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to initialize was not made before this call.
P6R::eInvalidArgprime.pString or generator.pString is NULL or the length of either is zero
P6R::eFailAndExceptionThe key pair generation failed. Exception record provides detailed error info.
P6R::eKeyGenFailedThe key pair generation failed. Exception record provides detailed error info.