You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
489 B
20 lines
489 B
5 years ago
|
from typing import Dict, Optional, Callable
|
||
|
|
||
|
class PbesError(ValueError):
|
||
|
...
|
||
|
|
||
|
class PBES1(object):
|
||
|
@staticmethod
|
||
|
def decrypt(data: bytes, passphrase: bytes) -> bytes: ...
|
||
|
|
||
|
class PBES2(object):
|
||
|
@staticmethod
|
||
|
def encrypt(data: bytes,
|
||
|
passphrase: bytes,
|
||
|
protection: str,
|
||
|
prot_params: Optional[Dict] = ...,
|
||
|
randfunc: Optional[Callable[[int],bytes]] = ...) -> bytes: ...
|
||
|
|
||
|
@staticmethod
|
||
|
def decrypt(data:bytes, passphrase: bytes) -> bytes: ...
|