nrfxlib API 2.8.99
|
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.
[in] | operation | Active AEAD operation. |
[in] | nonce | Buffer containing the nonce to use. |
[in] | nonce_length | Size of the nonce in bytes. |
PSA_SUCCESS | |
PSA_ERROR_GENERIC_ERROR | |
PSA_ERROR_NOT_SUPPORTED | |
PSA_ERROR_INVALID_ARGUMENT | |
PSA_ERROR_CORRUPTION_DETECTED | |
PSA_ERROR_DATA_INVALID |