Struct rand_chacha::ChaCha20Core
source · pub struct ChaCha20Core { /* private fields */ }
Expand description
ChaCha with 20 rounds
Trait Implementations§
source§impl BlockRngCore for ChaCha20Core
impl BlockRngCore for ChaCha20Core
source§impl Clone for ChaCha20Core
impl Clone for ChaCha20Core
source§fn clone(&self) -> ChaCha20Core
fn clone(&self) -> ChaCha20Core
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 ChaCha20Core
impl Debug for ChaCha20Core
source§impl From<ChaCha20Core> for ChaCha20Rng
impl From<ChaCha20Core> for ChaCha20Rng
source§fn from(core: ChaCha20Core) -> Self
fn from(core: ChaCha20Core) -> Self
Converts to this type from the input type.
source§impl PartialEq<ChaCha20Core> for ChaCha20Core
impl PartialEq<ChaCha20Core> for ChaCha20Core
source§fn eq(&self, other: &ChaCha20Core) -> bool
fn eq(&self, other: &ChaCha20Core) -> bool
source§impl SeedableRng for ChaCha20Core
impl SeedableRng for ChaCha20Core
§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 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 more