#include <cryptospi/cryptohashapi.h>
Link against: cryptospi.lib
class CryptoSpi::CHashFactory |
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 *) |
the Factory to create synchronous and asynchronous hash instances
IMPORT_C void | CreateAsyncHashL | ( | CAsyncHash *& | aAsyncHash, |
TUid | aAlgorithmUid, | |||
TUid | aOperationMode, | |||
const CKey * | aKey, | |||
const CCryptoParams * | aAlgorithmParams | |||
) | [static] |
Deprecated
Create a CAsyncHash instance
Parameters | |
---|---|
aAsyncHash | The pointer to CAsyncHash |
aAlgorithmUid | The specific hash algorithm e.g. MD2, SHA1, MD4 |
aOperationMode | The operation mode of the hash e.g. Hash mode, Hmac mode |
aKey | The key for Hmac mode, which should be NULL in Hash mode |
aAlgorithmParams | The parameters that are specific to a particular algorithm. This is for extendibility and will normally be null. |
IMPORT_C void | CreateHashL | ( | CHash *& | aHash, |
TUid | aAlgorithmUid, | |||
TUid | aOperationMode, | |||
const CKey * | aKey, | |||
const CCryptoParams * | aAlgorithmParams | |||
) | [static] |
Deprecated
Create a CHash instance
Parameters | |
---|---|
aHash | The pointer to CHash |
aAlgorithmUid | The specific hash algorithm e.g. MD2, SHA1, MD4 |
aOperationMode | The operation mode of the hash e.g. Hash mode, Hmac mode |
aKey | The key for Hmac mode, which should be NULL in Hash mode |
aAlgorithmParams | The parameters that are specific to a particular algorithm. This is for extendibility and will normally be null. |