AEADCipher.seal

ubyte[] seal(const(ubyte)[] plaintext, const(ubyte)[] aad, const(ubyte)[] nonce, ubyte[] output = null)

Encrypts and authenticates data.

Parameters

plaintextThe data to encrypt.
aadAdditional Authenticated Data (not encrypted, but authenticated).
nonceThe nonce/IV.
outputOptional output buffer. If provided, must be at least plaintext.length + tagSize.

Returns

The ciphertext with the authentication tag appended.