Debian Codegraph @

lib/Crypto/Hash/CMAC.pyi

raw symbols SCIP
1 from types import ModuleType
2 from typing import Union, Dict, Any
3
4 Buffer = Union[bytes, bytearray, memoryview]
5
6 digest_size: int
7
8 class CMAC(object):
9 digest_size: int
10
11 def __init__(self,
12 key: Buffer,
13 msg: Buffer,
14 ciphermod: ModuleType,
15 cipher_params: Dict[str, Any],
16 mac_len: int, update_after_digest: bool) -> None: ...
17 def update(self, data: Buffer) -> CMAC: ...
18 def copy(self) -> CMAC: ...
19 def digest(self) -> bytes: ...
20 def hexdigest(self) -> str: ...
21 def verify(self, mac_tag: Buffer) -> None: ...
22 def hexverify(self, hex_mac_tag: str) -> None: ...
23
24
25 def new(key: Buffer,
26 msg: Buffer = ...,
27 ciphermod: ModuleType = ...,
28 cipher_params: Dict[str, Any] = ...,
29 mac_len: int = ...,
30 update_after_digest: bool = ...) -> CMAC: ...