]> Cypherpunks.ru repositories - gogost.git/blobdiff - gost3410/curve.go
No need in public gost3410.PointSize
[gogost.git] / gost3410 / curve.go
index 5d9abffaea039e4c189f9b085919e1c4b1586d25..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) {
@@ -164,3 +164,7 @@ func (our *Curve) Equal(their *Curve) bool {
                ((our.D == nil && their.D == nil) || our.D.Cmp(their.D) == 0) &&
                our.Co.Cmp(their.Co) == 0
 }
+
+func (c *Curve) String() string {
+       return c.Name
+}