← All Articles

What Quantum Computing Means for the Encryption Behind Your AI

Updated 20 min readGovernance & RiskSharePDF

Listen to this article

What Quantum Computing Means for the Encryption Behind Your AI

0:00
Jump to a section

Executive Summary

Every AI system depends on public-key cryptography. RSA and elliptic-curve algorithms protect the connections that carry training data and prompts, the signatures that prove a model file is genuine, and the tokens that identify an AI agent to the systems it acts on. A large, error-corrected quantum computer running Shor’s algorithm would break all of them. No such machine exists today, and nobody has broken RSA-2048. What has changed is the estimated size of the machine required: in 2025 Craig Gidney put RSA-2048 within reach of under a million noisy qubits, down from twenty million in 2019, and in March 2026 Google Quantum AI cut the figure for 256-bit elliptic curves by about twentyfold. Data intercepted today can be stored and decrypted later, so the exposure has already started for anything that must stay secret into the 2030s. The replacement standards exist. The work is finding every place your AI stack uses the old algorithms and moving it.

<1m

noisy qubits estimated to factor RSA-2048 in under a week, down from 20 million in 2019, Gidney, Google Quantum AI, 2025

~20x

reduction in physical qubits needed to break 256-bit elliptic-curve cryptography, Google Quantum AI, March 2026

28–49%

averaged expert estimate that a cryptographically relevant quantum computer arrives within ten years, Global Risk Institute, 2025

2029

Google’s own target date for completing its post-quantum migration, a year ahead of NIST’s 2030 deprecation date

Core conclusions

  • Public-key algorithms are the exposure. RSA, Diffie-Hellman and elliptic-curve cryptography fall to Shor’s algorithm. AES-256 and SHA-256 remain sound, so encrypted storage is mostly safe once its keys are exchanged and wrapped with quantum-safe methods.
  • AI adds two specific risks. Training data, prompts and model weights sent over today’s links can be harvested now and read later, and model signatures and agent credentials can be forged once a large quantum computer exists.
  • The fix is a managed migration: a cryptographic inventory that covers the AI stack, hybrid ML-KEM key exchange now, a plan for ML-DSA signatures, and contract terms that hold AI vendors to the same dates.

Most of the AI risk conversations I sit in are about the model: bias, hallucination, what an agent is allowed to do. Very few cover the cryptography underneath it, because cryptography has been a solved problem for most executives’ entire careers. Quantum computing reopens it. This post sets out what a quantum computer would break, how close that machine is on the published evidence, where an AI programme is exposed, and what I would ask a board to approve this year.

Which encryption quantum computers break

Modern systems use two families of cryptography. Symmetric algorithms such as AES encrypt the data itself. Public-key algorithms such as RSA and elliptic-curve cryptography do the harder job of agreeing those keys between strangers over the internet and of signing things so that a recipient can prove who sent them. In 1994 Peter Shor showed that a large enough quantum computer could solve the mathematical problems behind public-key cryptography efficiently. The symmetric side is affected far less: Grover’s algorithm gives a quantum computer a square-root speed-up against AES, which a 256-bit key absorbs.

AlgorithmWhat it doesEffect of a large quantum computer
RSAKey exchange, digital signatures, certificatesBroken by Shor’s algorithm
Elliptic-curve (ECDH, ECDSA, EdDSA)Key exchange in TLS, signatures on code, tokens and certificatesBroken by Shor’s algorithm
Diffie-HellmanKey exchange in VPNs and older TLSBroken by Shor’s algorithm
AES-128Encrypting dataWeakened by Grover’s algorithm; move to AES-256
AES-256Encrypting data at rest and in transitRemains secure
SHA-256 and SHA-3Hashing and integrity checksRemain secure at current sizes

Sources: NIST IR 8547 (initial public draft, 2024); UK NCSC, Timelines for migration to post-quantum cryptography (2025).

The first three rows are the problem. They are in every TLS connection, every VPN, every signed software update and every certificate a browser checks. I want to be precise about the state of play, because the phrase “quantum breaks encryption” is often used as if it had already happened. It has not. No quantum computer has factored a real RSA key, and today’s machines have far too few error-corrected qubits to try.

How close the machine is

The useful measure is the size of machine the published algorithms require, and that number has fallen fast.

YearTargetEstimated machineRuntimeSource
2019RSA-2048About 20 million noisy qubitsAbout 8 hoursGidney and Ekerå
2025RSA-2048Fewer than 1 million noisy qubitsUnder a weekGidney, Google Quantum AI
2026256-bit elliptic curveFewer than 500,000 physical qubitsA few minutesBabbush, Neven and colleagues, Google Quantum AI

All three estimates assume a superconducting machine with a physical error rate of about 0.1 per cent. Sources: arXiv 1905.09749; arXiv 2505.15917; Google Research, March 2026.

