![]() |
nRF Connect SDK API 3.3.99
|
| psa_status_t cracen_aead_set_lengths | ( | cracen_aead_operation_t * | operation, |
| size_t | ad_length, | ||
| size_t | plaintext_length ) |
#include <subsys/nrf_security/src/drivers/cracen/cracenpsa/include/cracen_psa_aead.h>
Set the lengths for an AEAD operation.
| [in,out] | operation | AEAD operation context. |
| [in] | ad_length | Length of Additional Authenticated Data (AAD) in bytes. |
| [in] | plaintext_length | Length of the plaintext in bytes. |
| PSA_SUCCESS | The operation completed successfully. |
| PSA_ERROR_BAD_STATE | The operation is not in a valid state. |