From 14e38f9aa57a49508c5a8c34fe4d1bb2e3947e40 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Wed, 18 May 2022 17:42:26 +0800 Subject: [PATCH] code copy issue --- sm2/sm2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sm2/sm2.go b/sm2/sm2.go index c3ad1ed..8d2c2e6 100644 --- a/sm2/sm2.go +++ b/sm2/sm2.go @@ -117,7 +117,7 @@ func (mode pointMarshalMode) mashal(curve elliptic.Curve, x, y *big.Int) []byte func toBytes(curve elliptic.Curve, value *big.Int) []byte { byteLen := (curve.Params().BitSize + 7) >> 3 result := make([]byte, byteLen) - value.FillBytes(result[:]) + value.FillBytes(result) return result }