boring.mx raw

   1  // Copyright 2020 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 boring exposes functions that are only available when building with
   8  // Go+BoringCrypto. This package is available on all targets as long as the
   9  // Go+BoringCrypto toolchain is used. Use the Enabled function to determine
  10  // whether the BoringCrypto core is actually in use.
  11  //
  12  // Any time the Go+BoringCrypto toolchain is used, the "boringcrypto" build tag
  13  // is satisfied, so that applications can tag files that use this package.
  14  package boring
  15  
  16  import "crypto/internal/boring"
  17  
  18  // Enabled reports whether BoringCrypto handles supported crypto operations.
  19  func Enabled() bool {
  20  	return boring.Enabled
  21  }
  22