mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-07 04:23:41 +00:00
internal, runtime: add internal fips bool
This commit is contained in:
@@ -67,3 +67,18 @@ func fips_setIndicator(indicator uint8) {
|
||||
// This indicator is stored per goroutine.
|
||||
task.Current().FipsIndicator = indicator
|
||||
}
|
||||
|
||||
//go:linkname fips140_setBypass crypto/fips140.setBypass
|
||||
func fips140_setBypass() {
|
||||
task.Current().FipsOnlyBypass = true
|
||||
}
|
||||
|
||||
//go:linkname fips140_unsetBypass crypto/fips140.unsetBypass
|
||||
func fips140_unsetBypass() {
|
||||
task.Current().FipsOnlyBypass = false
|
||||
}
|
||||
|
||||
//go:linkname fips140_isBypassed crypto/fips140.isBypassed
|
||||
func fips140_isBypassed() bool {
|
||||
return task.Current().FipsOnlyBypass
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user