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

◆ cracen_sw_aes_ccm_set_lengths()

psa_status_t cracen_sw_aes_ccm_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_aes_ccm.h>

Set lengths for the software AES-CCM operation.

CCM requires the lengths of additional data and plaintext to be known up-front.

Parameters
[in,out]operationPointer to the AEAD operation structure.
[in]ad_lengthLength of additional data.
[in]plaintext_lengthLength of plaintext.
Return values
PSA_SUCCESSLengths set successfully.