psa_mac_update() function
Add a message fragment to a multipart MAC operation. The application must call psa_mac_sign_setup() or psa_mac_verify_setup() before calling this function. If this function returns an error status, the operation enters an error state and must be aborted by calling 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_INSUFFICIENT_MEMORY \emptydescription #PSA_ERROR_COMMUNICATION_FAILURE \emptydescription #PSA_ERROR_HARDWARE_FAILURE \emptydescription #PSA_ERROR_CORRUPTION_DETECTED \emptydescription #PSA_ERROR_STORAGE_FAILURE \emptydescription #PSA_ERROR_BAD_STATE The operation state is not valid (it must be active), or the library has not been previously initialized by psa_crypto_init(). It is implementation-dependent whether a failure to initialize results in this error code.