Type Alias ChaChaCore

Source
pub type ChaChaCore = ChaCha20Core;
Expand description

ChaCha with 20 rounds, low-level interface

Aliased Type§

struct ChaChaCore { /* private fields */ }

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 48 bytes

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