#include <asymmetrickeys.h>
class CDHParameters : public CBase |
Protected Attributes | |
---|---|
RInteger | iG |
RInteger | iN |
Public Member Functions | |
---|---|
virtual | ~CDHParameters(void) |
IMPORT_C const TInteger & | G(void) |
IMPORT_C const TInteger & | N(void) |
Protected Member Functions | |
---|---|
CDHParameters(RInteger &, RInteger &) | |
CDHParameters(void) |
Concrete class representing the parameters common to both a Diffie-Hellman (DH) public and private key.
RInteger | iG | [protected] |
The DH parameter, g (the generator)
X = g^x mod n (note the case sensitivity)
RInteger | iN | [protected] |
The DH parameter, n (a prime number)
X = g^x mod n (note the case sensitivity)
IMPORT_C const TInteger & | G | ( | void | ) | const |
Gets the DH parameter, g
Returns: An integer representing the DH parameter, g
IMPORT_C const TInteger & | N | ( | void | ) | const |
Gets the DH parameter, n
Returns: An integer representing the DH parameter, n