5.4.2.2 Crypto_Aead_AesEax_Cipher
crypto_Aead_Status_E Crypto_Aead_AesEax_Cipher(
st_Crypto_Aead_AesEax_ctx *ptr_aesEaxCtx_st,
uint8_t *ptr_inputData,
uint32_t dataLen,
uint8_t *ptr_outData,
uint8_t *ptr_aad,
uint32_t aadLen
);
Description
This API allows for AES-EAX encryption or decryption in multiple parts. Before using it, initialize the context by calling the Crypto_Aead_AesEax_Init function. Finally, to obtain the authentication tag, call Crypto_Aead_AesEax_Final.
Parameters
No. | Argument Type | Argument Name | Type | Description |
---|---|---|---|---|
1 | st_Crypto_Aead_AesEax_ctx* | ptr_aesEaxCtx_st | Input | AES-EAX Algorithm context. |
2 | uint8_t* | ptr_inputData | Input | Input data to encrypt or decrypt. |
3 | uint32_t | dataLen | Input | Length of plain data or cipher data in bytes. |
4 | uint8_t* | ptr_outData | Output | Pointer to store cipher text/plain text as output. |
5 | uint8_t* | ptr_aad | Input | Pointer for additional authentication data. It is optional to use, so it can be NULL also. |
6 | uint32_t | aadLen | Input | Length of additional authentication data in bytes, as it is optional so it can be 0 also. |
Returns
Return Type | Description |
---|---|
crypto_Aead_Status_E | Function returns the status of the API. |