Finalizes encryption in detached mode, producing the final ciphertext and MAC.
Buffer for remaining ciphertext.
Pointer to store the number of bytes written.
Buffer for the MAC (must be aegis256x2_ABYTES_MIN to aegis256x2_ABYTES_MAX).
Length of the MAC.
0 on success, or a negative error code on failure.
See Implementation
Finalizes encryption in detached mode, producing the final ciphertext and MAC.