]> Cypherpunks.ru repositories - pygost.git/blobdiff - pygost/stubs/pygost/gost3410.pyi
Shorter private key variable name
[pygost.git] / pygost / stubs / pygost / gost3410.pyi
index aacb9ab04df00b34a833503a1cb58e7fd36fd11f..85128c3dc37361ad55d78a35cfd80acbec35dc5e 100644 (file)
@@ -21,28 +21,22 @@ class GOST3410Curve(object):
     def exp(self, degree: int, x: int=..., y: int=...) -> int: ...
 
 
-def public_key(curve: GOST3410Curve, private_key: int) -> PublicKey: ...
+def public_key(curve: GOST3410Curve, prv: int) -> PublicKey: ...
 
 
-def sign(
-    curve: GOST3410Curve,
-    private_key: int,
-    digest: bytes,
-    size: int=...,
-) -> bytes: ...
+def sign(curve: GOST3410Curve, prv: int, digest: bytes, size: int=...) -> bytes: ...
 
 
 def verify(
     curve: GOST3410Curve,
-    pubkeyX: int,
-    pubkeyY: int,
+    pub: PublicKey,
     digest: bytes,
     signature: bytes,
     size: int=...,
 ) -> bool: ...
 
 
-def prv_unmarshal(private_key: bytes) -> int: ...
+def prv_unmarshal(prv: bytes) -> int: ...
 
 
 def pub_marshal(pub: PublicKey, mode: int) -> bytes: ...