tag | 52fb5b1c9cfd2b6624ffdb0cf5ba576c475e8864 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Mar 04 20:17:46 2024 -0800 |
object | b0e914234b641db7e02eebebc05f2e01c303e549 |
Android platform 13.0.0 release 17
commit | b0e914234b641db7e02eebebc05f2e01c303e549 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Jun 08 17:25:58 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Jun 08 17:25:58 2023 +0000 |
tree | a0287a9fd3e0e6af4e07390dfe87baa6b32d7ace | |
parent | a8fd11f4750bea3f1a02958b0027eec25db044b3 [diff] | |
parent | 6c8cf3a44395dc75d76dc3888d7ad490394f6b1b [diff] |
Snap for 10276566 from 6c8cf3a44395dc75d76dc3888d7ad490394f6b1b to tm-platform-release Change-Id: I262768b44c8c5856f775474c0163c465361a213b
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.