mbedtls_psa_mac_update() function
Add a message fragment to a multipart MAC operation using Mbed TLS. The PSA core calls mbedtls_psa_mac_sign_setup() or mbedtls_psa_mac_verify_setup() before calling this function. If this function returns an error status, the PSA core aborts the operation by calling mbedtls_psa_mac_abort().
Arguments
operation
Active MAC operation.
input
Buffer containing the message fragment to add to the MAC calculation.
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 mac_update entry point. This function behaves as a mac_update entry point as defined in the PSA driver interface specification for transparent drivers.
mbedtls_psa_mac_update() is called by 2 functions and calls 3 functions:
![]()
mbedtls_psa_mac_update()
mbedtls_psa_mac_update() reads 2 variables:
![]()
mbedtls_psa_mac_update()