[#FSChaCha20Poly1305]
= FSChaCha20Poly1305
:mrdocs:

Forward&hyphen;secure wrapper around AEADChaCha20Poly1305&period;

== Synopsis

Declared in `&lt;crypto&sol;chacha20poly1305&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class FSChaCha20Poly1305;
----

== Description

This implements an AEAD which automatically increments the nonce on every encryption or decryption, and cycles keys after a predetermined number of encryptions or decryptions&period;

See BIP324 for details&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:FSChaCha20Poly1305/2constructor-011.adoc[`FSChaCha20Poly1305`]         [.small]#[constructor]#
| Constructors
| xref:FSChaCha20Poly1305/operator_assign-0bf.adoc[`operator&equals;`] 
| Assignment operators
| xref:FSChaCha20Poly1305/Decrypt-0e.adoc[`Decrypt`] 
| `Decrypt` overloads
| xref:FSChaCha20Poly1305/Encrypt-04.adoc[`Encrypt`] 
| `Encrypt` overloads
|===


== Static Data Members

[cols="1,4"]
|===
| Name| Description
| xref:FSChaCha20Poly1305/EXPANSION.adoc[`EXPANSION`] 
| Expansion when encrypting&period;
| xref:FSChaCha20Poly1305/KEYLEN.adoc[`KEYLEN`] 
| Length of keys expected by the constructor&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
