Function external_terminal_permute_state

Source
pub fn external_terminal_permute_state<FA: FieldAlgebra, CT: Copy, MdsPerm4: MdsPermutation<FA, 4>, const WIDTH: usize>(
    state: &mut [FA; WIDTH],
    terminal_external_constants: &[[CT; WIDTH]],
    add_rc_and_sbox: fn(&mut FA, CT),
    mat4: &MdsPerm4,
)
Expand description

A helper method which allow any field to easily implement the terminal External Layer.