Struct ChaChaCore
pub struct ChaChaCore<R: Rounds, V: Variant> { /* private fields */ }
The ChaCha core function.
Implementations
impl<R: Rounds, V: Variant> ChaChaCore<R, V>
fn get_block_pos(&self) -> V::CounterGet the current block position.
fn set_block_pos(&mut self, pos: V::Counter)Set the block position.
Trait Implementations
impl<R: Rounds, V: Variant> Debug for ChaChaCore<R, V>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<R: Rounds, V: Variant> Generator for ChaChaCore<R, V>
type Output = [u32; 64];fn generate(&mut self, buffer: &mut [u32; 64])Generates 4 blocks in parallel with avx2 & neon, but merely fills 4 blocks with sse2 & soft
impl<R: Rounds, V: Variant> SeedableRng for ChaChaCore<R, V>
type Seed = [u8; 32];fn from_seed(seed: Self::Seed) -> Self
Auto Trait Implementations
impl<R, V> Freeze for ChaChaCore<R, V>
where
PhantomData<(R, V)>: Freeze,
impl<R, V> RefUnwindSafe for ChaChaCore<R, V>
where
PhantomData<(R, V)>: RefUnwindSafe,
impl<R, V> Send for ChaChaCore<R, V>
where
PhantomData<(R, V)>: Send,
impl<R, V> Sync for ChaChaCore<R, V>
where
PhantomData<(R, V)>: Sync,
impl<R, V> Unpin for ChaChaCore<R, V>
where
PhantomData<(R, V)>: Unpin,
impl<R, V> UnsafeUnpin for ChaChaCore<R, V>
where
PhantomData<(R, V)>: UnsafeUnpin,
impl<R, V> UnwindSafe for ChaChaCore<R, V>
where
PhantomData<(R, V)>: UnwindSafe,
Blanket Implementations
impl<T> Any for ChaChaCore<R, V>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ChaChaCore<R, V>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ChaChaCore<R, V>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for ChaChaCore<R, V>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for ChaChaCore<R, V>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ChaChaCore<R, V>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for ChaChaCore<R, V>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>