mbedtls_psa_aead_abort() function
Abort an AEAD operation. Aborting an operation frees all associated resources except for the \p operation structure itself. Once aborted, the operation object can be reused for another operation by the PSA core by it calling mbedtls_psa_aead_encrypt_setup() or mbedtls_psa_aead_decrypt_setup() again. The PSA core may call this function any time after the operation object has been initialized as described in #mbedtls_psa_aead_operation_t. In particular, calling mbedtls_psa_aead_abort() after the operation has been terminated by a call to mbedtls_psa_aead_abort() or mbedtls_psa_aead_finish() is safe and has no effect.
Arguments
operation
Initialized AEAD operation.
Return value
#PSA_SUCCESS Success.
Notes
The signature of this function is that of a PSA driver aead_abort entry point. This function behaves as an aead_abort entry point as defined in the PSA driver interface specification for transparent drivers.
mbedtls_psa_aead_abort() is called by 3 functions and calls 3 functions:
![]()
mbedtls_psa_aead_abort()
mbedtls_psa_aead_abort() reads 2 variables and writes 1 variable:
![]()
mbedtls_psa_aead_abort()