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

◆ cracen_sw_aes_gcm_finish()

psa_status_t cracen_sw_aes_gcm_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_aes_gcm.h>

Finish the software AES-GCM encryption operation.

Parameters
[in,out]operationPointer to the AEAD operation structure.
[out]ciphertextOutput buffer for remaining ciphertext (typically none for CCM).
[in]ciphertext_sizeSize of the ciphertext buffer.
[out]ciphertext_lengthPointer to store the actual ciphertext length.
[out]tagOutput buffer for the authentication tag.
[in]tag_sizeSize of the tag buffer.
[out]tag_lengthPointer to store the actual tag length.
Return values
PSA_SUCCESSOperation finished successfully; tag generated.
PSA_ERROR_BUFFER_TOO_SMALLTag buffer too small.
PSA_ERROR_BAD_STATEOperation not initialized.