![]() |
nRF Connect SDK API 3.3.99
|
| psa_status_t cracen_sw_chacha20_poly1305_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_chacha20_poly1305.h>
Set nonce for the software ChaCha20-Poly1305 operation.
| [in,out] | operation | Pointer to the AEAD operation structure. |
| [in] | nonce | Nonce value. |
| [in] | nonce_length | Length of the nonce. Must be 12 bytes for ChaCha20-Poly1305. |
| PSA_SUCCESS | Nonce set successfully. |
| PSA_ERROR_INVALID_ARGUMENT | Invalid nonce length. |