From a37ce7c9168b565aae06e3e66ff34f67f4f0e891 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 5 Apr 2023 14:52:52 +0300 Subject: [PATCH] No need in public gost3410.PointSize --- gost3410/curve.go | 2 +- gost3410/utils.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 } -- 2.44.0