]> Cypherpunks.ru repositories - pygost.git/blobdiff - pygost/stubs/pygost/gost3410.pyi
Fix mypy stubs
[pygost.git] / pygost / stubs / pygost / gost3410.pyi
index 85128c3dc37361ad55d78a35cfd80acbec35dc5e..3f93d71bb217035277669e92913e955566dfd1de 100644 (file)
@@ -24,7 +24,7 @@ class GOST3410Curve(object):
 def public_key(curve: GOST3410Curve, prv: int) -> PublicKey: ...
 
 
-def sign(curve: GOST3410Curve, prv: int, digest: bytes, size: int=...) -> bytes: ...
+def sign(curve: GOST3410Curve, prv: int, digest: bytes, mode: int=...) -> bytes: ...
 
 
 def verify(
@@ -32,14 +32,14 @@ def verify(
     pub: PublicKey,
     digest: bytes,
     signature: bytes,
-    size: int=...,
+    mode: int=...,
 ) -> bool: ...
 
 
 def prv_unmarshal(prv: bytes) -> int: ...
 
 
-def pub_marshal(pub: PublicKey, mode: int) -> bytes: ...
+def pub_marshal(pub: PublicKey, mode: int=...) -> bytes: ...
 
 
-def pub_unmarshal(pub: bytes, mode: int) -> PublicKey: ...
+def pub_unmarshal(pub: bytes, mode: int=...) -> PublicKey: ...