Aegis256x2State.encryptUpdate

Encrypts a message chunk, producing ciphertext.

struct Aegis256x2State
@nogc @trusted
int
encryptUpdate
(
ubyte[] ciphertext
,
size_t* written
,
const(ubyte)[] message
)

Parameters

ciphertext ubyte[]

Buffer to store the ciphertext.

written size_t*

Pointer to store the number of bytes written.

message const(ubyte)[]

The plaintext message to encrypt.

Return Value

Type: int

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

Meta