XoodooState

Struct XoodooState 

Source
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

Source§

fn bitxor_assign(&mut self, rhs: &Self)

Performs the ^= operation. Read more
Source§

impl Clone for XoodooState

Source§

fn clone(&self) -> XoodooState

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for XoodooState

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PermutationState for XoodooState

Source§

const SIZE: usize = 48usize

Number of bytes of the state.
Source§

type CopyWriter<'a> = LeU32SliceWriter<'a>

Writer to write into the state.
Source§

type Representation = [u32; 12]

Representation of the state the permutation works on. Read more
Source§

type StateReader<'a> = LeU32SliceReader<'a>

Reader to read bytes from the state.
Source§

type XorWriter<'a> = LeU32SliceXorWriter<'a>

Writer to xor into the state.
Source§

fn from_state(state: Self::Representation) -> Self

Initialise the permutation from the given state.
Source§

fn get_state(&self) -> &Self::Representation

Read from the state buffer.
Source§

fn get_state_mut(&mut self) -> &mut Self::Representation

Write into the state buffer.
Source§

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>

Create a Writer to write into the state.
Source§

fn xor_writer<'a>(&'a mut self) -> Self::XorWriter<'a>

Create a Writer to xor into the state.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.