Post-quantum cryptography

Also known as: PQC

On this page 7

Post-quantum cryptography (PQC) is the field of public-key algorithms designed to resist attacks by large quantum computers while still running on ordinary classical hardware. In cryptography and cybersecurity, it replaces schemes such as RSA, Diffie-Hellman and elliptic curve cryptography, whose security collapses once an attacker can run Shor’s algorithm at scale.

PQC is not quantum cryptography: it uses conventional mathematics and conventional networks, so it can be deployed through software updates in browsers, servers, smart cards and firmware. Its central engineering challenge is that the new schemes have larger keys, larger signatures or different performance profiles than the algorithms they replace.

Why quantum computers threaten current public-key cryptography

Quantum computers threaten current public-key cryptography because Shor’s algorithm solves integer factorization and discrete logarithms in polynomial time. RSA depends on the difficulty of factoring, while Diffie-Hellman and elliptic curve schemes depend on discrete logarithms, so a cryptographically relevant quantum computer would break all of them, including their key exchange and digital signature uses.

Symmetric algorithms fare much better. Grover’s algorithm offers only a quadratic speedup for brute-force search, which roughly halves the effective security level. The standard response is to use AES-256 instead of AES-128 and hash outputs of at least 256 bits, such as SHA-256 or SHA-384, rather than to replace these primitives entirely.

The table below summarizes the expected quantum impact on the main primitive families.

PrimitiveHard problemQuantum attackStatus after quantum
RSAInteger factorizationShor’s algorithmBroken
Elliptic curve cryptographyElliptic curve discrete logarithmShor’s algorithmBroken
Finite-field Diffie-HellmanDiscrete logarithmShor’s algorithmBroken
AES-128Key searchGrover’s algorithmWeakened to about 64-bit
AES-256Key searchGrover’s algorithmAdequate at about 128-bit
SHA-256Preimage searchGrover’s algorithmAdequate for most uses
Quantum impact on common cryptographic primitives

The most pressing risk is harvest now, decrypt later: an adversary records encrypted traffic today and decrypts it once quantum hardware matures. Data that must stay confidential for ten years or more, such as health records, state secrets or long-lived intellectual property, is therefore already exposed if it travels under classical key exchange.

Mathematical families behind post-quantum algorithms

Post-quantum algorithms rely on mathematical problems for which no efficient quantum algorithm is known. Each family offers a different balance of key size, signature size, speed and maturity of analysis, and no single family wins on every axis.

FamilyUnderlying problemTypical strengthTypical weakness
Lattice-basedModule learning with errors, short vectorsFast, balanced sizesComplex parameter analysis
Hash-basedSecurity of the hash functionConservative assumptionsLarge or stateful signatures
Code-basedDecoding random linear codesDecades of studyVery large public keys
MultivariateSolving quadratic equation systemsSmall signaturesSeveral schemes broken
Isogeny-basedMaps between elliptic curvesCompact keysSIKE broken in 2022
Main post-quantum algorithm families

Lattice-based schemes dominate deployment because they offer kilobyte-scale keys and operations that are often faster than RSA. Hash-based signatures are valued as a fallback because their security reduces to properties of hash functions that are already well understood. The 2022 classical break of the isogeny scheme SIKE showed that new assumptions can fail suddenly, which is why diversity of families matters.

Standardized post-quantum algorithms

The NIST post-quantum standardization process, launched in 2016, produced the first federal standards in August 2024. These documents define one key encapsulation mechanism and two signature schemes, with a further code-based key encapsulation mechanism, HQC, selected in 2025 as a backup to the lattice design.

StandardAlgorithmPurposeFamilyApproximate size at mid level
FIPS 203ML-KEM (Kyber)Key encapsulationLattice1,184-byte public key
FIPS 204ML-DSA (Dilithium)Digital signatureLattice3,309-byte signature
FIPS 205SLH-DSA (SPHINCS+)Digital signatureHash7,856 to 35,664-byte signature
FIPS 206 draftFN-DSA (Falcon)Digital signatureLatticeAbout 666-byte signature
SP 800-208LMS and XMSSStateful signatureHashDepends on tree height
Principal standardized post-quantum algorithms

