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.