[#ChaCha20Aligned-SetKey]
= xref:ChaCha20Aligned.adoc[ChaCha20Aligned]::SetKey
:relfileprefix: ../
:mrdocs:

Set 32&hyphen;byte key, and seek to nonce 0 and block position 0&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
SetKey(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]#
