X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=pygost%2Fstubs%2Fpygost%2Fgost341194.pyi;h=24de2e4d595f324003bbd79b0fa6f30c37d7caca;hb=61d68bda6f6d7c39243701b5f647f62cc4d9d286;hp=18e04d4c4759f53a611fa2b6273ff7945f964796;hpb=83256651e8a0b24124834b29df9d2e826be7450f;p=pygost.git diff --git a/pygost/stubs/pygost/gost341194.pyi b/pygost/stubs/pygost/gost341194.pyi index 18e04d4..24de2e4 100644 --- a/pygost/stubs/pygost/gost341194.pyi +++ b/pygost/stubs/pygost/gost341194.pyi @@ -1,5 +1,11 @@ -class GOST341194: - def __init__(self, data: bytes=..., sbox: str=...) -> None: ... +from pygost.iface import PEP247 + + +class GOST341194(PEP247): + sbox = ... # type: str + block_size = ... # type: int + + def __init__(self, data: bytes = ..., sbox: str = ...) -> None: ... @property def digest_size(self) -> int: ... @@ -13,4 +19,7 @@ class GOST341194: def hexdigest(self) -> str: ... -def new(data: bytes=..., sbox: str=...) -> GOST341194: ... +def new(data: bytes = ..., sbox: str = ...) -> GOST341194: ... + + +def pbkdf2(password: bytes, salt: bytes, iterations: int, dklen: int) -> bytes: ...