![]() |
nRF Connect SDK API 3.3.99
|
| psa_status_t cracen_aead_set_nonce | ( | cracen_aead_operation_t * | operation, |
| const uint8_t * | nonce, | ||
| size_t | nonce_length ) |
#include <subsys/nrf_security/src/drivers/cracen/cracenpsa/include/cracen_psa_aead.h>
Set the nonce for an AEAD operation.
| [in,out] | operation | AEAD operation context. |
| [in] | nonce | Nonce or IV. |
| [in] | nonce_length | Length of the nonce in bytes. |
| PSA_SUCCESS | The operation completed successfully. |
| PSA_ERROR_BAD_STATE | The operation is not in a valid state. |