pub fn install_fips_crypto_provider() -> Result<(), CoolError>Expand description
Crypto provider selection — banks running on FIPS-validated hardware
enable the crypto-aws-lc-rs feature. The function below surfaces an
error early when the feature is missing so the wrong build can’t slip
into a regulated production cluster.
Operational steps for a real FIPS deployment (out of scope for the framework itself):
- Build with
--features crypto-aws-lc-rs. - Use an
aws-lc-rs/rustlsbuild configured against the vendor’s FIPS-validatedlibcrypto. - Call
install_fips_crypto_providerfrom your service’smainbefore any TLS-using code runs. - Pin the binary’s
cargo auditreport and the validated module’s certificate id in your release process.