CDHParameters Class Reference

class CDHParameters : public CBase

Concrete class representing the parameters common to both a Diffie-Hellman (DH) public and private key.

Inherits from

Constructor & Destructor Documentation

CDHParameters(RInteger &, RInteger &)

IMPORT_CCDHParameters(RInteger &aN,
RInteger &aG
)[protected]

Constructor

Parameters

RInteger & aNThe DH parameter, n
RInteger & aGThe DH parameter, g

CDHParameters(void)

IMPORT_CCDHParameters(void)[protected]

Default constructor

Parameters

void

CDHParameters(const CDHParameters &)

CDHParameters(const CDHParameters &)[private]

Parameters

const CDHParameters &

~CDHParameters(void)

IMPORT_C~CDHParameters(void)[virtual]

Destructor

Parameters

void

Member Functions Documentation

G(void)

IMPORT_C const TInteger &G(void)const

Gets the DH parameter, g

Parameters

void

N(void)

IMPORT_C const TInteger &N(void)const

Gets the DH parameter, n

Parameters

void

operator=(const CDHParameters &)

CDHParameters &operator=(const CDHParameters &)[private]

Parameters

const CDHParameters &

Member Data Documentation

RInteger iG

RInteger iG[protected]

The DH parameter, g (the generator)

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

RInteger iN

RInteger iN[protected]

The DH parameter, n (a prime number)

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