pub fn mds_light_permutation<R: PrimeCharacteristicRing, MdsPerm4: MdsPermutation<R, 4>, const WIDTH: usize>(
state: &mut [R; 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]].
ยงPanics
This will panic if WIDTH is not supported. Currently, the
supported WIDTH values are 2, 3, 4, 8, 12, 16, 20, 24.`