github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/crypto/tls/fipsonly/fipsonly.go (about)

     1  // Copyright 2017 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build boringcrypto
     6  
     7  // Package fipsonly restricts all TLS configuration to FIPS-approved settings.
     8  //
     9  // The effect is triggered by importing the package anywhere in a program, as in:
    10  //
    11  //	import _ "crypto/tls/fipsonly"
    12  //
    13  // This package only exists when using Go compiled with GOEXPERIMENT=boringcrypto.
    14  package fipsonly