]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/tls: document FIPS 140-3 mode behavior
authorFilippo Valsorda <filippo@golang.org>
Thu, 6 Feb 2025 10:34:20 +0000 (11:34 +0100)
committerGopher Robot <gobot@golang.org>
Wed, 12 Feb 2025 22:52:40 +0000 (14:52 -0800)
Change-Id: I6a6a465612cf76d148b9758ee3fcdc8606497830
Reviewed-on: https://go-review.googlesource.com/c/go/+/648835
Reviewed-by: Daniel McCarney <daniel@binaryparadox.net>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/crypto/tls/tls.go

index f3089f0ed68ddaa8867a0e83eb98465ad2d9de39..c64201abc1f406fef5d12ef7572c5a661151069c 100644 (file)
@@ -4,6 +4,15 @@
 
 // Package tls partially implements TLS 1.2, as specified in RFC 5246,
 // and TLS 1.3, as specified in RFC 8446.
+//
+// # FIPS 140-3 mode
+//
+// When the program is in [FIPS 140-3 mode], this package behaves as if
+// only protocol versions, cipher suites, signature algorithms, and
+// key exchange algorithms approved by NIST SP 800-52r2 are implemented.
+// Others are silently ignored and not negotiated.
+//
+// [FIPS 140-3 mode]: https://go.dev/doc/security/fips140
 package tls
 
 // BUG(agl): The crypto/tls package only implements some countermeasures