Skip to main content

Crate chachacha

Crate chachacha 

Source
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§

ChaCha8Djb
ChaCha with 8 rounds, a 64-bit counter, and a 64-bit nonce.
ChaCha8Ietf
ChaCha with 8 rounds, a 32-bit counter, and a 96-bit nonce.
ChaCha12Djb
ChaCha with 12 rounds, a 64-bit counter, and a 64-bit nonce.
ChaCha12Ietf
ChaCha with 12 rounds, a 32-bit counter, and a 96-bit nonce.
ChaCha20Djb
ChaCha with 20 rounds, a 64-bit counter, and a 64-bit nonce.
ChaCha20Ietf
ChaCha with 20 rounds, a 32-bit counter, and a 96-bit nonce.