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

rsa: Allow omission of precomputed values in NewPrivateKeyRSA #136

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

ueno
Copy link
Collaborator

@ueno ueno commented Feb 13, 2024

OpenSSL 3.0 and 3.1 required precomputed values for CRT (Dp, Dq, and Qinv), when the primes (P and Q) are included in the params array.

Since all of them can be derived from N, E, and D, this patch simply stops passing those values if any of them are missing.

See also: openssl/openssl#22334

@ueno ueno requested review from derekparker and qmuntal February 13, 2024 07:20
rsa.go Show resolved Hide resolved
OpenSSL 3.0 and 3.1 required precomputed values for CRT (Dp, Dq, and
Qinv), when the primes (P and Q) are included in the params array.

Since all of them can be derived from N, E, and D, this patch simply
stops passing those values if any of them are missing.

See also: openssl/openssl#22334

Signed-off-by: Daiki Ueno <dueno@redhat.com>
@ueno ueno force-pushed the wip/rsa-omit-crt-params branch from a9c1bdf to e417598 Compare February 13, 2024 08:09
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

@derekparker derekparker merged commit 2f74c04 into golang-fips:v2 Feb 13, 2024
8 checks passed
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.

3 participants