BLAKE2b.pyi 906 B

1234567891011121314151617181920212223242526272829303132
  1. from typing import Any, Union
  2. from types import ModuleType
  3. Buffer = Union[bytes, bytearray, memoryview]
  4. class BLAKE2b_Hash(object):
  5. block_size: int
  6. digest_size: int
  7. oid: str
  8. def __init__(self,
  9. data: Buffer,
  10. key: Buffer,
  11. digest_bytes: bytes,
  12. update_after_digest: bool) -> None: ...
  13. def update(self, data: Buffer) -> BLAKE2b_Hash: ...
  14. def digest(self) -> bytes: ...
  15. def hexdigest(self) -> str: ...
  16. def verify(self, mac_tag: Buffer) -> None: ...
  17. def hexverify(self, hex_mac_tag: str) -> None: ...
  18. def new(self,
  19. data: Buffer = ...,
  20. digest_bytes: int = ...,
  21. digest_bits: int = ...,
  22. key: Buffer = ...,
  23. update_after_digest: bool = ...) -> BLAKE2b_Hash: ...
  24. def new(data: Buffer = ...,
  25. digest_bytes: int = ...,
  26. digest_bits: int = ...,
  27. key: Buffer = ...,
  28. update_after_digest: bool = ...) -> BLAKE2b_Hash: ...