]> Cypherpunks.ru repositories - gogost.git/blobdiff - gost3410/curve.go
Curve.String
[gogost.git] / gost3410 / curve.go
index a5f8d5125fe48da5d0f5573527e3a2a359da42f2..3c2093aac7293f22e01bfa5cd21e689ac3b14dc4 100644 (file)
@@ -1,5 +1,5 @@
 // GoGOST -- Pure Go GOST cryptographic functions library
-// Copyright (C) 2015-2021 Sergey Matveev <stargrave@stargrave.org>
+// Copyright (C) 2015-2023 Sergey Matveev <stargrave@stargrave.org>
 //
 // This program is free software: you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
@@ -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
+}