From: Sergey Matveev Date: Thu, 8 Dec 2016 20:37:16 +0000 (+0300) Subject: Add missing gost28147: SBOXES, BLOCKSIZE, ecb_* mypy stubs X-Git-Tag: 3.2~4 X-Git-Url: http://www.git.cypherpunks.ru/?p=pygost.git;a=commitdiff_plain;h=7e029f825dcc8841a169908cab9a1e56b1f97cf5 Add missing gost28147: SBOXES, BLOCKSIZE, ecb_* mypy stubs --- diff --git a/pygost/stubs/pygost/gost28147.pyi b/pygost/stubs/pygost/gost28147.pyi index c6b0aa2..1c0986f 100644 --- a/pygost/stubs/pygost/gost28147.pyi +++ b/pygost/stubs/pygost/gost28147.pyi @@ -1,8 +1,12 @@ 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] @@ -41,6 +45,20 @@ def ecb( ) -> 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,