[#ChaCha20-Crypt]
= xref:ChaCha20.adoc[ChaCha20]::Crypt
:relfileprefix: ../
:mrdocs:

en&sol;deciphers the message &lt;in&lowbar;bytes&gt; and write the result into &lt;out&lowbar;bytes&gt;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
Crypt(
    std::span&lt;std::byte const&gt; in&lowbar;bytes,
    std::span&lt;std::byte&gt; out&lowbar;bytes) noexcept;
----

== Description

The size of in&lowbar;bytes and out&lowbar;bytes must be equal&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *in&lowbar;bytes*
| The message to encrypt or decrypt&period;
| *out&lowbar;bytes*
| Output buffer receiving the result&semi; must be the same size as `in&lowbar;bytes&period;`
|===


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