![]() |
nRF Connect SDK API 3.4.99
|
| psa_status_t cracen_cmac_compute | ( | cracen_mac_operation_t * | op, |
| const uint8_t * | input, | ||
| size_t | input_length ) |
#include <cracen_sw_mac_cmac.h>
Compute a CMAC in a single pass, without context switching.
op->input_buffer. The caller copies out op->mac_size bytes, which is shorter than the block for a truncated MAC. The MAC is deliberately not written to a caller-supplied buffer, because its length is fixed by the algorithm rather than by the requested MAC size.