Skip to content

Commit 0f7b760

Browse files
ianlancetaylorgopherbot
authored andcommitted
[release-branch.go1.24] doc/godebug: mention GODEBUG=fips140
For #71666 For #71745 Change-Id: Ice816cf2943c5b6660f05934b4c7ca38545714b0 Reviewed-on: https://go-review.googlesource.com/c/go/+/648520 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Roland Shoemaker <roland@golang.org> Reviewed-by: Filippo Valsorda <filippo@golang.org> Commit-Queue: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> (cherry picked from commit 5f65e5c) Reviewed-on: https://go-review.googlesource.com/c/go/+/650596 Reviewed-by: Michael Knyszek <mknyszek@google.com>
1 parent eb58df7 commit 0f7b760

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/godebug.md

+11
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,17 @@ and the [go command documentation](/cmd/go#hdr-Build_and_test_caching).
153153

154154
### Go 1.24
155155

156+
Go 1.24 added a new `fips140` setting that controls whether the Go
157+
Cryptographic Module operates in FIPS 140-3 mode.
158+
The possible values are:
159+
- "off": no special support for FIPS 140-3 mode. This is the default.
160+
- "on": the Go Cryptographic Module operates in FIPS 140-3 mode.
161+
- "only": like "on", but cryptographic algorithms not approved by
162+
FIPS 140-3 return an error or panic.
163+
For more information, see [FIPS 140-3 Compliance](/doc/security/fips140).
164+
This setting is fixed at program startup time, and can't be modified
165+
by changing the `GODEBUG` environment variable after the program starts.
166+
156167
Go 1.24 changed the global [`math/rand.Seed`](/pkg/math/rand/#Seed) to be a
157168
no-op. This behavior is controlled by the `randseednop` setting.
158169
For Go 1.24 it defaults to `randseednop=1`.

0 commit comments

Comments
 (0)