commit | 0146bd57b2ce9b6779b9fc0ecb4a7e3f1581bf52 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Fri Aug 28 00:30:49 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Aug 28 00:30:49 2020 +0000 |
tree | d6b6d1904b69148a5d21a4f63a2d53003c88c6b9 | |
parent | 6ca07085b7400f3a76f7bf7a65d35db5ef5a986f [diff] | |
parent | 561a060c0f295962320c94a07505364fa880512a [diff] |
Fix rand_chacha/METADATA am: 9aa0d59dd7 am: 2504cc3842 am: b797e10693 am: 4bfa2357f7 am: 4efa43e0a7 am: 561a060c0f Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/rand_chacha/+/1414174 Change-Id: Ieee6fb060bc41576e209ed4f4fc4aad72e76f456
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.