forked from oconnor663/blake3-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblake3.pyi
25 lines (24 loc) · 777 Bytes
/
blake3.pyi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
__version__: str = ...
class blake3:
name: str
digest_size: int
block_size: int
key_size: int
AUTO: int
def __init__(
self,
# TODO: use collections.abc.Buffer here when PEP 688 lands in Python 3.12
data: bytes = ...,
/,
*,
key: bytes = ...,
derive_key_context: str = ...,
max_threads: int = ...,
usedforsecurity: bool = ...,
): ...
# TODO: use collections.abc.Buffer here when PEP 688 lands in Python 3.12
def update(self, data: bytes, /) -> None: ...
def copy(self) -> blake3: ...
def reset(self) -> None: ...
def digest(self, length: int = ..., *, seek: int = ...) -> bytes: ...
def hexdigest(self, length: int = ..., *, seek: int = ...) -> str: ...