CryptoSpi::MKeyAgreement Class Reference

class CryptoSpi::MKeyAgreement : public CryptoSpi::MPlugin

Inherits from

Member Functions Documentation

AgreeL(const CKey &, const CCryptoParams *)

CKey * AgreeL ( const CKey & aOtherPublicKey,
const CCryptoParams * aParams
) [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 & aOtherPublicKey The public key of the other party
const CCryptoParams * aParams The parameters shared between both parties

SetKeyL(const CKey &, const CCryptoParams *)

void SetKeyL ( 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 & aSelfPrivateKey The private key of one of the parties
const CCryptoParams * aParams The parameters shared between both parties