alok760

Moving a tech company to post-quantum cryptography

Most of the encryption that protects the internet rests on two maths problems. One is factoring very large numbers, which is what RSA depends on. The other is a problem about points on curves, which is what elliptic-curve cryptography depends on. Ordinary computers can’t solve either in any useful amount of time. A large enough quantum computer could.

Nobody has built that machine yet, and estimates of when someone will range from “within ten years” to “much later”. So why spend time on this now? Two reasons.

First, attackers can record encrypted traffic today and decrypt it later, once they have a quantum computer. This is called “harvest now, decrypt later”. If your company sends data that must stay secret for ten years or more, such as financial records, health data, identity documents or trade secrets, that data is already at risk.

Second, changing cryptography across a whole company is slow. It touches every service, every vendor and every device. Anyone who lived through moving off SHA-1 or old versions of TLS knows these migrations take years, not months.

The good news is that the replacement algorithms are now standardised, the major libraries support them, and much of the first step is upgrades and configuration. This post is the plan I’d follow in a typical tech organisation: a few hundred engineers, a mix of cloud services, some legacy systems and a long list of vendors.

What changed recently

If you’ve been treating this as a problem for later, 2026 is a good year to change your mind. Here is what happened, most recent first.

The US government told its own systems to move now. On 2 December 2026, the NSA told the operators of US national security systems to move to post-quantum cryptography immediately (Breaking Defense). Its checklist is close to the plan in this post: find where vulnerable cryptography is used, check whether suppliers are ready, write post-quantum requirements into new purchases, and build systems so algorithms can be swapped later.

AI companies reported new results in cryptography. On the same day, the NSA, CISA and the White House’s Office of the National Cyber Director said American AI companies had disclosed discoveries that “impact the security of some cryptography currently in use” (joint statement). They didn’t say what was found or which algorithms are affected. They also said these advances are not an immediate, widespread threat. Amazon, Anthropic, Apple, Cloudflare, Google, Meta, Microsoft, OpenAI and Oracle published a statement backing the call to move to the NIST post-quantum standards as soon as possible.

New research on the maths behind the new algorithms. A few days earlier, on 30 November, Anthropic published papers describing a new quantum algorithm against the lattice problems that ML-KEM and ML-DSA are built on. Cloudflare’s cryptographers reviewed it and concluded it is purely theoretical: it would need billions of error-corrected qubits and an absurdly long running time, so it doesn’t affect any deployed system (Cloudflare). The lesson isn’t to avoid ML-KEM and ML-DSA. It’s that every algorithm keeps being studied, which is exactly why you want hybrids and the ability to change algorithms quickly (step 5 below).

Big providers are speeding up. Cloudflare says 73% of human traffic to its network is already post-quantum encrypted. On 3 December it brought forward its goal of being fully post-quantum, including authentication, from 2029 to the end of 2027, and said it will require its critical vendors to use post-quantum cryptography too (Cloudflare). Expect more of your suppliers, and your customers, to ask you the same question.

NIST fixed the dates. In October, NIST published the final version of its transition plan, IR 8547. RSA and elliptic-curve algorithms become deprecated after 2030 and disallowed after 2035. The 2024 draft would have let larger keys, such as RSA-3072 and P-256, carry on until 2035. The final version doesn’t make that exception (CSA summary).

US federal deadlines arrived. An executive order in June (EO 14412) requires the US government’s most important systems to use post-quantum key exchange by the end of 2030 and post-quantum signatures by the end of 2031. It also asks for a rule that would extend requirements to federal contractors. If you sell to the US government, expect this to show up in contracts.

The machine needed keeps getting smaller. In 2019, the best estimate for breaking RSA-2048 was about 20 million physical qubits. In 2025, Google’s Craig Gidney showed it could be done with under a million, in less than a week (paper). Papers this year have proposed designs that would need fewer still. These are designs on paper, not working machines, but the estimates only move in one direction.

None of this changes the plan below. It changes how soon you should start it.

What breaks and what doesn’t

Quantum computers don’t affect all cryptography equally.

Kind of cryptography Examples What happens
Key exchange RSA key transport, Diffie-Hellman, ECDH, X25519 Broken
Digital signatures RSA signatures, ECDSA, Ed25519 Broken
Symmetric encryption AES Weakened a little. AES-256 is fine.
Hash functions SHA-256, SHA-3 Weakened a little. Still fine.

So the migration is really about two jobs:

  • Key exchange: how two computers agree on a secret key without anyone listening in.
  • Signatures: how you prove who created or approved something, like a certificate, a login token or a software update.

Your AES-encrypted databases and your SHA-256 hashes can mostly stay as they are. AES-128 is probably still fine in practice, but if you use it for data that has to stay secret for a long time, moving to AES-256 is a cheap extra margin.

The new algorithms

In August 2024 the US National Institute of Standards and Technology (NIST) published the first three post-quantum standards:

  • ML-KEM (FIPS 203), based on an algorithm called Kyber. It replaces key exchange. This is the one you’ll use first and most.
  • ML-DSA (FIPS 204), based on Dilithium. A general-purpose signature algorithm.
  • SLH-DSA (FIPS 205), based on SPHINCS+. A signature algorithm built only on hash functions. Its signatures are much larger and slower to make, but it rests on very well-understood maths. That makes it a good fit for things like firmware signing, where you want the most conservative choice.

