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