pub fn apply_permutation(state: &mut [BaseElement; STATE_WIDTH]) {
    // implementation is based on algorithm 3 from <https://eprint.iacr.org/2020/1143.pdf>
    // apply round function 7 times; this provides 128-bit security with 40% security margin
    for i in 0..NUM_ROUNDS {
        apply_round(state, i);
    }
}
/// Applies Rescue-XLIX permutation to the provided state.
Applies Rescue-XLIX permutation to the provided state.
Applies Rescue - XLIX permutation to the provided state .
pub fn apply_permutation(state: &mut [BaseElement; STATE_WIDTH]) {
    // implementation is based on algorithm 3 from <https://eprint.iacr.org/2020/1143.pdf>
    // apply round function 7 times; this provides 128-bit security with 40% security margin
    for i in 0..NUM_ROUNDS {
        apply_round(state, i);
    }
}
pub fn apply_permutation ( state : & mut [ BaseElement ; STATE_WIDTH ] ) { // implementation is based on algorithm 3 from <https://eprint.iacr.org/2020/1143.pdf> // apply round function 7 times; this provides 128-bit security with 40% security margin for i in 0 .. NUM_ROUNDS { apply_round ( state , i ) ; } }
Applies Rescue-XLIX permutation to the provided state.
Applies Rescue - XLIX permutation to the provided state .
state
&mut [BaseElement; STATE_WIDTH]
state
&mut [BaseElement; STATE_WIDTH]