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