1.1.3.2 DRV_CRYPTO_AES_AddInputData()

AES_ERROR DRV_CRYPTO_AES_AddInputData (void * contextData, void * data, uint32_t dataLength)

This function adds input data to the ongoing AES operation.

Parameters:
contextData

The context data for this operation.

data

The data to add to the operation.

dataLength

The length of the data.

Return values:
AES_NO_ERROR

Success.

AES_STATE_ERROR

Invalid or unexpected AES state.

AES_WRITE_ERROR

Failure while writing input data.

Note:

An AES operation must be in progress (initialized by DRV_CRYPTO_AES_Initialize()).