mbedtls_psa_hash_update() function
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().
Arguments
operation
Active hash operation.
input
Buffer containing the message fragment to hash.
input_length
Size of the \p input buffer in bytes.
Return value
#PSA_SUCCESS Success. #PSA_ERROR_BAD_STATE The operation state is not valid (it must be active). #PSA_ERROR_INSUFFICIENT_MEMORY \emptydescription #PSA_ERROR_CORRUPTION_DETECTED \emptydescription
Notes
The signature of this function is that of a PSA driver hash_update entry point. This function behaves as a hash_update entry point as defined in the PSA driver interface specification for transparent drivers.
mbedtls_psa_hash_update() is called by 2 functions and calls 5 functions:
![]()
mbedtls_psa_hash_update()
mbedtls_psa_hash_update() reads 2 variables:
![]()
mbedtls_psa_hash_update()