KDF.pyi 1015 B

12345678910111213141516171819
  1. from types import ModuleType
  2. from typing import Optional, Callable, Tuple, Union
  3. def PBKDF1(password: str, salt: bytes, dkLen: int, count: Optional[int]=1000, hashAlgo: Optional[ModuleType]=None) -> bytes: ...
  4. def PBKDF2(password: str, salt: bytes, dkLen: Optional[int]=16, count: Optional[int]=1000, prf: Optional[Callable]=None, hmac_hash_module: Optional[ModuleType]=None) -> bytes: ...
  5. class _S2V(object):
  6. def __init__(self, key: bytes, ciphermod: ModuleType, cipher_params: Optional[dict]=None) -> None: ...
  7. @staticmethod
  8. def new(key: bytes, ciphermod: ModuleType) -> None: ...
  9. def update(self, item: bytes) -> None: ...
  10. def derive(self) -> bytes: ...
  11. def HKDF(master: bytes, key_len: int, salt: bytes, hashmod: ModuleType, num_keys: Optional[int]=1, context: Optional[bytes]=None) -> Union[bytes, Tuple[bytes, ...]]: ...
  12. def scrypt(password: str, salt: str, key_len: int, N: int, r: int, p: int, num_keys: Optional[int]=1) -> Union[bytes, Tuple[bytes, ...]]: ...