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

◆ cracen_aead_set_nonce()

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.

Parameters
[in,out]operationAEAD operation context.
[in]nonceNonce or IV.
[in]nonce_lengthLength of the nonce in bytes.
Return values
PSA_SUCCESSThe operation completed successfully.
PSA_ERROR_BAD_STATEThe operation is not in a valid state.