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

Constructors

== Synopses

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

Deleted copy constructor (the secret key must not be duplicated)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:FSChaCha20/2constructor-02.adoc[FSChaCha20](xref:FSChaCha20.adoc[FSChaCha20] const& other) = delete;
----

[.small]#xref:FSChaCha20/2constructor-02.adoc[_» more&period;&period;&period;_]#

Deleted move constructor (the secret key must not be duplicated)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:FSChaCha20/2constructor-0b.adoc[FSChaCha20](xref:FSChaCha20.adoc[FSChaCha20]&& other) = delete;
----

[.small]#xref:FSChaCha20/2constructor-0b.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:FSChaCha20/2constructor-07.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| The instance that would be copied&period;
| *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]#
