Skip to content

What is post-quantum cryptography?

Post-quantum cryptography is a set of new encryption and signature algorithms that neither an ordinary computer nor a future quantum computer can break. They run on ordinary hardware - your phone and laptop already use them - and they replace RSA and elliptic curves wherever those would be helpless against a quantum computer.

In short

  • A large quantum computer would break RSA and elliptic curves. Post-quantum algorithms rest on problems a quantum computer cannot crack either.
  • The standards are here: ML-KEM for key agreement, ML-DSA and SLH-DSA for signatures (NIST, 2024).
  • Today they run in hybrid mode, together with a classic algorithm. The price is bigger keys and signatures.

A new lock, not a thicker door

Imagine a lock for which someone has just invented a pick. A thicker door will not help - the pick opens every lock of that design. You need a lock built differently, one the pick does not fit.

That is the situation with RSA and elliptic curves. The pick is Shor's algorithm: on a big enough quantum computer, it solves the problems these ciphers rest on. Longer RSA keys only buy time. Post-quantum cryptography is locks of a different design. Where the threat itself stands is in Are RSA and Ed25519 in danger?

What is at risk, and what is not

  • At risk: public-key cryptography, i.e. key agreement (how every HTTPS or SSH connection starts) and digital signatures. That is RSA, Diffie-Hellman, ECDH, ECDSA, Ed25519.
  • Safe: symmetric ciphers and hash functions. A quantum computer speeds up attacks on them only slightly, so AES-256 and SHA-256 stay.

In other words, data is still encrypted with AES. What has to change is how both sides agree on the key for that AES, and how they sign messages.

The new standards

In August 2024, NIST (the US standards institute whose cryptographic standards the whole world follows) approved the first three algorithms, chosen in an open competition that began in 2016:

  • ML-KEM (formerly Kyber, FIPS 203) - key agreement. This is the one already working in browsers and OpenSSH.
  • ML-DSA (formerly Dilithium, FIPS 204) - digital signatures, the main candidate to replace RSA and ECDSA in certificates.
  • SLH-DSA (formerly SPHINCS+, FIPS 205) - signatures built only on hash functions. Slower and bigger, but resting on the best-understood foundations. A plan B.

FN-DSA (Falcon), with shorter signatures, is on its way, and in 2025 HQC was chosen as a backup key-agreement algorithm built on different maths from ML-KEM - in case someone finds a weakness in the first.

How does it work?

ML-KEM and ML-DSA are built on so-called lattices. Picture a huge, regular grid of points - not in two or three dimensions, but in several hundred. You are given a point lying slightly off the grid, because some small random "noise" was added to it. The task: find the nearest grid point. With the secret key (a good "map" of the grid) that is instant. Without it, you have to search a space so vast that neither an ordinary computer nor a quantum one helps.

SLH-DSA works differently again: a signature is assembled from many one-time signatures based on a hash function. We understand hash functions well, so surprises are unlikely.

Hybrid mode

The new algorithms are well studied, but young. What if someone finds a classic weakness in them, no quantum computer needed? That is why today they are used together with the old ones. X25519MLKEM768 in your browser means the key is made of two parts: a classic one (X25519) and a post-quantum one (ML-KEM-768). An attacker has to break both.

So hybrid mode is belt and braces. If the new algorithm fails, the old one protects you. If a quantum computer ever arrives, the new one does.

The price: bigger keys

Security has weight - literally. The new keys and signatures are much bigger than the ones we are used to:

  • an X25519 public key is 32 bytes, an ML-KEM-768 one is 1,184 bytes,
  • an Ed25519 signature is 64 bytes, RSA-2048 is 256 bytes, ML-DSA-65 is 3,309 bytes.

For a single connection that is nothing, a few kilobytes. But a website certificate is a whole chain of signatures sent with every new connection, so for certificates people are still looking for clever solutions. It is one reason why signatures are arriving more slowly than key agreement.

Post-quantum is not quantum

The two terms are easy to mix up:

  • post-quantum cryptography - ordinary algorithms on ordinary computers that resist quantum computers,
  • quantum cryptography (e.g. quantum key distribution, QKD) - uses quantum physics to send a key and needs special hardware and optical fibre.

Your browser runs the first. The second is for banks, the military and labs.

When it matters to you

  • Every day - you already use it. A current browser connects to most big services in post-quantum mode. Keeping your browser and system up to date is enough.
  • You run a website or a server - a current system with OpenSSL 3.5 or newer and OpenSSH 10 gives you post-quantum connections with no extra configuration. Sites behind a CDN (Cloudflare, for one) have often had them for a while.
  • You write code - do not roll your own cryptography. Use libraries that add these algorithms (OpenSSL, BoringSSL and the like), and never hard-code key or signature lengths: they change with the algorithm.

HTTPS and SSL certificates, symmetric encryption, hash function, digital signature, RSA, Ed25519 and quantum computers.

Advertisement