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