Expand description
§ChaChaCha: ChaCha with a little extra Cha
Extremely fast (the fastest?) ChaCha implementation. Primarily made for use as a CRNG in the
ya-rand crate, but should be just as usable anywhere else you might want to use ChaCha.
This is as a low-level primitive, and should generally not be used directly. When used as a cipher it should be paired with something like Poly1305, and when used as an RNG it’s output should be batched to amortize the cost of generating new entropy.
Constants§
- BATCH_
BYTES - The amount of bytes generated in parallel.
Type Aliases§
- ChaCha8
Djb - ChaCha with 8 rounds, a 64-bit counter, and a 64-bit nonce.
- ChaCha8
Ietf - ChaCha with 8 rounds, a 32-bit counter, and a 96-bit nonce.
- ChaCha12
Djb - ChaCha with 12 rounds, a 64-bit counter, and a 64-bit nonce.
- ChaCha12
Ietf - ChaCha with 12 rounds, a 32-bit counter, and a 96-bit nonce.
- ChaCha20
Djb - ChaCha with 20 rounds, a 64-bit counter, and a 64-bit nonce.
- ChaCha20
Ietf - ChaCha with 20 rounds, a 32-bit counter, and a 96-bit nonce.