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

ParameterDescription
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.

ParameterDescription
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)

Returns: 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.

ParameterDescription
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)

Returns: A pointer to a new CDSAPublicKey object

Y ( void )

IMPORT_C const TInteger &Y(void)const

Gets the DSA parameter, y (the public key)

Returns: The DSA parameter, y