rand_chacha

Type Alias ChaChaCore

Source
pub type ChaChaCore = ChaCha20Core;
Expand description

ChaCha with 20 rounds, low-level interface

Aliased Type§

struct ChaChaCore { /* private fields */ }

Trait Implementations

Source§

impl BlockRngCore for ChaCha20Core

Source§

type Item = u32

Results element type, e.g. u32.
Source§

type Results = Array64<u32>

Results type. This is the ‘block’ an RNG implementing BlockRngCore generates, which will usually be an array like [u32; 16].
Source§

fn generate(&mut self, r: &mut Self::Results)

Generate a new block of results.
Source§

impl Clone for ChaCha20Core

Source§

fn clone(&self) -> ChaCha20Core

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ChaCha20Core

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for ChaCha20Core

Source§

fn eq(&self, other: &ChaCha20Core) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl SeedableRng for ChaCha20Core

Source§

type Seed = [u8; 32]

Seed type, which is restricted to types mutably-dereferenceable as u8 arrays (we recommend [u8; N] for some N). Read more
Source§

fn from_seed(seed: Self::Seed) -> Self

Create a new PRNG using the given seed. Read more
Source§

fn seed_from_u64(state: u64) -> Self

Create a new PRNG using a u64 seed. Read more
Source§

fn from_rng(rng: &mut impl RngCore) -> Self

Create a new PRNG seeded from an infallible Rng. Read more
Source§

fn try_from_rng<R>(rng: &mut R) -> Result<Self, <R as TryRngCore>::Error>
where R: TryRngCore,

Create a new PRNG seeded from a potentially fallible Rng. Read more
Source§

fn from_os_rng() -> Self

Creates a new instance of the RNG seeded via getrandom. Read more
Source§

fn try_from_os_rng() -> Result<Self, Error>

Creates a new instance of the RNG seeded via getrandom without unwrapping potential getrandom errors. Read more
Source§

impl CryptoBlockRng for ChaCha20Core

Source§

impl Eq for ChaCha20Core

Source§

impl StructuralPartialEq for ChaCha20Core