Skip to content

Commit f247bfe

Browse files
author
Vesselin Velichkov
committed
anemoi: transposed matrix M4 fixing a bug in the paper
1 parent 377ea06 commit f247bfe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libsnark/gadgetlib1/gadgets/hashes/anemoi/anemoi_components.tcc

+4-4
Original file line numberDiff line numberDiff line change
@@ -496,10 +496,10 @@ anemoi_permutation_mds(const FieldT g)
496496
}
497497
if (NumStateColumns_L == 4) {
498498
M = {
499-
{1, g2, g2, 1 + g},
500-
{1 + g, g + g2, g2, 1 + 2 * g},
501-
{g, 1 + g, 1, g},
502-
{g, 1 + 2 * g, 1 + g, 1 + g}};
499+
{1, 1 + g, g, g},
500+
{g2, g + g2, 1 + g, 1 + 2 * g},
501+
{g2, g2, 1, 1 + g},
502+
{1 + g, 1 + 2 * g, g, 1 + g}};
503503
return M;
504504
}
505505
// If we are here, then the number of columns NumStateColumns_L has invalid

0 commit comments

Comments
 (0)