1.5.2.7 DRV_CRYPTO_HASH_Update()

HASH_ERROR DRV_CRYPTO_HASH_Update (void * contextData, uint8_t * data, uint32_t dataLength)

This function adds data to the ongoing hash operation.

Parameters:
contextData

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

data

The data to add to the operation.

dataLength

The length of the data.

Return values:
HASH_NO_ERROR

Success.

HASH_CONTEXT_ERROR

Invalid or corrupted hash context.

HASH_INITIALIZE_ERROR

Failure during hash initialization.

HASH_STATE_ERROR

Invalid or unexpected hash state.

HASH_UPDATE_ERROR

Failure while updating the hash.

Note:

A HASH operation must be in progress (initialized by DRV_CRYPTO_HASH_Initialize()).