swarmauri_cipher_suite_jwa 0.2.0.dev5__tar.gz → 0.11.0.dev2__tar.gz
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.
- {swarmauri_cipher_suite_jwa-0.2.0.dev5 → swarmauri_cipher_suite_jwa-0.11.0.dev2}/PKG-INFO +15 -13
- {swarmauri_cipher_suite_jwa-0.2.0.dev5 → swarmauri_cipher_suite_jwa-0.11.0.dev2}/README.md +8 -7
- {swarmauri_cipher_suite_jwa-0.2.0.dev5 → swarmauri_cipher_suite_jwa-0.11.0.dev2}/pyproject.toml +7 -6
- {swarmauri_cipher_suite_jwa-0.2.0.dev5 → swarmauri_cipher_suite_jwa-0.11.0.dev2}/swarmauri_cipher_suite_jwa/JwaCipherSuite.py +24 -4
- {swarmauri_cipher_suite_jwa-0.2.0.dev5 → swarmauri_cipher_suite_jwa-0.11.0.dev2}/LICENSE +0 -0
- {swarmauri_cipher_suite_jwa-0.2.0.dev5 → swarmauri_cipher_suite_jwa-0.11.0.dev2}/swarmauri_cipher_suite_jwa/__init__.py +0 -0
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: swarmauri_cipher_suite_jwa
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.11.0.dev2
|
|
4
4
|
Summary: JWA-focused cipher suite for Swarmauri
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
License-File: LICENSE
|
|
7
7
|
Keywords: swarmauri,sdk,standards,cipher,suite,jwa,cryptography,JSON Web Algorithms,RFC 7518,JWS,JWE,EdDSA,PS256,PS384,PS512,ES256,ES384,ES512,A128GCM,A192GCM,A256GCM,RSA-OAEP,RSA-OAEP-256,A256KW
|
|
8
8
|
Author: Jacob Stewart
|
|
9
9
|
Author-email: jacob@swarmauri.com
|
|
10
|
-
Requires-Python: >=3.10,<3.
|
|
10
|
+
Requires-Python: >=3.10,<3.15
|
|
11
11
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
12
|
Classifier: Natural Language :: English
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
17
13
|
Classifier: Development Status :: 3 - Alpha
|
|
18
14
|
Classifier: Topic :: Security :: Cryptography
|
|
19
15
|
Classifier: Intended Audience :: Developers
|
|
20
16
|
Classifier: Programming Language :: Python
|
|
21
17
|
Classifier: Programming Language :: Python :: 3
|
|
22
18
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
23
24
|
Requires-Dist: swarmauri_base
|
|
24
25
|
Requires-Dist: swarmauri_core
|
|
25
26
|
Description-Content-Type: text/markdown
|
|
26
27
|
|
|
27
|
-

|
|
28
29
|
|
|
29
30
|
<p align="center">
|
|
30
|
-
<a href="https://
|
|
31
|
-
<img src="https://
|
|
31
|
+
<a href="https://pepy.tech/project/swarmauri_cipher_suite_jwa/">
|
|
32
|
+
<img src="https://static.pepy.tech/badge/swarmauri_cipher_suite_jwa/month" alt="PyPI - Downloads"/></a>
|
|
32
33
|
<a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_cipher_suite_jwa/">
|
|
33
34
|
<img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_cipher_suite_jwa.svg"/></a>
|
|
34
35
|
<a href="https://pypi.org/project/swarmauri_cipher_suite_jwa/">
|
|
35
|
-
<img src="https://img.shields.io/
|
|
36
|
+
<img src="https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue" alt="PyPI - Python Version"/></a>
|
|
36
37
|
<a href="https://pypi.org/project/swarmauri_cipher_suite_jwa/">
|
|
37
38
|
<img src="https://img.shields.io/pypi/l/swarmauri_cipher_suite_jwa" alt="PyPI - License"/></a>
|
|
38
39
|
<a href="https://pypi.org/project/swarmauri_cipher_suite_jwa/">
|
|
39
40
|
<img src="https://img.shields.io/pypi/v/swarmauri_cipher_suite_jwa?label=swarmauri_cipher_suite_jwa&color=green" alt="PyPI - swarmauri_cipher_suite_jwa"/></a>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
---
|
|
41
|
+
<a href="https://discord.gg/N4UpBuQv8T">
|
|
42
|
+
<img src="https://img.shields.io/badge/Discord-Join%20Chat-5865F2?logo=discord&logoColor=white" alt="Discord"/></a></p>
|
|
43
43
|
|
|
44
44
|
# Swarmauri Cipher JWA
|
|
45
45
|
|
|
@@ -127,3 +127,5 @@ If you want to contribute to swarmauri-sdk, read up on our
|
|
|
127
127
|
[guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md)
|
|
128
128
|
that will help you get started.
|
|
129
129
|
|
|
130
|
+
|
|
131
|
+
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-

