From: Sergey Matveev Date: Wed, 5 Apr 2023 11:52:52 +0000 (+0300) Subject: No need in public gost3410.PointSize X-Git-Tag: v5.10.0~4 X-Git-Url: http://www.git.cypherpunks.ru/?p=gogost.git;a=commitdiff_plain;h=a37ce7c9168b565aae06e3e66ff34f67f4f0e891 No need in public gost3410.PointSize --- diff --git a/gost3410/curve.go b/gost3410/curve.go index 3c2093a..42b7e46 100644 --- a/gost3410/curve.go +++ b/gost3410/curve.go @@ -89,7 +89,7 @@ func NewCurve(p, q, a, b, x, y, e, d, co *big.Int) (*Curve, error) { } func (c *Curve) PointSize() int { - return PointSize(c.P) + return pointSize(c.P) } func (c *Curve) pos(v *big.Int) { diff --git a/gost3410/utils.go b/gost3410/utils.go index 1a18828..ec737df 100644 --- a/gost3410/utils.go +++ b/gost3410/utils.go @@ -33,7 +33,7 @@ func pad(d []byte, size int) []byte { return append(make([]byte, size-len(d)), d...) } -func PointSize(p *big.Int) int { +func pointSize(p *big.Int) int { if p.BitLen() > 256 { return 64 }