⚛ Quantum & Post-Quantum

Post-Quantum Cryptography: Preparing for the Quantum Era

Post-quantum cryptography (PQC) is the family of public-key algorithms designed to resist attacks from both classical and quantum computers. It matters because a large fault-tolerant quantum computer running Shor's algorithm would break the RSA, Diffie-Hellman, and elliptic-curve systems that secure nearly all digital communication. Post-quantum cryptography replaces those vulnerable primitives with problems that have no known efficient quantum solution, letting organizations preserve confidentiality and authenticity into the quantum era. This overview explains the main algorithm families, the standardization landscape, and what migration involves.

Why We Need Post-Quantum Cryptography

The quantum threat splits into two parts. Shor's algorithm provides an exponential speedup that fully breaks public-key encryption, key exchange, and signatures based on factoring or discrete logarithms. Grover's algorithm gives only a quadratic speedup against symmetric ciphers and hashes, which longer keys readily counter. The urgent problem is therefore public-key cryptography, and it is sharpened by the harvest now, decrypt later threat, in which adversaries capture encrypted traffic to decrypt once quantum hardware matures.

Families of Post-Quantum Algorithms

Post-quantum security rests on several distinct hard problems, so that a breakthrough against one family does not compromise the others.

Lattice-Based Cryptography

Lattice schemes base their security on problems such as finding short vectors in high-dimensional lattices, most often expressed through Learning With Errors. They offer a strong balance of modest key sizes and fast operations, which is why the primary standardized encryption and signature algorithms are lattice-based.

Hash-Based Signatures

Hash-based signatures derive their security solely from the collision and preimage resistance of a cryptographic hash function. Because that assumption is very conservative and well understood, hash-based schemes are trusted for signatures, though they produce larger signatures and, in stateful variants, require careful key-state management.

Code-Based Cryptography

Code-based systems, exemplified by the McEliece cryptosystem, rely on the difficulty of decoding a random linear error-correcting code. They have withstood decades of cryptanalysis and offer fast operations, but their public keys are very large, which limits where they fit.

Multivariate and Isogeny Approaches

Multivariate schemes build on the hardness of solving systems of multivariate polynomial equations, while isogeny-based schemes use maps between elliptic curves. Both have produced compact signatures or keys in some constructions, but several candidates have been weakened by cryptanalysis, underscoring the value of maintaining diverse families.

The NIST Standardization Effort

Through a multi-year public competition, NIST evaluated and standardized a first set of quantum-resistant algorithms:

  • ML-KEM (FIPS 203), derived from CRYSTALS-Kyber, is a lattice-based key encapsulation mechanism for establishing shared secrets.
  • ML-DSA (FIPS 204), derived from CRYSTALS-Dilithium, is a lattice-based digital signature scheme.
  • SLH-DSA (FIPS 205), derived from SPHINCS+, is a stateless hash-based signature scheme that serves as a conservative backup.

Additional signature schemes and key-establishment candidates continue to be evaluated to broaden the portfolio across independent hardness assumptions.

How PQC Differs in Practice

Migrating is not a drop-in swap, because post-quantum algorithms have different performance profiles from the classical schemes they replace:

  • Larger artifacts. Public keys, ciphertexts, and signatures are generally bigger, which can affect protocol handshakes, certificate sizes, and packet fragmentation.
  • Different compute costs. Some operations are faster and some slower; lattice schemes are efficient, while hash-based signatures trade speed for signature size.
  • New failure modes. Lattice KEMs have a tiny probability of decapsulation failure and demand constant-time implementations to resist side-channel attacks.

These differences mean testing must cover not only correctness but also the effect of larger messages on real network paths, storage formats, and hardware modules.

Hybrid Deployments and Migration

Because the post-quantum algorithms are comparatively young, most guidance recommends hybrid deployments that combine a classical algorithm with a post-quantum one. The shared secret is derived from both, so the connection stays secure as long as at least one component holds. A hybrid key-establishment secret is typically computed as follows.

