mbedtls_psa_mac_abort() function
Abort a MAC operation using Mbed TLS. 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 calling mbedtls_psa_mac_sign_setup() or mbedtls_psa_mac_verify_setup() again. The PSA core may call this function any time after the operation object has been initialized by one of the methods described in #mbedtls_psa_mac_operation_t. In particular, calling mbedtls_psa_mac_abort() after the operation has been terminated by a call to mbedtls_psa_mac_abort(), mbedtls_psa_mac_sign_finish() or mbedtls_psa_mac_verify_finish() is safe and has no effect.
Arguments
operation
Initialized MAC operation.
Return value
#PSA_SUCCESS \emptydescription #PSA_ERROR_CORRUPTION_DETECTED \emptydescription
![]()
mbedtls_psa_mac_abort(&operation);
mbedtls_psa_mac_abort() is called by 3 functions and calls 2 functions:
![]()
mbedtls_psa_mac_abort()
mbedtls_psa_mac_abort() reads 2 variables and writes 1 variable:
![]()
mbedtls_psa_mac_abort()