Aegis128LState.encryptDetachedFinal

Finalizes encryption in detached mode, producing the final ciphertext and MAC.

struct Aegis128LState
@nogc @trusted
int
encryptDetachedFinal
(
ubyte[] ciphertext
,
size_t* written
,
ubyte[] mac
,
size_t maclen
)

Parameters

ciphertext ubyte[]

Buffer for remaining ciphertext.

written size_t*

Pointer to store the number of bytes written.

mac ubyte[]

Buffer for the MAC (must be aegis128l_ABYTES_MIN to aegis128l_ABYTES_MAX).

maclen size_t

Length of the MAC.

Return Value

Type: int

0 on success, or a negative error code on failure.

Meta