What is Shor's algorithm?

Shor's algorithm is a quantum method that solves integer factoring and discrete logarithm problems in polynomial time, which is why it is the main reason RSA and elliptic curve public-key cryptography must be replaced.

On this page

What is Shor's algorithm and why does it matter for your migration?

You have probably met Shor's algorithm in a vendor document, a standards reference or an audit request, and the question behind it is usually practical: does this change what I must protect, and when? Shor's algorithm is a quantum algorithm for integer factoring and discrete logarithms, published by Peter W. Shor in 1995. It is the main quantum threat to RSA and to public-key schemes based on discrete logarithms, which is why it appears in almost every post-quantum migration plan. You will see it cited by security architects, vendor-risk reviewers, procurement teams and compliance leads who need to know which of their public-key uses are exposed, not by the researchers who build the machines.

Shor's paper showed that a quantum computer could solve these problems in time polynomial in the input size, which classical methods are not known to do for large inputs. Shor's paper is the source to cite when a document says the threat is established in principle, but it does not say how close any machine is to running the attack. That gap is covered by resource estimates, such as Craig Gidney's 2025 paper, which estimates that a 2048-bit RSA integer could be factored in less than a week using fewer than a million noisy qubits under stated assumptions. Those assumptions, including the gate error rate and the hardware layout, change the answer, so confirm them against the version of the estimate your vendor or auditor relies on.

For your migration, the useful question is which systems depend on RSA or discrete-logarithm key exchange and signatures, and how long their secrets or trust must stay valid. Build an inventory of those uses, then plan the move to the post-quantum algorithms that NIST standardized in FIPS 203, FIPS 204 and FIPS 205, all published on 13 August 2024. NIST IR 8547 describes the transition, and its Final version, dated 27 October 2026, is the reference to check your timelines against. Ask each vendor which algorithms its products use for key establishment and signatures, and which versions support them.

Which names and references refer to Shor's algorithm?

This table lists the name, paper, publication details and target problems for Shor's algorithm, so you can match the name you see in a vendor document, a standard or an audit request to its source. Read the first column as the attribute and the second as the value for this algorithm. The main takeaway is that Shor's algorithm is named after its author rather than given a standard number, so it does not appear as a FIPS document, and a reader looking for a federal standard should check the NIST pages for the post-quantum algorithms instead.

ItemValueWhat it means for you
NameShor's algorithm, named after Peter W. ShorThe method is identified by its author's name, not by a number, so search for the name and the paper rather than a FIPS or standard identifier.
Paper titlePolynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum ComputerThe title names the two problems the algorithm addresses, which is the quickest way to confirm a reference is to this work.
arXiv identifierquant-ph/9508027Use this identifier to find the original preprint. The arXiv record shows a first submission on 30 August 1995 and a current version dated 25 January 1996.
Publication venueSIAM J. Sci. Statist. Comput. 26 (1997) 1484Cite this venue when a document or audit asks for a peer-reviewed reference rather than the preprint.
Problems addressedInteger factoring and discrete logarithmsThe algorithm targets RSA-style factoring and discrete logarithm based schemes, such as Diffie-Hellman and elliptic curve variants, which is why it is discussed in migration planning.
Running time claimPolynomial in the input size on a quantum computerThe paper claims polynomial time for these problems on a quantum machine. Confirm the exact claim against the paper itself before quoting it.
Standards statusNot a FIPS documentShor's algorithm is a published method, not a federal standard. Do not expect it in a FIPS listing; look for FIPS 203, 204 and 205 for the post-quantum algorithms.
Resource estimatesSeparate papers by Craig Gidney and by Gidney and Martin EkeraLater papers estimate hardware needed to run the attack on 2048-bit RSA. Check these estimates' assumptions, such as error rates and cycle times, before comparing them to your threat model.

Where does Shor's algorithm show up in vendor documents and audits?

Shor's algorithm rarely appears alone in procurement and audit material. It shows up in the threat rationale vendors give for migration, in the resource estimates that set how urgent the threat is, and in the algorithm inventories auditors ask for. Each card below names one place to look and what to check there.

Vendor threat statements

Vendor whitepapers and product pages often cite Shor's algorithm as the reason their product moves to post-quantum algorithms. Check whether the statement names the algorithms it protects against, which key exchange, signature or certificate functions it covers, and whether it links to a standard. Peter W. Shor's 1995 paper, first submitted 30 August 1995, is the original source for the claim that factoring and discrete logarithms can be solved in polynomial time on a quantum computer. A statement that cites it without naming the affected components is only a general claim.

Shor 1996 paper

Migration roadmaps

