BLAKE2b.pyi 877 B

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