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

Backport math/big prime generation algorithm from Go 1.18 #59

Merged
merged 2 commits into from
Sep 2, 2022

Conversation

ignatk
Copy link
Contributor

@ignatk ignatk commented Sep 2, 2022

In Go >= 1.19 the algorithm was changed as well as explicit randomization was added. While we could mitigate the explicit randomization with maybeNotReader, the algorithm itself breaks backwards compatibility.

Import the old algorithm into gokey instead.

Fixes #58

In Go >= 1.19 the algorithm was changed as well as explicit
randomization was added. While we could mitigate the explicit
randomization with maybeNotReader, the algorithm itself breaks backwards
compatibility.

Import the old algorithm into gokey instead.
This test was added to more easily track, when stdlib crypto/rsa
algorithm changes. This now happened in Go >= 1.19 (due to changes in
the math/big prime generation algorithm) and the test is correctly
failing.

Remove the test, so it does not confuse contributors anymore.
@ignatk ignatk merged commit 3875268 into cloudflare:main Sep 2, 2022
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.

Tests fail with go1.19
1 participant