CryptoSpi::CSignatureFactory Class Reference

class CryptoSpi::CSignatureFactory

the Factory to create synchronous and asynchronous signer and verifier instance

Public Member Functions
IMPORT_C voidCreateAsyncSignerL(CAsyncSigner *&, TUid, const CKey &, TUid, const CCryptoParams *)
IMPORT_C voidCreateAsyncVerifierL(CAsyncVerifier *&, TUid, const CKey &, TUid, const CCryptoParams *)
IMPORT_C voidCreateSignerL(CSigner *&, TUid, const CKey &, TUid, const CCryptoParams *)
IMPORT_C voidCreateVerifierL(CVerifier *&, TUid, const CKey &, TUid, const CCryptoParams *)

Member Functions Documentation

CreateAsyncSignerL(CAsyncSigner *&, TUid, const CKey &, TUid, const CCryptoParams *)

IMPORT_C voidCreateAsyncSignerL(CAsyncSigner *&aAsyncSigner,
TUidaAlgorithmUid,
const CKey &aKey,
TUidaPaddingMode,
const CCryptoParams *aAlgorithmParams
)[static]

Creates a new instance of a asynchronous signer.

Parameters

CAsyncSigner *& aAsyncSignerA reference to a pointer that should be set to point to the new signer object.
TUid aAlgorithmUidThe algorithm to use
const CKey & aKeyThe signing key.
TUid aPaddingModeThe padding mode of the signer.
const CCryptoParams * aAlgorithmParamsParameters that are specific to a particular algorithm. This is for extendibility and will normally be null.

CreateAsyncVerifierL(CAsyncVerifier *&, TUid, const CKey &, TUid, const CCryptoParams *)

IMPORT_C voidCreateAsyncVerifierL(CAsyncVerifier *&aAsyncVerifier,
TUidaAlgorithmUid,
const CKey &aKey,
TUidaPaddingMode,
const CCryptoParams *aAlgorithmParams
)[static]

Creates a new instance of an asynchronous verifier.

Parameters

CAsyncVerifier *& aAsyncVerifierA reference to a pointer that should be set to point to the new verifier object.
TUid aAlgorithmUidThe algorithm to use
const CKey & aKeyThe key to verify the signature with.
TUid aPaddingModeThe padding mode of the signer.
const CCryptoParams * aAlgorithmParamsParameters that are specific to a particular algorithm. This is for extendibility and will normally be null.

CreateSignerL(CSigner *&, TUid, const CKey &, TUid, const CCryptoParams *)

IMPORT_C voidCreateSignerL(CSigner *&aSigner,
TUidaAlgorithmUid,
const CKey &aKey,
TUidaPaddingMode,
const CCryptoParams *aAlgorithmParams
)[static]

Creates a new instance of a synchronous signer.

Parameters

CSigner *& aSignerA reference to a pointer that should be set to point to the new signer object.
TUid aAlgorithmUidThe algorithm to use.
const CKey & aKeyThe signing key.
TUid aPaddingModeThe padding mode of the signer.
const CCryptoParams * aAlgorithmParamsParameters that are specific to a particular algorithm. This is for extendibility and will normally be null.

CreateVerifierL(CVerifier *&, TUid, const CKey &, TUid, const CCryptoParams *)

IMPORT_C voidCreateVerifierL(CVerifier *&aVerifier,
TUidaAlgorithmUid,
const CKey &aKey,
TUidaPaddingMode,
const CCryptoParams *aAlgorithmParams
)[static]

Creates a new instance of a verifier.

Parameters

CVerifier *& aVerifierA reference to a pointer that should be set to point to the new verifier object.
TUid aAlgorithmUidThe algorithm to use
const CKey & aKeyThe key to verify the signature with.
TUid aPaddingModeThe padding mode of the signer.
const CCryptoParams * aAlgorithmParamsParameters that are specific to a particular algorithm. This is for extendibility and will normally be null.