ddn.api.crypto.aead

Authenticated Encryption with Associated Data (AEAD) API.

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.
size_t nonceSize() @property const @safe pure nothrow @nogcReturns: The size of the nonce in bytes.
size_t keySize() @property const;Returns: The size of the key 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.