Shor's algorithm vs Grover's algorithm: two quantum attacks

Shor's algorithm targets public-key cryptography and Grover's algorithm targets symmetric and hash-based primitives. They call for different responses, so engineers need to know which one affects each system they run.

On this page

Shor's algorithm vs Grover's algorithm: which attack hits which cryptography

An engineer or reviewer who has met both names in a vendor document, a standard or an audit request usually needs one answer: which of the two quantum attacks applies to the cryptography in their own environment. Shor's algorithm is a quantum method that targets public-key schemes, the key exchange and signature algorithms that rely on problems a quantum computer could solve efficiently. Grover's algorithm is a quantum search method that targets brute-force search, so it bears on symmetric and hash-based primitives, where it reduces the effective strength of a key rather than breaking the scheme outright. The distinction that matters most is that the two affect different classes of cryptography, so they lead to different responses. Public-key exposure is answered by replacing algorithms, while symmetric exposure is answered largely by choosing key sizes.

The question tends to arrive in specific places. NIST's post-quantum cryptography project page lists FIPS 203 (ML-KEM, a key-encapsulation mechanism), FIPS 204 (ML-DSA, a digital signature standard) and FIPS 205 (SLH-DSA, a stateless hash-based signature standard) as final, and says they can and should be put into use now. NIST IR 8547, Transition to Post-Quantum Cryptography Standards, describes NIST's plan for moving from quantum-vulnerable algorithms to post-quantum signature and key-establishment schemes. Reviewers should check how a vendor's questionnaire answer maps to these: whether it names the public-key algorithms it has replaced, and whether it addresses symmetric keys and hashes separately.

Shor's and Grover's algorithms side by side: what the sources give for each

This table sets out the attributes that the sources on this page support for Shor's algorithm and Grover's algorithm, with the source for each. Read each row across both columns, and treat a dash as a point the listed sources do not cover. The main takeaway is that the sources tie these attributes to the NIST replacement standards for public-key cryptography, and they do not give a comparable account of how symmetric cryptography is affected.

AttributeShor's algorithmGrover's algorithm
What the algorithm isA quantum algorithm for attacks on public-key cryptography. The sources listed on this page do not describe its internal workings.A quantum algorithm for attacks on symmetric cryptography. The sources listed on this page do not describe its internal workings.
Cryptography it is described as affectingQuantum-vulnerable public-key algorithms, which NIST IR 8547 says are to be moved away from in favor of post-quantum signature and key-establishment schemes.The sources listed on this page do not say which symmetric algorithms it affects or how.
Replacement standards it promptsFIPS 203 (ML-KEM, key encapsulation), FIPS 204 (ML-DSA, signatures) and FIPS 205 (SLH-DSA, stateless hash-based signatures), published by NIST on 13 August 2024.The sources listed on this page do not name a replacement standard for symmetric cryptography.
Document defining the transitionNIST IR 8547, Transition to Post-Quantum Cryptography Standards, final with a document history entry of 27 October 2026.NIST IR 8547 describes the move from quantum-vulnerable public-key algorithms, so it does not cover symmetric algorithms on the sources listed here.
Where the attribute is taken fromNIST FIPS 203, FIPS 204, FIPS 205, NIST PQC project page and NIST IR 8547 abstract.No listed source supports a row for this algorithm. Confirm the position against the NIST documents directly.

What Shor's algorithm is and what Grover's algorithm is

Shor's algorithm is a quantum algorithm that is described as breaking the public-key schemes in wide use today, including the key establishment and digital signature algorithms that protect TLS sessions, SSH logins, VPN tunnels, code signing and certificate chains. The concern is not that a single session can be cracked on the spot, but that a sufficiently capable quantum computer could recover the private key behind a public key, after which the protection built on it no longer holds. Because the threat targets the mathematical structure of the public-key schemes themselves, the response is replacement rather than longer keys. The migration response is set out in NIST's post-quantum standards: FIPS 203 (ML-KEM, for key establishment), FIPS 204 (ML-DSA, for signatures) and FIPS 205 (SLH-DSA, a hash-based signature standard), all published on 13 August 2024. NIST IR 8547 describes the plan for moving from quantum-vulnerable algorithms to these post-quantum signature and key-establishment schemes.

  • Systems affected: TLS certificates and key exchange, SSH host and user keys, IPsec and VPN key exchange, code and document signing, and PKI hierarchies.
  • Standard addressing the migration: NIST FIPS 203, FIPS 204 and FIPS 205, with NIST IR 8547 as the transition plan.
  • IETF context: RFC 9794 defines a post-quantum asymmetric algorithm as one intended to be secure against both quantum and classical attacks, which is the property vendors are asked to state.
  • Where it appears: Vendor questionnaires ask whether a product supports ML-KEM or ML-DSA, and tenders ask for a migration plan that names the algorithms and the systems they replace.
  • Scope note: Shor's algorithm does not describe attacks on symmetric encryption such as AES, so symmetric systems need a different review.

