CryptoSpi::CKeyPair Class Reference

class CryptoSpi::CKeyPair : public CBase

The Asymmetric Key Pair Definition

Inherits from

Constructor & Destructor Documentation

CKeyPair()

CKeyPair ( ) [private]

constructor

~CKeyPair()

~CKeyPair ( )

Member Functions Documentation

ConstructL(CKey *, CKey *)

void ConstructL ( CKey * ,
CKey *
) [private]

2nd Phase Constructor

Parameters

CKey *
CKey *

NewL(CKey *, CKey *)

IMPORT_C CKeyPair * NewL ( CKey * aPublicKey,
CKey * aPrivateKey
) [static]

Create a CKeyPair instance from a public and private key. The CKeyPair takes ownership of both keys.

Parameters

CKey * aPublicKey The public key in the key pair.
CKey * aPrivateKey The private key in the key pair.

PrivateKey()

IMPORT_C const CKey & PrivateKey ( ) const

Retrieve the private key

PublicKey()

IMPORT_C const CKey & PublicKey ( ) const

Retrieve the public key

Member Data Documentation

CKey * iPrivateKey

CKey * iPrivateKey [private]

The private key in the key pair

CKey * iPublicKey

CKey * iPublicKey [private]

The public key in the key pair