CryptoSpi::CKeyAgreementFactory Class Reference

class CryptoSpi::CKeyAgreementFactory

the Factory to create synchronous and asynchronous keyagreement instances

Public Member Functions
IMPORT_C void CreateAsyncKeyAgreementL (CAsyncKeyAgreement *&, TUid , const CKey &, const CCryptoParams *)
IMPORT_C void CreateKeyAgreementL (CKeyAgreement *&, TUid , const CKey &, const CCryptoParams *)

Member Functions Documentation

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

IMPORT_C void CreateAsyncKeyAgreementL ( CAsyncKeyAgreement *& aKeyAgreement,
TUid aAlgorithmUid,
const CKey & aPrivateKey,
const CCryptoParams * aAlgorithmParams
) [static]

Creates a new asynchronous instance of a key agreement system.

Parameters

CAsyncKeyAgreement *& aKeyAgreement A reference to a pointer that should be set to point to the new key agreement object.
TUid aAlgorithmUid The algorithm to use
const CKey & aPrivateKey The private key to combine with the other parties public key during the agreement.
const CCryptoParams * aAlgorithmParams The 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 void CreateKeyAgreementL ( CKeyAgreement *& aKeyAgreement,
TUid aAlgorithmUid,
const CKey & aPrivateKey,
const CCryptoParams * aAlgorithmParams
) [static]

Creates a new instance of a key agreement system.

Parameters

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