ddn.api.crypto.aead
Authenticated Encryption with Associated Data (AEAD) API.
iface AEADCipher
Types 1
interfaceAEADCipher
Interface for Authenticated Encryption with Associated Data (AEAD) ciphers.
AEAD ciphers provide both confidentiality and authenticity.
Methods
size_t tagSize() @property const @safe pure nothrow @nogcReturns: The size of the authentication tag in bytes.ubyte[] seal(const(ubyte)[] plaintext, const(ubyte)[] aad, const(ubyte)[] nonce, ubyte[] output = null)Encrypts and authenticates data.ubyte[] open(const(ubyte)[] ciphertext, const(ubyte)[] aad, const(ubyte)[] nonce, ubyte[] output = null)Decrypts and verifies data.