]> Cypherpunks.ru repositories - gogost.git/commitdiff
No need in public gost3410.PointSize
authorSergey Matveev <stargrave@stargrave.org>
Wed, 5 Apr 2023 11:52:52 +0000 (14:52 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 5 Apr 2023 11:58:34 +0000 (14:58 +0300)
gost3410/curve.go
gost3410/utils.go

index 3c2093aac7293f22e01bfa5cd21e689ac3b14dc4..42b7e465476f28cf6a9a8401370fd451e4628748 100644 (file)
@@ -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) {
index 1a188288c14d547a603624282a3f5f6921ca8bcb..ec737df750f86cbb08b8fb01d0678e6c77a635bf 100644 (file)
@@ -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
        }