CDHPublicKey Class Reference
#include
<asymmetrickeys.h>
class CDHPublicKey : public CDHParameters |
Detailed Description
Representation of a Diffie-Hellman (DH) public key.
Member Attribute Documentation
iX
The DH value, X
X = g^x mod n (note the case sensitivity)
Constructor & Destructor Documentation
CDHPublicKey ( RInteger &, RInteger &, RInteger & )
Parameter | Description | aN | The DH parameter, n (a large prime) |
aG | The DH parameter, g (the generator) |
aX | The DH value, X |
CDHPublicKey ( void )
IMPORT_C | CDHPublicKey | ( | void | | ) | [protected] |
~CDHPublicKey ( void )
IMPORT_C | ~CDHPublicKey | ( | void | | ) | [virtual] |
Member Function Documentation
NewL ( RInteger &, RInteger &, RInteger & )
Creates a new DH public key from a specified large prime, generator, and random large integer.
Parameter | Description | aN | The DH parameter, n (a large prime) |
aG | The DH parameter, g (the generator) |
aX | The DH value, X |
Returns: A pointer to a new CDHPublicKey object
NewLC ( RInteger &, RInteger &, RInteger & )
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.
Parameter | Description | aN | The DH parameter, n (a large prime) |
aG | The DH parameter, g (the generator) |
aX | The DH value, X |
Returns: A pointer to a new CDHPublicKey object