CDSAPrivateKey Class Reference

class CDSAPrivateKey : public CDSAParameters

Representation of a DSA private key.

Inherits from

Constructor & Destructor Documentation

CDSAPrivateKey(RInteger &, RInteger &, RInteger &, RInteger &)

IMPORT_CCDSAPrivateKey(RInteger &aP,
RInteger &aQ,
RInteger &aG,
RInteger &aX
)[protected]

Constructor

Parameters

RInteger & aPThe DSA parameter, p (the prime)
RInteger & aQThe DSA parameter, q (the subprime)
RInteger & aGThe DSA parameter, g (the base)
RInteger & aXThe DSA parameter, x (the private key)

CDSAPrivateKey(void)

IMPORT_CCDSAPrivateKey(void)[protected]

Default constructor

Parameters

void

CDSAPrivateKey(const CDSAPrivateKey &)

CDSAPrivateKey(const CDSAPrivateKey &)[private]

Parameters

const CDSAPrivateKey &

~CDSAPrivateKey(void)

IMPORT_C~CDSAPrivateKey(void)[virtual]

Destructor

Parameters

void

Member Functions Documentation

NewL(RInteger &, RInteger &, RInteger &, RInteger &)

IMPORT_C CDSAPrivateKey *NewL(RInteger &aP,
RInteger &aQ,
RInteger &aG,
RInteger &aX
)[static]

Creates a new DSA private key object from a specified primes, base, and private key.

Parameters

RInteger & aPThe DSA parameter, p (the prime)
RInteger & aQThe DSA parameter, q (the subprime)
RInteger & aGThe DSA parameter, g (the base)
RInteger & aXThe DSA parameter, x (the private key)

NewLC(RInteger &, RInteger &, RInteger &, RInteger &)

IMPORT_C CDSAPrivateKey *NewLC(RInteger &aP,
RInteger &aQ,
RInteger &aG,
RInteger &aX
)[static]

Creates a new DSA private key object from a specified primes, base, and private key.

The returned pointer is put onto the cleanup stack.

Parameters

RInteger & aPThe DSA parameter, p (the prime)
RInteger & aQThe DSA parameter, q (the subprime)
RInteger & aGThe DSA parameter, g (the base)
RInteger & aXThe DSA parameter, x (the private key)

X(void)

IMPORT_C const TInteger &X(void)const

Gets the DSA parameter, x (the private key)

Parameters

void

operator=(const CDSAPrivateKey &)

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

Parameters

const CDSAPrivateKey &

Member Data Documentation

RInteger iX

RInteger iX[protected]

The DSA parameter, x, which is the private key

A pseudorandomly generated integer whose value is between 0 and q.