A key encapsulation mechanism (KEM) differs from classic Diffie-Hellman: one party encapsulates a random secret under the other party’s public key, and the recipient decapsulates it. Protocols such as TLS 1.3, SSH and IKEv2 have been adapted to carry KEM ciphertexts in their handshake messages.

Migrating systems to post-quantum cryptography

Migration to post-quantum cryptography is a multi-year program rather than a single algorithm swap. It starts with a cryptographic inventory that records where each public-key algorithm is used, which data it protects and how long that data must stay secret.

Most early deployments use hybrid key exchange, which combines a classical algorithm such as X25519 with ML-KEM so that the session stays secure if either component holds. Major browsers and content delivery networks already negotiate X25519MLKEM768 by default, so a large share of web traffic is protected against harvest-now attacks today.

SituationRecommended actionReason
Long-lived confidential data in transitDeploy hybrid ML-KEM firstHarvest-now exposure exists today
Firmware and secure bootAdopt LMS, XMSS or ML-DSADevices stay in the field for decades
Public web PKI certificatesPlan for ML-DSA chainsEcosystem support still maturing
Constrained IoT devicesTest memory and bandwidth budgetsLarger keys may not fit
Short-lived session authenticationLower priorityForgery requires a live quantum attack
Migration priorities by system type

Crypto-agility, meaning the ability to change algorithms through configuration rather than redesign, is the main architectural lesson. Systems that hard-code key sizes or a single cipher suite face the most expensive migrations, while those built around negotiated algorithms and abstracted key management adapt far more easily.

Limitations and common misconceptions

Post-quantum cryptography carries real costs and residual uncertainty. Its algorithms are younger than RSA and elliptic curves, and implementations must also resist side-channel attacks such as timing and power analysis, which have already affected early lattice code.

  • PQC is not quantum key distribution. QKD requires special optical hardware, whereas PQC is ordinary software.
  • No quantum computer can yet break RSA-2048. The threat is about future capability and the recorded traffic that will meet it.
  • Larger messages matter. Post-quantum signatures can push TLS handshakes across extra network packets and slow constrained links.
  • Stateful hash signatures fail dangerously if a one-time key state is reused after a backup restore.
  • Symmetric cryptography does not need replacement, only adequate key and hash lengths.

Stripped to the essentials

Today, much of the internet uses locks whose security rests on math puzzles that ordinary computers cannot solve in any reasonable time. A sufficiently powerful quantum computer would solve those particular puzzles quickly, which means the locks would open.

Post-quantum cryptography is a new set of locks built on different puzzles that even quantum computers are not known to solve. The new locks run on the computers and phones people already own, so switching is mostly a matter of software updates. The main inconvenience is that the new keys and signatures are bigger, a little like replacing a small house key with a longer one that still fits in the pocket. The key takeaway is to switch before the threat arrives, because secrets recorded today could be opened later.

Where it is applied

A regional hospital network stores patient records that must remain confidential for decades and replicates them nightly between two data centers over an encrypted VPN. Its security team concludes that recorded replication traffic could be decrypted by a future quantum adversary, so the records face harvest-now risk today.

The team first builds an inventory and finds RSA and elliptic curve keys in the VPN gateways, the backup software and the internal certificate authority. It upgrades the gateways to an IKEv2 configuration that performs hybrid key exchange with X25519 and ML-KEM-768, measures an increase of only a few kilobytes per handshake and no noticeable throughput change, and schedules ML-DSA certificates for the internal authority once its vendors support them.

Within one maintenance window, all replication traffic is protected by post-quantum key exchange, while the classical component preserves compliance with existing audit rules during the transition.