Function internal_permute_state

Source
pub fn internal_permute_state<FA: FieldAlgebra, const WIDTH: usize, const D: u64>(
    state: &mut [FA; WIDTH],
    diffusion_mat: fn(&mut [FA; WIDTH]),
    internal_constants: &[FA::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.