[#FSChaCha20-2constructor-07]
= xref:FSChaCha20.adoc[FSChaCha20]::FSChaCha20
:relfileprefix: ../
:mrdocs:

Construct an FSChaCha20 cipher that rekeys every rekey&lowbar;interval Crypt() calls&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
FSChaCha20(
    std::span&lt;std::byte const&gt; key,
    uint32&lowbar;t rekey&lowbar;interval) noexcept;
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| The 32&hyphen;byte key&period;
| *rekey&lowbar;interval*
| The number of Crypt() calls between automatic rekeys&period;
|===


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