16 lines
572 B
Python
16 lines
572 B
Python
from typing import Union, Optional
|
|
|
|
Buffer = Union[bytes, bytearray, memoryview]
|
|
|
|
class K12_XOF(object):
|
|
def __init__(self,
|
|
data: Optional[Buffer] = ...,
|
|
custom: Optional[bytes] = ...) -> None: ...
|
|
def update(self, data: Buffer) -> K12_XOF: ...
|
|
def read(self, length: int) -> bytes: ...
|
|
def new(self,
|
|
data: Optional[Buffer] = ...,
|
|
custom: Optional[bytes] = ...) -> None: ...
|
|
|
|
def new(data: Optional[Buffer] = ...,
|
|
custom: Optional[Buffer] = ...) -> K12_XOF: ...
|