CryptoSpi::CHashFactory Class Reference

class CryptoSpi::CHashFactory

the Factory to create synchronous and asynchronous hash instances

Public Member Functions
IMPORT_C void CreateAsyncHashL (CAsyncHash *&, TUid , TUid , const CKey *, const CCryptoParams *)
IMPORT_C void CreateHashL (CHash *&, TUid , TUid , const CKey *, const CCryptoParams *)

Member Functions Documentation

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

IMPORT_C void CreateAsyncHashL ( CAsyncHash *& aAsyncHash,
TUid aAlgorithmUid,
TUid aOperationMode,
const CKey * aKey,
const CCryptoParams * aAlgorithmParams
) [static]

Create a CAsyncHash instance

Parameters

CAsyncHash *& aAsyncHash The pointer to CAsyncHash
TUid aAlgorithmUid The specific hash algorithm e.g. MD2, SHA1, MD4
TUid aOperationMode The operation mode of the hash e.g. Hash mode, Hmac mode
const CKey * aKey The key for Hmac mode, which should be NULL in Hash mode
const CCryptoParams * aAlgorithmParams The 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 void CreateHashL ( CHash *& aHash,
TUid aAlgorithmUid,
TUid aOperationMode,
const CKey * aKey,
const CCryptoParams * aAlgorithmParams
) [static]

Create a CHash instance

Parameters

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