fix for V-SCT-VUL-017
Kevin Jue kjue235@gmail.com
Mon, 18 Dec 2023 18:03:48 -0800
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
fri/fri.go
→
fri/fri.go
@@ -336,7 +336,7 @@ // OPTIMIZE - Since the size of the evals array should be constant (e.g. 2^arityBits),
// 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] }