#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] | operation | Pointer to the AEAD operation structure. |
| [out] | ciphertext | Final ciphertext output buffer. |
| [in] | ciphertext_size | Size of ciphertext buffer. |
| [out] | ciphertext_length | Pointer to store actual ciphertext length. |
| [out] | tag | Tag output buffer. |
| [in] | tag_size | Size of tag buffer. |
| [out] | tag_length | Pointer to store actual tag length. |
- Return values
-
| PSA_SUCCESS | Encryption finished successfully; tag generated. |
| PSA_ERROR_NOT_SUPPORTED | Unsupported algorithm. |
| PSA_ERROR_BUFFER_TOO_SMALL | Tag buffer too small. |
| PSA_ERROR_BAD_STATE | Operation not initialized. |