mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-27 20:56:18 +08:00
code copy issue
This commit is contained in:
parent
e7bfecaf49
commit
14e38f9aa5
@ -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 {
|
func toBytes(curve elliptic.Curve, value *big.Int) []byte {
|
||||||
byteLen := (curve.Params().BitSize + 7) >> 3
|
byteLen := (curve.Params().BitSize + 7) >> 3
|
||||||
result := make([]byte, byteLen)
|
result := make([]byte, byteLen)
|
||||||
value.FillBytes(result[:])
|
value.FillBytes(result)
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user