[#ChaCha20] = ChaCha20 :mrdocs: Unrestricted ChaCha20 cipher. == Synopsis Declared in `<crypto/chacha20.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class ChaCha20; ---- == Type Aliases [cols="1,4"] |=== | Name| Description | xref:ChaCha20/Nonce96.adoc[`Nonce96`] | 96‐bit nonce type. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:ChaCha20/2constructor-00.adoc[`ChaCha20`] [.small]#[constructor]# | Constructors | xref:ChaCha20/2destructor.adoc[`~ChaCha20`] [.small]#[destructor]# | Destructor to clean up private memory. | xref:ChaCha20/Crypt.adoc[`Crypt`] | en/deciphers the message <in_bytes> and write the result into <out_bytes> | xref:ChaCha20/Keystream.adoc[`Keystream`] | outputs the keystream to out. | xref:ChaCha20/Seek.adoc[`Seek`] | Set the 96‐bit nonce and 32‐bit block counter. See ChaCha20Aligned::Seek. | xref:ChaCha20/SetKey.adoc[`SetKey`] | Set 32‐byte key, and seek to nonce 0 and block position 0. |=== == Static Data Members [cols="1,4"] |=== | Name| Description | xref:ChaCha20/KEYLEN.adoc[`KEYLEN`] | Expected key length in constructor and SetKey. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#