nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ cc3xx_aead_set_nonce()

psa_status_t cc3xx_aead_set_nonce ( cc3xx_aead_operation_t operation,
const uint8_t *  nonce,
size_t  nonce_length 
)

Set the nonce for an authenticated encryption or decryption operation.

Parameters
[in]operationActive AEAD operation.
[in]nonceBuffer containing the nonce to use.
[in]nonce_lengthSize of the nonce in bytes.
Return values
PSA_SUCCESS
PSA_ERROR_GENERIC_ERROR
PSA_ERROR_NOT_SUPPORTED
PSA_ERROR_INVALID_ARGUMENT
PSA_ERROR_CORRUPTION_DETECTED
PSA_ERROR_DATA_INVALID