<PackageReference Include="BouncyCastle.Cryptography" Version="2.7.0" />

Org.BouncyCastle.Crypto.Modes.XChaCha20Poly1305

Implementation of the XChaCha20-Poly1305 AEAD construction as defined in draft-irtf-cfrg-xchacha. Identical to ChaCha20-Poly1305 (RFC 8439) but using XChaCha20 with a 192-bit nonce in place of ChaCha20.

Default constructor using the standard Poly1305 MAC.

public XChaCha20Poly1305(IMac poly1305)

Constructor allowing a custom Poly1305 implementation.