MCTDH Class Reference

class MCTDH : public MCTTokenObject

A Diffie-Hellman key agreement object.

Inherits from

Constructor & Destructor Documentation

MCTDH(MCTToken &)

MCTDH(MCTToken &aToken)[protected, inline]

Parameters

MCTToken & aToken

~MCTDH()

~MCTDH()[protected, inline, pure virtual]

Member Functions Documentation

Agree(const CDHPublicKey &, HBufC8 *&, TRequestStatus &)

voidAgree(const CDHPublicKey &aY,
HBufC8 *&aAgreedKey,
TRequestStatus &aStatus
)[pure virtual]

Agrees a session key.

capability
Dependent Requires the caller to have any capabilities specified in the key use security policy.
leave
KErrPermissionDenied If the caller does not conform to the key use security policy.
leave
KErrBadPassphrase If the user failed to enter the correct passphrase.

Parameters

const CDHPublicKey & aYThe public key of the other party.
HBufC8 *& aAgreedKeyThe returned key. A new object is created which is owned by the caller.
TRequestStatus & aStatus

CancelAgreement()

voidCancelAgreement()[pure virtual]

Cancels either a PublicKey() or Agree() operation

PublicKey(const TInteger &, const TInteger &, CDHPublicKey *&, TRequestStatus &)

voidPublicKey(const TInteger &aN,
const TInteger &aG,
CDHPublicKey *&aX,
TRequestStatus &aStatus
)[pure virtual]

Returns the public key ('Big X') for the supplied set of parameters.

capability
Dependent Requires the caller to have any capabilities specified in the key use security policy.
leave
KErrPermissionDenied If the caller does not conform to the key use security policy.
leave
KErrBadPassphrase If the user failed to enter the correct passphrase.

Parameters

const TInteger & aNThe DH modulus parameter.
const TInteger & aGThe DH generator parameter.
CDHPublicKey *& aXThe returned public key. A new object is created which is owned by the caller.
TRequestStatus & aStatus