We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
go1.24-95b433e
go env
GOFIPS140='latest'
package main import ( "crypto/ecdsa" "crypto/elliptic" "crypto/rand" "fmt" ) func main() { _, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader) fmt.Println(err) }
gotip build -o bug main.go && GODEBUG=fips140=only ./bug
./bug
program exited with the following error:
crypto/ecdsa: only crypto/rand.Reader is allowed in FIPS 140-only mode
no error
The text was updated successfully, but these errors were encountered:
Related Issues
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
Sorry, something went wrong.
this if check is missing a !:
!
go/src/crypto/ecdsa/ecdsa.go
Line 186 in 95b433e
Thanks, looks like this was a mistake.
cc @FiloSottile
cc @golang/release since this should be fixed in the next RC.
Change https://go.dev/cl/637455 mentions this issue: crypto/ecdsa: fix condition for FIPS check
crypto/ecdsa: fix condition for FIPS check
Ooops, sorry! I need to put together a proper test for fips140=only.
f4e3ec3
mauri870
Successfully merging a pull request may close this issue.
Go version
go1.24-95b433e
Output of
go env
in your module/workspace:GOFIPS140='latest'
What did you do?
gotip build -o bug main.go && GODEBUG=fips140=only ./bug
./bug
What did you see happen?
program exited with the following error:
What did you expect to see?
no error
The text was updated successfully, but these errors were encountered: