pub struct State { /* private fields */ }
Expand description
The state of Ascon’s permutation.
The permutation operates on a state of 320 bits represented as 5 64 bit words.
Implementations§
source§impl State
impl State
sourcepub fn new(x0: u64, x1: u64, x2: u64, x3: u64, x4: u64) -> Self
pub fn new(x0: u64, x1: u64, x2: u64, x3: u64, x4: u64) -> Self
Instantiate new state from the given values.
sourcepub fn permute_12(&mut self)
Available on non-crate feature no_unroll
only.
pub fn permute_12(&mut self)
no_unroll
only.Perform permutation with 12 rounds.
sourcepub fn permute_8(&mut self)
Available on non-crate feature no_unroll
only.
pub fn permute_8(&mut self)
no_unroll
only.Perform permutation with 8 rounds.
sourcepub fn permute_6(&mut self)
Available on non-crate feature no_unroll
only.
pub fn permute_6(&mut self)
no_unroll
only.Perform permutation with 6 rounds.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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