![]() |
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/cracen_sw/include/cracen_sw_aead.h>
Set lengths for the software AEAD operation.
Some AEAD algorithms (such as CCM) require lengths to be known up-front.
| [in,out] | operation | Pointer to the AEAD operation structure. |
| [in] | ad_length | Length of additional data. |
| [in] | plaintext_length | Length of plaintext/ciphertext. |
| PSA_SUCCESS | Lengths set successfully. |
| PSA_ERROR_NOT_SUPPORTED | Unsupported algorithm. |