ChaCha20 cipher that only operates on multiples of 64 bytes.
Declared in <crypto/chacha20.h>
class ChaCha20Aligned;
| Name | Description |
|---|---|
Nonce96 | Type for 96-bit nonces used by the Set function below. |
| Name | Description |
|---|---|
ChaCha20Aligned [constructor] | Constructors |
~ChaCha20Aligned [destructor] | Destructor to clean up private memory. |
Crypt | en/deciphers the message <input> and write the result into <output> |
Keystream | outputs the keystream into out, whose length must be a multiple of BLOCKLEN. |
Seek | Set the 96-bit nonce and 32-bit block counter. |
SetKey | Set 32-byte key, and seek to nonce 0 and block position 0. |
| Name | Description |
|---|---|
BLOCKLEN | Block size (inputs/outputs to Keystream / Crypt should be multiples of this). |
KEYLEN | Expected key length in constructor and SetKey. |