Hardware still has a long way to go to meet those numbers. The direction of travel is the point. Each improvement in algorithms and error correction brings the target closer to the hardware, from both ends at once. The Global Risk Institute’s 2025 survey of 26 quantum experts put the chance of a cryptographically relevant quantum computer within ten years at between 28 and 49 per cent, the highest ten-year estimate in the survey’s seven-year history. In March 2026 Google moved its own migration deadline to 2029, citing “progress on quantum computing hardware development, quantum error correction, and quantum factoring resource estimates.”

When the company that builds some of the most advanced quantum hardware sets itself a 2029 deadline, I stop treating 2035 as the planning date.

Where AI depends on public-key cryptography

AI systems do not use special cryptography. They inherit whatever the surrounding infrastructure uses, and they add new traffic, new identities and new artefacts that need protecting. Mapping an AI programme against the table above gives a list most security teams have not written down.

AI assetCryptography it relies onQuantum exposure
Training data moving between sources, lakes and training clustersTLS key exchange, usually elliptic-curveHarvest now, decrypt later
Prompts, retrieved documents and outputs sent to model APIsTLS key exchangeHarvest now, decrypt later
Model weights stored in the cloudAES for the data; RSA or elliptic-curve keys to wrap and share the encryption keysData is safe; key wrapping and transfer are exposed
Model files downloaded from a hub or vendorDigital signatures, for example OpenSSF Model Signing on SigstoreForged signatures on a tampered model
AI agents calling tools and APIsOAuth tokens and certificates signed with RSA or elliptic-curve keysForged credentials that impersonate an agent or a service
Content provenance on generated mediaContent Credentials (C2PA) signaturesForged provenance on synthetic content

My mapping, based on common enterprise AI architectures. The exposure column follows the algorithm table above.

Two rows deserve particular attention. The first is model weights. A frontier or fine-tuned model can hold a large share of an organisation’s AI investment, and RAND’s 2024 study of weight security identified 38 distinct attack vectors for stealing them. Encrypting the weights with AES-256 protects them at rest. The keys that unlock them still travel and get wrapped with public-key algorithms, and that is where a quantum-capable attacker would aim.

The second is agents. Every agent that acts on a system carries a credential, and most of those credentials are tokens signed with RSA or elliptic-curve keys. An organisation running hundreds of agents has hundreds of new machine identities, all resting on signature schemes that a quantum computer would let an attacker forge. The signing infrastructure behind them, from certificate authorities to token issuers, is some of the slowest to replace.

New algorithms also depend on the random numbers used to generate their keys, and post-quantum guidance mostly assumes that randomness is sound. It usually is, but there is a known failure. In 2012 researchers scanning the internet recovered the private keys of about 0.5 per cent of TLS hosts, because devices had generated keys before their random number generators were properly seeded, and many ended up sharing key material. Modern operating systems have largely closed that gap at boot. Cloned virtual machine images and snapshot restores are harder: a program that drew randomness before the snapshot can carry the same state into every copy. If agent credentials are issued on machines launched from a shared image, one bad state becomes many related keys, and ML-KEM key generation needs good randomness as much as RSA ever did. The practical control is to generate agent keys inside a validated key management service or hardware security module, and to keep evidence of its entropy source for the auditor.

When each risk arrives

The two halves of the threat run on different clocks.

Confidentiality is already exposed. An adversary can record encrypted traffic today and store it until a quantum computer can recover the keys. Michele Mosca’s rule of thumb states the test: if the years your data must stay secret, plus the years your migration will take, add up to more than the years until a quantum computer arrives, you are already late. Proprietary training data, customer records used for fine-tuning, health and financial data in retrieval systems and model weights all have shelf lives measured in years. For them the risk window opened when the data first crossed a network.

Mosca's rule

If secrecy plus migration outlasts the wait, you are already late.

Already late: data recorded today is still secret 6 years after the machine could arrive.

Secrecy neededMigrationTime until the machine

Illustrative defaults; set your own. Anything past the dashed line is data an adversary can record now and read later. The 2025 Global Risk Institute survey put the chance of such a machine within ten years at 28 to 49 per cent.

Authenticity fails later but costs more to fix. A signature cannot be forged retroactively in any useful sense, so the threat to model signing, code signing and agent credentials starts on the day a capable machine exists. The difficulty is that roots of trust, such as certificate authorities, firmware signing keys and hardware security modules, take years to replace. That is why Google now prioritises signature migration, stating that “digital signatures are a future threat that require the transition to PQC prior to a Cryptographically Relevant Quantum Computer.”

Two quantum risks to AI systems. Harvest now, decrypt later: confidentiality fails, exposure has already started, training data, prompts and model weights in transit are at risk, fix with hybrid ML-KEM key exchange now. Forged signatures: authenticity fails from the day a large quantum computer exists, model signatures, agent credentials and certificates are at risk, fix by planning the ML-DSA migration.
The left column is already a live exposure for any data that must stay secret into the 2030s. The right column is later, but its fix takes longest.

