Org.BouncyCastle.Crypto.Modes.ChaCha20Poly1305
Implementation of the ChaCha20-Poly1305 AEAD construction as defined in RFC 7539 / RFC 8439.
The name of the algorithm ("ChaCha20Poly1305").
public ChaCha20Poly1305()
Default constructor using the standard Poly1305 MAC.
Constructor allowing a custom Poly1305 implementation.
Constructor for subclasses to inject an alternative ChaCha20 engine (e.g. XChaCha20)
and the matching nonce size.
Finish the operation, generating or verifying the MAC.
Finish the operation using Spans, generating or verifying the MAC.
Return the Message Authentication Code (MAC) generated or verified by the cipher.
Return the size of the output buffer required for an input of len bytes.
Return the size of the output buffer required for a ProcessBytes call with len bytes.
Initialise the ChaCha20Poly1305 cipher.
Process a single byte of Additional Authenticated Data (AAD).
Process a sequence of bytes of Additional Authenticated Data (AAD).
Process a span of bytes of Additional Authenticated Data (AAD).
Process a single byte of data.
Process a single byte of data using Spans.
Process a sequence of bytes from the input buffer.
Process a span of bytes from the input.
Reset the cipher to its initial state (ready for a new message with the same key but DIFFERENT nonce).