_PBES.pyi 489 B

12345678910111213141516171819
  1. from typing import Dict, Optional, Callable
  2. class PbesError(ValueError):
  3. ...
  4. class PBES1(object):
  5. @staticmethod
  6. def decrypt(data: bytes, passphrase: bytes) -> bytes: ...
  7. class PBES2(object):
  8. @staticmethod
  9. def encrypt(data: bytes,
  10. passphrase: bytes,
  11. protection: str,
  12. prot_params: Optional[Dict] = ...,
  13. randfunc: Optional[Callable[[int],bytes]] = ...) -> bytes: ...
  14. @staticmethod
  15. def decrypt(data:bytes, passphrase: bytes) -> bytes: ...