]> Cypherpunks.ru repositories - pygost.git/blobdiff - pygost/stubs/pygost/gost28147.pyi
Missing typing stubs
[pygost.git] / pygost / stubs / pygost / gost28147.pyi
index c6b0aa2865d57fc0663dc3e55a359f67dbe4d457..d0f17dbc137a3c99308c741f550f7255bc2515ac 100644 (file)
@@ -1,8 +1,12 @@
 from typing import Callable
+from typing import Dict
 from typing import Sequence
 from typing import Tuple
 
 
+SBOXES = ...  # type: Dict[str, Tuple[Tuple[int, ...], ...]]
+BLOCKSIZE = ...  # type: int
+
 Words = Tuple[int, int]
 
 
@@ -41,12 +45,27 @@ def ecb(
 ) -> bytes: ...
 
 
+def ecb_encrypt(
+    key: bytes,
+    data: bytes,
+    sbox: str=...,
+) -> bytes: ...
+
+
+def ecb_decrypt(
+    key: bytes,
+    data: bytes,
+    sbox: str=...,
+) -> bytes: ...
+
+
 def cbc_encrypt(
     key: bytes,
     data: bytes,
     iv: bytes=...,
     pad: bool=...,
     sbox: str=...,
+    mesh: bool=...,
 ) -> bytes: ...
 
 
@@ -55,6 +74,7 @@ def cbc_decrypt(
     data: bytes,
     pad: bool=...,
     sbox: str=...,
+    mesh: bool=...,
 ) -> bytes: ...