[#FSChaCha20]
= FSChaCha20
:mrdocs:

Forward&hyphen;secure ChaCha20

== Synopsis

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

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

== Description

This implements a stream cipher that automatically transitions to a new stream with a new key and new nonce after a predefined number of encryptions or decryptions&period;

See BIP324 for details&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:FSChaCha20/2constructor-0a.adoc[`FSChaCha20`]         [.small]#[constructor]#
| Constructors
| xref:FSChaCha20/operator_assign-08.adoc[`operator&equals;`] 
| Assignment operators
| xref:FSChaCha20/Crypt.adoc[`Crypt`] 
| Encrypt or decrypt a chunk&period;
|===


== Static Data Members

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



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