![]() |
nRF Connect SDK API 3.4.99
|
| 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 <cracen_psa_aead.h>
Finish an AEAD encryption operation.
| [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. |
| 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. |