CDSAKeyPair Class Reference

#include <asymmetrickeys.h>

class CDSAKeyPair : public CBase

Inherits from

Detailed Description

This class is capable of generating a DSA public/private key pair.

Member Attribute Documentation

iPrimeCertificate

CDSAPrimeCertificate *iPrimeCertificate[protected]

The DSA prime certificate

iPrivate

CDSAPrivateKey *iPrivate[protected]

The DSA private key

iPublic

CDSAPublicKey *iPublic[protected]

The DSA public key

Constructor & Destructor Documentation

CDSAKeyPair ( void )

IMPORT_CCDSAKeyPair(void)[protected]

Default constructor

~CDSAKeyPair ( void )

IMPORT_C~CDSAKeyPair(void)[virtual]

The destructor frees all resources owned by the object, prior to its destruction.

Member Function Documentation

NewL ( TUint )

IMPORT_C CDSAKeyPair *NewL(TUintaSize)[static]

Creates a new DSA key pair and also a DSA prime certificate

Parameters
aSizeThe length (in bits) of the DSA parameter, p (the prime)
Return Value
A pointer to a new CDSAKeyPair object

NewLC ( TUint )

IMPORT_C CDSAKeyPair *NewLC(TUintaSize)[static]

Creates a new DSA key pair and also a DSA prime certificate

The returned pointer is put onto the cleanup stack.

Parameters
aSizeThe length (in bits) of the DSA parameter, p (the prime)
Return Value
A pointer to a new CDSAKeyPair object

PrimeCertificate ( void )

IMPORT_C const CDSAPrimeCertificate &PrimeCertificate(void)const

Gets the DSA prime certificate (i.e., the seed and counter)

Return Value
The DSA prime certificate object

PrivateKey ( void )

IMPORT_C const CDSAPrivateKey &PrivateKey(void)const

Gets the DSA private key

Return Value
The DSA private key object

PublicKey ( void )

IMPORT_C const CDSAPublicKey &PublicKey(void)const

Gets the DSA public key

Return Value
The DSA public key object