Struct ascon_core::State
source · [−]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
sourceimpl 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
impl Copy for State
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more