When you check a vendor claim, confirm which algorithm, parameter set and protocol version the product supports, and whether the support is for key exchange, signatures or both.

How Shor's and Grover's algorithms differ in what they mean for systems

Shor's and Grover's algorithms affect different parts of a system, so they lead to different work. The cards below cover which primitives each affects, which replacement standards apply, why symmetric keys and hashes are handled differently, and what a migration plan should contain for each.

Public-key primitives need replacement

Public-key algorithms such as RSA and elliptic curve schemes are the primitives that the sources treat as quantum-vulnerable. Key establishment and digital signatures built on them are the items to find in your inventory first. Check each TLS, SSH, VPN and certificate configuration for the key exchange and signature algorithms it negotiates, because a system can use RSA or elliptic curve keys in one place and something else in another. Public-key primitives are the ones this migration replaces.

NIST IR 8547

Replacement standards are FIPS 203 to 205

NIST published FIPS 203 (ML-KEM for key establishment), FIPS 204 (ML-DSA for signatures) and FIPS 205 (SLH-DSA, a stateless hash-based signature standard) on 13 August 2024. NIST's project page lists them as final and says they can and should be put into use now. Configuration work should map each existing key establishment or signature use to one of these standards, and confirm which parameter set and product version each deployed component supports.

NIST PQC project

Symmetric keys need a size review

Grover's algorithm is the attack the sources connect to symmetric keys and hash functions, so it is handled through key and output sizes rather than wholesale replacement. Review where symmetric keys and hashes are used, including data at rest, backups and message authentication, and confirm the key lengths and hash functions in use. The sources listed on this page do not give a specific key length that counters Grover's algorithm, so confirm the required sizes against NIST's current guidance for your use case.

Hashes follow the same size question

Hash functions are the second symmetric-side item, and they appear in certificate fingerprints, signatures, integrity checks and key derivation. Inventory each hash function and where its output is stored or trusted, then confirm whether it is one of the functions NIST currently endorses. Where a hash output is used as a long-term commitment, record it in the migration plan with its owner, because the sources listed here do not set a single replacement for every hash use.

Migration plans cover each item separately

A migration plan should list public-key and symmetric items as separate entries, because they have different fixes. For public-key items, the plan records the replacement standard, the target date and the component owner. For symmetric and hash items, it records the current size, the review outcome and any change needed. NIST IR 8547 describes NIST's plan for moving from quantum-vulnerable algorithms to post-quantum signature and key-establishment schemes, so use it as the reference for timing and sequencing.

NIST IR 8547

Where Shor's and Grover's concerns show up in protocols, certificates and products

The two concerns land in different parts of a system. Shor's algorithm targets the public-key operations that protocols and certificates rely on: key establishment in TLS, IKEv2, SSH and similar protocols, and digital signatures on certificates, code and documents. Grover's algorithm targets symmetric and hash-based primitives, such as the keys used by bulk encryption and the hash functions used for integrity. For architects, this means the first inventory question is not whether a product uses quantum-sensitive cryptography, but which of its operations are public-key and which are symmetric or hash-based, and which protocol version or certificate profile each one uses.

For public-key work, the standards that apply are the NIST post-quantum signature and key-establishment standards: FIPS 203 (ML-KEM, a key-encapsulation mechanism), FIPS 204 (ML-DSA, a digital signature standard) and FIPS 205 (SLH-DSA, a stateless hash-based signature standard), published on 13 August 2024. NIST IR 8547 describes NIST's plan for moving from quantum-vulnerable algorithms to these signature and key-establishment schemes. RFC 9794 defines a post-quantum asymmetric algorithm as one intended to be secure against both quantum and classical computers. Confirm which of these your protocol stacks, certificate authorities and products actually support, and at which versions, because a product may implement one standard in one release and not in another.

For symmetric and hash-based settings, the practical check is the key size and hash output your products already use, along with whether their integrity and encryption settings are configurable. The sources listed on this page do not give a specific symmetric key-size recommendation, so ask each vendor to state the algorithms and key lengths in their documentation and confirm them in your own environment. Keep the two concerns on separate checklist items: public-key migration is a question about protocols and certificates, and symmetric review is a question about configuration and key length.

How to work out whether Shor's or Grover's threat applies to your systems

