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/cracenpsa/include/cracen_psa_aead.h>

Finish an AEAD encryption operation.

Parameters
[in,out]operationAEAD operation context.
[out]ciphertextBuffer to store the final ciphertext.
[in]ciphertext_sizeSize of the ciphertext buffer in bytes.
[out]ciphertext_lengthLength of the generated ciphertext in bytes.
[out]tagBuffer to store the authentication tag.
[in]tag_sizeSize of the tag buffer in bytes.
[out]tag_lengthLength of the generated tag in bytes.
Return values
PSA_SUCCESSThe operation completed successfully.
PSA_ERROR_BAD_STATEThe operation is not in a valid state.
PSA_ERROR_BUFFER_TOO_SMALLA buffer is too small.