CDH Class Reference

#include <asymmetric.h>

class CDH : public CBase

Inherits from

Detailed Description

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

Member Attribute Documentation

iPrivateKey

const CDHPrivateKey &iPrivateKey[protected]

The DH private key

Constructor & Destructor Documentation

CDH ( const CDHPrivateKey & )

IMPORT_CCDH(const CDHPrivateKey &aPrivateKey)[protected]

Constructor

Parameters
aPrivateKeyThe DH private key

Member Function Documentation

AgreeL ( const CDHPublicKey & )

IMPORT_C HBufC8 *AgreeL(const CDHPublicKey &aPublicKey)const

Performs the key agreement operation.

Parameters
aPublicKeyThe public key of the other party
Return Value
The agreed key

NewL ( const CDHPrivateKey & )

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

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

Parameters
aPrivateKeyThe private key of this party
Return Value
A pointer to the new CDH object

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
aPrivateKeyThe private key of this party
Return Value
A pointer to the new CDH object