AEADCipher.seal
ubyte[] seal(const(ubyte)[] plaintext, const(ubyte)[] aad, const(ubyte)[] nonce, ubyte[] output = null)Encrypts and authenticates data.
Parameters
plaintext | The data to encrypt. |
aad | Additional Authenticated Data (not encrypted, but authenticated). |
nonce | The nonce/IV. |
output | Optional output buffer. If provided, must be at least plaintext.length + tagSize. |
Returns
The ciphertext with the authentication tag appended.