]> Cypherpunks.ru repositories - pygost.git/blobdiff - pygost/stubs/pygost/gost341194.pyi
PEP8 typing stubs
[pygost.git] / pygost / stubs / pygost / gost341194.pyi
index 18e04d4c4759f53a611fa2b6273ff7945f964796..24de2e4d595f324003bbd79b0fa6f30c37d7caca 100644 (file)
@@ -1,5 +1,11 @@
-class GOST341194:
-    def __init__(self, data: bytes=..., sbox: str=...) -> None: ...
+from pygost.iface import PEP247
+
+
+class GOST341194(PEP247):
+    sbox = ...  # type: str
+    block_size = ...  # type: int
+
+    def __init__(self, data: bytes = ..., sbox: str = ...) -> None: ...
 
     @property
     def digest_size(self) -> int: ...
@@ -13,4 +19,7 @@ class GOST341194:
     def hexdigest(self) -> str: ...
 
 
-def new(data: bytes=..., sbox: str=...) -> GOST341194: ...
+def new(data: bytes = ..., sbox: str = ...) -> GOST341194: ...
+
+
+def pbkdf2(password: bytes, salt: bytes, iterations: int, dklen: int) -> bytes: ...