Type Alias rand_chacha::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

§

type Item = u32

Results element type, e.g. u32.
§

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<ChaCha20Core> for ChaCha20Core

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl SeedableRng for ChaCha20Core

§

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<R>(rng: R) -> Result<Self, Error>where R: RngCore,

Create a new PRNG seeded from another Rng. Read more
source§

fn from_entropy() -> Self

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

impl CryptoRng for ChaCha20Core

source§

impl Eq for ChaCha20Core

source§

impl StructuralEq for ChaCha20Core

source§

impl StructuralPartialEq for ChaCha20Core