TupleHash128.pyi 666 B

12345678910111213141516171819202122
  1. from typing import Any, Union, List, Tuple
  2. from types import ModuleType
  3. Buffer = Union[bytes, bytearray, memoryview]
  4. class TupleHash(object):
  5. digest_size: int
  6. def __init__(self,
  7. custom: bytes,
  8. cshake: ModuleType,
  9. digest_size: int) -> None: ...
  10. def update(self, *data: Buffer) -> TupleHash: ...
  11. def digest(self) -> bytes: ...
  12. def hexdigest(self) -> str: ...
  13. def new(self,
  14. digest_bytes: int = ...,
  15. digest_bits: int = ...,
  16. custom: int = ...) -> TupleHash: ...
  17. def new(digest_bytes: int = ...,
  18. digest_bits: int = ...,
  19. custom: int = ...) -> TupleHash: ...