]> Cypherpunks.ru repositories - pygost.git/blob - pygost/stubs/pygost/gost3413.pyi
CTR-ACPKM, OMAC-ACPKM-Master modes of operation
[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 acpkm(encrypter: Callable[[bytes], bytes], bs: int) -> bytes: ...
26
27
28 def ctr(encrypter: Callable[[bytes], bytes], bs: int, data: bytes, iv: bytes) -> bytes: ...
29
30
31 def ctr_acpkm(
32         algo_class: object,
33         encrypter: Callable[[bytes], bytes],
34         section_size: int,
35         bs: int,
36         data: bytes,
37         iv: bytes,
38 ) -> bytes: ...
39
40
41 def ofb(encrypter: Callable[[bytes], bytes], bs: int, data: bytes, iv: bytes) -> bytes: ...
42
43
44 def cbc_encrypt(encrypter: Callable[[bytes], bytes], bs: int, pt: bytes, iv: bytes) -> bytes: ...
45
46
47 def cbc_decrypt(decrypter: Callable[[bytes], bytes], bs: int, ct: bytes, iv: bytes) -> bytes: ...
48
49
50 def cfb_encrypt(encrypter: Callable[[bytes], bytes], bs: int, pt: bytes, iv: bytes) -> bytes: ...
51
52
53 def cfb_decrypt(encrypter: Callable[[bytes], bytes], bs: int, ct: bytes, iv: bytes) -> bytes: ...
54
55
56 def mac(encrypter: Callable[[bytes], bytes], bs: int, data: bytes) -> bytes: ...
57
58
59 def acpkm_master(
60         algo_class: object,
61         encrypter: Callable[[bytes], bytes],
62         key_section_size: int,
63         bs: int,
64         keymat_len: int,
65 ) -> bytes: ...
66
67
68 def mac_acpkm_master(
69         algo_class: object,
70         encrypter: Callable[[bytes], bytes],
71         key_section_size: int,
72         section_size: int,
73         bs: int,
74         data: bytes,
75 ) -> bytes: ...