This sequence sorts your cryptographic dependencies by the algorithm family they rely on, so you can see which ones face the public-key threat from Shor's algorithm and which face the symmetric-key threat from Grover's. The result is a dated, evidence-based list you can take to vendors, auditors and the people who set contract requirements.

  1. Inventory public-key key establishment and signatures

    Whoever owns the network and application estate lists every place a system performs key establishment or digital signing: TLS and SSH handshakes, VPN tunnels, code and document signing, certificate issuance and identity tokens. For each entry, record the system, the protocol or product, and the algorithm named in its configuration. This is the set where Shor's algorithm is the relevant threat, because it targets the mathematical problems underlying public-key schemes. The step is done when every public-key use has a line in the inventory with a named algorithm or a note that the algorithm is unknown.

  2. Inventory symmetric keys and hashes

    Using the same estate list, record every place a system relies on symmetric encryption, message authentication codes or hash functions, such as bulk data encryption at rest, backup encryption and password hashing. Note the key length and the hash function in use for each. These uses fall under the threat from Grover's algorithm, which the sources describe as a quadratic speedup against brute-force search, so the practical question is whether key and output lengths remain adequate. The step is done when each symmetric or hash use has a line recording its algorithm and key or output size.

  3. Check vendor documentation for the versions in use

    For each product on the inventory, the team checks the vendor's documentation for the exact version and configuration in production, not the latest release. The check confirms which algorithms the version supports, which it enables by default, and whether post-quantum options are offered and turned on. Record the document title, version and date next to each product. Where the documentation does not state the algorithm for a version, record that gap rather than assume a default. The step is done when every inventoried product has a version-specific entry or an open question.

  4. Compare entries against the NIST FIPS and IR documents

    The security or standards lead maps each public-key entry to the NIST documents listed on this page: FIPS 203 for ML-KEM, FIPS 204 for ML-DSA and FIPS 205 for SLH-DSA, which NIST published on 13 August 2024, along with NIST IR 8547 for the transition plan. For each entry, record whether the algorithm in use is one these standards define, and whether the transition plan calls for it to change. Symmetric and hash entries are compared against the same plan. The step is done when every entry is marked as covered by a named NIST document, not covered, or pending the transition plan.

  5. Confirm which requirement set applies

    Compliance and procurement leads confirm, with the relevant contract or customer requirement, which set of standards the organization must meet and for which systems. This may be NIST guidance, a federal customer's requirement, or an internal policy. Ask the customer or the contract owner to name the requirement in writing and to state its date. Where a contract is silent, record that as a question to resolve with the customer rather than an assumption. The step is done when each inventory entry is tied to a named requirement or to a documented open question.

  6. Record the findings and open questions

    The team assembles the inventory, vendor version checks, standards mapping and requirement confirmations into one register with a date and an owner for each entry. Each row states whether the Shor-exposed public-key entries or the Grover-relevant symmetric entries apply, and which open questions remain. The register is reviewed with the system owners and the vendors who can answer the remaining questions. The step is done when the register is signed off by the security lead and each open question has a named owner.

Common mix-ups between Shor's and Grover's algorithms in vendor and audit material

Vendor and audit documents often name Shor's and Grover's algorithms together without separating what each one affects. The cards below cover the four mix-ups that most often change what a reviewer concludes, and what to check in each case.

Grover's impact is not a reason to drop symmetric keys

Grover's algorithm offers a quadratic speedup against brute-force search, so it reduces the effective strength of a symmetric key rather than breaking it outright. Reading that as a signal to abandon AES or similar ciphers misstates the threat. The practical question for a reviewer is whether the vendor states the key length in use and whether that key length is the one the vendor's own documentation describes as current. Ask for the key sizes in the product configuration, not a general statement about symmetric cryptography.

A post-quantum claim covers one attack family

A statement that a product is post-quantum usually refers to replacing public-key algorithms, the ones Shor's algorithm is expected to threaten. It does not automatically mean the product has reviewed its symmetric key lengths against Grover's algorithm. Vendor and audit material should be read against both attack families, and a reviewer should confirm which components the claim covers, including key exchange, signatures and symmetric encryption at rest.

Algorithm names are not the FIPS standards

Shor's and Grover's algorithms are attack methods, while FIPS 203, FIPS 204 and FIPS 205 are NIST standards for post-quantum algorithms that replace the vulnerable public-key schemes. Vendor documents sometimes cite the attack names when they mean the standards, or the reverse, which makes a compliance answer hard to verify. Check that each claim names a FIPS document and its version, and that the algorithm named in the product matches that standard.

FIPS 203 text

A publication date is not a deployment date

NIST published FIPS 203, FIPS 204 and FIPS 205 on 13 August 2024, and NIST's project page says they can and should be put into use now. A date on a standard shows when it was issued, not when a given product adopted it. Reviewers should ask for the date on which the specific product version gained support for the standard, and should not treat the standard's publication date as evidence that a deployed system is already using it.

