RandomKeygen
14 min read
GUIDEENCRYPTION

Post-Quantum Cryptography for Developers: What's Actually at Risk

A practical breakdown of the December 2026 NSA post-quantum advisory—separating real asymmetric migration priorities from hype, and showing exactly where ML-KEM, ML-DSA, and AES-256 fit in your stack.

What triggered the December 2026 NSA advisory

On December 2, 2026, the NSA published an urgent press release and technical advisory (Immediate Actions to Push Toward Post-Quantum, PP-26-4956) alongside a joint NSA/CISA/ONCD statement backed by major cloud and AI providers. The destination was familiar—the NSA's CNSA 2.0 algorithm suite has been public for years, with the January 1, 2027 deadline for new National Security System acquisitions right around the corner.

What caught the security community's attention was the stated catalyst: frontier AI companies responsibly disclosed new mathematical findings affecting certain cryptographic systems in use today, compressing the comfort margin around legacy public-key algorithms alongside ongoing quantum-computing advances. At the same time, the joint government statement stressed that this is not an overnight collapse of global encryption.

The headline takeaway for engineering teams: Do not panic about passwords, API keys, or AES-256—those are symmetric primitives and remain solid. Focus your attention on public-key cryptography (RSA, P-256, Curve25519), especially anywhere encrypted data needs to stay confidential for years or where signing roots are hard to rotate.

What is vulnerable vs. what is already safe

Quantum computers running Shor's algorithm break integer factoring (RSA) and discrete logarithms over elliptic curves (ECDH, ECDSA, Ed25519, X25519) in polynomial time. By contrast, symmetric ciphers and hash functions only face Grover's algorithm, which at best gives a square-root speedup—easily neutralized by using 256-bit keys and 384/512-bit hashes.

PrimitiveFamilyPost-Quantum StatusAction / Target
RSA-2048 / RSA-3072 / RSA-4096Asymmetric (Factoring)Vulnerable to quantum attacksML-KEM-1024 (key exchange) · ML-DSA-87 (signatures)
ECDH / ECDSA P-256 & Curve25519 (X25519 / Ed25519)Asymmetric (Elliptic Curve)Vulnerable — high transition priorityHybrid X25519+ML-KEM-768 or ML-KEM-1024 · ML-DSA-87
ECDSA P-384 / RSA-4096Asymmetric (Larger Classical)Transitional stopgap onlyMigrate directly to ML-KEM / ML-DSA where supported
AES-256-GCM / ChaCha20-Poly1305Symmetric EncryptionQuantum-safe (CNSA 2.0 approved)Keep AES-256 — no replacement required
AES-128Symmetric EncryptionBelow CNSA 2.0 quantum marginUpgrade to AES-256 for long-term data
SHA-384 / SHA-512 / HMAC-SHA384/512Hashing & MACsQuantum-safe (CNSA 2.0 approved)Keep — upgrade SHA-256 to SHA-384/512 for CNSA 2.0
Passwords, API keys, Argon2id, bcrypt, TOTPSymmetric Secrets & KDFsNot broken by quantum factoringKeep using strong length/entropy (256-bit random secrets)

Auditing symmetric keys? Generate CNSA 2.0 AES-256 keys or HMAC-SHA384/512 secrets — no post-quantum replacement needed.

Harvest Now, Decrypt Later (HNDL) explained

Why act before a cryptanalytically relevant quantum computer exists? Because of the difference between confidentiality and authentication:

  • Confidentiality is retroactively breakable (HNDL): An adversary recording TLS traffic, VPN tunnels, or encrypted email/backups today can store the ciphertext and decrypt it years from now once classical key exchange (RSA or ECDH) falls. If your data has a 10-year secrecy lifetime, your migration clock started years ago.
  • Authentication is not retroactively forgeable: Breaking Ed25519 or RSA in 2032 does not let an attacker forge a JWT that expired in 2026 or retroactively hijack an SSH login from today. However, long-lived roots of trust—hardware bootloaders, firmware signing keys, and root CAs—take years to replace and must be upgraded early.

NIST PQC standards: ML-KEM, ML-DSA, and SLH-DSA

After an eight-year public standardization process, NIST finalized its core post-quantum FIPS standards. Together with AES-256 and SHA-384/512, these form the backbone of modern quantum-resistant stacks:

FIPS 203 — ML-KEMModule-Lattice Key Encapsulation Mechanism (formerly CRYSTALS-Kyber). Replaces RSA key transport and ECDH.
FIPS 204 — ML-DSAModule-Lattice Digital Signature Algorithm (formerly CRYSTALS-Dilithium). Replaces RSA, ECDSA, and Ed25519 signatures.
FIPS 205 — SLH-DSAStateless Hash-Based Digital Signature Algorithm (formerly SPHINCS+). Conservative backup relying solely on hash security.
SP 800-208 — LMS / XMSSStateful hash-based signatures approved in CNSA 2.0 for firmware, bootloaders, and long-lived software roots of trust.

Want to inspect real keys right now? Try our local ML-KEM Key Generator (FIPS 203) and ML-DSA Signing Key Generator (FIPS 204) — 100% browser-local with OpenSSL 3.5+ PEM export.

