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 &)

void Agree ( 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 & aY The public key of the other party.
HBufC8 *& aAgreedKey The returned key. A new object is created which is owned by the caller.
TRequestStatus & aStatus

CancelAgreement()

void CancelAgreement ( ) [pure virtual]

Cancels either a PublicKey() or Agree() operation

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

void PublicKey ( 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 & aN The DH modulus parameter.
const TInteger & aG The DH generator parameter.
CDHPublicKey *& aX The returned public key. A new object is created which is owned by the caller.
TRequestStatus & aStatus