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

◆ cracen_sw_cmac_setup()

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

Parameters
[in,out]opPointer to the CMAC operation structure to be initialized.
[in]attributesPointer to the key attributes structure.
[in]key_bufferPointer to the buffer containing the key material.
[in]key_buffer_sizeSize of the key buffer in bytes.
Returns
PSA_SUCCESS on success or a valid PSA status code.