blob: 12df9c6b6a2afbe7f91ee5b1f3ec4c3ade36daea [file] [log] [blame]
// Copyright 2025 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package runtime
import _ "unsafe"
//go:linkname fips140_setBypass crypto/fips140.setBypass
func fips140_setBypass() {
getg().fipsOnlyBypass = true
}
//go:linkname fips140_unsetBypass crypto/fips140.unsetBypass
func fips140_unsetBypass() {
getg().fipsOnlyBypass = false
}
//go:linkname fips140_isBypassed crypto/fips140.isBypassed
func fips140_isBypassed() bool {
return getg().fipsOnlyBypass
}