We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1b7968 commit f720c0dCopy full SHA for f720c0d
src/cryptojwt/jws/utils.py
@@ -49,6 +49,8 @@ def alg2keytype(alg):
49
return "oct"
50
elif alg.startswith("ES") or alg.startswith("ECDH-ES"):
51
return "EC"
52
+ elif alg == "EdDSA":
53
+ return "OKP"
54
else:
55
return None
56
src/cryptojwt/key_bundle.py
@@ -1267,7 +1267,7 @@ def key_rollover(bundle):
1267
key_spec = []
1268
for key in bundle.get():
1269
_spec = {"type": key.kty, "use": [key.use]}
1270
- if key.kty in ["EC", "OKP"):
+ if key.kty in ["EC", "OKP"]:
1271
_spec["crv"] = key.crv
1272
1273
key_spec.append(_spec)
0 commit comments