All insights

Security

Preparing for Q-Day: A Post-Quantum Cryptography Migration Playbook

A sufficiently large quantum computer would break the public-key cryptography that secures systems today. For long-lived secrets the threat is not hypothetical, and the migration to post-quantum algorithms is an engineering programme that should start now.

Root Digit Security · Cryptography & Assurance6 min read

Post-quantum migration is frequently deferred on the reasoning that cryptographically relevant quantum computers do not yet exist. That reasoning fails for a specific and well-understood reason: encrypted traffic captured today can be stored and decrypted later. For any data whose confidentiality must outlast the arrival of such a machine, the exposure has already begun.

The inequality that determines your deadline

Mosca's inequality frames the decision precisely, and it turns an unanswerable question about quantum timelines into an answerable question about your own data and your own systems.

X  +  Y  >  Z    →    you are already late

X — how long your data must remain confidential · Y — how long migration will take your organisation · Z — time until a cryptographically relevant quantum computer exists

Z is genuinely uncertain and nobody can supply it. X and Y are not — they are properties of your business, and both are usually larger than people assume. Medical records, government material, long-term contracts and identity documents carry X measured in decades. Y, for an enterprise that does not know where all its cryptography lives, is comfortably five to ten years. With X + Y frequently exceeding thirty years, the inequality holds under almost any credible estimate of Z.

What quantum computing actually breaks

The threat is not uniform, and treating it as such produces both wasted effort and missed exposure.

PrimitiveBasisQuantum impactResponse
RSAInteger factorisationBroken (Shor)Replace
ECDH / ECDSADiscrete logBroken (Shor)Replace
Diffie-HellmanDiscrete logBroken (Shor)Replace
AES-128SymmetricWeakened (Grover)Move to AES-256
AES-256SymmetricAdequate marginKeep
SHA-256HashCollision margin reducedKeep, or SHA-384
Shor's algorithm gives an exponential speedup against the hardness assumptions behind all deployed public-key cryptography. Grover gives only a quadratic speedup against symmetric primitives, which doubling the key length fully answers.

The practical summary: every public-key algorithm in production must be replaced, and symmetric cryptography needs only larger parameters. That is a smaller problem than it sounds and a much larger one, because public-key cryptography is embedded in every protocol, certificate, signed artefact and hardware root of trust in the estate.

The standards exist, which removes the remaining excuse

NIST completed its selection process and published final standards: ML-KEM for key encapsulation, ML-DSA for digital signatures, and SLH-DSA as a hash-based signature alternative whose security rests on different assumptions from the lattice-based schemes. Deployment is no longer blocked on standardisation.

The engineering consequence is size. Post-quantum keys, ciphertexts and signatures are substantially larger than their elliptic-curve equivalents, and that lands on protocols, packet sizes and storage.

AlgorithmPublic keyCiphertext / signature
X25519 (classical)3232
ECDSA P-256 (classical)6564
ML-KEM-7681,1841,088
ML-DSA-651,9523,309
SLH-DSA-128s327,856
Approximate sizes in bytes. The signature column is where protocol problems concentrate — a certificate chain carrying three ML-DSA signatures no longer fits assumptions built around 64-byte ECDSA.

These sizes have consequences that are easy to miss until integration. A TLS ClientHello carrying a post-quantum key share may exceed a single packet, and some middleboxes handle that badly. Constrained IoT devices with kilobytes of RAM may not hold a certificate chain at all. DNSSEC responses risk fragmentation. Each is solvable, and each is discovered late by teams that treated migration as an algorithm substitution.

Hybrid first, because it is the only option that fails safely

The lattice problems underpinning ML-KEM have been studied for decades but have far less deployment history than elliptic curves, and a classical cryptanalytic advance against them is not impossible. Hybrid key exchange removes the need to bet either way: perform both a classical and a post-quantum exchange and combine the results, so the session is secure unless both are broken.

K  =  KDF(   ssclassical  ‖  ssPQ  ‖  transcript   )

Concatenating both shared secrets before derivation means an attacker must break both primitives. This is what is already deployed at scale in TLS today — hybrid key exchange is live across a large fraction of browser traffic.

Confidentiality should move to hybrid now. Signatures are less urgent — a signature forged in 2040 cannot retroactively compromise a session from 2026 — but long-lived trust anchors are the exception, because a root certificate or firmware signing key issued today may still be validating in twenty years.

Firmware signing deserves separate treatment

A device shipping today with an ECDSA root of trust burned into fuses cannot have that root replaced in the field. If the device is still deployed when the algorithm falls, it can no longer verify updates — which is to say it can no longer be patched, permanently.

Stateful hash-based signatures are the mature answer for this specific case. Their security depends only on the hash function, with no new mathematical assumption, and they are standardised for exactly this use. The cost is real: they are stateful, and reusing a one-time key catastrophically breaks the scheme, so key state management must be correct with no margin for error. For a signing operation that happens in a controlled facility a few times a year, that is an acceptable constraint — and provisioning a post-quantum trust anchor alongside the classical one at manufacture is far cheaper than the alternative.

Start with the inventory, because you cannot migrate what you cannot find

The first deliverable is not a new algorithm. It is a cryptographic bill of materials: every place the organisation uses public-key cryptography, what algorithm, what key length, what data it protects, how long that data must stay confidential, and who owns it. Most enterprises cannot produce this document, and producing it routinely surfaces hardcoded keys, unowned certificates, expired-but-still-trusted anchors and protocol implementations nobody remembers deploying.

Then prioritise by X — data lifetime — rather than by system importance. A payment system with a fifteen-minute confidentiality requirement is far less exposed to harvest-now-decrypt-later than an archive of employee records nobody considers critical. And build for crypto-agility as you go, because the actual lesson of this migration is that there will be another one, and organisations that can change algorithm without changing application will spend a fraction of what everyone else does.

Explore how Root Digit can support your team

From discovery workshops to production deployment, our engineers and consultants partner with you across the lifecycle of your AI, robotics, and IoT initiatives.

Cookie Policy

We use cookies to enhance your browsing experience, serve personalized content, and analyze our traffic. By clicking "Accept All", you consent to our use of cookies. You can also choose "Necessary Only" to limit cookies to essential website functions only. Learn more