CDHPublicKey Class Reference

#include <asymmetrickeys.h>

class CDHPublicKey : public CDHParameters

Inherits from

Detailed Description

Representation of a Diffie-Hellman (DH) public key.

Member Attribute Documentation

iX

RInteger iX[protected]

The DH value, X

X = g^x mod n (note the case sensitivity)

Constructor & Destructor Documentation

CDHPublicKey ( RInteger &, RInteger &, RInteger & )

IMPORT_CCDHPublicKey(RInteger &aN,
RInteger &aG,
RInteger &aX
)[protected]

Constructor

Parameters
aNThe DH parameter, n (a large prime)
aGThe DH parameter, g (the generator)
aXThe DH value, X

CDHPublicKey ( void )

IMPORT_CCDHPublicKey(void)[protected]

Constructor

~CDHPublicKey ( void )

IMPORT_C~CDHPublicKey(void)[virtual]

Destructor

Member Function Documentation

NewL ( RInteger &, RInteger &, RInteger & )

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
aNThe DH parameter, n (a large prime)
aGThe DH parameter, g (the generator)
aXThe DH value, X
Return Value
A pointer to a new CDHPublicKey object

NewLC ( RInteger &, RInteger &, RInteger & )

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
aNThe DH parameter, n (a large prime)
aGThe DH parameter, g (the generator)
aXThe DH value, X
Return Value
A pointer to a new CDHPublicKey object

X ( void )

IMPORT_C const TInteger &X(void)const

Gets the DH value, X

Return Value
The DH value, X