Hardware
Post Quantum Cryptography: What Changes and When
Post quantum cryptography explained: why quantum computers threaten RSA and ECC, the NIST ML-KEM and ML-DSA standards, deadlines and what to do now.
Post quantum cryptography (PQC) is a new generation of public-key encryption and digital signature algorithms designed to stay secure even against large quantum computers. It matters because a big enough quantum computer could break RSA and elliptic-curve cryptography, which protect almost every HTTPS connection, software update and digital signature today. NIST published the first PQC standards in August 2024 (ML-KEM, ML-DSA and SLH-DSA), browsers and SSH already use them for key exchange, and NIST's final transition plan deprecates RSA and elliptic-curve algorithms after 2030 and disallows them after 2035.
This guide explains what post quantum cryptography is, why quantum computers threaten current encryption, the new post quantum cryptography algorithms and how they compare with today's, whether AES-256 is quantum safe, what's already deployed, the official timelines, and a practical migration plan.
What Is Post Quantum Cryptography?
What is post quantum cryptography in simple terms? It's ordinary software cryptography, running on ordinary computers, built on maths problems that quantum computers aren't known to solve efficiently. That's the key difference from quantum cryptography (such as quantum key distribution), which uses quantum physics itself and needs special hardware and fibre links. PQC is a drop-in replacement for the algorithms in today's protocols; quantum key distribution is a different technology with niche uses.
Modern security relies on two kinds of cryptography:
- Symmetric cryptography (AES, ChaCha20, SHA-2, SHA-3) encrypts and hashes data with shared secrets. It's fast and mostly unaffected by quantum computers.
- Public-key cryptography (RSA, Diffie-Hellman, elliptic curves such as X25519, ECDSA and Ed25519) lets strangers agree on keys and verify signatures. This is what quantum computers threaten, and what PQC replaces.
Why Quantum Computers Threaten Today's Encryption
In 1994, mathematician Peter Shor published a quantum algorithm that factors large numbers and computes discrete logarithms efficiently. RSA's security depends on factoring being hard; Diffie-Hellman and elliptic-curve cryptography depend on discrete logarithms being hard. A large, error-corrected quantum computer running Shor's algorithm would break all of them.
No such machine exists yet. But the estimates of what it would take keep falling. In May 2025, Google researcher Craig Gidney estimated that a 2048-bit RSA key could be factored in under a week with fewer than one million noisy qubits, down from about 20 million qubits in a 2019 estimate he co-authored. Google noted that today's quantum computers with useful error rates have on the order of 100 to 1,000 qubits, so the gap is still large, but it's shrinking from both directions. Our quantum computing vs AI explainer covers how qubits and error correction work.
Harvest now, decrypt later
The urgent risk isn't tomorrow's codebreaking, it's today's recordings. An attacker can capture encrypted traffic now and store it until a quantum computer can decrypt it. Anything that must stay secret for 10 or 20 years, such as health records, state secrets, trade secrets and long-term financial data, is already exposed if it travels over connections protected only by classical key exchange. That's why key exchange is being upgraded first.
Signatures face a different timeline: forging a signature only matters once a quantum computer exists, but devices and certificates with long lifetimes (cars, satellites, industrial controllers, root certificates) need quantum-safe signatures well before then.
Post Quantum Cryptography Algorithms: The NIST Standards
NIST ran an open competition from 2016, with cryptographers worldwide submitting and attacking candidates. On August 13, 2024, it published the first three standards:
| Standard | Algorithm (original name) | Purpose | Maths family | Notes |
|---|---|---|---|---|
| FIPS 203 | ML-KEM (CRYSTALS-Kyber) | Key encapsulation (agreeing on a shared secret) | Module lattices | The main replacement for Diffie-Hellman and RSA key exchange |
| FIPS 204 | ML-DSA (CRYSTALS-Dilithium) | Digital signatures | Module lattices | The main general-purpose signature replacement |
| FIPS 205 | SLH-DSA (SPHINCS+) | Digital signatures | Hash functions | Conservative backup based only on hash security; large signatures |
| FIPS 206 (in development) | FN-DSA (Falcon) | Digital signatures | Lattices (NTRU) | Smaller signatures than ML-DSA, harder to implement safely |
| Selected March 2025 | HQC | Key encapsulation | Error-correcting codes | Backup KEM based on different maths in case lattices are weakened |
Lattice problems involve finding short vectors in high-dimensional grids of points; no efficient classical or quantum algorithm is known for them. Hash-based signatures rely only on the security of hash functions, which is why SLH-DSA is considered very conservative.
How the new algorithms compare in size
The big practical difference is size. Post-quantum keys and signatures are much larger than elliptic-curve ones, which affects bandwidth, handshake latency and constrained devices.
| Algorithm | Public key | Ciphertext or signature | Type |
|---|---|---|---|
| X25519 (classical) | 32 bytes | 32-byte key share | Key exchange |
| ML-KEM-768 | 1,184 bytes | 1,088-byte ciphertext | Key encapsulation |
| RSA-2048 (classical) | 256-byte modulus | 256-byte signature | Signature or key transport |
| Ed25519 (classical) | 32 bytes | 64-byte signature | Signature |
| ML-DSA-65 | 1,952 bytes | 3,309-byte signature | Signature |
| SLH-DSA-SHA2-128s | 32 bytes | 7,856-byte signature | Signature |
Sizes from FIPS 203, 204 and 205 and the classical algorithm specifications. ML-KEM is also fast, often comparable to or faster than elliptic-curve operations, so the cost is mostly in bytes on the wire rather than computation.
Quantum Safe Encryption in Practice: Hybrids
Quantum safe encryption today is usually deployed as a hybrid: the connection combines a classical algorithm (X25519) with a post-quantum one (ML-KEM-768), and an attacker has to break both. That protects against quantum attacks while hedging against the possibility that a new algorithm has an undiscovered weakness.
The hybrid group used on the web is called X25519MLKEM768. It's already widely deployed:
- Browsers: Chrome made hybrid post-quantum key exchange the default and moved to X25519MLKEM768 in version 131; other major browsers have followed.
- CDNs and servers: Cloudflare supports hybrid post-quantum key agreement for visitors and increasingly for connections to origin servers. OpenSSL 3.5 added ML-KEM, ML-DSA and SLH-DSA and offers X25519MLKEM768 in its default TLS key shares, so servers built on it, including nginx, can negotiate it. Go enables X25519MLKEM768 by default from Go 1.24, and Caddy supports it in its curve list. Our nginx vs Caddy comparison covers both servers' TLS setup.
- SSH: OpenSSH made the hybrid mlkem768x25519-sha256 key exchange its default in version 10.0, after earlier defaulting to an sntrup761 hybrid, and newer versions warn when a connection doesn't use post-quantum key exchange.
- Messaging: Signal added post-quantum protection to its key agreement (PQXDH) in 2023, and Apple's iMessage introduced its PQ3 protocol in 2024.
Signatures are moving more slowly, because certificates, hardware security modules and the whole web PKI have to change together, and large post-quantum signatures make certificate chains much bigger.
Is AES 256 Quantum Safe?
Yes, as far as anyone knows. The reason AES 256 is quantum safe comes down to which quantum algorithm applies. Quantum computers attack symmetric ciphers with Grover's algorithm, which in theory speeds up brute-force search quadratically. That roughly halves the effective key strength: AES-128 would offer about 64 bits of quantum security in theory, and AES-256 about 128 bits, which remains far beyond reach. In practice Grover's algorithm parallelises poorly and needs enormous error-corrected machines, so even AES-128 is much harder to attack than the halving suggests.
The common guidance is to use AES-256 (or ChaCha20 with 256-bit keys) and SHA-256 or stronger for long-lived protection. The NSA's CNSA 2.0 suite, for example, specifies AES-256 and SHA-384 or SHA-512 alongside ML-KEM and ML-DSA. The weak point is never the symmetric cipher itself; it's the public-key exchange that delivers the symmetric key, which is exactly what PQC fixes.
The Timeline: What Changes and When
NIST's transition report (NIST IR 8547), finalized in October 2026, sets the schedule for its standards:
| Algorithm family | Status under NIST IR 8547 |
|---|---|
| RSA signatures and key establishment (112-bit security and above) | Deprecated after 2030, disallowed after 2035 |
| ECDSA and EdDSA signatures | Deprecated after 2030, disallowed after 2035 |
| Finite-field and elliptic-curve Diffie-Hellman and MQV | Deprecated after 2030, disallowed after 2035 |
| ML-KEM, ML-DSA, SLH-DSA | Approved replacements |
"Deprecated" means the algorithm may still be used but carries risk the user must accept; "disallowed" means it may no longer be used under NIST standards. The report also notes the US government's goal, set in National Security Memorandum 10, of completing the migration by 2035, with the most sensitive systems moving to PQC key establishment by the end of 2030 and signatures by the end of 2031.
Other governments and standards bodies are publishing similar roadmaps, and regulated industries such as finance and healthcare increasingly ask vendors about their PQC plans. The practical message is consistent: key exchange now, signatures and PKI over the next several years, and everything done by the mid-2030s.
How to Prepare: A Migration Checklist
Most organisations won't implement PQC algorithms themselves; they'll get them through updated libraries, operating systems, browsers, cloud services and hardware. The work is knowing where cryptography lives and making sure it can be swapped.
- Build a cryptographic inventory. List where you use public-key cryptography: TLS endpoints, VPNs, SSH, code signing, document signing, certificates, hardware security modules, IoT devices, databases and third-party services. Many teams find this is the hardest step.
- Prioritise by data lifetime. Systems handling data that must stay confidential for many years, and devices that will be in the field past 2030, come first.
- Turn on hybrid key exchange where it's available. Update TLS libraries and servers to versions that support X25519MLKEM768, and update SSH to versions with post-quantum key exchange.
- Design for crypto agility. Avoid hard-coding algorithms and key sizes; make them configurable so the next change doesn't require a rewrite.
- Test the bigger sizes. Larger keys and signatures can break assumptions in network middleboxes, packet sizes, embedded firmware and protocols with tight size limits.
- Ask vendors for roadmaps. Cloud providers, certificate authorities, VPN and HSM vendors should be able to say when they support ML-KEM and ML-DSA.
- Plan certificate and signing changes. Track when your certificate authorities and code-signing tools offer post-quantum or hybrid certificates, and when your clients can verify them.
- Keep using strong symmetric crypto. Standardise on AES-256 and SHA-256 or stronger for data at rest and long-term integrity.
Common Misconceptions
- "Quantum computers will break all encryption." They threaten public-key algorithms; strong symmetric encryption and hashes survive with larger key sizes.
- "PQC needs quantum hardware." It runs on normal computers and devices.
- "We can wait until quantum computers exist." Harvest-now-decrypt-later attacks and long migration times mean waiting is already too late for long-lived secrets.
- "Just swap the algorithm." Bigger keys, new certificate formats, hardware dependencies and interoperability testing make migration a multi-year project for large organisations.
- "The new algorithms are unproven." They went through eight years of public analysis, and hybrids guard against surprises. One candidate, SIKE, was broken during the process, which is exactly why the competition was public and why NIST keeps backups from different maths families.
FAQ
When will quantum computers break RSA?
Nobody knows. Current machines are far too small and noisy, but resource estimates have fallen sharply, and governments are planning as if a cryptographically relevant quantum computer could exist within roughly a decade. NIST's timeline disallows RSA under its standards after 2035.
What is the difference between post quantum cryptography and quantum cryptography?
Post quantum cryptography uses classical algorithms that run on ordinary computers and resist quantum attacks. Quantum cryptography, such as quantum key distribution, uses quantum physics to exchange keys and requires specialised hardware and links.
Is my HTTPS connection already quantum safe?
Possibly for key exchange: recent versions of Chrome and other browsers negotiate hybrid X25519MLKEM768 with servers that support it, including many sites behind major CDNs. Certificates and signatures on the web are still classical.
Which post quantum algorithm should I use?
Use what your libraries and protocols standardise: ML-KEM (usually in the X25519MLKEM768 hybrid) for key exchange, and ML-DSA for signatures, with SLH-DSA where very conservative signatures are worth the size. Don't implement these algorithms yourself.
Do I need to re-encrypt stored data?
Data encrypted with AES-256 is generally fine. The risk is in how keys were exchanged or wrapped: data or keys protected only by RSA or elliptic-curve key exchange may need re-wrapping with quantum-safe methods.