tag | 08fbefe27fe18d9451ad87e983485c8cc1ed50aa | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Tue May 07 10:58:40 2024 -0700 |
object | d55236cd775fb1a57a9defcb33f8a8a47445857a |
Android 14.0.0 release 37
commit | d55236cd775fb1a57a9defcb33f8a8a47445857a | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Nov 15 00:13:31 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Nov 15 00:13:31 2023 +0000 |
tree | 0ad487e6a7f942485925d4dca6abc54fec2c7ad7 | |
parent | 2e8aa7cb28fe8352f6c9b55741997cd7035a1341 [diff] | |
parent | 0896959e7e210b022979f28f023e9788dcd47ca7 [diff] |
Snap for 11097608 from 0896959e7e210b022979f28f023e9788dcd47ca7 to 24Q1-release Change-Id: Ie0afd3404867699541ad9f105231970a48469cbd
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.