From 369d11587339ce74f8ebc76f2607fe55545eaf7d Mon Sep 17 00:00:00 2001 From: garhve Date: Tue, 20 Dec 2022 11:04:25 +0800 Subject: Build small project following the book --- .../guessing_game/target/doc/rand/trait.CryptoRng.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/trait.CryptoRng.html (limited to 'rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/trait.CryptoRng.html') diff --git a/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/trait.CryptoRng.html b/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/trait.CryptoRng.html new file mode 100644 index 0000000..6a8ac45 --- /dev/null +++ b/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/trait.CryptoRng.html @@ -0,0 +1,18 @@ +CryptoRng in rand - Rust
pub trait CryptoRng { }
Expand description

A marker trait used to indicate that an RngCore or BlockRngCore +implementation is supposed to be cryptographically secure.

+

Cryptographically secure generators, also known as CSPRNGs, should +satisfy an additional properties over other generators: given the first +k bits of an algorithm’s output +sequence, it should not be possible using polynomial-time algorithms to +predict the next bit with probability significantly greater than 50%.

+

Some generators may satisfy an additional property, however this is not +required by this trait: if the CSPRNG’s state is revealed, it should not be +computationally-feasible to reconstruct output prior to this. Some other +generators allow backwards-computation and are considered reversible.

+

Note that this trait is provided for guidance only and cannot guarantee +suitability for cryptographic applications. In general it should only be +implemented for well-reviewed code implementing well-regarded algorithms.

+

Note also that use of a CryptoRng does not protect against other +weaknesses such as seeding from a weak entropy source or leaking state.

+

Implementations on Foreign Types

Implementors

\ No newline at end of file -- cgit v1.2.3-70-g09d2