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)) + } }