aboutsummaryrefslogtreecommitdiff
path: root/frozen_deps/Cryptodome/IO/_PBES.pyi
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2024-08-23 03:14:03 +0000
committerDeterminant <[email protected]>2024-08-22 20:34:57 -0700
commit8d1c76ec7caf247d5675e14260d20fc508977ffb (patch)
tree8fa7c8ce3b7e3f4ece150a6da5922b5eb2dc7772 /frozen_deps/Cryptodome/IO/_PBES.pyi
parent258780284151d49cba1d9c0d2ce33f9a19bb058b (diff)
release v0.1.8
Diffstat (limited to 'frozen_deps/Cryptodome/IO/_PBES.pyi')
-rw-r--r--frozen_deps/Cryptodome/IO/_PBES.pyi15
1 files changed, 11 insertions, 4 deletions
diff --git a/frozen_deps/Cryptodome/IO/_PBES.pyi b/frozen_deps/Cryptodome/IO/_PBES.pyi
index a8a34ce..0673364 100644
--- a/frozen_deps/Cryptodome/IO/_PBES.pyi
+++ b/frozen_deps/Cryptodome/IO/_PBES.pyi
@@ -1,4 +1,5 @@
-from typing import Dict, Optional, Callable
+from typing import Optional, Callable, TypedDict
+from typing_extensions import NotRequired
class PbesError(ValueError):
...
@@ -7,13 +8,19 @@ class PBES1(object):
@staticmethod
def decrypt(data: bytes, passphrase: bytes) -> bytes: ...
+class ProtParams(TypedDict):
+ iteration_count: NotRequired[int]
+ salt_size: NotRequired[int]
+ block_size: NotRequired[int]
+ parallelization: NotRequired[int]
+
class PBES2(object):
@staticmethod
def encrypt(data: bytes,
passphrase: bytes,
- protection: str,
- prot_params: Optional[Dict] = ...,
- randfunc: Optional[Callable[[int],bytes]] = ...) -> bytes: ...
+ protection: str,
+ prot_params: Optional[ProtParams] = ...,
+ randfunc: Optional[Callable[[int],bytes]] = ...) -> bytes: ...
@staticmethod
def decrypt(data:bytes, passphrase: bytes) -> bytes: ...