from typing import Callable
+from typing import Dict
from typing import Sequence
from typing import Tuple
+SBOXES = ... # type: Dict[str, Tuple[Tuple[int, ...], ...]]
+BLOCKSIZE = ... # type: int
+
Words = Tuple[int, int]
def ns2block(ns: Words) -> bytes: ...
-def addmod(x: int, y: int, mod: int=...) -> int: ...
-
-
def validate_key(key: bytes) -> None: ...
) -> bytes: ...
+def ecb_encrypt(
+ key: bytes,
+ data: bytes,
+ sbox: str=...,
+) -> bytes: ...
+
+
+def ecb_decrypt(
+ key: bytes,
+ data: bytes,
+ sbox: str=...,
+) -> bytes: ...
+
+
def cbc_encrypt(
key: bytes,
data: bytes,
iv: bytes=...,
pad: bool=...,
sbox: str=...,
+ mesh: bool=...,
) -> bytes: ...
data: bytes,
pad: bool=...,
sbox: str=...,
+ mesh: bool=...,
) -> bytes: ...