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

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

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
ChaCha20(std::span&lt;std::byte const&gt; key) noexcept;
----

== Parameters

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


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