aboutsummaryrefslogtreecommitdiff
path: root/frozen_deps/Cryptodome/IO/_PBES.pyi
blob: a8a34ced3984f1b31f55a8d0d87915da4527f752 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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: ...