![]() |
nRF Connect SDK API 3.3.99
|
| psa_status_t cracen_sw_aes_ccm_set_nonce | ( | cracen_aead_operation_t * | operation, |
| const uint8_t * | nonce, | ||
| size_t | nonce_length ) |
#include <subsys/nrf_security/src/drivers/cracen/cracen_sw/include/cracen_sw_aes_ccm.h>
Set nonce for the software AES-CCM operation.
| [in,out] | operation | Pointer to the AEAD operation structure. |
| [in] | nonce | Nonce value. |
| [in] | nonce_length | Length of the nonce. Must be 7-13 bytes for CCM. |
| PSA_SUCCESS | Nonce set successfully. |
| PSA_ERROR_INVALID_ARGUMENT | Invalid nonce length. |