CryptoSpi::CHashFactory Class Reference

class CryptoSpi::CHashFactory

the Factory to create synchronous and asynchronous hash instances

Public Member Functions
IMPORT_C voidCreateAsyncHashL(CAsyncHash *&, TUid, TUid, const CKey *, const CCryptoParams *)
IMPORT_C voidCreateHashL(CHash *&, TUid, TUid, const CKey *, const CCryptoParams *)

Member Functions Documentation

CreateAsyncHashL(CAsyncHash *&, TUid, TUid, const CKey *, const CCryptoParams *)

IMPORT_C voidCreateAsyncHashL(CAsyncHash *&aAsyncHash,
TUidaAlgorithmUid,
TUidaOperationMode,
const CKey *aKey,
const CCryptoParams *aAlgorithmParams
)[static]

Create a CAsyncHash instance

Parameters

CAsyncHash *& aAsyncHashThe pointer to CAsyncHash
TUid aAlgorithmUidThe specific hash algorithm e.g. MD2, SHA1, MD4
TUid aOperationModeThe operation mode of the hash e.g. Hash mode, Hmac mode
const CKey * aKeyThe key for Hmac mode, which should be NULL in Hash mode
const CCryptoParams * aAlgorithmParamsThe parameters that are specific to a particular algorithm. This is for extendibility and will normally be null.

CreateHashL(CHash *&, TUid, TUid, const CKey *, const CCryptoParams *)

IMPORT_C voidCreateHashL(CHash *&aHash,
TUidaAlgorithmUid,
TUidaOperationMode,
const CKey *aKey,
const CCryptoParams *aAlgorithmParams
)[static]

Create a CHash instance

Parameters

CHash *& aHashThe pointer to CHash
TUid aAlgorithmUidThe specific hash algorithm e.g. MD2, SHA1, MD4
TUid aOperationModeThe operation mode of the hash e.g. Hash mode, Hmac mode
const CKey * aKeyThe key for Hmac mode, which should be NULL in Hash mode
const CCryptoParams * aAlgorithmParamsThe parameters that are specific to a particular algorithm. This is for extendibility and will normally be null.