-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Improve ECDSA verify validation #6190
Improve ECDSA verify validation #6190
Conversation
2452be9
to
d01e730
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change of error code for a signature with r or s out of range has not been justified. And as I'd suspected, it's breaking the PSA interface.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code and tests look good to me, but the changelog entry needs to mention #4420.
Co-authored-by: Gilles Peskine <[email protected]> Signed-off-by: Dave Rodgman <[email protected]>
Signed-off-by: Dave Rodgman <[email protected]>
Signed-off-by: Dave Rodgman <[email protected]>
Signed-off-by: Dave Rodgman <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Ignoring Win2013 build failure - this seems like a general CI issue not specific to this PR |
Fixes #4420, Fixes https://github.com/Mbed-TLS/mbedtls-restricted/issues/962
Also corrects the documentation for the return code from
mbedtls_ecdsa_verify()
for an invalid signature to align with actual behaviour.Backport in #6191