]> Cypherpunks.ru repositories - gogost.git/commitdiff
Curve.String
authorSergey Matveev <stargrave@stargrave.org>
Thu, 2 Feb 2023 14:34:19 +0000 (17:34 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 2 Feb 2023 14:34:19 +0000 (17:34 +0300)
gost3410/curve.go

index 5d9abffaea039e4c189f9b085919e1c4b1586d25..3c2093aac7293f22e01bfa5cd21e689ac3b14dc4 100644 (file)
@@ -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
+}