#include <cryptospi/cryptohashapi.h>
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] |
Create a CAsyncHash instance
Parameter | Description |
---|---|
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. |
Returns: KErrNone if successful; otherwise, a system wide error code.
IMPORT_C void | CreateHashL | ( | CHash *& | aHash, |
TUid | aAlgorithmUid, | |||
TUid | aOperationMode, | |||
const CKey * | aKey, | |||
const CCryptoParams * | aAlgorithmParams | |||
) | [static] |
Create a CHash instance
Parameter | Description |
---|---|
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. |
Returns: KErrNone if successful; otherwise, a system wide error code.