commit | 0c6a4db37fc41ca323a2ed0beaab19a6680744c4 | [log] [tgz] |
---|---|---|
author | Bob Badour <bbadour@google.com> | Tue Feb 16 21:06:36 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Feb 16 21:06:36 2021 +0000 |
tree | 40c7ef2eea2c0a82b12b1645c8ade94c411f5d77 | |
parent | d39b57c94f9fa162fb3544bb7cc72cbd431131a5 [diff] | |
parent | 5865fd54a565ee7f648f04f9bdc77d0ca43984c1 [diff] |
[LSC] Add LOCAL_LICENSE_KINDS to external/rust/crates/rand_chacha am: 5865fd54a5 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/rand_chacha/+/1588755 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ic1613499adb37f3497b3b9f3c08ac8bf6f9f0fd1
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.