# Hybrid key establishment
ss_classical = ECDH(client_key, server_key)     # e.g. X25519
ss_pq        = ML-KEM.Decapsulate(sk, ct)        # post-quantum KEM
shared_secret = KDF(ss_classical || ss_pq)       # secure if either holds

Reaching this state requires crypto-agility: the ability to identify where cryptography lives and swap algorithms without re-architecting systems. See crypto-agility and migrating to post-quantum cryptography for a structured approach.

Key Takeaways

  • Post-quantum cryptography replaces factoring- and discrete-log-based public-key schemes with problems that resist quantum attack.
  • The main families are lattice-based, hash-based, code-based, multivariate, and isogeny, each resting on an independent hard problem.
  • NIST standardized ML-KEM for key encapsulation, ML-DSA for signatures, and SLH-DSA as a hash-based backup.
  • PQC algorithms tend to have larger keys and signatures, so migration affects protocols and performance, not just algorithm choice.
  • Hybrid deployments and crypto-agility let organizations adopt PQC safely while classical schemes remain in place.
post-quantum-cryptographypqcnist-standardsquantum-safecryptography

Frequently asked questions

What is post-quantum cryptography?

Post-quantum cryptography, or PQC, is the family of public-key algorithms designed to resist attacks from both classical and quantum computers. It replaces vulnerable schemes like RSA and elliptic-curve cryptography, which a quantum computer running Shor's algorithm would break, with alternatives based on mathematical problems that have no known efficient quantum solution. This lets organizations preserve confidentiality and authenticity into the quantum era.

Which algorithms did NIST standardize for post-quantum cryptography?

NIST standardized ML-KEM (FIPS 203, derived from CRYSTALS-Kyber) as a lattice-based key encapsulation mechanism, and ML-DSA (FIPS 204, derived from CRYSTALS-Dilithium) as a lattice-based digital signature scheme. It also standardized SLH-DSA (FIPS 205, derived from SPHINCS+), a stateless hash-based signature scheme that serves as a conservative backup. Additional candidates continue to be evaluated to broaden the portfolio.

What are the main families of post-quantum algorithms?

The main families are lattice-based, hash-based, code-based, multivariate, and isogeny-based, each resting on an independent hard problem so a breakthrough against one does not compromise the others. Lattice-based schemes offer a strong balance of modest key sizes and speed and underpin the primary standards. Hash-based signatures are very conservative, while code-based systems are fast but have very large public keys.

Is post-quantum cryptography a drop-in replacement for existing algorithms?

Not quite, because post-quantum algorithms have different performance profiles from the classical schemes they replace. Their public keys, ciphertexts, and signatures are generally larger, which can affect protocol handshakes, certificate sizes, and packet fragmentation, and some operations are faster while others are slower. Migration therefore requires testing not just correctness but the effect of larger messages on real networks, storage, and hardware.

What is hybrid post-quantum cryptography?

Hybrid cryptography combines a classical algorithm with a post-quantum one and derives the shared secret from both, so the connection stays secure as long as at least one component holds. Because post-quantum algorithms are comparatively young, most guidance recommends hybrid deployments during the transition. A typical hybrid key establishment combines a classical exchange such as X25519 with an ML-KEM decapsulation through a key derivation function.

Why is post-quantum cryptography needed before quantum computers can break encryption?

A capable quantum computer does not need to exist at the time data is sent to threaten it, because of the harvest now, decrypt later strategy in which adversaries capture encrypted traffic and store it to decrypt once quantum hardware matures. Data with a long confidentiality lifetime is therefore already exposed. Migration also takes years, so starting early is prudent given the uncertainty about when a capable quantum computer will arrive.

Try it hands-on

K0G is an open toolkit of browser-based security utilities — hashing, encoding, JWT, certificates, crypto and more, all running locally in your browser.

Explore the tools →