Is Shor's algorithm the same as Grover's algorithm, and which one do I need to address?

Are Shor's algorithm and Grover's algorithm the same thing?

No. They are separate quantum algorithms that target different kinds of cryptography, so they do not call for the same response. Shor's algorithm is aimed at the mathematical problems that public-key algorithms rely on, while Grover's algorithm is a search method that speeds up brute-force attacks on symmetric keys and hash functions. Treating them as one threat leads to planning errors, because each needs its own check in your inventory.

Which quantum attack affects public-key cryptography?

Shor's algorithm is the one that affects public-key cryptography. The sources listed on this page do not walk through its mechanics, so the practical point is what it means for your estate. Public-key schemes used for key establishment and digital signatures are the systems that need to move to post-quantum algorithms. NIST's FIPS 203 (ML-KEM) covers key establishment and FIPS 204 (ML-DSA) covers signatures, and the NIST IR 8547 transition plan describes moving from quantum-vulnerable algorithms to post-quantum signature and key-establishment schemes.

Which quantum attack affects symmetric keys like AES?

Grover's algorithm is the one relevant to symmetric keys, since it is a search method that can speed up brute-force key guessing. The sources on this page do not state how much Grover's algorithm reduces the effective strength of AES or any other symmetric key, so confirm the figures in the specification or with your cryptography team rather than relying on a number here. The distinction matters for planning because symmetric algorithms are generally not replaced in the way public-key algorithms are. Ask your team which symmetric key lengths and hash functions are in use and whether their sizes are documented.

Do I need to address both attacks, or only one?

Most organizations need to address the public-key side first, because Shor's algorithm targets the algorithms that protect key exchange and signatures across TLS, VPNs, code signing and PKI. Grover's algorithm is still part of the picture for symmetric keys and hashes, but the sources on this page do not state a required response for it. Your inventory will show which of your systems depend on each family, and that list determines whether one or both paths apply to your environment. Confirm the scope with your security team before scoping any work.

Which NIST post-quantum documents are final, and when were they published?

NIST published three final standards on 13 August 2024: FIPS 203 (ML-KEM, a key-encapsulation mechanism), FIPS 204 (ML-DSA, a digital signature standard), and FIPS 205 (SLH-DSA, a stateless hash-based signature standard). NIST's post-quantum project page, last updated 4 December 2026, lists all three as final and says they can and should be put into use now. NIST IR 8547, Transition to Post-Quantum Cryptography Standards, is listed as final with a document history entry dated 27 October 2026, following an initial public draft dated 12 November 2024.

What should I ask a vendor about each attack?

Ask about each attack separately, since vendor responses for public-key and symmetric cryptography differ. For public-key functions, ask which post-quantum algorithms (ML-KEM, ML-DSA, SLH-DSA) the product supports, whether they are in hybrid or standalone form, and which version or release provides them. For symmetric functions, ask which key lengths and hash functions the product uses and how they are documented. Request written answers tied to a specific version, because support often depends on the release and configuration you run.

How does the RFC definition of a post-quantum algorithm relate to these two attacks?

RFC 9794, published in June 2025, defines a post-quantum asymmetric algorithm as one intended to be secure against attacks using quantum computers as well as classical computers. That definition is about public-key algorithms, which is the area where Shor's algorithm is the relevant threat. It does not describe how Grover's algorithm affects symmetric keys, so do not read the definition as a full statement of the symmetric side. Use it as a reference term when a vendor or document describes a product as post-quantum, and check which algorithm family the claim covers.

How DeployOpen works on this

DeployOpen helps organizations plan and configure post-quantum migration for the systems that depend on public-key and symmetric cryptography. The work starts from a written scope that states which systems, protocols and certificates are covered, and it is delivered as configured, documented and tested components inside the client's own infrastructure.

How we scope

  • Agree in writing which public-key and symmetric cryptography uses are in scope for the engagement.
  • Identify which systems, protocols and certificate chains depend on algorithms the NIST documents list for replacement.
  • Record the scope, deliverables and timelines before any configuration work starts, as fixed-scope engagements require.

How we build

  • Configure the platforms and components that terminate encryption in the client's own cloud, data center or air-gapped network.
  • Test the configured systems, including the key establishment and signature paths, before handover.
  • Document each configuration change so the client's security and compliance teams can review what was altered and why.

How we hand over

  • Deliver the configured platform, its settings, and a written record of the scope it covers.
  • Provide documentation that lets the client's internal teams operate and audit the migrated components.
  • Note which items remain open or depend on vendor updates, so the client can confirm them with the relevant vendor.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after handover.
  • Retest configured systems when standards, vendor versions or the client's environment change.
  • Confirm with the client's auditors which evidence they need, since DeployOpen prepares evidence but does not issue audit reports.

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.