Unrestricted ChaCha20 cipher.
Declared in <crypto/chacha20.h>
class ChaCha20;
| Name | Description |
|---|---|
Nonce96 | 96-bit nonce type. |
| Name | Description |
|---|---|
ChaCha20 [constructor] | Constructors |
~ChaCha20 [destructor] | Destructor to clean up private memory. |
Crypt | en/deciphers the message <in_bytes> and write the result into <out_bytes> |
Keystream | outputs the keystream to out. |
Seek | Set the 96-bit nonce and 32-bit block counter. See ChaCha20Aligned::Seek. |
SetKey | Set 32-byte key, and seek to nonce 0 and block position 0. |
| Name | Description |
|---|---|
KEYLEN | Expected key length in constructor and SetKey. |