The replacement standards and deadlines

The standards question is settled. NIST published the first three post-quantum standards in August 2024: FIPS 203 (ML-KEM) for key exchange, and FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA) for signatures. It selected HQC in March 2025 as a backup key-exchange algorithm built on different mathematics. Hybrid key exchange, which combines ML-KEM with a classical algorithm, is already the default in Chrome, Edge and Firefox, and by October 2025 Cloudflare reported that more than half of the human traffic reaching its network used it.

Regulators have set dates.

BodyGuidanceKey dates
NIST (US)IR 8547, initial public draft, November 2024RSA and elliptic-curve at 112-bit security deprecated after 2030; all quantum-vulnerable public-key algorithms disallowed after 2035
UK NCSCTimelines for migration, March 2025Discovery complete by 2028; highest-priority migration by 2031; full migration by 2035
European UnionCoordinated implementation roadmap, June 2025National plans started by end 2026; high-risk systems, including finance and health, migrated by end 2030; as much as feasible by 2035
MAS (Singapore)Advisory MAS/TCRS/2024/01, February 2024Financial institutions to maintain a cryptographic inventory and build a quantum migration strategy
CSA (Singapore)Quantum-Safe Handbook and Quantum Readiness Index v1, July 2026Reported expectations for CII owners: migration plan by March 2027, quantum-safe procurement from 2028, migration complete by end 2031
GooglePQC migration timeline, March 2026Its own migration complete by 2029

Sources as listed. The CSA milestones are as reported by secondary coverage of the handbook; the handbook describes its guidance as not mandatory.

For a Singapore bank or a critical infrastructure operator, the practical deadline is the early 2030s at the latest. For most other organisations it is 2030 to 2035, arriving through procurement: suppliers to regulated firms will be asked to meet the same dates.

What to do this year

Nothing here requires a quantum computer or a quantum specialist. It is inventory, prioritisation and ordinary engineering change, done across a longer list of systems than most teams expect.

  1. Build a cryptographic inventory that includes the AI stack. MAS asked for this in 2024 and the NCSC wants discovery finished by 2028. Record every place RSA, Diffie-Hellman or elliptic-curve algorithms are used: model API connections, data pipelines, vector databases, model registries, agent credentials, key management and vendor links. Record where each key is generated as well, and whether that happens inside a FIPS 140-3 validated module or on a cloned virtual machine. Most organisations find far more instances than they expected, many inside third-party products.
  2. Rank data by how long it must stay secret. Apply the Mosca test. Training data, fine-tuning sets, model weights and retrieval corpora with a secrecy requirement past 2032 go to the top of the list.
  3. Turn on hybrid ML-KEM key exchange now. It is available in current browsers, major cloud load balancers and recent TLS libraries. The gap is usually internal: service-to-service traffic, training clusters, on-premise inference and legacy VPNs.
  4. Plan the signature migration. Model signing, code signing, agent tokens and internal certificate authorities need an ML-DSA path. Begin with anything whose trust anchor lives longer than five years, such as firmware and hardware roots.
  5. Design for crypto-agility. Algorithms belong in configuration. If swapping an algorithm means rewriting an application, the next change will be as expensive as this one. I also ask teams to check AI-generated code for hard-coded classical algorithms, because coding assistants learn from years of code written before these standards existed.
  6. Write the dates into contracts. Ask every model provider, cloud platform and AI vendor for its post-quantum roadmap, and put the dates in the contract. Your migration is only as fast as the slowest supplier holding your data.

Be wary of anything sold as a shortcut. The UK NCSC and the US NSA both advise against relying on quantum key distribution as the answer for most organisations, and both point to the NIST algorithms as the main route. A vendor badge that says “quantum-safe” is worth checking against FIPS 203 and 204.

Questions for the board

Before the next AI budget round, I would want written answers to five questions:

  1. Do we have a cryptographic inventory, and does it cover our AI platforms, data pipelines and agents?
  2. Which of our data must stay confidential beyond 2032, and is any of it crossing networks without hybrid post-quantum key exchange?
  3. Who owns the post-quantum migration, what is the target date, and how does it compare with NIST’s 2030 and our regulator’s dates?
  4. How are model files and agent credentials signed today, and what is the plan to move them to ML-DSA?
  5. Which AI and cloud vendors have committed to post-quantum dates in writing?

Free tool

Technology Risk Board Pack

Twenty questions on resilience, change management and technology risk oversight, with the evidence to request and the rule behind each gap. A post-quantum migration runs through all four areas.

→

Evidence & Methodology

The resource estimates, standards and regulatory dates come from the researchers and agencies that published them. The mapping of AI assets to cryptographic exposure and the six steps are my own, drawn from assurance work on AI platforms, and I have marked them.