Migration roadmaps use Shor's algorithm to justify which public-key systems come first. Look for a list of the factoring and discrete logarithm based components in scope, such as RSA, Diffie-Hellman and elliptic curve schemes, and a target date for replacing each. Check whether the roadmap follows the transition direction in NIST IR 8547, which describes the move from quantum-vulnerable algorithms to post-quantum signature and key-establishment schemes. A roadmap that never names the algorithms it replaces is hard to verify.

NIST IR 8547

Resource estimates in research papers

Research papers estimate how many quantum resources a Shor attack on a given key size would need, and vendors sometimes quote these numbers in their risk sections. Check the stated assumptions before reading the result: qubit count, gate error rate, surface code cycle time and reaction time. Craig Gidney's 2025 paper estimates a runtime of less than a week using less than a million noisy qubits for 2048-bit RSA, with a uniform gate error rate of 0.1%. The 2019 Gidney and Ekera paper assumed a physical gate error rate of 10^-3 and a 1 microsecond surface code cycle. Estimates built on different assumptions are not directly comparable.

Gidney 2025 paper

Procurement questionnaires

Procurement questionnaires ask whether a product's cryptography is exposed to Shor-style attacks and when the vendor plans to move off it. A complete answer names each factoring or discrete logarithm based function, says whether it is key exchange, signature or certificate, and gives a dated plan for each. Watch for answers that say the product is quantum safe without listing the algorithms it uses. Ask the vendor which standard the replacement follows, for example FIPS 203, FIPS 204 or FIPS 205 for ML-KEM, ML-DSA and SLH-DSA.

FIPS 203 standard

Audit requests on exposed public-key algorithms

Audit requests often ask for an inventory of the public-key algorithms in use, marked by whether Shor's algorithm would break them. Auditors look for the systems that depend on RSA, Diffie-Hellman or elliptic curve schemes and for evidence of when each was last reviewed. Prepare an inventory that lists each affected system, its algorithm, its function and its owner. The inventory should reflect what your systems actually run, so confirm each entry against your own configuration rather than relying on vendor summaries.

What role does Shor's algorithm play in a system's cryptography?

Shor's algorithm is an attack on public-key cryptography, not a component that a product deploys. No system installs it, configures it or turns it on. The question for a security team is therefore not whether to adopt Shor's algorithm but which of its own public-key functions it would break if a sufficiently capable quantum computer ran it. Peter W. Shor's 1995 paper, first submitted to arXiv as quant-ph/9508027 and later published in SIAM Journal on Scientific and Statistical Computing in 1997, presents randomized algorithms for integer factoring and discrete logarithms on a quantum computer with running time polynomial in the input size. Those two problems are the ones the attack targets.

In practice, the targeted functions are the public-key ones: key establishment and digital signatures built on RSA and on discrete logarithms, including the elliptic curve variants of discrete logarithm schemes. When a system uses these to agree a session key or to sign a certificate, the public-key step is the part Shor's algorithm would undermine. Symmetric encryption such as AES and hash functions such as SHA-2 are not the target. Shor's paper concerns factoring and discrete logarithms, and the sources listed on this page do not say that the algorithm breaks symmetric ciphers or hashes. The separate question of how quantum search affects symmetric key and hash strength is covered by Grover's algorithm, not by this page.

For a migration plan, this distinction tells you where to look. Inventory the places where RSA, Diffie-Hellman or elliptic curve keys establish sessions, sign certificates or sign software and firmware, because those are the functions that the NIST post-quantum standards replace with schemes such as ML-KEM (FIPS 203) for key establishment and ML-DSA (FIPS 204) and SLH-DSA (FIPS 205) for signatures. Confirm with your vendors which of these public-key functions their products use and which versions they have moved to post-quantum schemes. The sources on this page do not give a date by which a quantum computer able to run the attack will exist, so plan on the basis of the migration guidance in NIST IR 8547 rather than on any forecast.

Is Shor's algorithm standardized, and which bodies act on it?

Shor's algorithm is not a standard. It is a published result: Peter W. Shor's 1995 paper, first posted to arXiv as quant-ph/9508027 and later published in SIAM J. Sci. Statist. Comput. in 1997, describes randomized algorithms for integer factoring and discrete logarithms that run in time polynomial in the input size on a quantum computer. No body issues a certificate or conformance mark for the algorithm itself. What practitioners can act on is the set of standards that respond to the threat it poses. The Shor result is the reason the post-quantum standards exist, and the standards are the documents a migration plan should cite.

