Skip to content
This repository was archived by the owner on Jan 28, 2026. It is now read-only.

Commit c9eaaac

Browse files
authored
Remove JWK "alg" field (#24)
The `alg` field is not required and might change in the future, see https://www.ietf.org/archive/id/draft-jones-jose-fully-specified-algorithms-00.html. * Revert "Set and check "alg" JWK property for EdDSA keys (#3)" This reverts commit bf5f161. * Revert "Update JWK mappings for Ed25519 and Ed448 (#4)" This reverts commit 5d58d49.
1 parent 36c0f23 commit c9eaaac

1 file changed

Lines changed: 2 additions & 32 deletions

File tree

index.html

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2241,14 +2241,6 @@ <h4>Operations</h4>
22412241
{{DataError}}.
22422242
</p>
22432243
</li>
2244-
<li>
2245-
<p>
2246-
If the {{JsonWebKey/alg}} field of |jwk| is present and is
2247-
not "`EdDSA`",
2248-
then [= exception/throw =] a
2249-
{{DataError}}.
2250-
</p>
2251-
</li>
22522244
<li>
22532245
<p>
22542246
If |usages| is non-empty and the {{JsonWebKey/use}} field of |jwk| is present and is
@@ -2543,12 +2535,6 @@ <h4>Operations</h4>
25432535
"`OKP`".
25442536
</p>
25452537
</li>
2546-
<li>
2547-
<p>
2548-
Set the `alg` attribute of |jwk| to
2549-
"`EdDSA`".
2550-
</p>
2551-
</li>
25522538
<li>
25532539
<p>
25542540
Set the `crv` attribute of |jwk| to
@@ -3148,14 +3134,6 @@ <h4>Operations</h4>
31483134
{{DataError}}.
31493135
</p>
31503136
</li>
3151-
<li>
3152-
<p>
3153-
If the {{JsonWebKey/alg}} field of |jwk| is present and is
3154-
not "`EdDSA`",
3155-
then [= exception/throw =] a
3156-
{{DataError}}.
3157-
</p>
3158-
</li>
31593137
<li>
31603138
<p>
31613139
If |usages| is non-empty and the {{JsonWebKey/use}} field of |jwk| is present and is
@@ -3450,12 +3428,6 @@ <h4>Operations</h4>
34503428
"`OKP`".
34513429
</p>
34523430
</li>
3453-
<li>
3454-
<p>
3455-
Set the `alg` attribute of |jwk| to
3456-
"`EdDSA`".
3457-
</p>
3458-
</li>
34593431
<li>
34603432
<p>
34613433
Set the `crv` attribute of |jwk| to
@@ -3638,8 +3610,7 @@ <h3>Algorithm mappings</h3>
36383610
<td>
36393611
<pre class=js>
36403612
{ kty: "OKP",
3641-
crv: "Ed25519",
3642-
alg: "EdDSA" }
3613+
crv: "Ed25519" }
36433614
</pre>
36443615
</td>
36453616
<td>
@@ -3652,8 +3623,7 @@ <h3>Algorithm mappings</h3>
36523623
<td>
36533624
<pre class=js>
36543625
{ kty: "OKP",
3655-
crv: "Ed448",
3656-
alg: "EdDSA" }
3626+
crv: "Ed448" }
36573627
</pre>
36583628
</td>
36593629
<td>

0 commit comments

Comments
 (0)