From d0485e15318ada87f0eb99829fd91276e8a14ba3 Mon Sep 17 00:00:00 2001 From: JohnE Date: Mon, 16 Nov 2026 21:33:40 -0500 Subject: [PATCH] awslc: say what FIPS mode does and does not claim Refs: D-47 --- crates/ccc-crypto-awslc/src/fips.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/ccc-crypto-awslc/src/fips.rs b/crates/ccc-crypto-awslc/src/fips.rs index a62d9f8..b320de9 100644 --- a/crates/ccc-crypto-awslc/src/fips.rs +++ b/crates/ccc-crypto-awslc/src/fips.rs @@ -3,6 +3,12 @@ //! Only a build with the `fips` feature links AWS-LC-FIPS; every other build //! reports `false` without asking the library, so an open-source AWS-LC can //! never claim FIPS mode. +//! +//! "FIPS mode" means the validated module's code is running with its +//! self-tests passed. It does not say the platform is one of the certificate's +//! operating environments, nor that every service is approved: AES-GCM +//! encryption with a caller-supplied IV is not (design D-47). Those claims are +//! made per platform in the release documentation, not by this flag. /// `Some(Ok(()))` when built with `fips` and AWS-LC reports FIPS mode, /// `Some(Err(reason))` when built with `fips` but the module is not in FIPS