mbedtls_psa_aead_update_ad() function
Pass additional data to an active AEAD operation. Additional data is authenticated, but not encrypted. The PSA core can call this function multiple times to pass successive fragments of the additional data. It will not call this function after passing data to encrypt or decrypt with mbedtls_psa_aead_update(). Before calling this function, the PSA core will: 1. Call either mbedtls_psa_aead_encrypt_setup() or mbedtls_psa_aead_decrypt_setup(). 2. Set the nonce with mbedtls_psa_aead_set_nonce(). If this function returns an error status, the PSA core will call mbedtls_psa_aead_abort().
Arguments
operation
Active AEAD operation.
input
Buffer containing the fragment of additional data.
input_length
Size of the \p input buffer in bytes.
Return value
#PSA_SUCCESS Success. #PSA_ERROR_NOT_SUPPORTED Algorithm previously set is not supported in this configuration of the library.
Notes
The signature of this function is that of a PSA driver aead_update_ad entry point. This function behaves as an aead_update_ad entry point as defined in the PSA driver interface specification for transparent drivers.
mbedtls_psa_aead_update_ad() is called by 1 function and calls 4 functions:
![]()
mbedtls_psa_aead_update_ad()
mbedtls_psa_aead_update_ad() reads 2 variables:
![]()
mbedtls_psa_aead_update_ad()