You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: treat EdDSA and Ed25519 as equivalent for JWK infer
Map OKP crv Ed25519 to RFC 9864 EdDSAEd25519, and accept legacy JWK
alg "EdDSA" (and matching allowlist entries) as the same crypto.
Co-authored-by: Cursor <cursoragent@cursor.com>
|`*rsa.PublicKey`, `[]byte`, … | Error — `NewJWSVerifierWithAlg(allowed, alg, …)` or a JWK with `alg`|
143
143
144
-
If JWK has both `alg` and a structural mapping and they **disagree** → error.
144
+
If JWK has both `alg` and a structural mapping and they **disagree** → error. Legacy `"EdDSA"` and RFC 9864 `"Ed25519"` are **not** a disagreement (same Ed25519 crypto). `JWSAlgAllowlist.Contains` treats those two names as equivalent.
145
145
146
146
After JWK → raw key for ML-DSA: cross-check `Parameters()` vs claimed `alg`.
0 commit comments