tag | 7b684caa853d306a8aa6a9bb958cbd499e5cfde6 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon May 06 21:48:09 2024 -0700 |
object | bce41b8245b924a30e7df9a083194661c0539f0c |
Android platform 14.0.0 release 7
commit | bce41b8245b924a30e7df9a083194661c0539f0c | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Mar 10 02:21:54 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Mar 10 02:21:54 2023 +0000 |
tree | 0d0d33f47335cd7317ffa4ac221ff6d6a64a725a | |
parent | 7568a8204b457329e1ac56dd505cf66c2b4432cc [diff] | |
parent | 7fb741f77a47fae152cce07931d4a382f1bfd723 [diff] |
Snap for 9719949 from 7fb741f77a47fae152cce07931d4a382f1bfd723 to udc-release Change-Id: I90269774ebb5338d7b3f1bfbc03bd788ac74fedf
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.