]> Cypherpunks.ru repositories - gogost.git/blobdiff - src/cypherpunks.ru/gogost/gost3410/curve.go
Correct curve names
[gogost.git] / src / cypherpunks.ru / gogost / gost3410 / curve.go
index 6b371a2bdc21fc28db22481fa3978cab9eb97d21..973b04ac582be6fec95fd20ebcf32d130943a92c 100644 (file)
@@ -29,6 +29,8 @@ var (
 )
 
 type Curve struct {
+       Name string // Just simple identifier
+
        P *big.Int // Characteristic of the underlying prime field
        Q *big.Int // Elliptic curve subgroup order
 
@@ -56,15 +58,16 @@ type Curve struct {
 
 func NewCurve(p, q, a, b, x, y, e, d *big.Int) (*Curve, error) {
        c := Curve{
-               P:  p,
-               Q:  q,
-               A:  a,
-               B:  b,
-               X:  x,
-               Y:  y,
-               t:  big.NewInt(0),
-               tx: big.NewInt(0),
-               ty: big.NewInt(0),
+               Name: "unknown",
+               P:    p,
+               Q:    q,
+               A:    a,
+               B:    b,
+               X:    x,
+               Y:    y,
+               t:    big.NewInt(0),
+               tx:   big.NewInt(0),
+               ty:   big.NewInt(0),
        }
        r1 := big.NewInt(0)
        r2 := big.NewInt(0)