Found 5 other functions taking a
mbedtls_psa_hash_operation_t
argument:
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.
Set up a multipart hash operation using Mbed TLS routines. If an error occurs at any step after a call to mbedtls_psa_hash_setup(), the operation will need to be reset by a call to mbedtls_psa_hash_abort(). The core may call mbedtls_psa_hash_abort() at any time after the operation has been initialized. After a successful call to mbedtls_psa_hash_setup(), the core must eventually terminate the operation. The following events terminate an operation: - A successful call to mbedtls_psa_hash_finish() or mbedtls_psa_hash_verify(). - A call to mbedtls_psa_hash_abort().
Add a message fragment to a multipart Mbed TLS hash operation. The application must call mbedtls_psa_hash_setup() before calling this function. If this function returns an error status, the operation enters an error state and must be aborted by calling mbedtls_psa_hash_abort().
Finish the calculation of the Mbed TLS-calculated hash of a message. The application must call mbedtls_psa_hash_setup() before calling this function. This function calculates the hash of the message formed by concatenating the inputs passed to preceding calls to mbedtls_psa_hash_update(). When this function returns successfully, the operation becomes inactive. If this function returns an error status, the operation enters an error state and must be aborted by calling mbedtls_psa_hash_abort().
Clone an Mbed TLS hash operation. This function copies the state of an ongoing hash operation to a new operation object. In other words, this function is equivalent to calling mbedtls_psa_hash_setup() on \p target_operation with the same algorithm that \p source_operation was set up for, then mbedtls_psa_hash_update() on \p target_operation with the same input that that was passed to \p source_operation. After this function returns, the two objects are independent, i.e. subsequent calls involving one of the objects do not affect the other object.