pub fn mds_light_permutation<FA: FieldAlgebra, MdsPerm4: MdsPermutation<FA, 4>, const WIDTH: usize>(
state: &mut [FA; WIDTH],
mdsmat: &MdsPerm4,
)
Expand description
Implement the matrix multiplication used by the external layer.
Given a 4x4 MDS matrix M, we multiply by the 4N x 4N
matrix
[[2M M ... M], [M 2M ... M], ..., [M M ... 2M]]
.