commit | c295253233e1e1387aad24a07574f705894833be | [log] [tgz] |
---|---|---|
author | Matthew Maurer <mmaurer@google.com> | Tue May 31 19:06:27 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue May 31 19:06:27 2022 +0000 |
tree | 682d7c541984f74726288995e3f893b9e7b4a5d1 | |
parent | 3eaac1d03750a3fede31fa0cbbf6d41214638bc6 [diff] | |
parent | ba6c0ec0e8cc63d9860a40eba87dc2895403e0ec [diff] |
Update TEST_MAPPING am: c219b93991 am: 1fc32bfbbe am: bb92b1bdbf am: c9deb66b5b am: ba6c0ec0e8 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/rand_chacha/+/2108152 Change-Id: Ifa99d3f6966411321135179ff612d3fdcfe24a8a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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
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.
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.