[#ChaCha20-2constructor-00]
= xref:ChaCha20.adoc[ChaCha20]::ChaCha20
:relfileprefix: ../
:mrdocs:

Constructors

== Synopses

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

For safety, disallow initialization without key&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:ChaCha20/2constructor-09.adoc[ChaCha20]() noexcept = delete;
----

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

Initialize a cipher with specified 32&hyphen;byte key&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:ChaCha20/2constructor-05.adoc[ChaCha20](std::span&lt;std::byte const&gt; key) noexcept;
----

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| The 32&hyphen;byte key&period;
|===


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