CDSAPublicKey Class Reference

#include <asymmetrickeys.h>

class CDSAPublicKey : public CDSAParameters

Inherits from

Detailed Description

Representation of a DSA public key.

Member Attribute Documentation

iY

RInteger iY[protected]

The DSA parameter, y, which is the public key

y = g^x mod p

Constructor & Destructor Documentation

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

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

Constructor

Parameters
aPThe DSA parameter, p (the prime)
aQThe DSA parameter, q (the subprime)
aGThe DSA parameter, g (the base)
aYThe DSA parameter, y (the public key)

CDSAPublicKey ( void )

IMPORT_CCDSAPublicKey(void)[protected]

Default constructor

~CDSAPublicKey ( void )

IMPORT_C~CDSAPublicKey(void)[virtual]

Destructor

Member Function 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
aPThe DSA parameter, p (the prime)
aQThe DSA parameter, q (the subprime)
aGThe DSA parameter, g (the base)
aYThe DSA parameter, y (the public key)
Return Value
A pointer to a new CDSAPublicKey object

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
aPThe DSA parameter, p (the prime)
aQThe DSA parameter, q (the subprime)
aGThe DSA parameter, g (the base)
aYThe DSA parameter, y (the public key)
Return Value
A pointer to a new CDSAPublicKey object

Y ( void )

IMPORT_C const TInteger &Y(void)const

Gets the DSA parameter, y (the public key)

Return Value
The DSA parameter, y