p3_poseidon2

Function external_terminal_permute_state

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

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