Wire sizes, PEM formats, and why seed-only PKCS#8 matters

The biggest practical surprise for developers adopting post-quantum cryptography isn't speed—ML-KEM and ML-DSA are often faster than RSA-4096—it's key and signature size:

  • ML-KEM-1024 public keys and ciphertexts are each 1,568 bytes (vs. 32 bytes for X25519). Expanded secret keys are 3,168 bytes.
  • ML-DSA-87 public keys are 2,592 bytes and signatures are 4,627 bytes (vs. 64 bytes for Ed25519).
  • Seed-only PKCS#8 private keys (RFC 9935 / RFC 9881): Instead of storing multi-kilobyte expanded private keys on disk, modern implementations (OpenSSL 3.5+, Go 1.24+, and RandomKeygen's PQC generators) store just the 64-byte ML-KEM seed or 32-byte ML-DSA seed inside PKCS#8. The full key expands deterministically on load.
Check your buffer and column limits: Before turning on ML-DSA certificates or post-quantum tokens, check HTTP header size limits (often 4–8 KB), database VARCHAR columns storing public keys or signatures, UDP MTU limits (DNSSEC/QUIC), and JWT cookie limits (4 KB per cookie).

Stack-by-stack status (TLS, SSH, WireGuard, OpenSSL, JWTs)

  • TLS 1.3 & CDNs (Ready today): Cloudflare, AWS, Google, Chrome, Firefox, and Safari already support hybrid X25519MLKEM768 key agreement in TLS 1.3. Enabling TLS 1.3 + hybrid PQC at your CDN or load balancer eliminates HNDL for web traffic in minutes.
  • OpenSSH (Ready today for KEX): OpenSSH 9.9+ and 10.0+ default to hybrid post-quantum key exchange (mlkem768x25519-sha256 / sntrup761x25519-sha512). Upgrading both client and server protects session confidentiality immediately, even while user auth keys remain Ed25519/ECDSA/RSA. See our SSH Key Generator.
  • WireGuard VPN (Ready today via PSK): WireGuard's X25519 handshake is classical, but enabling a unique 256-bit PresharedKey per peer adds post-quantum symmetric protection against HNDL today. See our WireGuard Key Generator.
  • OpenSSL 3.5+ & Go 1.24+ (Ready today): Both ship native ML-KEM and ML-DSA primitives out of the box—no experimental forks required.
  • Web Crypto API (Rolling out): Browser support for ML-KEM and ML-DSA in crypto.subtle is advancing via the WICG Modern Algorithms spec (and opt-in in Cloudflare Workers). Until universal browser support lands, audited zero-dependency JS libraries like @noble/post-quantum run cleanly with crypto.getRandomValues().
  • JWTs & OAuth: Short-lived access tokens (5–15 minutes) are not HNDL targets. For internal service-to-service JWTs, symmetric HS384 / HS512 (JWT Secret Generator) is already quantum-safe; for asymmetric JWTs, track JOSE ML-DSA specs and design for algorithm agility (kid + JWKS rotation).

What developers should actually do this week

Run these three commands against your infrastructure to see where you already have post-quantum protection and where gaps remain:

Quick PQC readiness check
# 1. Check whether your TLS endpoint negotiates hybrid post-quantum key exchange
openssl s_client -connect your-domain.com:443 -groups X25519MLKEM768 -brief </dev/null

# 2. Check whether your OpenSSH client supports hybrid ML-KEM key exchange (OpenSSH 9.9+/10.0+)
ssh -Q kex | grep -E 'mlkem|sntrup'

# 3. Verify your OpenSSL version supports native ML-KEM and ML-DSA (3.5+)
openssl version
openssl list -kem-algorithms | grep -i ml-kem
openssl list -signature-algorithms | grep -i ml-dsa

For the full NSA PP-26-4956 checklist, CNSA 2.0 compliance dates (2027 / 2030 / 2035), official OID table, and OpenSSL 3.5 certificate commands, continue to our CNSA 2.0 Migration Guide.

Frequently asked questions

Does the December 2026 NSA advisory mean AES-256 or passwords are broken?

No. Symmetric encryption (AES-256), SHA-384/512, HMAC, API keys, and strong random passwords are not broken by Shor's algorithm or elliptic-curve cryptanalysis. AES-256 and SHA-384/512 are explicitly part of CNSA 2.0.

Should I use pure ML-KEM-1024 or hybrid X25519+ML-KEM-768?

For commercial web services, TLS 1.3, and SSH, hybrid X25519MLKEM768 gives defense-in-depth (it stays secure as long as either classical or lattice hardness holds). For National Security Systems and CNSA 2.0 procurement, use ML-KEM-1024 and ML-DSA-87.

Should I immediately delete all my Ed25519 SSH keys?

No—keep using Ed25519 (or ECDSA P-384 for CNSA-transitional hosts) for SSH login, and prioritize upgrading OpenSSH to 9.9+/10.0+ on both client and server so session key exchange uses mlkem768x25519-sha256.