]> Cypherpunks.ru repositories - pygost.git/blob - pygost/stubs/pygost/wrap.pyi
KExp15/KImp15
[pygost.git] / pygost / stubs / pygost / wrap.pyi
1 from typing import Callable
2
3
4 def wrap_gost(ukm: bytes, kek: bytes, cek: bytes, sbox: str = ...) -> bytes: ...
5
6
7 def unwrap_gost(kek: bytes, data: bytes, sbox: str = ...) -> bytes: ...
8
9
10 def wrap_cryptopro(ukm: bytes, kek: bytes, cek: bytes, sbox: str = ...) -> bytes: ...
11
12
13 def unwrap_cryptopro(kek: bytes, data: bytes, sbox: str = ...) -> bytes: ...
14
15
16 def kexp15(
17         encrypter_key: Callable[[bytes], bytes],
18         encrypter_mac: Callable[[bytes], bytes],
19         bs: int,
20         key: bytes,
21         iv: bytes,
22 ) -> bytes: ...
23
24
25 def kimp15(
26         encrypter_key: Callable[[bytes], bytes],
27         encrypter_mac: Callable[[bytes], bytes],
28         bs: int,
29         kexp: bytes,
30         iv: bytes,
31 ) -> bytes: ...