]> Cypherpunks.ru repositories - pygost.git/blobdiff - pygost/stubs/pygost/wrap.pyi
KExp15/KImp15
[pygost.git] / pygost / stubs / pygost / wrap.pyi
index 23080ab2ee02e4891777c887afb0b3fec0f79f5f..776a6e71340a75a2dd2979b79bb0d1ab8086304e 100644 (file)
@@ -1,3 +1,6 @@
+from typing import Callable
+
+
 def wrap_gost(ukm: bytes, kek: bytes, cek: bytes, sbox: str = ...) -> bytes: ...
 
 
@@ -8,3 +11,21 @@ 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: ...