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

◆ cracen_aead_finish()

psa_status_t cracen_aead_finish ( cracen_aead_operation_t * operation,
uint8_t * ciphertext,
size_t ciphertext_size,
size_t * ciphertext_length,
uint8_t * tag,
size_t tag_size,
size_t * tag_length )

#include <subsys/nrf_security/src/drivers/cracen/cracen_sw/include/cracen_sw_aead.h>

Finish the software AEAD encryption and generate the tag.

Parameters
[in,out]operationPointer to the AEAD operation structure.
[out]ciphertextFinal ciphertext output buffer.
[in]ciphertext_sizeSize of ciphertext buffer.
[out]ciphertext_lengthPointer to store actual ciphertext length.
[out]tagTag output buffer.
[in]tag_sizeSize of tag buffer.
[out]tag_lengthPointer to store actual tag length.
Return values
PSA_SUCCESSEncryption finished successfully; tag generated.
PSA_ERROR_NOT_SUPPORTEDUnsupported algorithm.
PSA_ERROR_BUFFER_TOO_SMALLTag buffer too small.
PSA_ERROR_BAD_STATEOperation not initialized.