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 ctr(encrypter: Callable[[bytes], bytes], bs: int, data: bytes, iv: bytes) -> bytes: ...
28 def ofb(encrypter: Callable[[bytes], bytes], bs: int, data: bytes, iv: bytes) -> bytes: ...
31 def cbc_encrypt(encrypter: Callable[[bytes], bytes], bs: int, pt: bytes, iv: bytes) -> bytes: ...
34 def cbc_decrypt(decrypter: Callable[[bytes], bytes], bs: int, ct: bytes, iv: bytes) -> bytes: ...
37 def cfb_encrypt(encrypter: Callable[[bytes], bytes], bs: int, pt: bytes, iv: bytes) -> bytes: ...
40 def cfb_decrypt(encrypter: Callable[[bytes], bytes], bs: int, ct: bytes, iv: bytes) -> bytes: ...
43 def mac(encrypter: Callable[[bytes], bytes], bs: int, data: bytes) -> bytes: ...