1.1.3.1 DRV_CRYPTO_AES_AddHeader()
AES_ERROR DRV_CRYPTO_AES_AddHeader (void * contextData, const void * headerData, uint32_t headerLength)
This function adds header data (such as Additional Authentication Data) to an AES operation.
| contextData |
The context data for this operation. |
| headerData |
The header data to add to the operation. |
| headerLength |
The length of the header data. |
| AES_NO_ERROR |
Success. |
| AES_STATE_ERROR |
Invalid or unexpected AES state. |
| AES_WRITE_ERROR |
Failure while writing header data. |
Note:
An AES operation must be in progress (initialized by DRV_CRYPTO_AES_Initialize()).
