Back to the index

Cryptography

Post-Quantum Cryptography (PQC): The "Q-Day" Migration

Post-quantum cryptography and the 'Q-Day' migration: why 'harvest now, decrypt later' makes the quantum threat urgent before the machine exists, what NIST's 2024 standards (ML-KEM, ML-DSA, SLH-DSA) are, why Shor's algorithm breaks RSA/ECC but not lattices, how hybrid key exchange (X25519+ML-KEM) is already deployed, and an honest account of how far off a real RSA-2048 break actually is.

Gustavo Hammerschmidt 27 min 271 views
Cover image for post: post-quantum-cryptography-pqc-the-q-day-migration-c8e352b3

Most of the encryption protecting the internet, RSA and elliptic-curve cryptography (ECC), rests on math that a large enough quantum computer could break with Shor's algorithm. "Q-Day" is the informal name for the moment such a machine exists. Post-quantum cryptography (PQC) is the set of new algorithms, built on math that quantum computers are not known to break, that the world is now migrating to. In August 2024 the US standards body NIST finalized the first of them, which turned PQC from a research topic into a deployment project.

This post explains the threat, the new standards, how the migration works, and how far away the danger actually is, with the uncertainty stated honestly rather than dressed up as a countdown. An earlier draft of this article contained fabricated qubit counts, confident break-date predictions, wrong key sizes and mislabeled citations; those are corrected against the sources linked at the end.

1. Harvest Now, Decrypt Later: Why the threat is already here

The quantum computer that breaks RSA does not exist yet, and that is not as reassuring as it sounds. An adversary can capture and store encrypted traffic today, bank transfers, state secrets, medical records, and simply wait, decrypting it years later once a capable quantum machine arrives. This is "harvest now, decrypt later," and it means the clock on anything that must stay secret for a decade or more has already started.

That is the whole urgency of PQC. For data with a long secrecy lifetime, waiting until Q-Day to switch is too late, because the ciphertext an attacker recorded this year will still be decryptable then. The defense has to be deployed before the threat is real, which is why standards bodies and governments are pushing migration now rather than later.

2. NIST Standards: ML-KEM, ML-DSA and SLH-DSA

On 13 August 2024 NIST published the first PQC standards: FIPS 203, ML-KEM (a key-encapsulation mechanism derived from CRYSTALS-Kyber); FIPS 204, ML-DSA (a signature scheme from CRYSTALS-Dilithium); and FIPS 205, SLH-DSA (a hash-based signature scheme from SPHINCS+). ML-KEM and ML-DSA are lattice-based; SLH-DSA is a conservative hash-based backup that rests on different assumptions in case lattices are later weakened.

The practical cost is size, not speed: these algorithms are fast, but their keys and signatures are bigger than classical ones. ML-KEM-768 has a public key around 1.2 KB and a ciphertext around 1.1 KB; an ML-DSA signature is a few kilobytes, far larger than an ECDSA signature's tens of bytes. (An earlier draft's "2048-byte keys and 512-byte signatures" were wrong.) Migrating production systems means budgeting for those larger payloads in protocols, certificates and storage, and keeping implementations constant-time to avoid side channels.

3. Lattice Math: Why quantum logic breaks factoring but not lattices

RSA and ECC are vulnerable for a specific reason: factoring and the discrete-logarithm problem have a hidden periodic structure that the quantum Fourier transform, the heart of Shor's algorithm, exploits for an exponential speedup. That is a narrow weakness, not a general one; Shor's algorithm does not break everything, only problems with that structure.

Lattice problems, finding short vectors in high-dimensional integer lattices, do not have that exploitable structure, and no efficient quantum algorithm is known for them. That "no known algorithm" is the honest basis of lattice cryptography's security: it is believed quantum-resistant because, after decades of study, nothing like Shor's trick has been found, not because it has been proven impossible. The separate quantum tool, Grover's algorithm, only speeds up brute-force search quadratically, which symmetric crypto handles by using larger keys (AES-256 remains safe).

4. Hybrid Key Exchange: Belt and braces during the transition

No one wants to bet everything on new algorithms that are only a few years old. The standard transitional approach is a hybrid key exchange: run a classical method (typically the ECC-based X25519) and a PQC method (ML-KEM) together, and combine both results so the session is secure unless an attacker breaks both. If the PQC part has an undiscovered flaw, the classical part still protects you today; if a quantum computer breaks the classical part tomorrow, the PQC part still protects you then.

