Skip to content

Stop using deprecated EC functions for ECDSA #58

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

Merged
merged 3 commits into from
May 8, 2023

Conversation

ueno
Copy link
Collaborator

@ueno ueno commented Apr 10, 2023

This removes the usage of EC_KEY_* functions for cryptographic operations mainly to enforce FIPS restrictions; for accessors, some of them are still used. The first two commits are from #57.

@ueno ueno marked this pull request as ready for review April 10, 2023 05:05
@ueno ueno requested review from derekparker and simo5 April 10, 2023 05:05
@ueno ueno requested a review from dbenoit17 April 12, 2023 07:39
Copy link
Contributor

@derekparker derekparker left a comment

Choose a reason for hiding this comment

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

LGTM

ueno added 3 commits May 8, 2023 12:11
For creating and verifying ECDSA signatures in a pre-hashed manner, we
used the legacy ECDSA_sign and ECDSA_verify functions, which bypass
the system-wide restriction on ECDSA.

This switches to using our _goboringcrypto_EVP_{sign,verify}_raw,
which internally use EVP_PKEY_ functions.

Signed-off-by: Daiki Ueno <[email protected]>
@ueno ueno merged commit 8caa99e into golang-fips:master May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants