pub struct ChaCha8Core { /* private fields */ }
Expand description
ChaCha with 8 rounds
Trait Implementations§
Source§impl BlockRngCore for ChaCha8Core
impl BlockRngCore for ChaCha8Core
Source§type Results = Array64<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 <ChaCha8Core as BlockRngCore>::Results)
fn generate(&mut self, r: &mut <ChaCha8Core as BlockRngCore>::Results)
Generate a new block of results.
Source§impl Clone for ChaCha8Core
impl Clone for ChaCha8Core
Source§fn clone(&self) -> ChaCha8Core
fn clone(&self) -> ChaCha8Core
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ChaCha8Core
impl Debug for ChaCha8Core
Source§impl From<ChaCha8Core> for ChaCha8Rng
impl From<ChaCha8Core> for ChaCha8Rng
Source§fn from(core: ChaCha8Core) -> ChaCha8Rng
fn from(core: ChaCha8Core) -> ChaCha8Rng
Converts to this type from the input type.
Source§impl PartialEq for ChaCha8Core
impl PartialEq for ChaCha8Core
Source§impl SeedableRng for ChaCha8Core
impl SeedableRng for ChaCha8Core
Source§type Seed = [u8; 32]
type Seed = [u8; 32]
Seed type, which is restricted to types mutably-dereferenceable as
u8
arrays (we recommend [u8; N]
for some N
). Read moreSource§fn from_seed(seed: <ChaCha8Core as SeedableRng>::Seed) -> ChaCha8Core
fn from_seed(seed: <ChaCha8Core as SeedableRng>::Seed) -> ChaCha8Core
Create a new PRNG using the given seed. Read more
Source§fn seed_from_u64(state: u64) -> Self
fn seed_from_u64(state: u64) -> Self
Create a new PRNG using a
u64
seed. Read moreSource§fn from_rng(rng: &mut impl RngCore) -> Self
fn from_rng(rng: &mut impl RngCore) -> Self
Create a new PRNG seeded from an infallible
Rng
. Read moreSource§fn try_from_rng<R>(rng: &mut R) -> Result<Self, <R as TryRngCore>::Error>where
R: TryRngCore,
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 moreSource§fn from_os_rng() -> Self
fn from_os_rng() -> Self
impl CryptoBlockRng for ChaCha8Core
impl Eq for ChaCha8Core
impl StructuralPartialEq for ChaCha8Core
Auto Trait Implementations§
impl Freeze for ChaCha8Core
impl RefUnwindSafe for ChaCha8Core
impl Send for ChaCha8Core
impl Sync for ChaCha8Core
impl Unpin for ChaCha8Core
impl UnwindSafe for ChaCha8Core
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more