pygost/stubs/pygost/gost28147.pyi | 18 ++++++++++++++++++ diff --git a/pygost/stubs/pygost/gost28147.pyi b/pygost/stubs/pygost/gost28147.pyi index af22176505ea9c9fd964cbf72ba45b5fb0ea6dae373fca314214777a8c83ac95..a4710cfc233a4593798b9d49c71f97216274227d917324e8743861f5e2d036b5 100644 --- a/pygost/stubs/pygost/gost28147.pyi +++ b/pygost/stubs/pygost/gost28147.pyi @@ -1,7 +1,11 @@ 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] @@ -37,6 +41,20 @@ def ecb( key: bytes, data: bytes, action: Callable[[str, bytes, Words], Words], + sbox: str=..., +) -> bytes: ... + + +def ecb_encrypt( + key: bytes, + data: bytes, + sbox: str=..., +) -> bytes: ... + + +def ecb_decrypt( + key: bytes, + data: bytes, sbox: str=..., ) -> bytes: ...