#include <subsys/nrf_security/src/drivers/cracen/cracenpsa/include/cracen_psa_aead.h>
Finish an AEAD encryption operation.
- Parameters
-
| [in,out] | operation | AEAD operation context. |
| [out] | ciphertext | Buffer to store the final ciphertext. |
| [in] | ciphertext_size | Size of the ciphertext buffer in bytes. |
| [out] | ciphertext_length | Length of the generated ciphertext in bytes. |
| [out] | tag | Buffer to store the authentication tag. |
| [in] | tag_size | Size of the tag buffer in bytes. |
| [out] | tag_length | Length of the generated tag in bytes. |
- Return values
-
| PSA_SUCCESS | The operation completed successfully. |
| PSA_ERROR_BAD_STATE | The operation is not in a valid state. |
| PSA_ERROR_BUFFER_TOO_SMALL | A buffer is too small. |