]> Cypherpunks.ru repositories - pygost.git/blob - pygost/stubs/pygost/gost28147_mac.pyi
PEP8 typing stubs
[pygost.git] / pygost / stubs / pygost / gost28147_mac.pyi
1 from pygost.iface import PEP247
2
3
4 class MAC(PEP247):
5     def __init__(
6         self,
7         key: bytes,
8         data: bytes = ...,
9         iv: bytes = ...,
10         sbox: str = ...,
11     ) -> None: ...
12
13     @property
14     def digest_size(self) -> int: ...
15
16     def copy(self) -> "MAC": ...
17
18     def update(self, data: bytes) -> None: ...
19
20     def digest(self) -> bytes: ...
21
22     def hexdigest(self) -> str: ...
23
24
25 def new(key: bytes, data: bytes = ..., iv: bytes = ..., sbox: str = ...) -> MAC: ...