CDSAPrivateKey Class Reference

class CDSAPrivateKey : public CDSAParameters

Representation of a DSA private key.

Inherits from

Constructor & Destructor Documentation

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

IMPORT_C CDSAPrivateKey ( RInteger & aP,
RInteger & aQ,
RInteger & aG,
RInteger & aX
) [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 & aX The DSA parameter, x (the private key)

CDSAPrivateKey(void)

IMPORT_C CDSAPrivateKey ( 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 & aP The DSA parameter, p (the prime)
RInteger & aQ The DSA parameter, q (the subprime)
RInteger & aG The DSA parameter, g (the base)
RInteger & aX The 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 & aP The DSA parameter, p (the prime)
RInteger & aQ The DSA parameter, q (the subprime)
RInteger & aG The DSA parameter, g (the base)
RInteger & aX The 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.