Browse Source

fix for V-SCT-VUL-017

main
Kevin Jue 1 year ago
parent
commit
2fab6a94b0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      fri/fri.go

+ 1
- 1
fri/fri.go

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

Loading…
Cancel
Save