From c0cbac84232218d90b0ebcf90492afd63328ef0f Mon Sep 17 00:00:00 2001 From: Kevin Jue Date: Mon, 18 Dec 2023 16:29:57 -0800 Subject: [PATCH] fix for V-SCT-VUL-008 --- fri/fri.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fri/fri.go b/fri/fri.go index b43eb2c..7b74c3a 100644 --- a/fri/fri.go +++ b/fri/fri.go @@ -335,7 +335,7 @@ func (f *Chip) computeEvaluation( // 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] }