|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
|
-
<a href="https://
|
|
5
|
-
<img src="https://
|
|
4
|
+
<a href="https://pepy.tech/project/swarmauri_cipher_suite_jwa/">
|
|
5
|
+
<img src="https://static.pepy.tech/badge/swarmauri_cipher_suite_jwa/month" alt="PyPI - Downloads"/></a>
|
|
6
6
|
<a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_cipher_suite_jwa/">
|
|
7
7
|
<img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_cipher_suite_jwa.svg"/></a>
|
|
8
8
|
<a href="https://pypi.org/project/swarmauri_cipher_suite_jwa/">
|
|
9
|
-
<img src="https://img.shields.io/
|
|
9
|
+
<img src="https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue" alt="PyPI - Python Version"/></a>
|
|
10
10
|
<a href="https://pypi.org/project/swarmauri_cipher_suite_jwa/">
|
|
11
11
|
<img src="https://img.shields.io/pypi/l/swarmauri_cipher_suite_jwa" alt="PyPI - License"/></a>
|
|
12
12
|
<a href="https://pypi.org/project/swarmauri_cipher_suite_jwa/">
|
|
13
13
|
<img src="https://img.shields.io/pypi/v/swarmauri_cipher_suite_jwa?label=swarmauri_cipher_suite_jwa&color=green" alt="PyPI - swarmauri_cipher_suite_jwa"/></a>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
---
|
|
14
|
+
<a href="https://discord.gg/N4UpBuQv8T">
|
|
15
|
+
<img src="https://img.shields.io/badge/Discord-Join%20Chat-5865F2?logo=discord&logoColor=white" alt="Discord"/></a></p>
|
|
17
16
|
|
|
18
17
|
# Swarmauri Cipher JWA
|
|
19
18
|
|
|
@@ -100,3 +99,5 @@ The suite registers under the `swarmauri.cipher_suites` entry point as
|
|
|
100
99
|
If you want to contribute to swarmauri-sdk, read up on our
|
|
101
100
|
[guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md)
|
|
102
101
|
that will help you get started.
|
|
102
|
+
|
|
103
|
+
|
{swarmauri_cipher_suite_jwa-0.2.0.dev5 → swarmauri_cipher_suite_jwa-0.11.0.dev2}/pyproject.toml
RENAMED
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "swarmauri_cipher_suite_jwa"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.11.0.dev2"
|
|
4
4
|
description = "JWA-focused cipher suite for Swarmauri"
|
|
5
5
|
license = "Apache-2.0"
|
|
6
6
|
readme = "README.md"
|
|
7
|
-
requires-python = ">=3.10,<3.
|
|
7
|
+
requires-python = ">=3.10,<3.15"
|
|
8
8
|
authors = [{ name = "Jacob Stewart", email = "jacob@swarmauri.com" }]
|
|
9
9
|
classifiers = [
|
|
10
10
|
"License :: OSI Approved :: Apache Software License",
|
|
11
11
|
"Natural Language :: English",
|
|
12
|
-
"Programming Language :: Python :: 3.10",
|
|
13
|
-
"Programming Language :: Python :: 3.11",
|
|
14
|
-
"Programming Language :: Python :: 3.12",
|
|
15
|
-
"Programming Language :: Python :: 3.13",
|
|
16
12
|
"Development Status :: 3 - Alpha",
|
|
17
13
|
"Topic :: Security :: Cryptography",
|
|
18
14
|
"Intended Audience :: Developers",
|
|
19
15
|
"Programming Language :: Python",
|
|
20
16
|
"Programming Language :: Python :: 3",
|
|
21
17
|
"Programming Language :: Python :: 3 :: Only",
|
|
18
|
+
"Programming Language :: Python :: 3.10",
|
|
19
|
+
"Programming Language :: Python :: 3.11",
|
|
20
|
+
"Programming Language :: Python :: 3.12",
|
|
21
|
+
"Programming Language :: Python :: 3.13",
|
|
22
|
+
"Programming Language :: Python :: 3.14",
|
|
22
23
|
]
|
|
23
24
|
dependencies = [
|
|
24
25
|
"swarmauri_core",
|
|
@@ -36,15 +36,33 @@ class JwaCipherSuite(CipherSuiteBase):
|
|
|
36
36
|
|
|
37
37
|
def supports(self) -> Mapping[CipherOp, Iterable[Alg]]:
|
|
38
38
|
return {
|
|
39
|
-
"sign": (
|
|
40
|
-
|
|
39
|
+
"sign": (
|
|
40
|
+
"EdDSA",
|
|
41
|
+
"PS256",
|
|
42
|
+
"PS384",
|
|
43
|
+
"PS512",
|
|
44
|
+
"ES256",
|
|
45
|
+
"ES384",
|
|
46
|
+
"ES512",
|
|
47
|
+
),
|
|
48
|
+
"verify": (
|
|
49
|
+
"EdDSA",
|
|
50
|
+
"PS256",
|
|
51
|
+
"PS384",
|
|
52
|
+
"PS512",
|
|
53
|
+
"ES256",
|
|
54
|
+
"ES384",
|
|
55
|
+
"ES512",
|
|
56
|
+
),
|
|
41
57
|
"encrypt": ("A128GCM", "A192GCM", "A256GCM"),
|
|
42
58
|
"decrypt": ("A128GCM", "A192GCM", "A256GCM"),
|
|
43
59
|
"wrap": ("RSA-OAEP", "RSA-OAEP-256", "A256KW"),
|
|
44
60
|
"unwrap": ("RSA-OAEP", "RSA-OAEP-256", "A256KW"),
|
|
45
61
|
}
|
|
46
62
|
|
|
47
|
-
def default_alg(
|
|
63
|
+
def default_alg(
|
|
64
|
+
self, op: CipherOp, *, for_key: Optional[KeyRef] = None
|
|
65
|
+
) -> Alg:
|
|
48
66
|
defaults = {
|
|
49
67
|
"sign": "EdDSA",
|
|
50
68
|
"encrypt": "A256GCM",
|
|
@@ -103,7 +121,9 @@ class JwaCipherSuite(CipherSuiteBase):
|
|
|
103
121
|
return {
|
|
104
122
|
"op": op,
|
|
105
123
|
"alg": chosen,
|
|
106
|
-
"dialect": "jwa"
|
|
124
|
+
"dialect": "jwa"
|
|
125
|
+
if dialect is None
|
|
126
|
+
else dialect, # allow caller override
|
|
107
127
|
"mapped": mapped,
|
|
108
128
|
"params": resolved,
|
|
109
129
|
"constraints": {"minKeyBits": 0},
|
|
File without changes
|