#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 | ( | void | ) | [protected] |
Default constructor
| IMPORT_C | ~CDSAPrivateKey | ( | void | ) | [virtual] |
Destructor
| 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 | |
|---|---|
| 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) |
| 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 | |
|---|---|
| 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) |
| IMPORT_C const TInteger & | X | ( | void | ) | const |
Gets the DSA parameter, x (the private key)