From f505d6c581b633db5ca400a593ffd98d7e2c6cc9 Mon Sep 17 00:00:00 2001 From: Filippo Valsorda Date: Fri, 18 Oct 2024 18:54:45 +0200 Subject: crypto/internal/fips: add self-test mechanism Updates #69536 Change-Id: Ib68b0e7058221a89908fd47f255f0a983883bee8 Reviewed-on: https://go-review.googlesource.com/c/go/+/621075 Reviewed-by: Daniel McCarney Auto-Submit: Filippo Valsorda LUCI-TryBot-Result: Go LUCI Reviewed-by: Roland Shoemaker Reviewed-by: Carlos Amedee --- src/runtime/panic.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/runtime/panic.go') diff --git a/src/runtime/panic.go b/src/runtime/panic.go index a10d1dc959..f97f1c6a66 100644 --- a/src/runtime/panic.go +++ b/src/runtime/panic.go @@ -1038,6 +1038,11 @@ func rand_fatal(s string) { fatal(s) } +//go:linkname fips_fatal crypto/internal/fips.fatal +func fips_fatal(s string) { + fatal(s) +} + // throw triggers a fatal error that dumps a stack trace and exits. // // throw should be used for runtime-internal fatal errors where Go itself, -- cgit v1.3