![]() |
nRF Connect SDK API 3.3.99
|
| psa_status_t cracen_mac_sign_finish | ( | cracen_mac_operation_t * | operation, |
| uint8_t * | mac, | ||
| size_t | mac_size, | ||
| size_t * | mac_length ) |
#include <subsys/nrf_security/src/drivers/cracen/cracenpsa/include/cracen_psa_mac.h>
Finish a MAC signing operation.
| [in,out] | operation | MAC operation context. |
| [out] | mac | Buffer to store the MAC. |
| [in] | mac_size | Size of the MAC buffer in bytes. |
| [out] | mac_length | Length of the generated MAC in bytes. |
| PSA_SUCCESS | The operation completed successfully. |
| PSA_ERROR_BAD_STATE | The operation is not in a valid state. |
| PSA_ERROR_BUFFER_TOO_SMALL | The MAC buffer is too small. |