fix for V-SCT-VUL-008
Kevin Jue kjue235@gmail.com
Mon, 18 Dec 2023 16:29:57 -0800
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
fri/fri.go
→
fri/fri.go
@@ -335,7 +335,7 @@ // element's new index is the bit reverse of it's original index.
// 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)); i++ { + for i := uint8(0); i <= uint8(len(evals)-1); i++ { newIndex := bits.Reverse8(i) >> arityBits permutedEvals[newIndex] = evals[i] }