CryptoSpi::CKeyAgreementFactory Class Reference

class CryptoSpi::CKeyAgreementFactory

the Factory to create synchronous and asynchronous keyagreement instances

Public Member Functions
IMPORT_C voidCreateAsyncKeyAgreementL(CAsyncKeyAgreement *&, TUid, const CKey &, const CCryptoParams *)
IMPORT_C voidCreateKeyAgreementL(CKeyAgreement *&, TUid, const CKey &, const CCryptoParams *)

Member Functions Documentation

CreateAsyncKeyAgreementL(CAsyncKeyAgreement *&, TUid, const CKey &, const CCryptoParams *)

IMPORT_C voidCreateAsyncKeyAgreementL(CAsyncKeyAgreement *&aKeyAgreement,
TUidaAlgorithmUid,
const CKey &aPrivateKey,
const CCryptoParams *aAlgorithmParams
)[static]

Creates a new asynchronous instance of a key agreement system.

Parameters

CAsyncKeyAgreement *& aKeyAgreementA reference to a pointer that should be set to point to the new key agreement object.
TUid aAlgorithmUidThe algorithm to use
const CKey & aPrivateKeyThe private key to combine with the other parties public key during the agreement.
const CCryptoParams * aAlgorithmParamsThe parameters that are specific to a particular algorithm. This is for extendibility and will normally be null.

CreateKeyAgreementL(CKeyAgreement *&, TUid, const CKey &, const CCryptoParams *)

IMPORT_C voidCreateKeyAgreementL(CKeyAgreement *&aKeyAgreement,
TUidaAlgorithmUid,
const CKey &aPrivateKey,
const CCryptoParams *aAlgorithmParams
)[static]

Creates a new instance of a key agreement system.

Parameters

CKeyAgreement *& aKeyAgreementA reference to a pointer that should be set to point to the new key agreement object.
TUid aAlgorithmUidThe algorithm to use
const CKey & aPrivateKeyThe private key to combine with the other parties public key during the agreement.
const CCryptoParams * aAlgorithmParamsThe parameters that are specific to a particular algorithm. This is for extendibility and will normally be null.