[#ChaCha20Aligned] = ChaCha20Aligned :mrdocs: ChaCha20 cipher that only operates on multiples of 64 bytes. == Synopsis Declared in `<crypto/chacha20.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class ChaCha20Aligned; ---- == Type Aliases [cols="1,4"] |=== | Name| Description | xref:ChaCha20Aligned/Nonce96.adoc[`Nonce96`] | Type for 96‐bit nonces used by the Set function below. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:ChaCha20Aligned/2constructor-09.adoc[`ChaCha20Aligned`] [.small]#[constructor]# | Constructors | xref:ChaCha20Aligned/2destructor.adoc[`~ChaCha20Aligned`] [.small]#[destructor]# | Destructor to clean up private memory. | xref:ChaCha20Aligned/Crypt.adoc[`Crypt`] | en/deciphers the message <input> and write the result into <output> | xref:ChaCha20Aligned/Keystream.adoc[`Keystream`] | outputs the keystream into out, whose length must be a multiple of BLOCKLEN. | xref:ChaCha20Aligned/Seek.adoc[`Seek`] | Set the 96‐bit nonce and 32‐bit block counter. | xref:ChaCha20Aligned/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:ChaCha20Aligned/BLOCKLEN.adoc[`BLOCKLEN`] | Block size (inputs/outputs to Keystream / Crypt should be multiples of this). | xref:ChaCha20Aligned/KEYLEN.adoc[`KEYLEN`] | Expected key length in constructor and SetKey. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#