]> Cypherpunks.ru repositories - pygost.git/commitdiff
Fix mypy stubs
authorSergey Matveev <stargrave@stargrave.org>
Sat, 19 Nov 2016 16:08:27 +0000 (19:08 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 19 Nov 2016 16:08:27 +0000 (19:08 +0300)
pygost/stubs/pygost/gost3410.pyi
pygost/stubs/pygost/gost3410_vko.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: ...
index fc1f3b03f06fb49d1dc1a4e5c547e116da80dd18..b177ac6edde5a2f532cca8a95b32628f803213da 100644 (file)
@@ -5,7 +5,7 @@ from pygost.gost3410 import PublicKey
 def vko_34102001(curve: GOST3410Curve, prv: int, pubkey: PublicKey, ukm: bytes) -> bytes: ...
 
 
-def vko_34102012256(curve: GOST3410Curve, prv: int, pubkey: PublicKey, ukm=...: bytes) -> bytes: ...
+def vko_34102012256(curve: GOST3410Curve, prv: int, pubkey: PublicKey, ukm: bytes=...) -> bytes: ...
 
 
-def vko_34102012512(curve: GOST3410Curve, prv: int, pubkey: PublicKey, ukm=...: bytes) -> bytes: ...
+def vko_34102012512(curve: GOST3410Curve, prv: int, pubkey: PublicKey, ukm: bytes=...) -> bytes: ...