CDSAPrivateKey Class Reference

#include <asymmetrickeys.h>

class CDSAPrivateKey : public CDSAParameters

Inherits from

Detailed Description

Representation of a DSA private key.

Member Attribute Documentation

iX

RInteger iX[protected]

The DSA parameter, x, which is the private key

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

Constructor & Destructor Documentation

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

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

Constructor

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

CDSAPrivateKey ( void )

IMPORT_CCDSAPrivateKey(void)[protected]

Default constructor

~CDSAPrivateKey ( void )

IMPORT_C~CDSAPrivateKey(void)[virtual]

Destructor

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

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

X ( void )

IMPORT_C const TInteger &X(void)const

Gets the DSA parameter, x (the private key)

Return Value
The DSA parameter, x