Format: application/octet-stream
1 from typing import Tuple, Union
2
3 _DataType = Union[str, unicode, bytearray, buffer, memoryview]
4
5 class _hash(object): # This is not actually in the module namespace.
6 name: str
7 block_size: int
8 digest_size: int
9 digestsize: int
10 def __init__(self, arg: _DataType = ...) -> None: ...
11 def update(self, arg: _DataType) -> None: ...
12 def digest(self) -> str: ...
13 def hexdigest(self) -> str: ...
14 def copy(self) -> _hash: ...
15
16 def new(name: str, data: str = ...) -> _hash: ...
17 def md5(s: _DataType = ...) -> _hash: ...
18 def sha1(s: _DataType = ...) -> _hash: ...
19 def sha224(s: _DataType = ...) -> _hash: ...
20 def sha256(s: _DataType = ...) -> _hash: ...
21 def sha384(s: _DataType = ...) -> _hash: ...
22 def sha512(s: _DataType = ...) -> _hash: ...
23
24 algorithms: Tuple[str, ...]
25 algorithms_guaranteed: Tuple[str, ...]
26 algorithms_available: Tuple[str, ...]
27
28 def pbkdf2_hmac(name: str, password: str, salt: str, rounds: int, dklen: int = ...) -> str: ...
29