Skip to content

Commit fc0049f

Browse files
FiloSottilegopherbot
authored andcommitted
crypto/tls: document FIPS 140-3 mode behavior
Change-Id: I6a6a465612cf76d148b9758ee3fcdc8606497830 Reviewed-on: https://go-review.googlesource.com/c/go/+/648835 Reviewed-by: Daniel McCarney <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Filippo Valsorda <[email protected]> Reviewed-by: Roland Shoemaker <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 6519aa9 commit fc0049f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/crypto/tls/tls.go

+9
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44

55
// Package tls partially implements TLS 1.2, as specified in RFC 5246,
66
// and TLS 1.3, as specified in RFC 8446.
7+
//
8+
// # FIPS 140-3 mode
9+
//
10+
// When the program is in [FIPS 140-3 mode], this package behaves as if
11+
// only protocol versions, cipher suites, signature algorithms, and
12+
// key exchange algorithms approved by NIST SP 800-52r2 are implemented.
13+
// Others are silently ignored and not negotiated.
14+
//
15+
// [FIPS 140-3 mode]: https://go.dev/doc/security/fips140
716
package tls
817

918
// BUG(agl): The crypto/tls package only implements some countermeasures

0 commit comments

Comments
 (0)