Random Number Generation and PQC Entropy: Status and Limits
This page covers every random byte the server produces, then post-quantum (PQC) entropy specifically:
- What
KmsRngis and What usesKmsRng: the single random number generator behind keys, nonces/IVs, serials and secret tokens, for all algorithms. - From How PQC key generation uses
KmsRngonwards: how ML-KEM, ML-DSA, SLH-DSA and hybrid KEM key generation draw entropy, and what NIST Entropy Source Validation (ESV) would require.
This page describes how Eviden KMS sources randomness today. It does not claim that Eviden KMS holds
a NIST Entropy Source Validation (ESV) certificate, or that post-quantum (PQC) key generation meets
NIST SP 800-90B/C or FIPS 140-3 entropy requirements. While ML-KEM and ML-DSA now draw seeds from KmsRng,
KmsRng itself is backed by OpenSSL's operating-system-seeded DRBG without an ESV certificate. Furthermore,
SLH-DSA and hybrid KEM do not draw seeds from KmsRng (see How PQC key generation uses KmsRng and Why hybrid KEM cannot benefit from KmsRng PQC ESV properties).
Summary
| Question | Answer |
|---|---|
| Is there a single RNG abstraction in the server? | Yes for key material, nonces/IVs and secret tokens: KmsRng. KmsRng::new() is free (zero-sized), so the server shares one instance while the CLI, database layer and PKCS#11 module construct it locally. Documented exceptions (OpenSSL-internal keygen, the SCEP CMS content key/IV drawn inside OpenSSL, Covercrypt, uuid::Uuid::new_v4 identifiers) are listed in Random generators outside KmsRng; a workspace clippy.toml bans every other entropy source |
What does KmsRng use underneath? | OpenSSL's DRBG hierarchy through RAND_priv_bytes_ex (values that stay secret) and RAND_bytes_ex (values that leave the server in clear), each requesting 256-bit security strength; no lock, no state of its own |
Do ML-KEM and ML-DSA key generation use KmsRng? | Yes. When rng is provided, 64-byte (ML-KEM) and 32-byte (ML-DSA) seeds are drawn from KmsRng and injected into OpenSSL |
Do SLH-DSA and hybrid KEM key generation use KmsRng? | No. SLH-DSA seed parameter is testing-only in OpenSSL; hybrid KEM composite keygen does not expose a seed parameter |
| Is the entropy source ESV-validated? | Not claimed. Entropy comes from the operating system through OpenSSL, and no ESV certificate is referenced |
| Is PQC key generation routed to a FIPS provider? | Yes in FIPS builds: the process-wide default properties are fips=yes, so ML-KEM, ML-DSA, SLH-DSA and X25519MLKEM768 are served by the FIPS provider. X448MLKEM1024 and ConfigurableKEM are available in non-FIPS builds only |
| Can a customer-supplied OpenSSL build satisfy ESV/FIPS 140-3 for PQC today? | Only in part. The CMVP-validated OpenSSL FIPS Provider 3.5.9 (Certificate #5586, FIPS 140-3) lists ML-KEM, ML-DSA and SLH-DSA, but it takes its entropy from outside the module (no ESV is referenced). FIPS builds of Eviden KMS route PQC to it through the process-wide fips=yes default properties |
| Can upgrading the vendored OpenSSL version alone close the gap? | No. FIPS/ESV certification is bound to one exact validated build via a CMVP certificate number; newer source code (for example the 3.6.5 main library) is never itself validated |
| Does a FIPS-140-3-validated OpenSSL version automatically mean its entropy source is ESV-certified? | No. FIPS 140-3 module validation and Entropy Source Validation (ESV) are independent CMVP programs; OpenSSL's FIPS provider places the entropy source outside its module boundary regardless of version |
| What is the governing NIST standard for KEM (ML-KEM / hybrid-KEM) entropy specifically? | NIST SP 800-227 (Sept 2025): RS4 requires SP 800-90A/B/C-approved random bits; RS2 requires following FIPS 140-3 guidance. Neither is met — see What SP 800-227 requires that is not implemented in source code |
Background
NIST's most specific and current entropy-compliance reference for PQC key establishment is NIST SP 800-227, Recommendations for Key-Encapsulation Mechanisms (September 2025), which applies to ML-KEM and any KEM, including the hybrid KEMs used here. Its Section 1.3 lists five CMVP-testable shall requirements (RS1–RS5); three bear directly on entropy and FIPS compliance:
- RS2 (§3.1): "KEM implementations shall follow the guidelines given in FIPS 140-3 and associated implementation guidance."
- RS4 (§3.1): "Random bits shall be generated using approved techniques, as described in the latest revisions of SP 800-90A, SP 800-90B, and SP 800-90C."
- RS5 (§3.2): "Except for random seeds and data that can be easily computed from public information, all intermediate values used in any given KEM algorithm (i.e., KeyGen, Encaps, and Decaps) shall be destroyed before the algorithm terminates."
SP 800-227 does not cover ML-DSA or SLH-DSA — those are digital signature schemes (FIPS 204, FIPS 205), not KEMs; their key-generation entropy remains governed by the general SP 800-133r2 and FIPS 140-3 IG D.H–D.K guidance listed below. CMVP's companion testing guidance for KEMs is FIPS 140-3 Implementation Guidance Annex D.S, "Key Encapsulation Mechanisms" (see References). See What SP 800-227 requires that is not implemented in source code for the concrete gap analysis.
The broader standards landscape:
| Standard | Scope |
|---|---|
| NIST SP 800-227 | Recommendations for Key-Encapsulation Mechanisms — ML-KEM and hybrid-KEM entropy/FIPS requirements |
| NIST SP 800-90A | Deterministic random bit generators (DRBG) |
| NIST SP 800-90B | Entropy source testing and validation |
| NIST SP 800-90C | RBG constructions |
| NIST SP 800-133r2 | Cryptographic key generation (§4: keys come from an approved RBG instantiated at a sufficient security strength) |
| FIPS 140-3 Implementation Guidance | Entropy source requirements for modules (Annex D.S covers KEMs specifically) |
The algorithms concerned are ML-KEM (FIPS 203), ML-DSA (FIPS 204), SLH-DSA (FIPS 205) and the hybrid KEMs X25519-ML-KEM-768 and X448-ML-KEM-1024.
What KmsRng is
KmsRng (crate/crypto/src/crypto/rng/mod.rs) is a zero-sized, stateless, thread-safe wrapper around
OpenSSL's DRBG hierarchy (AES-256 CTR-DRBG). The server shares one Arc<KmsRng> (KMS.rng); other
crates construct KmsRng::new() locally at no cost.
| Method | OpenSSL call | DRBG | Use for | Notes |
|---|---|---|---|---|
fill_bytes, random_vec | RAND_priv_bytes_ex(…, 256) | Private | Values that stay secret: keys, seeds, KEKs, split-key shares, tokens | random_vec returns a Zeroizing<Vec<u8>> |
fill_public_bytes | RAND_bytes_ex(…, 256) | Public | Values that leave the server in clear: nonces, IVs, certificate serials, KMIP RNGRetrieve, PKCS#11 C_GenerateRandom | Private-DRBG output is never observable. OpenSSL keeps the two instances apart so that a compromise of the public one does not affect the secrecy of private values (RAND_bytes(3)); defence in depth, since CTR-DRBG output does not reveal its state |
seeded_csrng | RAND_priv_bytes_ex(…, 256) for a 32-byte seed | Private (seed only) | Third-party APIs that need an infallible rand_core RNG: OpenPGP (pgp crate), ECIES SalsaSealBox, test fixtures | ChaCha12 stream bounded by the 256-bit seed. Its state equals the seed, so it is overwritten when dropped |
reseed | RAND_add(seed, len, 0.0) | Primary | KMIP RNGSeed | Additional input of an immediate reseed from the operating system (crypto/rand/rand_meth.c); per SP 800-90A r1 §8.7.2 it cannot lower the DRBG's security strength and is credited with zero bits of entropy. RAND_add returns void: a failed reseed is not reported to the caller, but a DRBG whose entropy source fails refuses later generate calls. Cost about 0.6 µs, plus about 3 µs on the next generate call (FIPS build, Apple M-series), so RNGSeed has no rate limit of its own |
Every generate call requests 256 bits of security strength (SP 800-133r2 §4; SP 800-90A r1 §9.3.1 makes the DRBG return an error if it cannot provide it), so a weaker DRBG fails closed instead of silently serving lower-strength bits.
Which provider serves the DRBG
KmsRng claims nothing about FIPS unless the DRBG is actually served by the FIPS provider. A FIPS-mode
build's generated openssl.cnf previously activated the default provider next to fips
([default_sect] activate = 1), and the DRBG behind RAND_bytes was then the default provider's, not the
validated module's. crate/crypto/build.rs no longer activates it, and the integration test
crate/crypto/tests/fips_rng_provider.rs asserts that the primary, public and private DRBGs report provider
fips with strength ≥ 256. The Nix build's openssl.cnf (nix/openssl.nix) configures only fips and base; this
was not re-verified at run time here.
Random generators outside KmsRng
KmsRng is the sole production path for key material, nonces/IVs and secret tokens, except for the
documented exceptions below. Third-party APIs that
demand an infallible rand_core generator (OpenPGP through the pgp crate, ECIES SalsaSealBox through
cosmian_crypto_core) are fed by a ChaCha12 stream seeded with 256 bits drawn from KmsRng
(KmsRng::seeded_csrng); the workspace clippy.toml bans every other entropy source that workspace code can
call directly (OpenSSL rand_bytes, BigNum random generation, rand::rng, thread_rng, OsRng, getrandom,
from_entropy, ...) without any inline exception, test fixtures included. Clippy cannot see the draws a
dependency makes internally; those are the exceptions below.
Documented exceptions:
- RSA / EC / EdDSA key generation, SLH-DSA and hybrid KEM composite keygen: OpenSSL generates these
atomically from its own default DRBG (the same hierarchy
KmsRngcalls into, served by the FIPS provider in FIPS builds; asserted bycrate/crypto/tests/fips_rng_provider.rs). - Covercrypt:
Covercrypt::setup()incosmian_cover_crypt16.0.0 locks an internalrngfield and has no constructor parameter or setter that accepts an external RNG (verified in the vendored source,src/abe/api.rs). It is the same category as hybrid-KEM composite keygen. - SCEP CMS envelope content key and IV:
CmsContentInfo::encrypt(crypto/src/openssl/scep_cms.rs) lets OpenSSL draw the AES content-encryption key (RAND_priv_bytes_ex) and IV (RAND_bytes_ex) itself, from the same DRBG hierarchy but at requested strength 0, so it does not fail closed on a DRBG weaker than 256 bits.CMS_encryptexposes no way to supply the key or IV. uuid::Uuid::new_v4identifiers (object unique identifiers, enrollment request IDs):uuiddraws from the operating system throughgetrandom, bypassing OpenSSL. They are identifiers, not secrets.- PKCS#11
C_GenerateRandomon the server (KMIPPKCS11operation passthrough) is not implemented and returnsCKR_FUNCTION_NOT_SUPPORTED: it fails closed.
What uses KmsRng
| Consumer | Location |
|---|---|
| Symmetric key generation | core/kms/other_kms_methods.rs |
SecretData seed generation | core/kms/other_kms_methods.rs |
Symmetric nonces/IVs and keys (random_nonce, random_key) | crypto/symmetric/symmetric_ciphers.rs; core/operations/encrypt.rs; CLI actions/symmetric/ |
Key wrapping (AES-GCM nonce, CKM_RSA_AES_KEY_WRAP KEK, ECIES) | crypto/wrap/wrap_key.rs, crypto/rsa/ckm_rsa_aes_key_wrap.rs, crypto/elliptic_curves/ecies/ |
| Certificate serial numbers | core/operations/certify/build_certificate.rs |
| Split keys | core/operations/create_split_key.rs, crypto/split_key/mod.rs |
OpenPGP key generation, encryption, signing (seed of the pgp PRG) | crypto/openpgp/mod.rs |
| JOSE CEK/IV; AWS XKS IV | routes/jose/, routes/aws_xks/encrypt_decrypt/encrypt_.rs |
| UI login PKCE verifier, CSRF token, nonce; ephemeral session cookie key | routes/ui_auth.rs, start_kms_server.rs |
UI session cookie AES-256-GCM IV (generated inside the OpenSSL provider by aes_gcm_encrypt_generated_iv, not by KmsRng) | middlewares/ui_session.rs |
| Redis object nonces; ceremony-record nonces | server_database/src/stores/redis/objects_db.rs, server_database/src/ceremony_keys.rs |
PKCS#11 C_GenerateRandom, provider-generated symmetric key bytes | clients/pkcs11/module (Backend::generate_random), clients/pkcs11/provider |
KMIP RNGRetrieve | core/operations/rng_retrieve.rs |
KMIP RNGSeed | core/operations/rng_seed.rs (calls reseed) |
| HSM-session AES-GCM nonces and AES-CBC IVs | hsm/base_hsm/src/session/session_impl.rs |
How PQC key generation uses KmsRng
PQC key generation functions accept an optional &KmsRng (create_ml_kem_key_pair, create_ml_dsa_key_pair,
create_slh_dsa_key_pair, create_hybrid_kem_key_pair), and the server passes kms.rng from CreateKeyPair,
key-pair rekeying, and certificate generation:
- ML-KEM (FIPS 203): When
rngis provided, a 64-byte seed ($d, z$) is drawn viagenerate_pqc_seed(rng, 64)and injected into OpenSSL'sEVP_PKEY_CTXvia the"seed"parameter (OSSL_PKEY_PARAM_ML_KEM_SEED). OpenSSL generates the key pair deterministically from this seed per FIPS 203 §7.1. - ML-DSA (FIPS 204): When
rngis provided, a 32-byte seed ($\xi$) is drawn viagenerate_pqc_seed(rng, 32)and injected into OpenSSL'sEVP_PKEY_CTXvia the"seed"parameter (OSSL_PKEY_PARAM_ML_DSA_SEED). OpenSSL generates the key pair deterministically from this seed per FIPS 204 §6.1. - SLH-DSA (FIPS 205): OpenSSL's SLH-DSA implementation supports a
"seed"parameter, but its man pageEVP_PKEY-SLH-DSA(7)explicitly states that this parameter is strictly for testing and CAVP/KAT validation. Consequently, production SLH-DSA keys are generated unseeded viaEVP_PKEY_Q_keygen, drawing directly from OpenSSL's DRBG. - Hybrid KEM: Neither X25519-ML-KEM-768 nor X448-ML-KEM-1024 accepts a seed parameter (see details below).
Why hybrid KEM cannot benefit from KmsRng PQC ESV properties
OpenSSL 3.6.5 implements hybrid KEMs (X25519MLKEM768 and X448MLKEM1024) via composite key management in
providers/implementations/keymgmt/mlx_kmgmt.c.
A hybrid KEM key consists of two sub-keys:
- A classical curve key (X25519 or X448).
- An ML-KEM key (ML-KEM-768 or ML-KEM-1024).
In mlx_kmgmt.c, the parameter list for key generation (mlx_gen_set_params_list) only accepts property queries:
static const OSSL_PARAM mlx_gen_set_params_list[] = {
OSSL_PARAM_utf8_string(OSSL_PKEY_PARAM_PROPERTIES, NULL, 0),
OSSL_PARAM_END
};
Unlike pure ML-KEM (ml_kem_kmgmt.c) and pure ML-DSA (ml_dsa_kmgmt.c), mlx_kmgmt.c has no "seed" parameter decoder or implementation.
During hybrid key generation (mlx_kem_gen), OpenSSL creates both the classical and post-quantum component keys atomically in one operation,
drawing entropy entirely from its internal default DRBG.
Because OpenSSL exposes no API to inject an external seed into composite key generation:
- Hybrid KEMs cannot draw seed entropy from
KmsRng. - Even if
KmsRngwere backed by an ESV-validated entropy source, hybrid KEM keys generated by OpenSSL 3.6 would not inherit those ESV properties. - Hybrid KEM key generation must rely strictly on OpenSSL's internal DRBG.
generate_pqc_seed (pqc/mod.rs) returns rng.random_vec(len) in a Zeroizing buffer, and is now directly called by pqc_keygen when generating ML-KEM and ML-DSA keys with a provided KmsRng.
What is not claimed
- An ESV certificate, or an SP 800-90B entropy assessment, for the entropy source.
- That
KmsRngconfers FIPS 140-3 validation or independent entropy guarantees beyond the underlying OS DRBG. - Conformance to FIPS 140-3 IG 9.3.A, D.J, D.K or D.O, or any other CMVP requirement.
- That SLH-DSA or hybrid KEM keys are seeded via
KmsRng.
Tests
The behaviour that exists today is covered by unit tests. They check that output is non-zero, that consecutive outputs differ, and that zeroizing buffers work. They do not demonstrate entropy quality.
cargo test -p cosmian_kms_crypto --lib --features non-fips rng
cargo test -p cosmian_kms_crypto --lib --features non-fips pqc
Work completed and remaining requirements
Completed in Eviden KMS
- Seed injection for ML-KEM and ML-DSA:
pqc_keygendraws 64 bytes (ML-KEM) or 32 bytes (ML-DSA) fromKmsRngand imports the key pair from that seed withEVP_PKEY_fromdata(the provider runs its pairwise consistency test on import). - Safe OpenSSL Migration (Issue #894): Replaced raw BIO serialization (
evp_pkey_to_pkcs8_der,evp_pkey_to_spki_der) and raw buffer extraction with safe nativeopenssl::pkey::PKeymethods.
Remaining to reach ESV / CMVP validation
- Entropy Source Validation (ESV): a NIST ESV certificate for the actual noise source on each deployment platform. This is always a separate, platform-specific submission — it is never satisfied by an OpenSSL version or build, because the OpenSSL FIPS provider's own Security Policy places the entropy source "outside the Module boundary" (see Path to NIST ESV / FIPS 140-3 entropy compliance below).
- A CMVP-validated, PQC-inclusive FIPS provider: exists. The FIPS build ships OpenSSL FIPS Provider 3.5.9 (NIST CMVP Certificate #5586, FIPS 140-3, validated November 2026), whose Approved Algorithms list ML-KEM (KeyGen, EncapDecap), ML-DSA and SLH-DSA (KeyGen, SigGen, SigVer). Earlier certificates (#4985, version 3.1.2) predate OpenSSL's PQC support. The module remains subject to its Security Policy (approved mode, operating environment) and to the caveat that it gives no assurance on the strength of generated keys.
- Callers that actually request the FIPS provider for PQC: done in FIPS builds.
pqc(crate/crypto/src/crypto/mod.rs) compiles in every build and the process-widefips=yesdefault properties route ML-KEM, ML-DSA, SLH-DSA and X25519MLKEM768 to the validated FIPS provider; X448MLKEM1024 is refused in FIPS builds. The ESV certificate (item 1) remains outstanding. - Upstream Hybrid KEM Seeding: contributing or awaiting OpenSSL support for composite keygen seeding if hybrid KEMs are ever to use external entropy sources.
Path to NIST ESV / FIPS 140-3 Entropy Compliance for PQC
The governing standard for KEM entropy: NIST SP 800-227
NIST SP 800-227, Recommendations for Key-Encapsulation Mechanisms (final, September 2025; PDF: https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-227.pdf) is the NIST publication written specifically to fill the compliance gap FIPS 203 itself flagged at publication: "NIST will specify both the particulars of the ML-KEM scheme and the general properties of KEMs in FIPS 203 and SP 800-227, respectively" (FIPS 203 Initial Public Draft). It is the authoritative, current reference for "PQC entropy compliance" as it applies to key establishment (ML-KEM and PQ/T hybrid KEMs).
Section 1.3 lists its full set of CMVP-testable requirements, verbatim:
- RS1 (§3.1): "KEM implementations shall comply with a specific NIST FIPS or SP that specifies the algorithms of the relevant KEM. For example, a conforming implementation of ML-KEM shall comply with FIPS 203."
- RS2 (§3.1): "KEM implementations shall follow the guidelines given in FIPS 140-3 and associated implementation guidance."
- RS3 (§3.1): "KEM implementations shall use approved components with security strengths that meet or exceed the required strength for each KEM parameter set."
- RS4 (§3.1): "Random bits shall be generated using approved techniques, as described in the latest revisions of SP 800-90A, SP 800-90B, and SP 800-90C."
- RS5 (§3.2): "Except for random seeds and data that can be easily computed from public information, all intermediate values used in any given KEM algorithm (i.e., KeyGen, Encaps, and Decaps) shall be destroyed before the algorithm terminates."
Scope: SP 800-227 covers KEMs only — ML-KEM and PQ/T hybrid KEMs (its §4.6, "Multi-Algorithm KEMs and PQ/T Hybrids," covers exactly the X25519-ML-KEM-768 / X448-ML-KEM-1024 construction used in this codebase). It does not cover ML-DSA or SLH-DSA, which are digital signature schemes, not KEMs.
CMVP's companion testing guidance is FIPS 140-3 Implementation Guidance Annex D, section D.S, "Key Encapsulation Mechanisms" (current IG, page 223 of https://csrc.nist.gov/CSRC/media/Projects/cryptographic-module-validation-program/documents/fips%20140-3/FIPS%20140-3%20IG.pdf), positioned in the same Annex D family as IG D.J "Entropy Estimation and Compliance with SP 800-90B" and IG D.K "Interpretation of SP 800-90B Requirements" (both already referenced above under What is not claimed). D.S is CMVP's KEM-specific testing annex; its detailed resolution text is not reproduced here.
What SP 800-227 requires that is not implemented in source code
Mapping each entropy/FIPS-relevant requirement to Eviden KMS's current code:
- RS2 — not demonstrated.
pqc(crate/crypto/src/crypto/mod.rs) compiles in every build and FIPS builds run ML-KEM, ML-DSA, SLH-DSA and X25519MLKEM768 on the FIPS provider, so RS2 can be attempted; no RS2 evidence is claimed. - RS4 — not met, two independent gaps:
KmsRng(crate/crypto/src/crypto/rng/mod.rs) draws from OpenSSL'sRAND_byteswith no SP 800-90B ESV-validated entropy source backing it (its own doc comment states this explicitly).- Library support exists; routed by process-wide properties.
pqc_keygenandpqc_keygen_raw(crate/crypto/src/crypto/pqc/mod.rs) accept an optional OpenSSL property query (e.g."fips=yes"). Every production caller passesNone; in a FIPS build the process-widefips=yesdefault properties (set byenforce_fips_provider_only) select the FIPS provider shipped by the build (3.5.9, #5586), which lists the PQC algorithms. The remaining gap is RS4-1 above, not the code path.
- RS5 — already met for Eviden's own code; not applicable beyond it.
generate_pqc_seed(crate/crypto/src/crypto/pqc/mod.rs) returns aZeroizing<Vec<u8>>, so the seed Eviden generates and hands to OpenSSL is destroyed on drop. The additional intermediate values RS5 covers (matrixA, NTT state, polynomial coefficients computed inside ML-KEMKeyGen/Encaps/Decaps) are produced and destroyed entirely inside OpenSSL's own implementation, outside Eviden's code; their RS5 compliance is a property of OpenSSL's own eventual CMVP submission, not something this codebase can satisfy or violate. - RS1, RS3 — already met as a byproduct of using OpenSSL's unmodified FIPS-203/204-conformant implementations with standard parameter sets; no code gap.
What should change in source code, concretely:
- Done in the library; not wired to callers.
pqc_keygenandpqc_keygen_raw(crate/crypto/src/crypto/pqc/mod.rs) take an optional OpenSSL property query (for example"fips=yes"). Seeded keygen no longer checks the provider'sfips-indicator: no production caller passes a query, and FIPS approval comes from the globalfips=yesdefault properties. This closes gap RS4-2 at library level; in FIPS builds the process-widefips=yesdefault properties route PQC to the validated provider (3.5.9, #5586). It does not by itself achieve RS4 compliance (the entropy-source half, RS4-1, remains unmet — see item 3). - Done. The
non-fipsgate onpub mod pqc;(crate/crypto/src/crypto/mod.rs) is removed: PQC key generation compiles in FIPS builds.X448MLKEM1024(not served by the FIPS provider) is refused there, andConfigurableKEMstays non-FIPS. - No source-code change can close RS4-1. An SP 800-90B-compliant entropy source is a CMVP-lab-tested property of specific deployment hardware/OS, obtained via the ESV submission process described in What an ESV certificate requires below — not a code change. State this explicitly rather than implying it is an engineering backlog item.
- No source-code change can close hybrid-KEM RS4 compliance. OpenSSL 3.6's
mlx_kmgmt.cexposes no seed-parameter decoder for composite keygen (documented in the existing Why hybrid KEM cannot benefit from KmsRng PQC ESV properties section of this page); this requires upstream OpenSSL work, already tracked as item 4 of "Remaining to reach ESV / CMVP validation."
What an ESV certificate requires
An Entropy Source Validation (ESV) certificate (NIST SP 800-90B) is issued by CMVP after an NVLAP-accredited Cryptographic and Security Testing Laboratory (CSTL) assesses the actual noise source — not the DRBG, and not OpenSSL — that feeds the FIPS module's random bit generator. Concretely, this requires:
- An entropy source description and a raw-noise-sample dataset (per SP 800-90B §3.1.3) submitted to a CSTL,
which runs the SP 800-90B min-entropy estimation suite (
ea_iid/ea_non_iid) and health tests. - CMVP issuance of an ESV certificate number for that specific noise source and conditioning component, on the specific hardware/OS platform tested.
- A FIPS 140-3 module Security Policy that references the ESV certificate number in its "Entropy Sources" table, establishing the chain from noise source to DRBG seed to Approved algorithm output.
Crucially, the OpenSSL FIPS Provider's own Security Policy places the entropy source outside the module
boundary: "The Module relies on the use of an [SP800-90B]-compliant entropy source outside the Module boundary. The
calling application is responsible for use of an [SP800-90B]-compliant entropy source with sufficient entropy
based on the required security strength. Entropy is supplied to the Module via callback functions..."
(OpenSSL FIPS Provider 3.5.9, FIPS 140-3 Non-Proprietary Security Policy of November 2026, NIST CMVP
Certificate #5586, §2.8 "RBG and Entropy"; the text of that policy contains no ESV certificate number. The
3.1.2 policy, Certificate #4985, is worded the same way). No OpenSSL version — vendored by Eviden, upgraded, or customer-supplied — carries an ESV
certificate of its own; the entropy source is always a separate, platform-specific validation tied to the
actual OS/hardware RNG that RAND_bytes draws from on the deployed machine.
Can a customer's own OpenSSL build close the gap?
Only under conditions none of which are met today, and only partially:
- Mechanically,
crate/crypto/build.rsalready supports substituting a pre-built OpenSSL: if theOPENSSL_DIRenvironment variable points at a directory containingssl/openssl.cnfandlib/ossl-modules, the build script skips compiling its own OpenSSL and links against that directory instead (crate/crypto/build.rs, theOPENSSL_DIRcheck). A customer could point this at their own OpenSSL installation. - However, swapping the OpenSSL build alone does not confer FIPS/ESV compliance unless all of the following
additionally hold, not all of which hold today:
- The customer's OpenSSL build must itself be an exact, unmodified copy of a CMVP-validated FIPS 140-3 module (matching the "Tested Module Identification" in a published Security Policy by name, version, and integrity-test digest). The CMVP-validated "OpenSSL FIPS Provider" modules found are version 3.5.9 (NIST CMVP Certificate #5586, Security Policy of November 2026), which includes ML-KEM, ML-DSA and SLH-DSA in its Approved Algorithms, and the older 3.1.2 (Certificate #4985), which predates PQC. A customer build of any other version (3.6.x, for example) is not validated.
- That validated module's own Security Policy must itself reference an ESV certificate for the entropy source on the customer's specific deployment hardware/OS (per the previous section, OpenSSL's own policy explicitly does not — this would have to be the customer's own, separate CMVP submission binding their specific hardware RNG).
- Eviden KMS's code must request the FIPS provider for PQC operations. In a FIPS build it does:
pqc(crate/crypto/src/crypto/mod.rs) compiles in every build, and the process-widefips=yesdefault properties (set byenforce_fips_provider_only) resolve ML-KEM, ML-DSA, SLH-DSA and X25519MLKEM768 to the FIPS provider.
- Vendors do take the OpenSSL FIPS provider source, patch/rebuild it, and submit it for their own CMVP
certificate under their own name (e.g., "Philips FIPS Provider based on the OpenSSL FIPS Provider",
CMVP Certificate #5224; a Progress Software "LoadMaster FIPS Object Module based on the OpenSSL FIPS
Provider" certificate) — this is an explicitly supported path per OpenSSL's own
README-FIPS.md("3rd-Party Vendor Builds"). A customer or Eviden could pursue the same path for a PQC-inclusive FIPS provider, but this is a multi-month CMVP submission process, not something achieved by merely "bringing a build." - Separately, at least one third party (wolfSSL's
wolfProvider) already holds FIPS 140-3 validated ML-KEM (FIPS 203) and ML-DSA (FIPS 204) implementations (wolfCrypt), usable as a drop-in OpenSSL provider. Using that provider instead of OpenSSL's own PQC implementation is a materially different integration (a new provider dependency, not an OpenSSL version/build swap) and is out of scope for this analysis.
Conclusion: a customer's own OpenSSL build cannot close the gap by itself. A PQC-inclusive validated
provider (a) exists (3.5.9, #5586), but (b) an ESV certificate for the customer's specific entropy source does
not come with it, and (c) Eviden KMS callers do not yet pass a fips=yes property query (the library-level
support exists, but no server code path or configuration supplies it, and pqc is not built in FIPS mode).
Can upgrading the vendored OpenSSL version alone close the gap?
No. Per OpenSSL's own README-FIPS.md: "A cryptographic module is only FIPS validated after it has gone
through the complex FIPS 140 validation process... it is not possible to validate every minor release of
OpenSSL, ... If you need a FIPS validated module then you must ONLY generate a FIPS provider using OpenSSL
versions that have valid FIPS certificates." The same document explicitly warns, using OpenSSL 3.6.0 as the
example: "Note that the OpenSSL 3.6.0 FIPS provider has not been validated so it must not be used for FIPS
purposes." FIPS/ESV certification is bound to one specific, tested binary via a CMVP certificate number
published in a Security Policy — never to "the latest source code." Bumping the main entry of
crate/crypto/openssl_versions.json (version and SHA-256) to a newer OpenSSL
release (even one whose source includes FIPS-indicator-tagged ML-KEM/ML-DSA/SLH-DSA, as OpenSSL 3.5+ does per
docs.openssl.org/3.5/man7/OSSL_PROVIDER-FIPS) does not grant FIPS validation or an ESV certificate. Only the
specific provider version that CMVP validated (3.5.9, Certificate #5586) may be used as the FIPS provider;
the 3.6.x main library is not validated and is never used as one.
Does FIPS validation of an OpenSSL version imply ESV-certified entropy?
No — this is a common but incorrect inference, and this page corrects it explicitly: FIPS 140-3 module validation and Entropy Source Validation (ESV) are two independent CMVP programs with separate certificate numbers. The FIPS 140-3 certificate of an OpenSSL FIPS provider release (3.5.9, which includes ML-KEM/ML-DSA/SLH-DSA) says nothing on its own about its entropy source's ESV status, because:
- Every OpenSSL FIPS Provider Security Policy examined (NIST CMVP Certificate #5586, version 3.5.9, and Certificate #4985, version 3.1.2) places the entropy source outside the module's cryptographic boundary: "The Module relies on the use of an [SP800-90B]-compliant entropy source outside the Module boundary. The calling application is responsible for use of an [SP800-90B]-compliant entropy source..." (§2.8 of both). This is an architectural property of how the OpenSSL FIPS provider is designed (entropy supplied via callback from the calling application), not something that changes when new algorithms (PQC or otherwise) are added to the Approved Algorithms table: the 3.5.9 policy, which adds PQC, keeps it.
- The default entropy source OpenSSL's FIPS provider is built against is
os(the operating system RNG) perREADME-FIPS.md, which is not itself ESV-certified by that validation. The only documented path to an ESV-referenced entropy claim is theenable-fips-jitterbuild option (OpenSSL ≥3.5), and even then only "unless an entropy assessment [ESV] and validation through the [CMVP] are additionally conducted" — i.e., a separate ESV submission specific to that jitter-entropy build, independent of the main FIPS 140-3 module validation. As of this research, no OpenSSL release — at any version — has a published Security Policy that references an ESV certificate.
Corrected assertion: an OpenSSL version becoming FIPS 140-3 validated (3.5.9 did) only establishes that its Approved Algorithms (including ML-KEM/ML-DSA/SLH-DSA) are CMVP-certified. It does not, by itself, establish an ESV-certified entropy source. Eviden KMS could only claim ESV-certified entropy for a given OpenSSL build if that build's own published FIPS 140-3 Security Policy explicitly names an ESV certificate number in its RBG/Entropy section — a fact that must be checked per-release, never assumed from the FIPS validation status or the version number alone.
Default build: FIPS provider pinned to OpenSSL 3.5.9
Independent of PQC, Eviden's default "FIPS mode" build (the non-fips Cargo feature absent) must load a FIPS
provider built from a version holding a CMVP certificate. The CMVP-validated OpenSSL FIPS Provider
certificates found are Certificate #5586 (version 3.5.9, Active, FIPS 140-3, validated November 2026),
Certificate #4985 (version 3.1.2, Active, FIPS 140-3) and Certificate #4282 (versions 3.0.8/3.0.9,
Historical, FIPS 140-2). None of them covers OpenSSL 3.6.5, and OpenSSL's own README-FIPS.md
states that a FIPS provider must ONLY be generated from a version holding a valid FIPS certificate.
crate/crypto/build.rs therefore builds two separate OpenSSL trees in FIPS mode:
- the main library, OpenSSL 3.6.5, configured without
enable-fips, which is what Eviden links against; - the FIPS provider, built from the validated OpenSSL 3.5.9 source (Certificate #5586; version and SHA-256
pinned in
crate/crypto/openssl_versions.json), whosefips.{so,dylib},openssl.cnfandfipsmodule.cnfare copied into the main prefix and loaded at runtime.
This matches the Nix build (nix/common.nix: "Always link against the main OpenSSL; the CMVP-validated FIPS
provider is loaded at runtime"). Building from the validated source is necessary but not sufficient for a validated
claim: the module must also be built and operated as the Security Policy describes (operating environment,
unmodified source, integrity check), which this page does not assert.
See also
References
- FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard
- FIPS 204: Module-Lattice-Based Digital Signature Standard
- FIPS 205: Stateless Hash-Based Digital Signature Standard
- NIST SP 800-90A, SP 800-90B, SP 800-90C: Random bit generation
- NIST SP 800-133r2: Recommendation for Cryptographic Key Generation
- OpenSSL
README-FIPS.md: https://github.com/openssl/openssl/blob/master/README-FIPS.md - NIST CMVP Certificate #5586 — OpenSSL FIPS Provider 3.5.9, FIPS 140-3 Non-Proprietary Security Policy (November 2026): https://csrc.nist.gov/CSRC/media/projects/cryptographic-module-validation-program/documents/security-policies/140sp5586.pdf
- NIST CMVP Certificate #4985 — OpenSSL FIPS Provider 3.1.2, FIPS 140-3 Non-Proprietary Security Policy (July 2025): https://csrc.nist.gov/CSRC/media/projects/cryptographic-module-validation-program/documents/security-policies/140sp4985.pdf
OSSL_PROVIDER-FIPS(OpenSSL 3.5 manual page): https://docs.openssl.org/3.5/man7/OSSL_PROVIDER-FIPS- NIST SP 800-227, Recommendations for Key-Encapsulation Mechanisms (September 2025): https://csrc.nist.gov/pubs/sp/800/227/final