fips140

原文:https://pkg.go.dev/crypto/fips140@go1.24.2

注意

​ 从go1.24.0开始才可以使用该包。

常量

This section is empty.

变量

This section is empty.

函数

func Enabled

1
func Enabled() bool

Enabled reports whether the cryptography libraries are operating in FIPS 140-3 mode.

It can be controlled at runtime using the GODEBUG setting “fips140”. If set to “on”, FIPS 140-3 mode is enabled. If set to “only”, non-approved cryptography functions will additionally return errors or panic.

This can’t be changed after the program has started.

类型

This section is empty.

最后修改 April 2, 2025: 更新 (adce14e7)