internal/scalar: fix FromUniformBytes

This commit is contained in:
Filippo Valsorda 2019-05-15 14:38:10 -04:00
parent 760f82e79e
commit 21e4845510
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ func (s *Scalar) Mul(x, y *Scalar) *Scalar {
// FromUniformBytes sets s to an uniformly distributed value given 64 uniformly
// distributed random bytes.
func (s *Scalar) FromUniformBytes(x []byte) *Scalar {
if len(x) != 32 {
if len(x) != 64 {
panic("scalar: invalid uniform input length")
}
var wideBytes [64]byte