nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ cracen_mac_sign_finish()

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.

Parameters
[in,out]operationMAC operation context.
[out]macBuffer to store the MAC.
[in]mac_sizeSize of the MAC buffer in bytes.
[out]mac_lengthLength of the generated MAC in bytes.
Return values
PSA_SUCCESSThe operation completed successfully.
PSA_ERROR_BAD_STATEThe operation is not in a valid state.
PSA_ERROR_BUFFER_TOO_SMALLThe MAC buffer is too small.