]> Cypherpunks.ru repositories - pygost.git/blob - pygost/stubs/pygost/gost3413.pyi
43ef9ee524dd2a7c56af416b26740473741393c9
[pygost.git] / pygost / stubs / pygost / gost3413.pyi
1 from typing import Callable
2
3
4 def pad_size(data_size: int, blocksize: int) -> int: ...
5
6
7 def pad1(data: bytes, blocksize: int) -> bytes: ...
8
9
10 def pad2(data: bytes, blocksize: int) -> bytes: ...
11
12
13 def unpad2(data: bytes, blocksize: int) -> bytes: ...
14
15
16 def pad3(data: bytes, blocksize: int) -> bytes: ...
17
18
19 def ecb_encrypt(encrypter: Callable[[bytes], bytes], bs: int, pt: bytes) -> bytes: ...
20
21
22 def ecb_decrypt(decrypter: Callable[[bytes], bytes], bs: int, ct: bytes) -> bytes: ...
23
24
25 def ctr(encrypter: Callable[[bytes], bytes], bs: int, data: bytes, iv: bytes) -> bytes: ...
26
27
28 def ofb(encrypter: Callable[[bytes], bytes], bs: int, data: bytes, iv: bytes) -> bytes: ...
29
30
31 def cbc_encrypt(encrypter: Callable[[bytes], bytes], bs: int, pt: bytes, iv: bytes) -> bytes: ...
32
33
34 def cbc_decrypt(decrypter: Callable[[bytes], bytes], bs: int, ct: bytes, iv: bytes) -> bytes: ...
35
36
37 def cfb_encrypt(encrypter: Callable[[bytes], bytes], bs: int, pt: bytes, iv: bytes) -> bytes: ...
38
39
40 def cfb_decrypt(encrypter: Callable[[bytes], bytes], bs: int, ct: bytes, iv: bytes) -> bytes: ...
41
42
43 def mac(encrypter: Callable[[bytes], bytes], bs: int, data: bytes) -> bytes: ...