The standards bodies that act on this threat are NIST's. On 13 August 2024 NIST published three documents with status Final: FIPS 203, which specifies ML-KEM for key establishment, FIPS 204, which specifies ML-DSA for digital signatures, and FIPS 205, which defines SLH-DSA, derived from SPHINCS+. FIPS 203 defines the parameter sets ML-KEM-512, ML-KEM-768 and ML-KEM-1024. The FIPS 203 page also carries a planning note dated 17 November 2025 saying an identified issue will be corrected in a future update or revision, so confirm the current revision on the NIST site before you cite it. These documents define the replacement algorithms; they do not say that Shor's algorithm is itself standardized or that any product using them is compliant.

The transition document is NIST IR 8547, Transition to Post-Quantum Cryptography Standards. It was published as an Initial Public Draft on 12 November 2024 and as a Final document on 27 October 2026. It describes the move from quantum-vulnerable algorithms to post-quantum signature and key-establishment schemes, and it references Executive Order 14412 and OMB Memorandum M-26-15. Read its stated scope before relying on it: it is guidance for federal and related transition planning, and its timelines apply to the bodies it names. For your own inventory, ask your compliance team which obligations, if any, bind your organization, and use the NIST documents as the reference for the algorithms you plan to deploy.

What should you do about Shor's algorithm in your migration?

This sequence turns the threat of Shor's algorithm into a working inventory of where RSA, elliptic curve and discrete-logarithm schemes run in your environment, mapped to the NIST post-quantum replacements and tracked against the transition guidance. The output is a checked list of affected systems, vendor answers and a dated plan to watch.

  1. Inventory where public-key schemes are used

    Security and platform engineers list every place your organization uses RSA, elliptic curve or other discrete-logarithm public-key schemes. Cover three functions separately: key exchange (for example, TLS handshakes and VPN tunnels), digital signatures (for example, code signing and document signing) and certificates (for example, internal and public PKI). Pull the list from configuration files, load balancers, certificate stores, identity providers, cloud key management services and application code, not from memory. The step is done when every system has a row that names the scheme, the function and the owner, and a second engineer has reviewed the list for gaps.

  2. Map each use to NIST replacement standards

    For each row in the inventory, identify the replacement that NIST has standardized for that function. NIST FIPS 203 specifies ML-KEM for key establishment, with parameter sets ML-KEM-512, ML-KEM-768 and ML-KEM-1024. NIST FIPS 204 specifies ML-DSA for digital signatures, and NIST FIPS 205 specifies SLH-DSA, a hash-based signature scheme derived from SPHINCS+. Record the mapping next to each row. Do not treat these as drop-in substitutes: confirm with the owner of each system which parameter set and which protocol integration it would use. The step is done when every row names a target algorithm and a standard, and each mapping has been checked against the standard itself.

  3. Ask vendors which products carry these schemes

    Send each vendor and open-source project on your inventory a written question asking which of their products use RSA, elliptic curve or discrete-logarithm schemes for key exchange, signatures or certificates, and which post-quantum algorithms they support, with the version and configuration each answer applies to. Ask for dated documentation rather than verbal assurances. Record the answers in your vendor-risk file. Where a vendor has published nothing on a point, record that fact and the date you asked. The step is done when every vendor on the inventory has answered in writing or has been escalated.

  4. Confirm live versions and configurations internally

    Vendor documentation describes product versions, not your deployment. Have platform engineers check, in your own environment, which versions are running and which cipher suites, key types and certificate algorithms are actually configured. Read the live configuration rather than the template, and capture the output from each system. Compare what is live against what the vendor said. Where the two differ, note the discrepancy and the component it applies to. Do not assume that a post-quantum algorithm is available or enabled because a product supports it in principle. The step is done when each row in the inventory has a verified version and configuration, with the evidence stored.

  5. Track NIST IR 8547 for the transition timeline

    NIST IR 8547, Transition to Post-Quantum Cryptography Standards, describes the move from quantum-vulnerable signature and key-establishment schemes to post-quantum replacements. It was published as an Initial Public Draft on 12 November 2024 and as a Final document on 27 October 2026. Assign an owner to read it, record the transition expectations that apply to your organization and its sector, and set a review date to catch later changes. Where your contracts or a federal customer require a specific timeline, confirm that requirement in writing rather than inferring it from the NIST document. The step is done when the owner has summarized the applicable expectations and the review date is on the migration calendar.

What do people search about Shor's algorithm?

What does Shor's algorithm stand for?

Shor's algorithm is named after Peter W. Shor, who presented it in his 1995 paper "Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer." The name identifies the author, not a standard or a product. The paper was first submitted to arXiv on 30 August 1995, with its current version dated 25 January 1996, and it was published in SIAM J. Sci. Statist. Comput. in 1997. When a vendor or standard mentions Shor's algorithm, they mean this method for factoring integers and computing discrete logarithms on a quantum computer.

