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
Success | P6R::eOk | |
Failure | P6R::eNotInitialized | A successful call to initialize was not made before this call. |
P6R::eInvalidArg | prime.pString or generator.pString is NULL or the length of either is zero |
P6R::eFailAndException | The key pair generation failed. Exception record provides detailed error info. |
P6R::eKeyGenFailed | The key pair generation failed. Exception record provides detailed error info. |