Is the prime that was set via a call to the genDHKeyPair() method safe and have a valid generator?
- Returns
Success | P6R::eOk | |
Failure | P6R::eNotInitialized | Object is in an incorrect state. |
P6R::eFail | No prime has been set. |
P6R::eInvalidState | A call to generatePrime() must be made before a call to this function. |
P6R::ePrimeNotSafe | The set prime is not considered safe by the Diffie-Hellman algorithm. |
P6R::eBadGenerator | The prime's generator is not considered suitable. |
P6R::eFailAndException | The prime calculation failed. Exception record provides detailed error info. |