pub(crate) struct Core {
state: ChaCha,
}
Expand description
ChaCha with 12 rounds
Fields§
§state: ChaCha
Trait Implementations§
source§impl BlockRngCore for ChaCha12Core
impl BlockRngCore for ChaCha12Core
§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 <ChaCha12Core as BlockRngCore>::Results)
fn generate(&mut self, r: &mut <ChaCha12Core as BlockRngCore>::Results)
Generate a new block of results.
source§impl Clone for ChaCha12Core
impl Clone for ChaCha12Core
source§fn clone(&self) -> ChaCha12Core
fn clone(&self) -> ChaCha12Core
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 ChaCha12Core
impl Debug for ChaCha12Core
source§impl PartialEq for ChaCha12Core
impl PartialEq for ChaCha12Core
source§fn eq(&self, other: &ChaCha12Core) -> bool
fn eq(&self, other: &ChaCha12Core) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SeedableRng for ChaCha12Core
impl SeedableRng for ChaCha12Core
§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: <ChaCha12Core as SeedableRng>::Seed) -> ChaCha12Core
fn from_seed(seed: <ChaCha12Core as SeedableRng>::Seed) -> ChaCha12Core
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<R>(rng: R) -> Result<Self, Error>where
R: RngCore,
fn from_rng<R>(rng: R) -> Result<Self, Error>where
R: RngCore,
Create a new PRNG seeded from another
Rng
. Read moresource§fn from_entropy() -> Self
fn from_entropy() -> Self
impl CryptoRng for ChaCha12Core
impl Eq for ChaCha12Core
impl StructuralPartialEq for ChaCha12Core
Auto Trait Implementations§
impl Freeze for ChaCha12Core
impl RefUnwindSafe for ChaCha12Core
impl Send for ChaCha12Core
impl Sync for ChaCha12Core
impl Unpin for ChaCha12Core
impl UnwindSafe for ChaCha12Core
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