ClaimSourceGrade
RSA-2048 factored with fewer than 1 million noisy qubits in under a week, against 20 million qubits and 8 hours in 2019Gidney, arXiv 2505.15917 (2025); Gidney and Ekerå, arXiv 1905.09749 (2019)Forecast, peer research estimate
256-bit elliptic-curve cryptography broken with fewer than 500,000 physical qubits in minutes, about a twentyfold reductionGoogle Quantum AI, March 2026Forecast, research estimate
28 to 49 per cent chance of a cryptographically relevant quantum computer within ten yearsGlobal Risk Institute, Quantum Threat Timeline Report 2025, 26 expertsExpert survey
Google migration target of 2029 and priority on signaturesGoogle, March 2026Reported by Google
FIPS 203, 204 and 205 published August 2024; HQC selected March 2025NISTMeasured, standards record
More than half of human traffic to Cloudflare uses post-quantum key agreementCloudflare, October 2025Measured by Cloudflare
NIST, NCSC, EU and MAS dates and requirementsPrimary documents listed belowMeasured, regulator record
CSA milestones for CII owners (2027, 2028, 2031)Secondary coverage of the CSA handbook, July 2026Reported, not checked against the handbook text
Private keys recovered for about 0.5 per cent of TLS hosts because of weak randomness at key generationHeninger, Durumeric, Wustrow and Halderman, USENIX Security 2012Measured, internet-wide scan
38 attack vectors against model weightsRAND, Securing AI Model Weights (2024)Measured, structured study
Mapping of AI assets to quantum exposure; the snapshot risk to agent keys; AI coding assistants reproducing classical algorithms; the six stepsMy assessmentMy call

Sources

  1. Gidney, C. (2025). How to factor 2048 bit RSA integers with less than a million noisy qubits. arXiv 2505.15917.
  2. Gidney, C., and Ekerå, M. (2019). How to factor 2048 bit RSA integers in 8 hours using 20 million noisy qubits. arXiv 1905.09749.
  3. Babbush, R., and Neven, H. (2026). Safeguarding cryptocurrency by disclosing quantum vulnerabilities responsibly. Google Research.
  4. Adkins, H., and Schmieg, S. (2026). Google’s timeline for PQC migration. Google.
  5. Mosca, M., and Piani, M. (2026). Quantum Threat Timeline Report 2025. Global Risk Institute.
  6. National Institute of Standards and Technology. (2024). Post-quantum cryptography standardization: FIPS 203, 204 and 205.
  7. National Institute of Standards and Technology. (2024). NIST IR 8547 (initial public draft): Transition to post-quantum cryptography standards.
  8. National Cyber Security Centre. (2025). Timelines for migration to post-quantum cryptography.
  9. NIS Cooperation Group. (2025). A coordinated implementation roadmap for the transition to post-quantum cryptography. European Commission.
  10. Monetary Authority of Singapore. (2024). MAS/TCRS/2024/01: Advisory on addressing the cybersecurity risks associated with quantum.
  11. Cyber Security Agency of Singapore. (2026). Quantum-Safe Handbook and Quantum Readiness Index.
  12. Cloudflare. (2025). State of the post-quantum Internet in 2025.
  13. Heninger, N., Durumeric, Z., Wustrow, E., and Halderman, J. A. (2012). Mining your Ps and Qs: Detection of widespread weak keys in network devices. USENIX Security Symposium.
  14. Nevo, S., et al. (2024). Securing AI model weights: Preventing theft and misuse of frontier models. RAND.
  15. Open Source Security Foundation. (2025). Launch of Model Signing v1.0.
  16. National Cyber Security Centre. (2020). Quantum security technologies.
  17. National Security Agency. Quantum key distribution (QKD) and quantum cryptography (QC).

My thanks to Maria Singh for her contribution to this post. Her work on the research and the argument made it a stronger piece.

Greg Garville Jr

Thanks also to Greg Garville Jr of Qrypt for reviewing the post after publication. His question about where agent keys get their randomness led to the paragraph on cloned virtual machines and the added note in step one, both added on 26 September 2026.

If your organisation is planning its post-quantum migration and has not yet mapped the AI stack, the inventory in step one is where I usually start. My consulting work covers technology and AI risk governance for boards of regulated firms and public agencies.

Was this useful?

Terence Kok
Before You Go

I started reading the quantum resource papers expecting to write a calm post about a distant problem. The numbers moved too fast for that. In 2019 the estimate for breaking RSA-2048 was twenty million qubits. By 2025 it was under a million, and this year Google cut the figure for elliptic curves by a similar factor. None of that means the sky falls tomorrow. It means the migration we would have scheduled for the 2030s now belongs in this year's budget, and the AI programme is the place most organisations have not yet looked.

Terence Kok