From bc8328db34288822afdfd317394ac151154f2e91 Mon Sep 17 00:00:00 2001 From: sebastian-carpenter Date: Tue, 28 Jul 2026 15:54:27 -0600 Subject: [PATCH] modify fips init to run all casts --- fips.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fips.go b/fips.go index 82705de..dcb6a5b 100644 --- a/fips.go +++ b/fips.go @@ -94,4 +94,8 @@ func init() { } Wc_SetDefaultFips_Cb() Wc_SetDefaultSeed_Cb() + + if ret := Wc_RunAllCast_fips(); ret != 0 && ret != -174 { + panic(fmt.Sprintf("wolfSSL: wc_RunAllCast_fips failed: %d CAST(s) failed", ret)) + } }