#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 | ) | [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
Parameter | Description |
---|---|
aSize | The length (in bits) of the DSA parameter, p (the prime) |
Returns: A pointer to a new CDSAKeyPair object
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.
Parameter | Description |
---|---|
aSize | The length (in bits) of the DSA parameter, p (the prime) |
Returns: A pointer to a new CDSAKeyPair object
IMPORT_C const CDSAPrimeCertificate & | PrimeCertificate | ( | void | ) | const |
Gets the DSA prime certificate (i.e., the seed and counter)
Returns: The DSA prime certificate object
IMPORT_C const CDSAPrivateKey & | PrivateKey | ( | void | ) | const |
Gets the DSA private key
Returns: The DSA private key object
IMPORT_C const CDSAPublicKey & | PublicKey | ( | void | ) | const |
Gets the DSA public key
Returns: The DSA public key object