pub struct ChaCha8State { /* private fields */ }
Expand description
State of ChaCha8 cipher
Implementations§
Source§impl ChaCha8State
impl ChaCha8State
Sourcepub fn to_repr(self) -> ChaCha8Block
pub fn to_repr(self) -> ChaCha8Block
Convert to internal representation
Sourcepub fn from_repr(data: ChaCha8Block) -> Self
pub fn from_repr(data: ChaCha8Block) -> Self
Create an instance from internal representation
Sourcepub fn compute_block(self, counter: u32) -> ChaCha8Block
pub fn compute_block(self, counter: u32) -> ChaCha8Block
Compute block for specified counter.
Counter is only 32-bit because that is all that is needed for target use case.
Trait Implementations§
Source§impl Clone for ChaCha8State
impl Clone for ChaCha8State
Source§fn clone(&self) -> ChaCha8State
fn clone(&self) -> ChaCha8State
Returns a duplicate 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 ChaCha8State
impl Debug for ChaCha8State
impl Copy for ChaCha8State
Auto Trait Implementations§
impl Freeze for ChaCha8State
impl RefUnwindSafe for ChaCha8State
impl Send for ChaCha8State
impl Sync for ChaCha8State
impl Unpin for ChaCha8State
impl UnwindSafe for ChaCha8State
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