Aegis128x2State.decryptDetachedUpdate

Decrypts a ciphertext chunk, producing plaintext.

struct Aegis128x2State
@nogc @trusted
int
decryptDetachedUpdate
(
ubyte[] plaintext
,
size_t* written
,
const(ubyte)[] ciphertext
)

Parameters

plaintext ubyte[]

Buffer to store the plaintext.

written size_t*

Pointer to store the number of bytes written.

ciphertext const(ubyte)[]

The ciphertext to decrypt.

Return Value

Type: int

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

Meta