crypto.getFips()
在 OpenSSL 3 中,这会报告默认属性查询是否包含 fips=yes。它并不表明 FIPS 提供者已加载或验证。即使请求的加密实现无法获取,因为没有已加载的提供者提供 fips=yes 的匹配,也可能返回 1。详见 FIPS模式。
🌐 With OpenSSL 3, this reports whether the default property query includes
fips=yes. It does not establish that a FIPS provider is loaded or validated.
It can return 1 even when a requested cryptographic implementation cannot be
fetched because no loaded provider supplies a match for fips=yes. See FIPS
mode.