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

◆ cracen_sw_chacha20_poly1305_set_nonce()

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.

Parameters
[in,out]operationPointer to the AEAD operation structure.
[in]nonceNonce value.
[in]nonce_lengthLength of the nonce. Must be 12 bytes for ChaCha20-Poly1305.
Return values
PSA_SUCCESSNonce set successfully.
PSA_ERROR_INVALID_ARGUMENTInvalid nonce length.