1 from typing import Callable
4 def pad_size(data_size: int, blocksize: int) -> int: ...
7 def pad1(data: bytes, blocksize: int) -> bytes: ...
10 def pad2(data: bytes, blocksize: int) -> bytes: ...
13 def unpad2(data: bytes, blocksize: int) -> bytes: ...
16 def pad3(data: bytes, blocksize: int) -> bytes: ...
19 def ecb_encrypt(encrypter: Callable[[bytes], bytes], bs: int, pt: bytes) -> bytes: ...
22 def ecb_decrypt(decrypter: Callable[[bytes], bytes], bs: int, ct: bytes) -> bytes: ...
25 def acpkm(encrypter: Callable[[bytes], bytes], bs: int) -> bytes: ...
28 def ctr(encrypter: Callable[[bytes], bytes], bs: int, data: bytes, iv: bytes) -> bytes: ...
33 encrypter: Callable[[bytes], bytes],
41 def ofb(encrypter: Callable[[bytes], bytes], bs: int, data: bytes, iv: bytes) -> bytes: ...
44 def cbc_encrypt(encrypter: Callable[[bytes], bytes], bs: int, pt: bytes, iv: bytes) -> bytes: ...
47 def cbc_decrypt(decrypter: Callable[[bytes], bytes], bs: int, ct: bytes, iv: bytes) -> bytes: ...
50 def cfb_encrypt(encrypter: Callable[[bytes], bytes], bs: int, pt: bytes, iv: bytes) -> bytes: ...
53 def cfb_decrypt(encrypter: Callable[[bytes], bytes], bs: int, ct: bytes, iv: bytes) -> bytes: ...
56 def mac(encrypter: Callable[[bytes], bytes], bs: int, data: bytes) -> bytes: ...
61 encrypter: Callable[[bytes], bytes],
62 key_section_size: int,
70 encrypter: Callable[[bytes], bytes],
71 key_section_size: int,