Navigation Menu

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

Fix ecdsa digest setting code to match dsa. #13520

Closed
wants to merge 3 commits into from

Conversation

slontis
Copy link
Member

@slontis slontis commented Nov 26, 2020

Fixes #13422

ecdsa_set_ctx_params() was not setting the digest correctly. The side
effect noted was that the check for sha1 when signing was not being
done.

Also fixed the dup() so that propq is deep copied.
The variable 'flag_allow_md' was also copied from the dsa code.

Checklist
  • documentation is added or updated
  • tests are added or updated

Fixes openssl#13422

ecdsa_set_ctx_params() was not setting the digest correctly. The side
effect noted was that the check for sha1 when signing was not being
done in fips mode.

Also fixed the dupctx() so that propq is deep copied.
The usage of the variable 'flag_allow_md' was also copied from the dsa code.
@slontis slontis added branch: master Merge to master branch approval: review pending This pull request needs review by a committer labels Nov 26, 2020
@slontis slontis added this to the 3.0.0 beta1 milestone Nov 26, 2020
@slontis slontis added the triaged: OTC evaluated This issue/pr was triaged by OTC label Dec 1, 2020
@paulnelsontx paulnelsontx added this to Triaged in 3.0.0 estimator Dec 1, 2020
@slontis
Copy link
Member Author

slontis commented Dec 2, 2020

ping

Copy link
Member

@mattcaswell mattcaswell left a comment

Choose a reason for hiding this comment

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

LGTM

@mattcaswell mattcaswell added approval: done This pull request has the required number of approvals and removed approval: review pending This pull request needs review by a committer labels Dec 2, 2020
@openssl-machine openssl-machine removed the approval: done This pull request has the required number of approvals label Dec 3, 2020
@openssl-machine
Copy link
Collaborator

This pull request is ready to merge

@openssl-machine openssl-machine added the approval: ready to merge The 24 hour grace period has passed, ready to merge label Dec 3, 2020
openssl-machine pushed a commit that referenced this pull request Dec 3, 2020
Fixes #13422

ecdsa_set_ctx_params() was not setting the digest correctly. The side
effect noted was that the check for sha1 when signing was not being
done in fips mode.

Also fixed the dupctx() so that propq is deep copied.
The usage of the variable 'flag_allow_md' was also copied from the dsa code.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from #13520)
openssl-machine pushed a commit that referenced this pull request Dec 3, 2020
Discovered when fixing up ecdsa code.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from #13520)
@slontis
Copy link
Member Author

slontis commented Dec 3, 2020

Thanks. Merged to master.

@slontis slontis closed this Dec 3, 2020
3.0.0 estimator automation moved this from Triaged to Done Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approval: ready to merge The 24 hour grace period has passed, ready to merge branch: master Merge to master branch triaged: OTC evaluated This issue/pr was triaged by OTC
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

EVP_PKEY_CTX_set_signature_md() behavior discrepency for ECDSA relative to DSA & RSA
3 participants