Bug: 160625211

Clone this repo:
  1. ff0a4cf Upgrade rust/crates/rand_chacha to 0.3.0 by Haibo Huang · 5 weeks ago master
  2. e62d769 Mark ab/6881855 as merged by Xin Li · 9 weeks ago
  3. e85eee3 Skip ab/6749736 in stage. by Xin Li · 4 months ago
  4. a38780f Add rand_chacha/OWNERS am: 4f8fff8eb7 am: 9a98bc1413 am: affa0c121f am: 4e51ca7cec by Chih-Hung Hsieh · 4 months ago
  5. 4e51ca7 Add rand_chacha/OWNERS am: 4f8fff8eb7 am: 9a98bc1413 am: affa0c121f by Chih-Hung Hsieh · 4 months ago

rand_chacha

Test Status Latest version Book API API Minimum rustc version

A cryptographically secure random number generator that uses the ChaCha algorithm.

ChaCha is a stream cipher designed by Daniel J. Bernstein[^1], that we use as an RNG. It is an improved variant of the Salsa20 cipher family, which was selected as one of the “stream ciphers suitable for widespread adoption” by eSTREAM[^2].

The RNGs provided by this crate are implemented via the fast stream ciphers of the c2-chacha crate.

Links:

[^1]: D. J. Bernstein, ChaCha, a variant of Salsa20

[^2]: eSTREAM: the ECRYPT Stream Cipher Project

Crate Features

rand_chacha is no_std compatible when disabling default features; the std feature can be explicitly required to re-enable std support. Using std allows detection of CPU features and thus better optimisation.

License

rand_chacha is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT, and COPYRIGHT for details.