]> Cypherpunks.ru repositories - pygost.git/blobdiff - pygost/stubs/pygost/gost341194.pyi
PEP8 typing stubs
[pygost.git] / pygost / stubs / pygost / gost341194.pyi
index d16cb517113f9aeb4ed1e8819d898df8fb881446..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: ...
@@ -11,3 +17,9 @@ class GOST341194:
     def digest(self) -> bytes: ...
 
     def hexdigest(self) -> str: ...
+
+
+def new(data: bytes = ..., sbox: str = ...) -> GOST341194: ...
+
+
+def pbkdf2(password: bytes, salt: bytes, iterations: int, dklen: int) -> bytes: ...