1. Why Now#
1.1 The December 2026 Joint Statement#
On December 2, 2026, Amazon, Anthropic, Apple, Cloudflare, Google, Meta, Microsoft, OpenAI and Oracle published a joint statement backing the U.S. government guidance that urges organizations to move to the algorithms in the NIST Post-Quantum Cryptography (PQC) standards and to accelerate the migration as soon as possible. These nine companies run a large share of the internet's traffic and cloud, so this is the moment the migration stops being a research topic and becomes a to-do item for everyone else.
1.2 The U.S. Guidance Behind It#
- Executive Order 14412 (June 22, 2026) and OMB memo M-26-15 turn the migration into deadlines for federal systems:
| Date | Requirement |
|---|---|
| July 2026 | Every federal agency names a PQC migration lead |
| Sept 2026 | OMB guidance: review High Value Asset and high-impact system inventories, plan the PQC migration |
| 270 days after the EO | CISA + NIST publish minimum elements for a Cryptographic Bill of Materials (CBOM) |
| Dec 31, 2030 | High Value Assets and high-impact systems on PQC key establishment (encryption) |
| Dec 31, 2031 | The same systems on PQC digital signatures (authentication) |
| Dec 31, 2030 | FAR Council proposes rules so covered contractors use FIPS validated PQC and run vulnerability disclosure for crypto flaws |
-
National Security Systems follow a separate NSA track (CNSA 2.0), which calls for ML-KEM-1024 and ML-DSA-87, the AegisPQC Level 5 suite.
-
NIST's own transition plan (IR 8547) deprecates quantum-vulnerable public key algorithms (RSA, ECDH, ECDSA) after 2030 and disallows them after 2035.
1.3 The Threat: Store-Now-Decrypt-Later (SNDL)#
An adversary does not need a quantum computer today. They record encrypted traffic today and decrypt it once a cryptographically relevant quantum computer exists. Anything that must stay secret for 5 to 10+ years (health records, financial data, contracts, government data, source code, long-lived credentials) is already exposed if it travels over classical-only key exchange. That's why key establishment has the earlier deadline (2030) and signatures come after (2031): encryption has to be fixed before the data is captured, authentication only has to be fixed before the attacker can forge in real time.
2. What AegisPQC Solves Today#
| Guidance / Requirement | How AegisPQC covers it |
|---|---|
| Use the NIST PQC standards | ML-KEM (FIPS 203) for key establishment, ML-DSA (FIPS 204) for signatures, at NIST Levels 1, 3 and 5 |
| Protect against SNDL now | Hybrid X25519/X448 + ML-KEM with an X-Wing style HKDF combiner. Secure if either half survives |
| PQC authentication | Mutual ML-DSA authentication over the full handshake transcript, pinned identities |
| CNSA 2.0 grade option | Level 5: ML-KEM-1024 + ML-DSA-87 + AES-256-GCM + SHA-384 (X448 or P-384 classical half) |
| No downgrade to classical / weaker crypto | Suite fixed by local policy, suite ID inside the signed transcript, mismatch aborts. There is no classical-only mode to fall back to |
| Crypto agility | crypto_agility_engine + suite_params + virtual engine interfaces: new algorithms or a new backend plug in without touching application code |
| Forward secrecy | Fresh hybrid KEM keypair per handshake, wiped right after decapsulation |
| Key confirmation | HMAC finished messages in both directions |
| Robust against hostile input | Exact length checks before the backend, FIPS 203 key check on import, bounds-checked wire reader, 16 MiB frame cap, fuzzed parsers |
| Secret hygiene | secure_vector zeroization, explicit wipe of ephemeral and traffic keys, fail-closed state machine |
| Production grade primitives | OpenSSL 3.5+ for ML-KEM / ECDH / AES / HKDF and formally verified mldsa-native for ML-DSA (performance profile); no research library in the trust base |
| FIPS 140-3 | fips profile: everything inside the OpenSSL FIPS provider (validated with ML-KEM / ML-DSA / SLH-DSA, cert #5586, Nov 13, 2026), P-256 / P-384 suites, refuses to run outside the provider |
| Speed | ~1 ms Level 3 mutual handshake in the performance profile |
| Integrates anywhere | C++20 API + stable C-ABI, CMake package + pkg-config, only dependency is OpenSSL |
3. Hardening Log: v0.1 → v0.4#
v0.1 had the right algorithms but the protocol around them had gaps. Each of these was demonstrated with a working attack against v0.1, fixed in v0.2, and now has a regression test in tests/test_attack_regressions.cpp.
3.1 Man-in-the-Middle Through Self-Signed Bundles (Critical)#
-
Problem: the peer sent its own signing public key next to its bundle and the receiver verified against that key. Anyone could generate a key, sign their own bundle and be accepted.
-
Proof: Mallory swapped Alice's bundle, signature and key for her own; Bob accepted it and Mallory read Bob's "secret for Alice" in plaintext.
-
Fix:
trust_storewith pinned identities, the handshake refuses to run without a pin and rejects unpinned peers. Mutual authentication: both sides sign the whole transcript, plus finished MACs for key confirmation. -
Test:
Attack 1: man-in-the-middle with a self-signed identity
3.2 Out-of-Bounds Read on Short Ciphertext (Critical)#
-
Problem:
decapsulate()never checked the ciphertext or secret key length; liboqs reads a fixed 1088 bytes. -
Proof: a 40-byte "ciphertext" placed before a guard page crashed the process with a segfault (remote crash, potential memory disclosure).
-
Fix: exact length checks in
decapsulate(),encapsulate(),sign()andverify(); every handshake field parsed by a bounds-checkedwire_readerwith per-field limits. -
Test:
Attack 2: undersized handshake ciphertext (out of bounds read)
3.3 Silent Downgrade of Level 5 to Level 3 (High)#
-
Problem: both
switchstatements in the policy manager fell through todefault, so Level 1 and Level 5 quietly became ML-KEM-768 / ML-DSA-65. -
Proof: requesting Level 5 produced a 1216-byte public key (32 + 1184) instead of ML-KEM-1024's.
-
Fix: a real suite per level (
suite.hpp), an unknown level throws, missing liboqs algorithms throw, suite ID is checked on the wire. -
Test:
Attack 3: silent downgrade of NIST level 5 to level 3
3.4 Record Replay and Reflection (High)#
-
Problem: one key for both directions, random IVs and no sequence numbers.
-
Proof: Bob accepted the same "transfer $100" record twice, and Alice accepted her own record bounced back to her.
-
Fix: per-direction traffic keys from a transcript-bound key schedule, nonce = IV XOR sequence number, sequence number authenticated, strict ordering on receive, 2^24 records per key cap.
-
Test:
Attack 4: record replay and reflection
3.5 Unchecked ECDH and a Weak Combiner (Medium)#
-
Problem:
EVP_PKEY_deriveresults were ignored. An all-zero X25519 point made the derivation fail silently and the classical secret stayed zero. The combiner hashed only the two secrets, with no context. -
Proof: encapsulating to an all-zero X25519 key did not abort.
-
Fix: every OpenSSL return checked, all-zero secrets rejected, X-Wing style combiner binding the classical public values plus a suite label.
-
Test:
Attack 5: low order X25519 point
3.6 Other Fixes in v0.2#
-
Encapsulation only generates an ephemeral classical keypair (v0.1 also ran a wasted ML-KEM keygen).
-
Application signatures are domain separated (
"aegispqc/v1 application signature"), sosign_payload()can never be abused to produce a valid handshake signature. -
AEAD rejects inputs that would overflow OpenSSL's
intlengths and wipes partial plaintext on tag failure. -
Frame parser validates the type, caps the length and reports
frame_sizefor stream parsing. -
get_session_key()removed; raw keys no longer leave the session. Usesession_id()andexport_keying_material(). -
C-ABI: real Level 1/3/5 + roles,
AEGIS_ERROR_SECURITY, deterministic length queries that never change state,aegis_status_string(). -
CMake: install rules,
AegisPQC::corepackage, pkg-config, sanitizer / fuzzer options, warnings as part of the build. -
Verified: 23 test cases / 303 assertions passing under ASan + UBSan, RFC 5869 HKDF test vector, ~350k libFuzzer executions over the network parsers with no findings.
3.7 v0.3: OpenSSL Native Post-Quantum Backend#
-
Problem: v0.2 still ran ML-KEM and ML-DSA on liboqs, whose maintainers state: "we do not currently recommend relying on this library in a production environment or to protect any sensitive data." No FIPS path either.
-
Fix: a small internal backend layer (
pq_backend.hpp) with two implementations. OpenSSL 3.5+ is now the default and the only dependency:EVP_PKEY_encapsulate/EVP_PKEY_decapsulatefor ML-KEM,EVP_DigestSign/EVP_DigestVerifyfor ML-DSA, raw FIPS 203 / 204 key import and export. liboqs stays as an opt-in research backend (-DAEGIS_BACKEND=liboqs). -
Bonus: OpenSSL runs the FIPS 203 encapsulation key check on import, so malformed ML-KEM public keys from the network are now rejected up front.
-
Interop proof:
tests/test_backend_interop.cppchecks, for ML-KEM-512/768/1024 and ML-DSA-44/65/87, that keys, ciphertexts and signatures created by one backend work in the other, both directions. Switching backends never breaks stored identities or peers. -
Trade-off: OpenSSL's ML-DSA is portable C, liboqs ships AVX2 code. A Level 3 mutual handshake went from ~1 ms to ~5 ms on one cloud vCPU (almost all ML-DSA signing). The record layer is unchanged.
-
Verified: 27 test cases / 356 assertions passing under ASan + UBSan against OpenSSL 3.6.5 with liboqs compiled in for interop, liboqs-only build still passing, ~62k extra libFuzzer executions against the OpenSSL backend, installed package consumed with OpenSSL as the only dependency.
3.8 v0.4: Best of Each Library (Performance + FIPS Profiles)#
-
Problem: moving to OpenSSL in v0.3 made ML-DSA signing about 8x slower (portable C), taking a Level 3 handshake from ~1 ms to ~4–5 ms. Mixing liboqs back in per operation would have put the research library on the secret key path and broken any FIPS claim.
-
Fix, performance profile (new default): KEM, ECDH, AES, HKDF stay on OpenSSL; ML-DSA moves to mldsa-native v2.1.0 (PQ Code Package), vendored unmodified in
third_party/. It is the same ML-DSA code liboqs and AWS-LC ship, with CBMC memory safety proofs for the C code and HOL-Light proofs for the AVX2 / AArch64 assembly. Randomness comes from OpenSSL's CSPRNG. Level 3 handshake back to ~1 ms, signing ~105 µs instead of ~930 µs. -
Fix, fips profile: P-256 + ML-KEM and P-384 + ML-KEM suites (own wire IDs
0x11/0x13/0x15), SP 800-56A ECDH with full public key validation, FIPS provider loaded withfips=yesas the mandatory default property, X25519 / X448 refused, mldsa-native not compiled in, and a hard stop with setup instructions when the provider is missing. -
Interop: every profile speaks identical FIPS 203 / 204 bytes; any build can run the fips family, so performance devices talk to FIPS servers. The interop test now signs with every compiled ML-DSA backend and verifies with every other.
-
New attack test:
Attack 6: invalid P-256 / P-384 points (invalid curve attack). -
Verified: all four profiles build and pass under ASan + UBSan (performance 31 pass / 1 not-applicable; fips 25 pass / 6 X25519-only skipped, run against a real FIPS provider with
openssl fipsinstall; openssl and liboqs profiles pass), the non-FIPS provider proven unreachable in fips mode, ~43k more libFuzzer executions with mldsa-native in the loop, benchmarks for every profile.
4. Where AegisPQC Fits (and Where It Doesn't)#
For regular web traffic the fastest win is turning on the hybrid X25519MLKEM768 group in TLS 1.3 (OpenSSL 3.5+, BoringSSL, rustls, Go, all major browsers and CDNs). Don't replace TLS with AegisPQC for HTTPS.
AegisPQC fits the channels TLS doesn't cover well:
-
Device to device / IoT / embedded links over serial, radio, BLE or raw sockets, through the C-ABI.
-
Internal message buses and job queues where payloads cross brokers that terminate TLS.
-
App-level end-to-end encryption between two known endpoints, where the server in the middle should not see the data.
-
Long-lived pinned relationships: branch office ↔ HQ, sensor ↔ collector, agent ↔ controller, where identities are provisioned once.
-
Quantum-safe key agreement for other protocols through
export_keying_material()(seed a VPN tunnel, encrypt files for a peer, derive database field keys).
5. Future Possibilities#
5.1 Near Term#
-
Validated backend: OpenSSL 3.5+ native ML-KEM / ML-DSA instead of liboqs.Done in v0.3. -
FIPS mode: P-256 / P-384 suites + mandatory FIPS provider.Done in v0.4. -
Faster signing: liboqs-class ML-DSA speed without liboqs.Done in v0.4 (mldsa-native). -
Session resumption (PSK): a reconnecting peer skips ML-DSA and ML-KEM entirely using a resumption secret from the previous session. The biggest remaining speed win for anything that reconnects often, and the one that helps the fips profile most.
-
Runtime CPU dispatch for mldsa-native: pick AVX2 or portable C at runtime instead of at build time, so one binary runs everywhere at full speed.
-
Rekeying (key update): ratchet the traffic keys in place instead of hitting the 2^24 record cap.
-
Identity hints: send the 32-byte fingerprint instead of the full ML-DSA key (both sides already pinned it), saving ~3.8 KB per Level 3 handshake.
-
Alerts: a small alert frame so the peer learns why a session died.
-
Transport adapters: ready-made TCP, WebSocket and QUIC stream wrappers around the frame layer.
-
CI: sanitizer, fuzzing (OSS-Fuzz style) and constant-time checks (valgrind / ctgrind) on every push.
5.2 Mid Term#
-
Suite negotiation with downgrade protection: the initiator offers several suites, the responder picks by policy, and the offered list is covered by both transcript signatures.
-
PQ certificates and PKI: issuer-signed identities instead of only pinning, following the IETF work on ML-DSA certificates and Merkle Tree Certificates (PLANTS working group).
-
Composite / hybrid signatures: Ed25519 + ML-DSA, so authentication also survives a break of either side.
-
SLH-DSA (FIPS 205): hash-based signatures for long-lived root keys and firmware signing, where conservative assumptions matter more than size.
-
HQC: NIST picked HQC in March 2025 as a backup KEM built on different math than ML-KEM. Adding it as a suite option gives a second post-quantum hedge.
-
Session resumption (PSK): skip the full KEM + signature cost on reconnect.
-
Language bindings: Rust, Go, Python and Swift wrappers over the C-ABI.
5.3 Long Term#
-
aegis-scan, a crypto inventory tool: scan hosts, certificates, configs and binaries for quantum-vulnerable algorithms and output a CBOM. This is the first step the EO asks agencies and contractors for, and it pairs naturally with a library that fixes what the scan finds. -
Formal verification: a Tamarin / ProVerif model of the three-message handshake proving mutual authentication, key secrecy and downgrade resistance.
-
Independent audit before any regulated or production deployment.
-
Hardware backed identities: ML-DSA keys in TPMs, HSMs or secure elements as vendors add PQC support.
-
FN-DSA (Falcon) once its standard is final, for smaller signatures on bandwidth constrained links.
6. Migration Checklist with AegisPQC#
-
Inventory where classical key exchange protects long-lived secrets (SNDL exposure first).
-
Pick the level: Level 3 by default, Level 5 for CNSA 2.0 / national security style requirements, Level 1 for constrained devices.
-
Pick the profile:
performanceby default,fipswhen you need a FIPS 140-3 claim (with the validated provider),liboqsfor experiments only. -
Provision a long-term identity per endpoint (
initialize_identity()→export_identity_keypair()), store the secret key safely, distribute public keys or fingerprints out of band, pin them withtrust_peer_identity(). -
Treat
aegis::security_error/AEGIS_ERROR_SECURITYas an attack signal: log it, drop the connection, don't retry blindly. -
Run over an ordered transport and start a new session before 2^24 records.
-
Keep TLS for the web, use hybrid TLS groups there, and use AegisPQC for the channels TLS doesn't reach.
Sources#
- Joint statement on transition to post-quantum cryptography, Amazon, Anthropic, Apple, Cloudflare, Google, Meta, Microsoft, OpenAI and Oracle (Dec 2, 2026)
- Cloudflare: The White House's post-quantum executive order is an important milestone
- OMB M-26-15: Execution of the Migration to Post-Quantum Cryptography
- White House fact sheet on the PQC executive order
- NIST FIPS 203 (ML-KEM), FIPS 204 (ML-DSA), FIPS 205 (SLH-DSA), NIST IR 8547
- IETF drafts: X-Wing hybrid KEM,
X25519MLKEM768for TLS 1.3 - NIST CMVP certificate #5586: OpenSSL FIPS Provider (ML-KEM, ML-DSA, SLH-DSA)
- liboqs README (production use warning)
- mldsa-native (PQ Code Package)