]> Cypherpunks.ru repositories - pygost.git/blobdiff - pygost/stubs/pygost/gost3410.pyi
gost3410 private key % Q
[pygost.git] / pygost / stubs / pygost / gost3410.pyi
index 5278c81f30fc2308888bdfe26ddd3cefdc1c488e..345a3e69f1d401c375796f60e4f4e34ae12f38c0 100644 (file)
@@ -33,15 +33,20 @@ class GOST3410Curve(object):
 
     def pos(self, v: int) -> int: ...
 
-    def exp(self, degree: int, x: int=..., y: int=...) -> int: ...
+    def exp(self, degree: int, x: int = ..., y: int = ...) -> int: ...
 
     def st(self) -> Tuple[int, int]: ...
 
+    @property
+    def point_size(self) -> int: ...
+
+    def contains(self, point: Tuple[int, int]) -> bool: ...
+
 
 def public_key(curve: GOST3410Curve, prv: int) -> PublicKey: ...
 
 
-def sign(curve: GOST3410Curve, prv: int, digest: bytes, rand: bytes=None) -> bytes: ...
+def sign(curve: GOST3410Curve, prv: int, digest: bytes, rand: bytes = None) -> bytes: ...
 
 
 def verify(curve: GOST3410Curve, pub: PublicKey, digest: bytes, signature: bytes) -> bool: ...
@@ -50,6 +55,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: ...