diff --git a/internal/edwards25519/scalar.go b/internal/edwards25519/scalar.go index de1cb5f..06f8bab 100644 --- a/internal/edwards25519/scalar.go +++ b/internal/edwards25519/scalar.go @@ -25,10 +25,14 @@ var ( scZero Scalar scOne Scalar order big.Int - scMinusOne = []byte{236, 211, 245, 92, 26, 99, 18, 88, 214, 156, 247, 162, 222, 249, 222, 20, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16} - orderBytes = []byte{237, 211, 245, 92, 26, 99, 18, 88, 214, 156, 247, 162, 222, 249, 222, 20, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16} + scMinusOne = []byte{ + 236, 211, 245, 92, 26, 99, 18, 88, 214, 156, 247, 162, 222, 249, 222, 20, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, + } + orderBytes = []byte{ + 237, 211, 245, 92, 26, 99, 18, 88, 214, 156, 247, 162, 222, 249, 222, 20, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, + } ) func init() { diff --git a/internal/ristretto/scalar.go b/internal/ristretto/scalar.go index c5297ce..fea20ff 100644 --- a/internal/ristretto/scalar.go +++ b/internal/ristretto/scalar.go @@ -24,15 +24,19 @@ const canonicalEncodingLength = 32 var ( scZero = &Scalar{*ristretto255.NewScalar()} scOne Scalar - scMinusOne = []byte{236, 211, 245, 92, 26, 99, 18, 88, 214, 156, 247, 162, 222, 249, 222, 20, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16} + scMinusOne = []byte{ + 236, 211, 245, 92, 26, 99, 18, 88, 214, 156, 247, 162, 222, 249, 222, 20, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, + } // orderBytes represents curve25519's subgroup prime-order // = 2^252 + 27742317777372353535851937790883648493 // = 0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed // = 7237005577332262213973186563042994240857116359379907606001950938285454250989 // cofactor h = 8. - orderBytes = []byte{237, 211, 245, 92, 26, 99, 18, 88, 214, 156, 247, 162, 222, 249, 222, 20, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16} + orderBytes = []byte{ + 237, 211, 245, 92, 26, 99, 18, 88, 214, 156, 247, 162, 222, 249, 222, 20, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, + } ) func init() {