Skip to content

Commit

Permalink
Reject invalid and small-order elements on signature verification
Browse files Browse the repository at this point in the history
  • Loading branch information
twiss committed Jun 20, 2023
1 parent 0874265 commit 83a62ca
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1867,6 +1867,19 @@ <h4>Operations</h4>
|key| is not {{KeyType/"public"}}, then [= exception/throw =] an {{InvalidAccessError}}.
</p>
</li>
<li>
<p>
If the key data of |key| represents an invalid point or a small-order element
on the Elliptic Curve of Ed25519, [= exception/throw =] an {{OperationError}}.
</p>
</li>
<li>
<p>
If the point R, encoded in the first half of |signature|,
represents an invalid point or a small-order element
on the Elliptic Curve of Ed25519, [= exception/throw =] an {{OperationError}}.
</p>
</li>
<li>
<p>
Perform the Ed25519 verification steps, as specified in [[RFC8032]],
Expand Down Expand Up @@ -2760,6 +2773,19 @@ <h4>Operations</h4>
then [= exception/throw =] an {{OperationError}}.
</p>
</li>
<li>
<p>
If the key data of |key| represents an invalid point or a small-order element
on the Elliptic Curve of Ed448, [= exception/throw =] an {{OperationError}}.
</p>
</li>
<li>
<p>
If the point R, encoded in the first half of |signature|,
represents an invalid point or a small-order element
on the Elliptic Curve of Ed448, [= exception/throw =] an {{OperationError}}.
</p>
</li>
<li>
<p>
Perform the Ed448 verification steps, as specified in [[RFC8032]],
Expand Down

0 comments on commit 83a62ca

Please sign in to comment.