| 1 | from typing import Union |
| 2 | from types import ModuleType |
| 3 | |
| 4 | Buffer = Union[bytes, bytearray, memoryview] |
| 5 | |
| 6 | class KMAC_Hash(object): |
| 7 | |
| 8 | def __init__(self, |
| 9 | data: Buffer, |
| 10 | key: Buffer, |
| 11 | mac_len: int, |
| 12 | custom: Buffer, |
| 13 | oid_variant: str, |
| 14 | cshake: ModuleType, |
| 15 | rate: int) -> None: ... |
| 16 | |
| 17 | def update(self, data: Buffer) -> KMAC_Hash: ... |
| 18 | |
| 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 | def new(self, |
| 24 | data: Buffer = ..., |
| 25 | mac_len: int = ..., |
| 26 | key: Buffer = ..., |
| 27 | custom: Buffer = ...) -> KMAC_Hash: ... |
| 28 | |
| 29 | |
| 30 | def new(key: Buffer, |
| 31 | data: Buffer = ..., |
| 32 | mac_len: int = ..., |
| 33 | custom: Buffer = ...) -> KMAC_Hash: ... |