2 from _typeshed import ReadableBuffer
3 from typing_extensions import SupportsIndex, final
5 if sys.version_info >= (3, 0):
6 from hashlib import _Hash
8 from hashlib import _hash as _Hash
13 class _IntDigestHash(_Hash):
15 def seed(self) -> int: ...
17 def digestsize(self) -> int: ...
18 def __init__(self, input: ReadableBuffer | str = ..., seed: SupportsIndex = ...) -> None: ...
19 def intdigest(self) -> int: ...
20 def reset(self) -> None: ...
22 # python-xxhash v2.0.0 does not support the string or usedforsecurity kwargs
24 class xxh32(_IntDigestHash): ...
27 class xxh64(_IntDigestHash): ...
30 class xxh3_64(_IntDigestHash): ...
33 class xxh3_128(_IntDigestHash): ...
35 def xxh32_digest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> bytes: ...
36 def xxh32_intdigest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> int: ...
37 def xxh32_hexdigest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> str: ...
38 def xxh64_digest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> bytes: ...
39 def xxh64_intdigest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> int: ...
40 def xxh64_hexdigest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> str: ...
41 def xxh3_64_digest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> bytes: ...
42 def xxh3_64_intdigest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> int: ...
43 def xxh3_64_hexdigest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> str: ...
44 def xxh3_128_digest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> bytes: ...
45 def xxh3_128_intdigest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> int: ...
46 def xxh3_128_hexdigest(input: ReadableBuffer | str, seed: SupportsIndex = ...) -> str: ...
49 xxh128_digest = xxh3_128_digest
50 xxh128_intdigest = xxh3_128_intdigest
51 xxh128_hexdigest = xxh3_128_hexdigest