x/crypto: 4 tests will run into https://pkg.go.dev/crypto/[email protected]#hdr-Minimum_key_size #71612
Labels
FixPending
Issues that have a fix which has not yet been reviewed or submitted.
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
Go 1.24 makes a change to crypto/rsa.GenerateKey that makes it return an error if a key of less than 1024 bits is requested, also adding a GODEBUG rsa1024min for it. See https://go.dev/doc/go1.24#cryptorsapkgcryptorsa.
When x/crypto's go.mod is updated to Go language 1.24 or newer (which will happen this August based on https://go.dev/s/release#timeline and https://go.dev/design/69095-x-repo-continuous-go#why-1_n_1_0), there are 4 tests in x/crypto that will begin to fail:
This is being reported early thanks to a -tiplang builder (see https://ci.chromium.org/ui/p/golang/builders/ci/x_crypto-gotip-linux-amd64-tiplang). It's not causing a problem today since x/crypto/go.mod's go directive is at 1.20, but does need to be fixed at some point, and this is the tracking issue for that.
CC @golang/security.
The text was updated successfully, but these errors were encountered: