Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider signatures with invalid or small-order elements invalid #21

Merged
merged 1 commit into from
Jun 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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, return `false`.
</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, return `false`.
</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, return `false`.
</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, return `false`.
</p>
</li>
<li>
<p>
Perform the Ed448 verification steps, as specified in [[RFC8032]],
Expand Down