![]() |
nRF Connect SDK API 3.3.99
|
| psa_status_t cracen_sw_cmac_setup | ( | cracen_mac_operation_t * | op, |
| const psa_key_attributes_t * | attributes, | ||
| const uint8_t * | key_buffer, | ||
| size_t | key_buffer_size ) |
#include <subsys/nrf_security/src/drivers/cracen/cracen_sw/include/cracen_sw_mac_cmac.h>
Set up for software based CMAC operation.
This function initializes a CMAC operation with the provided key attributes and key buffer. It prepares the operation structure for subsequent CMAC processing. This operation runs cmac in software using hardware AES-ECB primitives
| [in,out] | op | Pointer to the CMAC operation structure to be initialized. |
| [in] | attributes | Pointer to the key attributes structure. |
| [in] | key_buffer | Pointer to the buffer containing the key material. |
| [in] | key_buffer_size | Size of the key buffer in bytes. |