1.4.4.4 DRV_CRYPTO_HASH_Initialize()

HASH_ERROR DRV_CRYPTO_HASH_Initialize (void * contextData, HASHCON_MODE mode)

Initialize a new hash operation.

Parameters:
contextData

A pointer to the context block that contains the hash context data.

mode

The HASHCON_MODE mode to use.

Returns:

HASH_NO_ERROR on success, HASH_CONTEXT_ERROR / HASH_INVALID_MODE_ERROR / HASH_INITIALIZE_ERROR on failure.

Note:

Reinitializing a HASH operation in progress will void the previous operation.