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 TypeArgument NameTypeDescription
1st_Crypto_Aead_AesEax_ctx*ptr_aesEaxCtx_stInputAES-EAX Algorithm context.
2uint8_t*ptr_inputDataInputInput data to encrypt or decrypt.
3uint32_tdataLenInputLength of plain data or cipher data in bytes.
4uint8_t*ptr_outDataOutputPointer to store cipher text/plain text as output.
5uint8_t*ptr_aadInputPointer for additional authentication data. It is optional to use, so it can be NULL also.
6uint32_taadLenInputLength of additional authentication data in bytes, as it is optional so it can be 0 also.

Returns

Return TypeDescription
crypto_Aead_Status_EFunction returns the status of the API.