mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-07 20:43:40 +00:00
runtime: add FIPS helper functions
Not entirely sure what they're for, but the Go runtime also stores this information per goroutine so let's go with that.
This commit is contained in:
committed by
Ron Evans
parent
a1be8cd9fe
commit
07c7eff3c3
@@ -226,3 +226,8 @@ func divideByZeroPanic() {
|
||||
func blockingPanic() {
|
||||
runtimePanicAt(returnAddress(0), "trying to do blocking operation in exported function")
|
||||
}
|
||||
|
||||
//go:linkname fips_fatal crypto/internal/fips140.fatal
|
||||
func fips_fatal(msg string) {
|
||||
runtimePanic(msg)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user