This is already real, not theoretical. The X25519MLKEM768 hybrid has been deployed in TLS 1.3 by Chrome, Cloudflare and others, so a meaningful share of web traffic is now protected by a post-quantum handshake. The cost is a larger handshake and a little extra computation, a small price for not having to trust a single assumption during the riskiest part of the migration.

5. Q-Day: How far off, honestly

Here precision matters most and is hardest. Today's quantum computers have on the order of a thousand physical qubits (IBM crossed 1,000 in 2023), but they are far too noisy to run Shor's algorithm at scale. The gap is error correction: a widely cited analysis by Gidney and Ekerå (2019) estimated that breaking RSA-2048 would take roughly 20 million noisy physical qubits running for hours (later work has pushed the estimate down, but still into the hundreds of thousands or more). Because error-correcting one reliable "logical" qubit costs on the order of a thousand physical ones, the machines needed are orders of magnitude beyond what exists.

So anyone who gives you a confident year for Q-Day is guessing. Expert surveys spread their estimates across the 2030s and beyond, with real probability mass on "later" and genuine uncertainty about whether the engineering scales as hoped. This post therefore gives no break-date table (an earlier draft's was fabricated). The responsible planning assumption is not a date but a direction: the threat is credible, the timeline is unknown, and harvest-now-decrypt-later means the prudent move is to migrate before the answer is clear.

6. Infrastructure Lag: Why migration takes a decade

Even with standards in hand, swapping cryptography across the world's systems is slow. Cryptography is buried in protocols, hardware security modules, embedded devices, long-lived certificates, banking networks and firmware that is rarely updated, and much of it was written assuming the algorithm would never change. Past transitions (from SHA-1, from older TLS versions) took many years even when the replacement was easy.

This is why governments set long horizons: the US National Security Agency's CNSA 2.0 guidance, for example, lays out a transition for national-security systems stretching toward the 2030s. The lag is the real risk-management problem: the migration must outpace the threat, and it has a head start measured in years of inertia to overcome.

7. Cryptographic Agility: Designing for the next change

The deeper lesson of this migration is that it should not be the last one painful one. "Cryptographic agility" means building systems so the algorithm is a swappable component, negotiated and versioned, rather than hard-coded assumptions scattered through the stack. A system that can change its cipher suite through configuration, with clear identifiers and no baked-in key or signature sizes, can adopt the next standard, or back out a broken one, without a rewrite.

That matters because PQC itself is young. If a lattice weakness is found, agile systems can fall back to SLH-DSA or a revised parameter set quickly, while brittle ones face another decade-long scramble. The goal is to make the current migration the one that teaches systems how to migrate.

8. Blockchains and Exposed Keys

Public blockchains are a pointed case because their security rests on digital signatures (Bitcoin and Ethereum use ECDSA on the secp256k1 curve), exactly what Shor's algorithm breaks. The nuance is that a public key is only exposed once it is used: funds sitting at an address whose public key has never been revealed are better protected than those at a reused address whose public key is on the chain for anyone, eventually, to attack.

A quantum-capable adversary could, in principle, derive private keys from exposed public keys and move others' coins. The defenses are known, migrating to post-quantum signatures, discouraging address reuse, but they are hard to coordinate across decentralized networks with irreversible transactions and dormant wallets no one can force to upgrade. It is less "the end of blockchain" than a difficult, unavoidable migration that these systems will have to make under the same Q-Day clock as everyone else.

Conclusion

The quantum threat to cryptography is real, specific and already consequential through harvest-now-decrypt-later, even though the machine that realizes it does not yet exist. NIST's 2024 standards (ML-KEM, ML-DSA, SLH-DSA) give the world the replacements, and hybrid key exchange is already protecting real traffic while the new algorithms earn trust.

What no one can honestly supply is a date. Breaking RSA-2048 needs quantum computers far beyond today's, and whether that takes one decade or several is genuinely unknown. The right response is not to predict Q-Day but to prepare for it: migrate long-lived secrets now, deploy hybrids, and build the cryptographic agility to make the next change less painful than this one.

References