CDH Class Reference

#include <asymmetric.h>

class CDH : public CBase

Inherits from

  • CDH

    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

    ParameterDescription
    aPrivateKeyThe DH private key

    Member Function Documentation

    AgreeL ( const CDHPublicKey & )

    IMPORT_C HBufC8 *AgreeL(const CDHPublicKey &aPublicKey)const

    Performs the key agreement operation.

    ParameterDescription
    aPublicKeyThe public key of the other party

    Returns: 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.

    ParameterDescription
    aPrivateKeyThe private key of this party

    Returns: 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.

    ParameterDescription
    aPrivateKeyThe private key of this party

    Returns: A pointer to the new CDH object