aboutsummaryrefslogtreecommitdiff
path: root/frozen_deps/Cryptodome/Protocol/DH.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/Protocol/DH.pyi
parent258780284151d49cba1d9c0d2ce33f9a19bb058b (diff)
release v0.1.8
Diffstat (limited to 'frozen_deps/Cryptodome/Protocol/DH.pyi')
-rw-r--r--frozen_deps/Cryptodome/Protocol/DH.pyi15
1 files changed, 15 insertions, 0 deletions
diff --git a/frozen_deps/Cryptodome/Protocol/DH.pyi b/frozen_deps/Cryptodome/Protocol/DH.pyi
new file mode 100644
index 0000000..b1da888
--- /dev/null
+++ b/frozen_deps/Cryptodome/Protocol/DH.pyi
@@ -0,0 +1,15 @@
+from typing import TypedDict, Callable, TypeVar, Generic
+from typing_extensions import Unpack, NotRequired
+
+from Cryptodome.PublicKey.ECC import EccKey
+
+T = TypeVar('T')
+
+class RequestParams(TypedDict, Generic[T]):
+ kdf: Callable[[bytes|bytearray|memoryview], T]
+ static_priv: NotRequired[EccKey]
+ static_pub: NotRequired[EccKey]
+ eph_priv: NotRequired[EccKey]
+ eph_pub: NotRequired[EccKey]
+
+def key_agreement(**kwargs: Unpack[RequestParams[T]]) -> T: ...