1.1.3.6 DRV_CRYPTO_AES_AddTweakData()
AES_ERROR DRV_CRYPTO_AES_AddTweakData (void * contextData, const void * tweakData, uint32_t tweakLength)
This function initializes the tweak value for use in AES XTS mode.
| contextData |
The context data for this operation. |
| tweakData |
The tweak data to use. |
| tweakLength |
The length of the tweak data. |
| AES_NO_ERROR |
Success. |
| AES_STATE_ERROR |
Invalid or unexpected AES state. |
| AES_WRITE_ERROR |
Failure while writing tweak data. |
Note:
An AES operation must be in progress (initialized by DRV_CRYPTO_AES_Initialize()).
