ddn.crypto.cipher.chacha_poly
ChaCha20-Poly1305 AEAD Construction (RFC 8439).
class ChaCha20Poly1305
Types 1
classChaCha20Poly1305 : AEADCipher
ChaCha20-Poly1305 AEAD Implementation.
Combines ChaCha20 stream cipher with Poly1305 MAC. Conforms to RFC 8439.
Methods
void initialize(SecretKey key)ubyte[] seal(const(ubyte)[] plaintext, const(ubyte)[] aad, const(ubyte)[] nonce, ubyte[] output = null)ubyte[] open(const(ubyte)[] ciphertext, const(ubyte)[] aad, const(ubyte)[] nonce, ubyte[] output = null)