![]() |
nRF Connect SDK API 3.4.99
|
| psa_status_t cracen_sw_chacha20_poly1305_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_sw_chacha20_poly1305.h>
Finish the software ChaCha20-Poly1305 encryption operation.
| [in,out] | operation | Pointer to the AEAD operation structure. |
| [out] | ciphertext | Output buffer for remaining ciphertext (typically none). |
| [in] | ciphertext_size | Size of the ciphertext buffer. |
| [out] | ciphertext_length | Pointer to store the actual ciphertext length. |
| [out] | tag | Output buffer for the authentication tag. |
| [in] | tag_size | Size of the tag buffer. |
| [out] | tag_length | Pointer to store the actual tag length. |
| PSA_SUCCESS | Operation finished successfully; tag generated. |
| PSA_ERROR_BUFFER_TOO_SMALL | Tag buffer too small. |
| PSA_ERROR_BAD_STATE | Operation not initialized. |