python-swoosh 0.1.0__cp312-cp312-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,69 @@
1
+ Metadata-Version: 2.4
2
+ Name: python-swoosh
3
+ Version: 0.1.0
4
+ Classifier: Programming Language :: Rust
5
+ Classifier: Programming Language :: Python :: 3
6
+ Classifier: Programming Language :: Python :: Implementation :: CPython
7
+ Classifier: License :: OSI Approved :: MIT License
8
+ Classifier: Operating System :: OS Independent
9
+ Classifier: Topic :: Security :: Cryptography
10
+ License-File: LICENSE
11
+ Summary: Python bindings for the SWOOSH lattice-based NIKE reference implementation
12
+ Keywords: cryptography,kem,nike,lattice,swoosh
13
+ Requires-Python: >=3.8
14
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
15
+
16
+ # swoosh — Python bindings for Passive-Swoosh
17
+
18
+ Python bindings for the **Swoosh** practical lattice-based
19
+ non-interactive key exchange (Passive-Swoosh construction).
20
+
21
+ For background see: https://eprint.iacr.org/2023/271.
22
+
23
+ ## Install
24
+
25
+ ```sh
26
+ pip install python-swoosh
27
+ ```
28
+
29
+ ## Usage
30
+
31
+ ```python
32
+ from swoosh import keygen, derive_shared_secret
33
+
34
+ # Party A and Party B each generate a keypair
35
+ sk_a, pk_a = keygen(True) # is_party_a=True
36
+ sk_b, pk_b = keygen(False) # is_party_a=False
37
+
38
+ # Each side derives the shared secret using (own_pk, other_pk)
39
+ ss_a = derive_shared_secret(pk_a, pk_b, sk_a, True)
40
+ ss_b = derive_shared_secret(pk_b, pk_a, sk_b, False)
41
+
42
+ assert ss_a == ss_b # 32-byte shared secret
43
+ ```
44
+
45
+ > **Note:** `derive_shared_secret` takes `(own_pk, other_pk, sk,
46
+ > is_party_a)`. Both sides must pass their *own* public key first,
47
+ > otherwise the derived secrets will not match.
48
+
49
+ Key/signature sizes: secret keys and public keys are 221184 bytes each;
50
+ shared secrets are 32 bytes.
51
+
52
+ ## API
53
+
54
+ - `keygen(is_party_a: bool) -> (secret_key: bytes, public_key: bytes)`
55
+ - `derive_shared_secret(own_pk: bytes, other_pk: bytes, sk: bytes, is_party_a: bool) -> bytes`
56
+
57
+ ## Building from source
58
+
59
+ Requires Rust (stable) and `maturin >= 1.0`:
60
+
61
+ ```sh
62
+ pip install maturin
63
+ maturin develop --release
64
+ ```
65
+
66
+ ## License
67
+
68
+ MIT
69
+
@@ -0,0 +1,8 @@
1
+ python_swoosh-0.1.0.dist-info/METADATA,sha256=OA7myQAQZmuzI89Gc9VGWcso9YtkblGoc1r42PO4bO0,1913
2
+ python_swoosh-0.1.0.dist-info/WHEEL,sha256=Uf438hGD-NUftH08dxSaiYRxcfiZqeYK9g3DNJ-vPY0,97
3
+ python_swoosh-0.1.0.dist-info/licenses/LICENSE,sha256=fqMq_vcMZi6_izh94lySwVtTIqGcI3Eqo28izdPSC4U,1076
4
+ python_swoosh-0.1.0.dist-info/sboms/swoosh.cyclonedx.json,sha256=EynAVaTxe4RvJnII_EIdK52STrZKpHHRv4L3W-Fs4So,49308
5
+ swoosh/__init__.py,sha256=9OK0-CqsEIeCkCL_Oj-WlPYy783ssSBYSOk7WaAAlcg,175
6
+ swoosh/__init__.pyi,sha256=9aCHLUCF8oXq_lqT4oOYwDmakUD3eMPZPOZpPbeSMbw,565
7
+ swoosh/_swoosh.cp312-win_amd64.pyd,sha256=sCVybDcxq4DiSLpL81orcUW2tbXsPbi8-CHcgu8UFCc,17045504
8
+ python_swoosh-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.15.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp312-cp312-win_amd64
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 swoosh contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.