pub struct XoodooState { /* private fields */ }Expand description
State for the Xoodoo permutation. 48 bytes, internally represented by 12
u32s in little endian encoding.
Trait Implementations§
Source§impl BitXorAssign<&XoodooState> for XoodooState
impl BitXorAssign<&XoodooState> for XoodooState
Source§fn bitxor_assign(&mut self, rhs: &Self)
fn bitxor_assign(&mut self, rhs: &Self)
Performs the
^= operation. Read moreSource§impl Clone for XoodooState
impl Clone for XoodooState
Source§fn clone(&self) -> XoodooState
fn clone(&self) -> XoodooState
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 Default for XoodooState
impl Default for XoodooState
Source§impl PermutationState for XoodooState
impl PermutationState for XoodooState
Source§type CopyWriter<'a> = LeU32SliceWriter<'a>
type CopyWriter<'a> = LeU32SliceWriter<'a>
Writer to write into the state.Source§type Representation = [u32; 12]
type Representation = [u32; 12]
Representation of the state the permutation works on. Read more
Source§type StateReader<'a> = LeU32SliceReader<'a>
type StateReader<'a> = LeU32SliceReader<'a>
Reader to read bytes from the state.Source§type XorWriter<'a> = LeU32SliceXorWriter<'a>
type XorWriter<'a> = LeU32SliceXorWriter<'a>
Writer to xor into the state.Source§fn from_state(state: Self::Representation) -> Self
fn from_state(state: Self::Representation) -> Self
Initialise the permutation from the given state.
Source§fn get_state(&self) -> &Self::Representation
fn get_state(&self) -> &Self::Representation
Read from the state buffer.
Source§fn get_state_mut(&mut self) -> &mut Self::Representation
fn get_state_mut(&mut self) -> &mut Self::Representation
Write into the state buffer.
Source§fn reader<'a>(&'a self) -> Self::StateReader<'a>
fn reader<'a>(&'a self) -> Self::StateReader<'a>
Create a
Reader to read bytes from the state.Source§fn copy_writer<'a>(&'a mut self) -> Self::CopyWriter<'a>
fn copy_writer<'a>(&'a mut self) -> Self::CopyWriter<'a>
Create a
Writer to write into the state.Source§fn xor_writer<'a>(&'a mut self) -> Self::XorWriter<'a>
fn xor_writer<'a>(&'a mut self) -> Self::XorWriter<'a>
Create a
Writer to xor into the state.Auto Trait Implementations§
impl Freeze for XoodooState
impl RefUnwindSafe for XoodooState
impl Send for XoodooState
impl Sync for XoodooState
impl Unpin for XoodooState
impl UnwindSafe for XoodooState
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