#include <asymmetrickeys.h>
class CDSAPrivateKey : public CDSAParameters |
Protected Attributes | |
---|---|
RInteger | iX |
Public Member Functions | |
---|---|
virtual | ~CDSAPrivateKey(void) |
IMPORT_C CDSAPrivateKey * | NewL(RInteger &, RInteger &, RInteger &, RInteger &) |
IMPORT_C CDSAPrivateKey * | NewLC(RInteger &, RInteger &, RInteger &, RInteger &) |
IMPORT_C const TInteger & | X(void) |
Protected Member Functions | |
---|---|
CDSAPrivateKey(RInteger &, RInteger &, RInteger &, RInteger &) | |
CDSAPrivateKey(void) |
Inherited Attributes | |
---|---|
CDSAParameters::iG | |
CDSAParameters::iP | |
CDSAParameters::iQ |
Representation of a DSA private key.
RInteger | iX | [protected] |
The DSA parameter, x, which is the private key
A pseudorandomly generated integer whose value is between 0 and q.
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.
Parameter | Description |
---|---|
aP | The DSA parameter, p (the prime) |
aQ | The DSA parameter, q (the subprime) |
aG | The DSA parameter, g (the base) |
aX | The DSA parameter, x (the private key) |
Returns: A pointer to a new CDSAPrivateKey object
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.
Parameter | Description |
---|---|
aP | The DSA parameter, p (the prime) |
aQ | The DSA parameter, q (the subprime) |
aG | The DSA parameter, g (the base) |
aX | The DSA parameter, x (the private key) |
Returns: A pointer to a new CDSAPrivateKey object
IMPORT_C const TInteger & | X | ( | void | ) | const |
Gets the DSA parameter, x (the private key)
Returns: The DSA parameter, x