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)
pub fn permute_12(&mut self)
Perform permutation with 12 rounds.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for State
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