commit | 2a24088e4f5bbdea82b27ec9a76ccc5ad1461992 | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <jeffv@google.com> | Tue Oct 19 15:57:31 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Oct 19 15:57:31 2021 +0000 |
tree | 83e907ff4ee1eb2be99e78fef911d9f5f7e71b79 | |
parent | 1833ee4dea13c5046c3865b4338c90883c4b9846 [diff] | |
parent | 28e5f9ed3296e88e330c055ed783da64246e3f93 [diff] |
Enable tests am: a3ca9c32f9 am: 995bf07bf0 am: 9657ff75fb am: 23aa407f0a am: 28e5f9ed32 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/rand_chacha/+/1862734 Change-Id: Ic01a100b57e2f2cf8c39deee6ffebd92788913ab
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.