pub struct PiRho {
shifts_e: Vec<u64>,
dense_e: Vec<u64>,
quotient_e: Vec<u64>,
remainder_e: Vec<u64>,
dense_rot_e: Vec<u64>,
expand_rot_e: Vec<u64>,
state_b: Vec<u64>,
}Expand description
Values involved in PiRho permutation step
Fields§
§shifts_e: Vec<u64>§dense_e: Vec<u64>§quotient_e: Vec<u64>§remainder_e: Vec<u64>§dense_rot_e: Vec<u64>§expand_rot_e: Vec<u64>§state_b: Vec<u64>Implementations§
Source§impl PiRho
impl PiRho
pub fn create(state_e: &[u64]) -> Self
pub fn shifts_e(&self, i: usize, y: usize, x: usize, q: usize) -> u64
pub fn dense_e(&self, y: usize, x: usize, q: usize) -> u64
pub fn quotient_e(&self, y: usize, x: usize, q: usize) -> u64
pub fn remainder_e(&self, y: usize, x: usize, q: usize) -> u64
pub fn dense_rot_e(&self, y: usize, x: usize, q: usize) -> u64
pub fn expand_rot_e(&self, y: usize, x: usize, q: usize) -> u64
pub fn state_b(&self) -> Vec<u64>
Auto Trait Implementations§
impl Freeze for PiRho
impl RefUnwindSafe for PiRho
impl Send for PiRho
impl Sync for PiRho
impl Unpin for PiRho
impl UnwindSafe for PiRho
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