Skip to content

Disallow Ed25519 signature maleability - #7697

Closed
mattcaswell wants to merge 2 commits into
openssl:masterfrom
mattcaswell:ed25519-maleability
Closed

mattcaswell wants to merge 2 commits into
openssl:masterfrom
mattcaswell:ed25519-maleability

Conversation

@mattcaswell

Copy link
Copy Markdown
Member

Check that s is less than the order before attempting to verify the signature as per RFC8032 5.1.7

Fixes #7693

Check that s is less than the order before attempting to verify the
signature as per RFC8032 5.1.7

Fixes openssl#7693
@mattcaswell mattcaswell added branch: master Applies to master branch branch: 1.1.1 Applies to OpenSSL_1_1_1-stable branch (EOL) labels Nov 23, 2018
@mattcaswell

Copy link
Copy Markdown
Member Author

While fixing this I noticed issue #7698. I didn't attempt to fix that as part of this. I just followed the coding style that was there.

@paulidale paulidale left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are some additional test cases to exercise the various failure paths: non-zero bytes when comparing against allzeros, exercising both if statements in the loop worthwhile?

Approved without, its just a thought.

@paulidale paulidale added the approval: done This pull request has the required number of approvals label Nov 27, 2018
@mattcaswell

Copy link
Copy Markdown
Member Author

Are some additional test cases to exercise the various failure paths: non-zero bytes when comparing against allzeros, exercising both if statements in the loop worthwhile?

Not sure how to generate test cases for these

levitte pushed a commit that referenced this pull request Dec 3, 2018
Check that s is less than the order before attempting to verify the
signature as per RFC8032 5.1.7

Fixes #7693

Reviewed-by: Paul Dale <[email protected]>
(Merged from #7697)

(cherry picked from commit 0ac8f35)
levitte pushed a commit that referenced this pull request Dec 3, 2018
Reviewed-by: Paul Dale <[email protected]>
(Merged from #7697)

(cherry picked from commit e65a79d)
@mattcaswell

Copy link
Copy Markdown
Member Author

Pushed. Thanks.

@mattcaswell mattcaswell closed this Dec 3, 2018
levitte pushed a commit that referenced this pull request Dec 3, 2018
Check that s is less than the order before attempting to verify the
signature as per RFC8032 5.1.7

Fixes #7693

Reviewed-by: Paul Dale <[email protected]>
(Merged from #7697)
levitte pushed a commit that referenced this pull request Dec 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approval: done This pull request has the required number of approvals branch: master Applies to master branch branch: 1.1.1 Applies to OpenSSL_1_1_1-stable branch (EOL)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants