internal/scalar: fix constant-time signed radix 16 implementation

This commit is contained in:
Henry de Valence 2019-05-08 16:18:21 -07:00 committed by Filippo Valsorda
parent 4ea68891fd
commit 9bf3c72dab
1 changed files with 2 additions and 2 deletions

View File

@ -964,8 +964,8 @@ func (s *Scalar) SignedRadix16() [64]int8 {
// Compute unsigned radix-16 digits:
for i := 0; i < 32; i++ {
digits[2*i] = i8(s[i]) & 15
digits[2*i+1] = i8(s[i]>>4) & 15
digits[2*i] = int8(s[i]) & 15
digits[2*i+1] = int8(s[i]>>4) & 15
}
// Recenter coefficients: