![]() |
nRF Connect SDK API 3.3.99
|
| psa_status_t cracen_mac_verify_finish | ( | cracen_mac_operation_t * | operation, |
| const uint8_t * | mac, | ||
| size_t | mac_length ) |
#include <subsys/nrf_security/src/drivers/cracen/cracenpsa/include/cracen_psa_mac.h>
Finish a MAC verification operation.
| [in,out] | operation | MAC operation context. |
| [in] | mac | MAC to verify. |
| [in] | mac_length | Length of the MAC in bytes. |
| PSA_SUCCESS | The MAC is valid. |
| PSA_ERROR_INVALID_SIGNATURE | The MAC is invalid. |
| PSA_ERROR_BAD_STATE | The operation is not in a valid state. |