CryptoSpi::MAsyncKeyAgreement Class Reference

class CryptoSpi::MAsyncKeyAgreement : public CryptoSpi::MPlugin

Inherits from

Member Functions Documentation

AgreeL(const CKey &, CKey &, const CCryptoParams *, TRequestStatus &)

voidAgreeL(const CKey &aOtherPublicKey,
CKey &aKey,
const CCryptoParams *aParams,
TRequestStatus &aRequestStatus
)[pure virtual]
Performs the key agreement operation.
leave
... Any of the crypto error codes defined in cryptospi_errs.h or any of the system-wide error codes.

Parameters

const CKey & aOtherPublicKeyThe public key of the other party
CKey & aKeyA pointer to a CKey instance containing the agreed key
const CCryptoParams * aParamsThe parameters shared between both parties
TRequestStatus & aRequestStatus

Cancel()

voidCancel()[pure virtual]

Cancel the outstanding request

SetKeyL(const CKey &, const CCryptoParams *)

voidSetKeyL(const CKey &aSelfPrivateKey,
const CCryptoParams *aParams
)[pure virtual]
Set the private key for this keyagreement. Reset() is called to reinitialize the keyAgreement
leave
... Any of the crypto error codes defined in cryptospi_errs.h or any of the system-wide error codes.

Parameters

const CKey & aSelfPrivateKeyThe private key of one of the parties
const CCryptoParams * aParamsThe parameters shared between both parties