internal_permute_state

Function internal_permute_state 

Source
pub fn internal_permute_state<F: Field, A: Algebra<F> + InjectiveMonomial<D>, const WIDTH: usize, const D: u64>(
    state: &mut [A; WIDTH],
    diffusion_mat: fn(&mut [A; WIDTH]),
    internal_constants: &[F],
)
Expand description

A helper method which allows any field to easily implement Internal Layer. This should only be used in places where performance is not critical.