fix for V-SCT-VUL-017

This commit is contained in:
Kevin Jue
2023-12-18 18:03:48 -08:00
parent ac49898dd1
commit 2fab6a94b0

View File

@@ -336,7 +336,7 @@ func (f *Chip) computeEvaluation(
// we can just hard code the permutation.
permutedEvals := make([]gl.QuadraticExtensionVariable, len(evals))
for i := uint8(0); i <= uint8(len(evals)-1); i++ {
newIndex := bits.Reverse8(i) >> arityBits
newIndex := bits.Reverse8(i) >> (8 - arityBits)
permutedEvals[newIndex] = evals[i]
}