slight update

This commit is contained in:
2024-12-01 04:19:04 +09:00
parent 00b0afd17a
commit 4dbe1bee11
3130 changed files with 508084 additions and 0 deletions

View File

@ -0,0 +1,17 @@
from typing import Union, Optional
from typing_extensions import TypedDict, Unpack, NotRequired
Buffer = Union[bytes, bytearray, memoryview]
class TurboSHAKE(object):
def __init__(self, capacity: int, domain_separation: int, data: Union[Buffer, None]) -> None: ...
def update(self, data: Buffer) -> TurboSHAKE : ...
def read(self, length: int) -> bytes: ...
def new(self, data: Optional[Buffer]=None) -> TurboSHAKE: ...
class Args(TypedDict):
domain: NotRequired[int]
data: NotRequired[Buffer]
def new(**kwargs: Unpack[Args]) -> TurboSHAKE: ...