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
Success | P6R::eOk | |
Failure | P6R::eNotInitialized | A successful call to initialize was not made before this call. |
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. |