More are on the way: FN-DSA, based on Falcon, for smaller signatures, and HQC as a backup for key exchange in case a weakness is ever found in ML-KEM.

The biggest practical difference from what you use today is size:

What Today Post-quantum
Key exchange public key X25519: 32 bytes ML-KEM-768: 1,184 bytes
Key exchange reply X25519: 32 bytes ML-KEM-768: 1,088 bytes
Signature Ed25519: 64 bytes ML-DSA-65: 3,309 bytes
Signing public key Ed25519: 32 bytes ML-DSA-65: 1,952 bytes

Speed is mostly not a problem. ML-KEM is about as fast as the elliptic-curve maths it replaces. The cost is in bytes: bigger handshakes, bigger certificates and bigger tokens. Remember that, because it’s where most of the surprises come from.

Hybrid: use both, for now

The new algorithms are young compared with RSA and elliptic curves. To hedge against an undiscovered flaw, most deployments today use a hybrid: they run a classical algorithm and a post-quantum one side by side and combine the results. An attacker has to break both.

The hybrid you’ll see most often in TLS is called X25519MLKEM768. It’s the familiar X25519 plus ML-KEM-768. Current versions of Chrome, Edge and Firefox already use it by default, and so do large providers like Cloudflare. For the next few years, hybrid is the sensible default.

The plan

Step 1: Give it an owner

Crypto migrations fail when they’re everyone’s job. Pick one owner, usually someone in security or platform engineering. Give them a small working group with people from infrastructure, the main application teams, and whoever manages vendors.

Treat it as a programme that runs for several years, with its own budget, not a ticket in someone’s backlog.

Step 2: Find all your cryptography

You can’t migrate what you don’t know about, so the first real piece of work is an inventory. In a typical company, cryptography lives in more places than people expect:

  • Public edge: CDNs, load balancers, API gateways, ingress controllers.
  • Internal traffic: service mesh mTLS, database connections, message queues, gRPC between services.
  • Remote access: VPNs, SSH, bastion hosts.
  • Identity: single sign-on (SAML and OIDC), JWTs and other signed tokens.
  • Keys and certificates: your cloud KMS or HSMs, internal certificate authorities, public certificates, secrets managers.
  • Data at rest: envelope encryption, where data is encrypted with AES but the AES key is itself protected with RSA. The RSA part is the weak point.
  • Code and builds: code signing, container image signing, package signing, mobile app and firmware signing.
  • Backups and archives: often encrypted once and kept for many years.
  • Third parties: payment providers, SaaS tools, partner APIs, hardware vendors.

Some ways to find it:

  • Scan your public and internal endpoints with a TLS scanner to see what they actually negotiate.
  • Search your code for crypto libraries and algorithm names such as RSA, ECDSA and secp256r1.
  • Export your certificate inventory from your CA, cloud provider or certificate manager.
  • Check your software bill of materials (SBOM) for crypto libraries and their versions.
  • Send vendors a short questionnaire (see step 7).

For each item, write down four things:

  1. Which algorithm it uses.
  2. What it protects, and how long that needs to stay secret.
  3. Who owns it.
  4. How hard it is to change: a config flag, a library upgrade, a vendor dependency, or hardware you can’t update.

A spreadsheet is fine to start with. What matters is having one list that everyone works from.

Step 3: Decide what goes first

There’s a simple rule of thumb, sometimes called Mosca’s rule. Add up how many years your data needs to stay secret and how many years your migration will take. If the total is longer than the time until a capable quantum computer exists, you’re already late for that data.

That gives a natural order:

  1. Key exchange that protects long-lived secrets. Anything an attacker could record today and decrypt later: customer financial data in transit, health records, internal traffic that carries credentials, and VPN links between offices and the cloud.
  2. Long-lived roots of trust. Root CA keys, firmware signing keys, and anything built into devices that stay in the field for years. A future quantum computer can’t go back and tamper with yesterday’s login, so signatures are generally less urgent than key exchange. But these particular keys are the hardest to replace, so the planning has to start early.
  3. Everything else that uses signatures: TLS certificates, tokens, and code signing for software you can update easily.
  4. Short-lived, low-value data last.

Step 4: Turn on hybrid key exchange

This is the biggest win for the least effort, and often it’s just upgrades and configuration.

  • Public edge: if you sit behind a major CDN, check whether post-quantum key exchange is already on. For load balancers and gateways you run yourself, upgrade to versions that support X25519MLKEM768 and enable it.
  • Libraries: OpenSSL 3.5 and later support ML-KEM and prefer the hybrid by default. Go’s standard TLS library has done the same since Go 1.24. BoringSSL and AWS-LC support it, and recent Java releases include ML-KEM. For many services, upgrading the runtime is the whole job.
  • SSH: OpenSSH 10 uses a hybrid ML-KEM key exchange by default. Upgrade servers and clients, and check that older clients can still connect.
  • VPNs: support varies a lot between vendors, so ask yours directly.

