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 for ChaCha20Core
impl PartialEq for ChaCha20Core
Source§impl SeedableRng for ChaCha20Core
impl SeedableRng for ChaCha20Core
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 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 ChaCha20Core
impl Eq for ChaCha20Core
impl StructuralPartialEq for ChaCha20Core
Auto Trait Implementations§
impl Freeze for ChaCha20Core
impl RefUnwindSafe for ChaCha20Core
impl Send for ChaCha20Core
impl Sync for ChaCha20Core
impl Unpin for ChaCha20Core
impl UnwindSafe for ChaCha20Core
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)