CDSAPublicKey Class Reference

class CDSAPublicKey : public CDSAParameters

Representation of a DSA public key.

Inherits from

Constructor & Destructor Documentation

CDSAPublicKey(RInteger &, RInteger &, RInteger &, RInteger &)

IMPORT_C CDSAPublicKey ( RInteger & aP,
RInteger & aQ,
RInteger & aG,
RInteger & aY
) [protected]

Constructor

Parameters

RInteger & aP The DSA parameter, p (the prime)
RInteger & aQ The DSA parameter, q (the subprime)
RInteger & aG The DSA parameter, g (the base)
RInteger & aY The DSA parameter, y (the public key)

CDSAPublicKey(void)

IMPORT_C CDSAPublicKey ( void ) [protected]

Default constructor

Parameters

void

CDSAPublicKey(const CDSAPublicKey &)

CDSAPublicKey ( const CDSAPublicKey & ) [private]

Parameters

const CDSAPublicKey &

~CDSAPublicKey(void)

IMPORT_C ~CDSAPublicKey ( void ) [virtual]

Destructor

Parameters

void

Member Functions Documentation

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

IMPORT_C CDSAPublicKey * NewL ( RInteger & aP,
RInteger & aQ,
RInteger & aG,
RInteger & aY
) [static]

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

Parameters

RInteger & aP The DSA parameter, p (the prime)
RInteger & aQ The DSA parameter, q (the subprime)
RInteger & aG The DSA parameter, g (the base)
RInteger & aY The DSA parameter, y (the public key)

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

IMPORT_C CDSAPublicKey * NewLC ( RInteger & aP,
RInteger & aQ,
RInteger & aG,
RInteger & aY
) [static]

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

The returned pointer is put onto the cleanup stack.

Parameters

RInteger & aP The DSA parameter, p (the prime)
RInteger & aQ The DSA parameter, q (the subprime)
RInteger & aG The DSA parameter, g (the base)
RInteger & aY The DSA parameter, y (the public key)

Y(void)

IMPORT_C const TInteger & Y ( void ) const

Gets the DSA parameter, y (the public key)

Parameters

void

operator=(const CDSAPublicKey &)

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

Parameters

const CDSAPublicKey &

Member Data Documentation

RInteger iY

RInteger iY [protected]

The DSA parameter, y, which is the public key

y = g^x mod p