Watch out for one real problem. The hybrid makes the first message of a TLS handshake (the “ClientHello”) too big to fit in a single network packet. Some older firewalls, proxies and load balancers assume it always fits, and they drop or break the connection when it doesn’t. Browser makers hit exactly this when they rolled it out. Test through your real network path, roll out gradually, and keep a quick way to switch it off for a single route.

Step 5: Make your cryptography easy to change

The industry term is “crypto agility”. It means you can swap one algorithm for another without rewriting your systems. You probably don’t have it if:

  • algorithm names are hard-coded across dozens of services,
  • each team picks its own crypto library,
  • certificates are renewed by hand, or
  • nobody can say where a given key is used.

Ways to fix that:

  • Put cryptography behind a small number of shared libraries or platform services, so a change happens in one place.
  • Make the choice of algorithm a configuration setting, not something written into code.
  • Automate certificate issuance and renewal everywhere. You’ll need this anyway: public TLS certificate lifetimes are being cut in stages, down to 47 days by 2029.
  • Automate key rotation, and practise it before you need it.

This work pays off even if quantum computers take longer than expected, because the next algorithm change will be cheap.

Step 6: Plan the move for signatures

Signatures are harder than key exchange for two reasons: they’re much bigger, and they’re tied to certificates and chains of trust that involve other organisations.

  • Public certificates: no public certificate authority issues post-quantum certificates yet. Chrome has said it won’t simply add post-quantum versions of today’s certificates, because they’d be too big. Instead it plans a separate quantum-resistant root store built on a new, much smaller format called Merkle Tree Certificates, with the first ones expected in 2027 (Google). Until then you mostly stay ready, which is what step 5 is for.
  • Internal certificates: you control both ends, so start here. Set up a test internal CA that issues ML-DSA certificates and try it with a few services. Check that your service mesh, proxies and libraries accept them.
  • Tokens: a JWT signed with ML-DSA-65 carries a signature of about 3.3 KB, which grows to about 4.4 KB once it’s encoded. Browsers limit a single cookie to about 4 KB, and many proxies limit header sizes. Find out now where your tokens travel and how big they’re allowed to be.
  • Code and firmware signing: look at ML-DSA, or SLH-DSA for devices with long lives. Your KMS or HSM needs to support the algorithm, and the major cloud KMS services have started adding ML-DSA keys.

Step 7: Bring your vendors along

A large share of your cryptography lives in other people’s products. Add a few questions to your security reviews and contract renewals:

  • Do you support hybrid or post-quantum key exchange today? Where?
  • What’s your roadmap for ML-KEM and ML-DSA, with dates?
  • Can we turn it on, and is it on by default?
  • How will you handle certificates and signatures?

A vendor who can’t answer is a risk to track, and eventually a reason to look elsewhere.

Step 8: Test, roll out and measure

  • Measure handshake time and bandwidth before and after. The change is usually small, but mobile clients on poor networks and very busy internal services can feel it.
  • Roll out with feature flags or per-route settings, starting with internal traffic you control.
  • Watch connection errors broken down by client type, so you catch old clients and network devices that fail.
  • Keep a way to roll back.
  • Update the inventory as each item moves, and report progress as a number, such as “72% of public endpoints use hybrid key exchange”.

A realistic timeline

  1. First three months: owner and working group in place, first version of the inventory, vendor questions sent. Hybrid key exchange turned on wherever it’s only a configuration change.
  2. First year: hybrid key exchange on all public endpoints and most internal traffic. SSH upgraded. Crypto agility work underway, especially shared libraries and automated certificates.
  3. Years two and three: ML-DSA tested on internal certificates. A plan for code signing and long-lived keys. Vendor gaps tracked. Legacy systems that can’t be upgraded scheduled for replacement.
  4. By 2030: RSA and elliptic-curve algorithms gone from everything important.

That last date isn’t arbitrary. NIST’s final transition plan deprecates RSA and elliptic-curve algorithms after 2030 and disallows them after 2035. The US government wants its own most important systems on post-quantum key exchange by the end of 2030. The UK and the EU have set similar targets: high-priority systems by around 2030, everything by 2035. If you sell to governments, banks or large enterprises, expect your customers to start asking about this well before then.

Mistakes to avoid

  • Waiting until you’re sure when quantum computers will arrive. The inventory and the crypto agility work are worth doing anyway.
  • Writing your own implementations. Use well-maintained libraries and let their authors worry about the details.
  • Going post-quantum only, too early. Use hybrids until the new algorithms have more years of real-world use behind them.
  • Forgetting data at rest. RSA-protected keys and long-term backups are easy to miss.
  • Forgetting size limits. Packets, HTTP headers, cookies, database columns that store keys or signatures, and small devices with little memory.
  • Treating it as a one-off project. The goal is a company that can change its cryptography whenever it needs to, not one that changed it once.

Where to start on Monday

If you only do three things this month:

  1. Pick an owner.
  2. Start the inventory with your public endpoints and your certificate list.
  3. Upgrade one service to a library that supports X25519MLKEM768, turn it on, and see what happens.

None of this needs a quantum computer to exist first. It needs someone to start the list.

All writing