-
Notifications
You must be signed in to change notification settings - Fork 0
/
xoflib.pyi
81 lines (63 loc) · 2.63 KB
/
xoflib.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import sys
if sys.version_info >= (3, 12):
from collections.abc import Buffer
elif sys.version_info >= (3, 10):
Buffer = bytes | bytearray | memoryview
else:
from typing import ByteString as Buffer
class Shake128:
def __init__(self, input_bytes: Buffer | None = None): ...
def absorb(self, input_bytes: Buffer) -> "Shake128": ...
def finalize(self) -> Sponge128: ...
class Sponge128:
def read(self, n: int) -> bytes: ...
def read_into(self, buf: Buffer): ...
class Shake256:
def __init__(self, input_bytes: Buffer | None = None): ...
def absorb(self, input_bytes: Buffer) -> "Shake256": ...
def finalize(self) -> Sponge128: ...
class Sponge256:
def read(self, n: int) -> bytes: ...
def read_into(self, buf: Buffer): ...
class TurboShake128:
def __init__(self, domain_sep: int, input_bytes: Buffer | None = None): ...
def absorb(self, input_bytes: Buffer) -> "TurboShake128": ...
def finalize(self) -> Sponge128: ...
class TurboSponge128:
def read(self, n: int) -> bytes: ...
def read_into(self, buf: Buffer): ...
class TurboShake256:
def __init__(self, domain_sep: int, input_bytes: Buffer | None = None): ...
def absorb(self, input_bytes: Buffer) -> "TurboShake256": ...
def finalize(self) -> Sponge128: ...
class TurboSponge256:
def read(self, n: int) -> bytes: ...
def read_into(self, buf: Buffer): ...
def shake128(input_bytes: Buffer) -> Sponge128: ...
def shake256(input_bytes: Buffer) -> Sponge256: ...
def turbo_shake128(domain_sep: int, input_bytes: Buffer) -> TurboSponge128: ...
def turbo_shake256(domain_sep: int, input_bytes: Buffer) -> TurboSponge256: ...
class AsconXof:
def __init__(self, input_bytes: Buffer | None = None): ...
def absorb(self, input_bytes: Buffer) -> "AsconXof": ...
def finalize(self) -> AsconSponge: ...
class AsconSponge:
def read(self, n: int) -> bytes: ...
def read_into(self, buf: Buffer): ...
class AsconAXof:
def __init__(self, input_bytes: Buffer | None = None): ...
def absorb(self, input_bytes: Buffer) -> "AsconAXof": ...
def finalize(self) -> AsconSponge: ...
class AsconASponge:
def read(self, n: int) -> bytes: ...
def read_into(self, buf: Buffer): ...
def ascon_xof(input_bytes: Buffer) -> AsconXof: ...
def ascona_xof(input_bytes: Buffer) -> AsconAXof: ...
class Blake3:
def __init__(self, input_bytes: Buffer | None = None): ...
def absorb(self, input_bytes: Buffer) -> "AsconAXof": ...
def finalize(self) -> AsconSponge: ...
class Blake3Sponge:
def read(self, n: int) -> bytes: ...
def read_into(self, buf: Buffer): ...
def blake3_xof(input_bytes: Buffer) -> AsconXof: ...