#include <asymmetrickeys.h>
class CDSAKeyPair : public CBase |
Protected Attributes | |
---|---|
CDSAPrimeCertificate * | iPrimeCertificate |
CDSAPrivateKey * | iPrivate |
CDSAPublicKey * | iPublic |
Public Member Functions | |
---|---|
virtual | ~CDSAKeyPair(void) |
IMPORT_C CDSAKeyPair * | NewL(TUint) |
IMPORT_C CDSAKeyPair * | NewLC(TUint) |
IMPORT_C const CDSAPrimeCertificate & | PrimeCertificate(void) |
IMPORT_C const CDSAPrivateKey & | PrivateKey(void) |
IMPORT_C const CDSAPublicKey & | PublicKey(void) |
Protected Member Functions | |
---|---|
CDSAKeyPair(void) |
This class is capable of generating a DSA public/private key pair.
IMPORT_C | CDSAKeyPair | ( | void | ) | [protected] |
Default constructor
IMPORT_C | ~CDSAKeyPair | ( | void | ) | [virtual] |
The destructor frees all resources owned by the object, prior to its destruction.
IMPORT_C CDSAKeyPair * | NewL | ( | TUint | aSize | ) | [static] |
Creates a new DSA key pair and also a DSA prime certificate
Parameters | |
---|---|
aSize | The length (in bits) of the DSA parameter, p (the prime) |
IMPORT_C CDSAKeyPair * | NewLC | ( | TUint | aSize | ) | [static] |
Creates a new DSA key pair and also a DSA prime certificate
The returned pointer is put onto the cleanup stack.
Parameters | |
---|---|
aSize | The length (in bits) of the DSA parameter, p (the prime) |
IMPORT_C const CDSAPrimeCertificate & | PrimeCertificate | ( | void | ) | const |
Gets the DSA prime certificate (i.e., the seed and counter)
IMPORT_C const CDSAPrivateKey & | PrivateKey | ( | void | ) | const |
Gets the DSA private key
IMPORT_C const CDSAPublicKey & | PublicKey | ( | void | ) | const |
Gets the DSA public key