3.9 PQC Libraries: Which One Implements ML-KEM
The map of who implements what, at which version, and how to find out which one your stack is actually calling.
Choosing a post-quantum library is rarely a choice. Most of the time the algorithms arrive with something you already depend on, and the real question is which layer of your stack decides what gets offered. This page separates the layers, gives the current map, and ends with commands that tell you what your own build is doing rather than what a table says it should be doing.
For the algorithms themselves see 3.1 ML-KEM and 3.3 ML-DSA. For configuring them at the server level see 3.8 Hybrid TLS per stack.
Three layers, and which one answers your question
- Layer 1 — the primitive
- A library that implements
ML-KEM.KeyGen,EncapsandDecapsas functions.mlkem-native,mldsa-native, the RustCrypto crates,libcrux,libjadeand the original pq-crystals reference code sit here. Using one directly means you are building a protocol, and the correctness and side-channel burden is entirely yours. - Layer 2 — the TLS or protocol library
- A library that turns primitives into a handshake: OpenSSL, BoringSSL, AWS-LC, rustls, s2n-tls, wolfSSL, GnuTLS, Botan, NSS, Go's
crypto/tls. This is where named groups such asX25519MLKEM768are defined and offered, and it is the layer that answers “will my server negotiate a hybrid key exchange?” - Layer 3 — the application, which delegates
- curl, requests, urllib3, reqwest, Quinn, HTTPX, aiohttp, gRPC bindings, pyOpenSSL, the Python
sslmodule. These contain no post-quantum code at all and cannot acquire it by being upgraded. They inherit whatever layer 2 they were linked against, which is why the most common finding in a PQC inventory is a fully modern application on an old TLS library.
| Component | Where its post-quantum support actually comes from |
|---|---|
| curl / libcurl | Whatever TLS library it was built against — OpenSSL 3.5+ for the hybrid groups |
| Python ssl, requests, urllib3, aiohttp, HTTPX | OpenSSL through CPython |
| reqwest, Quinn | rustls or native-tls |
| gRPC (Python) | The bundled BoringSSL or the system OpenSSL |
| pyOpenSSL | OpenSSL through cryptography |
The map
Status and the first version that added each algorithm, as recorded by pqcdeps.com in December 2026. “Supported” means the tracker does not record a specific introduction version; “Unknown” means unverified rather than absent. Treat the versions as a starting point and confirm against your own build.
General-purpose C libraries (most other software delegates to these)
If you run nginx, Apache, curl or Python, one of these is doing the work.
| Library | Status | ML-KEM | ML-DSA | SLH-DSA |
|---|---|---|---|---|
| OpenSSL | Ready | 3.5.0 | 3.5.0 | 3.5.0 |
| BoringSSL | Ready | Supported | Supported | Supported |
| AWS-LC | Ready | Supported | Supported | Unknown |
| Botan | Ready | 3.6.0 | 3.6.0 | 3.6.0 |
| oqs-provider | Available | Supported | 0.8.0 | 0.12.0 |
| liboqs | Partial | 0.11.0 (experimental) | 0.12.0 (experimental) | 0.15.0 (experimental) |
| s2n-tls | Available | 1.6.1 | 1.5.19 | Not applicable |
| wolfSSL | Available | 5.9.1 | 5.7.2 | 5.9.0 |
| NSS | Available | 3.105 | 3.116 | Unknown |
| GnuTLS | Partial | 3.8.8 (experimental) | 3.8.9 (experimental) | Unknown |
| Libgcrypt | Available | 1.12.0 | 1.12.0 | Unknown |
| LibreSSL | Available | 4.2.0 | Partial (experimental) | Unknown |
| libsodium | Partial | 1.0.22 | Unknown | Unknown |
| Mbed TLS | Partial | Unknown | Partial (experimental) | Unknown |
| SymCrypt | Available | 103.5.0 | 103.7.0 | Unknown |
Protocol implementations
These decide what your server or client offers on the wire.
| Library | Status | ML-KEM | ML-DSA | SLH-DSA |
|---|---|---|---|---|
| OpenSSH | Ready | Supported | Supported | Unknown |
| libssh | Ready | 0.12.0 | Not applicable | Not applicable |
| libssh2 | Planned | Unknown | Not applicable | Not applicable |
Standalone primitives and verified implementations
No TLS, no protocol — the algorithm itself, for building on.
| Library | Status | ML-KEM | ML-DSA | SLH-DSA |
|---|---|---|---|---|
| mlkem-native (PQ Code Package) | Available | 1.0.0 | Not applicable | Not applicable |
| mldsa-native (PQ Code Package) | Available | Not applicable | 2.0.0 | Not applicable |
Rust
Note that `ring` has no post-quantum plan, which matters because a lot of the ecosystem still depends on it.
| Library | Status | ML-KEM | ML-DSA | SLH-DSA |
|---|---|---|---|---|
| rustls | Ready | Supported | 0.23.44 | Not applicable |
| aws-lc-rs | Available | 1.12.0 | 1.18.0 | Unknown |
| boring | Available | 5.0.0 | Supported | Not applicable |
| libcrux | Available | Supported | Supported | Not applicable |
| RustCrypto ml-kem | Available | Supported | Not applicable | Not applicable |
| RustCrypto ml-dsa | Available | Not applicable | Supported | Not applicable |
| RustCrypto slh-dsa | Available | Not applicable | Not applicable | Supported |
| liboqs-rust (oqs) | Available | 0.10.0 | 0.10.0 | Partial (experimental) |
| rust-openssl | Available | 0.10.79 | 0.10.79 | Unknown |
| Sequoia PGP | Available | 2.4.0 | 2.4.0 | 2.4.0 |
| ring | No plan | Unknown | Unknown | Unknown |
Go, Node.js and Python
Language runtimes with the algorithms built in, plus the bindings most projects actually use.
| Library | Status | ML-KEM | ML-DSA | SLH-DSA |
|---|---|---|---|---|
| Go standard library crypto | Ready | Supported | Supported | Unknown |
| Node.js crypto / tls | Available | 24.7.0 | 24.6.0 | 24.8.0 |
| cryptography (pyca) | Available | 48.0.0 | 48.0.0 | Unknown |
| liboqs-python | Available | Supported | Supported | Unknown |
| PyCryptodome | Available | 4.2.0 | 4.1.0 | 4.6.0 |
| AsyncSSH | Available | 2.18.0 | Not applicable | Not applicable |
| Paramiko | Available | Supported | Unknown | Unknown |
OpenSSL 3.5 changed what oqs-provider is for
Before OpenSSL 3.5, getting ML-KEM into an OpenSSL-based stack meant building oqs-provider against liboqs and registering it with openssl.cnf. That still works, and it is still the route to algorithms OpenSSL does not carry — oqs-provider tracks liboqs, whose own status the tracker lists as partial, with ML-KEM from 0.11.0, ML-DSA from 0.12.0 and SLH-DSA from 0.15.0, all marked experimental.
Since 3.5.0 OpenSSL implements ML-KEM, ML-DSA and SLH-DSA natively, so the provider is no longer needed for the FIPS algorithms. Prefer the native path: fewer moving parts, no experimental flag, and the group list behaves as documented in 3.8.
One liboqs detail worth knowing if you do use it. Release 0.14.0 switched the default ML-KEM implementation to PQ Code Package's mlkem-native v1.0.0, and the same release disabled compiler optimisations around HQC to remove secret-dependent branching, with HQC left disabled by default. A library turning a feature off for side-channel reasons is exactly the kind of event that should appear in a dependency review, and exactly the kind that does not.
# Which OpenSSL, and does it have the algorithms natively?
openssl version
openssl list -kem-algorithms | grep -i 'ML-KEM\|HQC'
openssl list -signature-algorithms | grep -i 'ML-DSA\|SLH-DSA'
openssl list -tls1_3 -tls-groups | grep -i mlkem
# Is a provider registered, and which one?
openssl list -providers
grep -rn "providers\|oqs" /etc/ssl/openssl.cnf /etc/pki/tls/openssl.cnf 2>/dev/nullReference, reviewed and verified implementations
“Implements ML-KEM” is not one property. There are at least four different claims a library can be making, and they have different evidence behind them.
- Reference implementations (pq-crystals)
- The submission code for Kyber and Dilithium. Written for clarity and to match FIPS 203 and FIPS 204 exactly. Useful as the thing other implementations are tested against, not as the thing you deploy into a hostile environment.
- PQ Code Package: mlkem-native and mldsa-native
- A collaboration to produce hardened C implementations with explicit constant-time arguments and testable interfaces.
mlkem-nativereached 1.0.0 and is now what liboqs uses by default, which is the clearest available signal about its intended role.mldsa-nativeis at 2.0.0. - Formally verified: libjade and libcrux
libjade(Formosa Crypto / PQ Code Package) produces ML-KEM and ML-DSA implementations with machine-checked guarantees, andlibcruxis written in a Rust style intended to be extractable to verified code. Verification removes whole classes of memory-safety and functional bug; it does not by itself prove the absence of every side channel, so read what the artifact actually claims.- Distribution and convenience builds
- PQClean historically provided cleaned-up portable implementations for many schemes. Anything in this category optimises for building easily everywhere, which is a different goal from being the safest implementation of one algorithm.
The practical rule: use whatever your TLS library links, and only reach for a standalone primitive library when you are implementing a protocol. If you do, prefer one with a published constant-time argument, and then confirm the link — KyberSlash and the ML-DSA fault results are what happens when that step is skipped.
What a FIPS 140-3 certificate actually covers
Validation is per module build and per algorithm list, not per library and not per algorithm family. AWS-LC is a clean example: its AWS-LC 3 Cryptographic Module (static build) received FIPS 140-3 certificate #5314 in June 2026, and the approved algorithm list includes ML-KEM key generation and encapsulation/decapsulation. It does not list ML-DSA. The same library can therefore be validated for one FIPS post-quantum algorithm and not the other, and a different build of the same library can sit outside the certificate entirely.
Three consequences for a migration plan. Ask for the certificate number and check the algorithm list on the CMVP site rather than accepting “FIPS validated”. Check that the build you ship is the build that was validated — static versus dynamic, and version. And remember that hybrid groups have their own FIPS constraint: a validated module needs the first component of the hybrid to be validated, which is why SecP256r1MLKEM768 exists alongside X25519MLKEM768.
Verify your own stack
Run these on the machine that ships, not on a laptop. Every line reports what a build is linked against, which is the only thing that matters.
# --- Layer 2: what the TLS library offers -------------------------------
openssl version && openssl list -tls1_3 -tls-groups | grep -i mlkem
nginx -V 2>&1 | grep -i openssl # nginx uses its OpenSSL, not the host's
haproxy -vv | grep -i -E 'openssl|aws-lc'
envoy --version # BoringSSL-FIPS or OpenSSL
caddy build-info | grep -i go
go version
# --- Layer 3: what the application is linked against --------------------
python3 -c "import ssl; print(ssl.OPENSSL_VERSION)"
node -e "console.log(process.versions)"
curl --version
ldd $(command -v curl) | grep -i -E 'ssl|crypto'
# --- Rust: which provider is rustls actually using? ---------------------
cargo tree -i rustls 2>/dev/null | head -20
cargo tree | grep -E 'aws-lc-rs|ring|ml-kem|ml-dsa|libcrux'
# ring has no post-quantum plan. If it is your only crypto provider, you
# have no ML-KEM regardless of what your TLS layer claims.
# --- Prove it end to end ------------------------------------------------
openssl s_client -connect localhost:443 -tls1_3 -groups X25519MLKEM768 </dev/null 2>/dev/null \
| grep -E 'Negotiated TLS1.3 group|Peer Temp Key'Gotchas that survive a version upgrade
- An explicit list replaces the default. In Go, setting
CurvePreferenceswithoutX25519MLKEM768opts out. In Caddy, settingcurvesreplaces the defaults. In rustls, an explicit provider list does the same. The upgrade enabled the feature and your own configuration disabled it again. - “Experimental” means the API and the guarantees can both change. liboqs marks ML-KEM, ML-DSA and SLH-DSA experimental; GnuTLS marks its ML-KEM and ML-DSA support experimental; LibreSSL's ML-DSA is partial. Building a compliance argument on an experimental flag is not an argument.
- The signature algorithm and the key exchange are separate decisions. A stack can offer
X25519MLKEM768for key exchange while every certificate in the chain is still ECDSA. That is a legitimate intermediate state — see why key exchange migrates first — but it should be a decision, not an oversight. - FIPS builds are not automatically more capable. BoringSSL-FIPS and Go's FIPS 140-3 mode restrict the algorithm set to what is validated. Envoy includes the hybrid in its defaults for FIPS builds; other stacks may not. Check the specific build.
- Delegating layers hide in dependency trees. A service can be current on every library it declares and still be classical, because the TLS termination happens in a sidecar, an ingress controller or a managed load balancer that nobody listed in the inventory.
Check Your Understanding
Q1. Your Python service uses `requests` to call an internal API over TLS. Where does post-quantum support come from?
Q2. A vendor states that their product is "FIPS 140-3 validated for post-quantum cryptography". What is the most useful follow-up question?
Q3. You are choosing an ML-KEM implementation for a device where a timing side channel would be fatal. Which consideration matters most?
Sources
- pqcdeps.com catalog — the support status and first-version data in the tables above, retrieved December 2026. Re-check before relying on a version boundary.
- liboqs release notes — 0.14.0 switching the default ML-KEM implementation to
mlkem-nativev1.0.0, and the HQC secret-dependent-branching fix. - oqs-provider and the liboqs documentation.
- mlkem-libjade, Formosa libjade and the PQ Code Package
mlkem-nativeandmldsa-nativerepositories — hardened and verified implementations. - AWS post-quantum cryptography and the AWS-LC
PQREADME— AWS-LC algorithm support and FIPS 140-3 module status. - Quarkslab, state of post-quantum cryptography implementations — an independent survey of implementation quality.
- NIST FIPS 203, FIPS 204 and FIPS 205, plus the CMVP for looking up a certificate's algorithm list.