tag | 12e7956209f600af4f1969147df1257d8dcf6d66 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Apr 10 19:18:46 2023 -0700 |
object | a8fd11f4750bea3f1a02958b0027eec25db044b3 |
Android Platform 13.0.0 Release 6 (TPM1.230223.001)
commit | a8fd11f4750bea3f1a02958b0027eec25db044b3 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Feb 22 18:32:21 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Feb 22 18:32:21 2023 +0000 |
tree | a0287a9fd3e0e6af4e07390dfe87baa6b32d7ace | |
parent | 138726d2b854abf76bbc55bece5a5eb9aa97d676 [diff] | |
parent | f728749694975aa980a7e30058377441ffc8b31d [diff] |
Snap for 9635940 from f728749694975aa980a7e30058377441ffc8b31d to tm-platform-release Change-Id: I6553e32a138ba7321746139eaf8b902fd45f4b17
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.