mbedtls_psa_hash_abort() function
Abort an Mbed TLS hash 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 calling mbedtls_psa_hash_setup() again. You may call this function any time after the operation object has been initialized by one of the methods described in #psa_hash_operation_t. In particular, calling mbedtls_psa_hash_abort() after the operation has been terminated by a call to mbedtls_psa_hash_abort(), mbedtls_psa_hash_finish() or mbedtls_psa_hash_verify() is safe and has no effect.
Arguments
operation
Initialized hash operation.
Return value
#PSA_SUCCESS \emptydescription #PSA_ERROR_CORRUPTION_DETECTED \emptydescription
Notes
The signature of this function is that of a PSA driver hash_abort entry point. This function behaves as a hash_abort entry point as defined in the PSA driver interface specification for transparent drivers.
![]()
abort_status = mbedtls_psa_hash_abort(&operation);
mbedtls_psa_hash_abort() is called by 3 functions and calls 4 functions:
![]()
mbedtls_psa_hash_abort()
mbedtls_psa_hash_abort() reads 2 variables and writes 1 variable:
![]()
mbedtls_psa_hash_abort()