#include <asymmetrickeys.h>
class CDHPublicKey : public CDHParameters |
Protected Attributes | |
---|---|
RInteger | iX |
Public Member Functions | |
---|---|
virtual | ~CDHPublicKey(void) |
IMPORT_C CDHPublicKey * | NewL(RInteger &, RInteger &, RInteger &) |
IMPORT_C CDHPublicKey * | NewLC(RInteger &, RInteger &, RInteger &) |
IMPORT_C const TInteger & | X(void) |
Protected Member Functions | |
---|---|
CDHPublicKey(RInteger &, RInteger &, RInteger &) | |
CDHPublicKey(void) |
Inherited Attributes | |
---|---|
CDHParameters::iG | |
CDHParameters::iN |
Representation of a Diffie-Hellman (DH) public key.
IMPORT_C | CDHPublicKey | ( | void | ) | [protected] |
Constructor
IMPORT_C | ~CDHPublicKey | ( | void | ) | [virtual] |
Destructor
IMPORT_C CDHPublicKey * | NewL | ( | RInteger & | aN, |
RInteger & | aG, | |||
RInteger & | aX | |||
) | [static] |
Creates a new DH public key from a specified large prime, generator, and random large integer.
Parameters | |
---|---|
aN | The DH parameter, n (a large prime) |
aG | The DH parameter, g (the generator) |
aX | The DH value, X |
IMPORT_C CDHPublicKey * | NewLC | ( | RInteger & | aN, |
RInteger & | aG, | |||
RInteger & | aX | |||
) | [static] |
Creates a new DH public key from a specified large prime, generator, and random large integer.
The returned pointer is put onto the cleanup stack.
Parameters | |
---|---|
aN | The DH parameter, n (a large prime) |
aG | The DH parameter, g (the generator) |
aX | The DH value, X |