]> Cypherpunks.ru repositories - pygost.git/blobdiff - pygost/stubs/pygost/wrap.pyi
KExp15/KImp15
[pygost.git] / pygost / stubs / pygost / wrap.pyi
index 7aba9d2c11596e15612837d8c56d0bc7c7d2b165..776a6e71340a75a2dd2979b79bb0d1ab8086304e 100644 (file)
@@ -1,10 +1,31 @@
-def wrap_gost(ukm: bytes, kek: bytes, cek: bytes, sbox: str) -> bytes: ...
+from typing import Callable
 
 
-def unwrap_gost(kek: bytes, data: bytes, sbox: str) -> bytes: ...
+def wrap_gost(ukm: bytes, kek: bytes, cek: bytes, sbox: str = ...) -> bytes: ...
 
 
-def wrap_cryptopro(ukm: bytes, kek: bytes, cek: bytes, sbox: str) -> bytes: ...
+def unwrap_gost(kek: bytes, data: bytes, sbox: str = ...) -> bytes: ...
 
 
-def unwrap_cryptopro(kek: bytes, data: bytes, sbox: str) -> bytes: ...
+def wrap_cryptopro(ukm: bytes, kek: bytes, cek: bytes, sbox: str = ...) -> bytes: ...
+
+
+def unwrap_cryptopro(kek: bytes, data: bytes, sbox: str = ...) -> bytes: ...
+
+
+def kexp15(
+        encrypter_key: Callable[[bytes], bytes],
+        encrypter_mac: Callable[[bytes], bytes],
+        bs: int,
+        key: bytes,
+        iv: bytes,
+) -> bytes: ...
+
+
+def kimp15(
+        encrypter_key: Callable[[bytes], bytes],
+        encrypter_mac: Callable[[bytes], bytes],
+        bs: int,
+        kexp: bytes,
+        iv: bytes,
+) -> bytes: ...