TurboSHAKE128.pyi 574 B

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