commit | aef1deeb8dc035bc0ede966e89b619dae0060039 | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Tue Aug 24 19:56:33 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Aug 24 19:56:33 2021 +0000 |
tree | ca7b0cb656518ce7ff53d8f33f1cad9f1a2d446b | |
parent | 466508ed91a6694086d508b4905e7a3d172e24c8 [diff] | |
parent | 27d7ad288e9bde3638b992338886625e7b6403a3 [diff] |
Update TEST_MAPPING am: 94ae11383b am: 6364415f39 am: 3b76f98b15 am: 27d7ad288e Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/rand_chacha/+/1806099 Change-Id: Ib0be109318d0b14207290554e72513dc11cac60c
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.