]> Cypherpunks.ru repositories - pygost.git/blobdiff - pygost/stubs/pygost/gost3410.pyi
Human readable curve name
[pygost.git] / pygost / stubs / pygost / gost3410.pyi
index 4be9bbbadbd77ccbd02e7381fa03e9a94e6cd999..8f0dcb8e881d50089eb2029c7bdad2f62510f79f 100644 (file)
@@ -17,6 +17,7 @@ class GOST3410Curve(object):
     cofactor = ...  # type: int
     e = ...  # type: int
     d = ...  # type: int
+    name = ...  # type: str
 
     def __init__(
             self,
@@ -29,6 +30,7 @@ class GOST3410Curve(object):
             cofactor: int = 1,
             e: int = None,
             d: int = None,
+            name: str = None,
     ) -> None: ...
 
     def pos(self, v: int) -> int: ...
@@ -55,6 +57,9 @@ def verify(curve: GOST3410Curve, pub: PublicKey, digest: bytes, signature: bytes
 def prv_unmarshal(prv: bytes) -> int: ...
 
 
+def prv_marshal(curve: GOST3410Curve, prv: int) -> bytes: ...
+
+
 def pub_marshal(pub: PublicKey) -> bytes: ...