Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IDHKeyExchange::checkPrime ( void  )
pure virtual

Is the prime that was set via a call to the genDHKeyPair() method safe and have a valid generator?

Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedObject is in an incorrect state.
P6R::eFailNo prime has been set.
P6R::eInvalidStateA call to generatePrime() must be made before a call to this function.
P6R::ePrimeNotSafeThe set prime is not considered safe by the Diffie-Hellman algorithm.
P6R::eBadGeneratorThe prime's generator is not considered suitable.
P6R::eFailAndExceptionThe prime calculation failed. Exception record provides detailed error info.