| 1 | from typing import Union, Optional |
| 2 | from typing_extensions import TypedDict, Unpack, NotRequired |
| 3 | |
| 4 | Buffer = Union[bytes, bytearray, memoryview] |
| 5 | |
| 6 | class TurboSHAKE(object): |
| 7 | |
| 8 | def __init__(self, capacity: int, domain_separation: int, data: Union[Buffer, None]) -> None: ... |
| 9 | def update(self, data: Buffer) -> TurboSHAKE : ... |
| 10 | def read(self, length: int) -> bytes: ... |
| 11 | def new(self, data: Optional[Buffer]=None) -> TurboSHAKE: ... |
| 12 | |
| 13 | class Args(TypedDict): |
| 14 | domain: NotRequired[int] |
| 15 | data: NotRequired[Buffer] |
| 16 | |
| 17 | def new(**kwargs: Unpack[Args]) -> TurboSHAKE: ... |