Is Shor's algorithm a standard I need to implement?

No. Shor's algorithm is a quantum computing method described in a research paper, not a standard you adopt or a product you configure. Nothing in your environment runs it today, because it needs a large, fault-tolerant quantum computer. The standards that matter for your migration are the post-quantum algorithms NIST has finalized: FIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA), all published on 13 August 2024. Those standards replace the public-key schemes that Shor's algorithm would break, so you should reference them when you plan upgrades.

Does Shor's algorithm break AES?

No. Shor's algorithm targets integer factoring and discrete logarithms, which are the hard problems behind RSA, Diffie-Hellman and elliptic curve cryptography. It does not break AES, which is a symmetric cipher. The quantum threat to symmetric keys comes from a different method, Grover's algorithm, which weakens symmetric key and hash strength rather than breaking it outright. Your AES deployments therefore need a different response, typically choosing key sizes with the quantum search speedup in mind, and not the replacement that RSA and elliptic curve keys need.

Is a vendor product protected from Shor's algorithm?

The sources on this page do not say whether any particular vendor product is protected, and no product is protected simply by existing. What matters is which public-key algorithm the product uses for key exchange, signatures and certificates. A product that relies only on RSA, Diffie-Hellman or elliptic curve schemes is exposed to Shor's algorithm once a sufficiently large quantum computer exists. Ask the vendor which algorithms each function uses, which version and edition the answer applies to, whether post-quantum options are supported and enabled by default, and whether hybrid modes are offered. Verify the answers against the vendor's documentation and your own configuration.

How much does Shor's algorithm change my migration work?

It changes the scope and priority of the work rather than the process itself. Shor's algorithm is the reason your inventory must identify every place RSA, Diffie-Hellman and elliptic curve cryptography appear in key exchange, signatures and certificates. Those are the systems that need upgrading to the NIST post-quantum standards. The effort depends on how many systems use these algorithms, how many can be upgraded in place, and which cannot. Cost is driven by the size of the inventory, the number of vendors involved and the amount of testing required. The sources on this page do not give a cost or duration figure, so ask your team and vendors to estimate their own scope.

How close is a quantum computer able to run Shor's algorithm?

The sources on this page give estimates, not a date. Craig Gidney's 2025 paper estimates that factoring a 2048-bit RSA integer would take less than a week using less than a million noisy qubits, under stated assumptions about the hardware, including a uniform gate error rate of 0.1% and a square grid with nearest-neighbor connections. That is a significant reduction from the 2019 estimate by Gidney and Martin Ekera, which assumed about 20 million noisy qubits and a runtime of 8 hours. Treat these as resource estimates tied to their assumptions. Confirm current figures in the papers themselves before you use them in a risk assessment.

What should I ask a vendor about Shor's algorithm?

Ask the vendor which public-key algorithms their product uses for key exchange, digital signatures and certificates, and whether any of them are vulnerable to Shor's algorithm. Then ask whether they support the NIST post-quantum standards (FIPS 203, 204 and 205), whether those options are available in the version you run, and whether they are enabled by default or must be configured. Ask whether they offer hybrid modes that combine a classical and a post-quantum algorithm, and what their roadmap looks like. Request the answers in writing, tied to a specific version and edition, and check them against the vendor's documentation.

How DeployOpen works on this

DeployOpen treats Shor's algorithm as a threat model that shapes which systems in your environment need post-quantum work first. We scope the migration around the factoring and discrete logarithm based cryptography it targets, then build, test and document the changes inside your own infrastructure.

How we scope

  • We inventory where RSA, Diffie-Hellman and elliptic curve keys protect your data in transit and at rest.
  • We agree a fixed scope in writing that names the systems, protocols and certificates in play.
  • We separate key exchange from signatures so each part of the migration has its own deliverable.

How we build

  • We plan and implement the ML-KEM and ML-DSA configurations your platforms support, as defined in FIPS 203 and FIPS 204.
  • We customize, integrate and harden self-hosted services inside your cloud accounts, data centers or air-gapped networks.
  • We run security testing on the changed components and retest the findings until they are closed.

How we hand over

  • We document each configuration, the versions it applies to and the steps needed to reproduce it.
  • We prepare evidence your compliance and security teams can review, without issuing audit reports or certifications.
  • We confirm with you which product versions and edition-specific features your environment actually runs.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after the handover.
  • We track NIST guidance updates, including the planning note on FIPS 203, and apply changes to your configuration.
  • We keep the backup, upgrade and documentation records current as your post-quantum migration progresses.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.