CDH Class Reference

class CDH : public CBase

Implementation of Diffie-Hellman key agreement as specified in PKCS#3.

Inherits from

Constructor & Destructor Documentation

CDH(const CDHPrivateKey &)

IMPORT_CCDH(const CDHPrivateKey &aPrivateKey)[protected]

Constructor

Parameters

const CDHPrivateKey & aPrivateKeyThe DH private key

CDH(const CDH &)

CDH(const CDH &)[private]

Parameters

const CDH &

Member Functions Documentation

AgreeL(const CDHPublicKey &)

IMPORT_C HBufC8 *AgreeL(const CDHPublicKey &aPublicKey)const

Performs the key agreement operation.

Parameters

const CDHPublicKey & aPublicKeyThe public key of the other party

NewL(const CDHPrivateKey &)

IMPORT_C CDH *NewL(const CDHPrivateKey &aPrivateKey)[static]

Creates a new CDH object from a specified DH private key.

Parameters

const CDHPrivateKey & aPrivateKeyThe private key of this party

NewLC(const CDHPrivateKey &)

IMPORT_C CDH *NewLC(const CDHPrivateKey &aPrivateKey)[static]

Creates a new CDH object from a specified DH private key.

The returned pointer is put onto the cleanup stack.

Parameters

const CDHPrivateKey & aPrivateKeyThe private key of this party

operator=(const CDH &)

CDH &operator=(const CDH &)[private]

Parameters

const CDH &

Member Data Documentation

const CDHPrivateKey & iPrivateKey

const CDHPrivateKey &iPrivateKey[protected]

The DH private key