Skip to content

Post-quantum cryptography: what the NIST standards change

B2Bnetwork team · · 5 min

Security

In brief

In August 2024, NIST published the first three post-quantum cryptography standards: FIPS 203 (ML-KEM, key establishment), FIPS 204 (ML-DSA, digital signatures), and FIPS 205 (SLH-DSA, hash-based signatures). They are meant to replace RSA and elliptic curve cryptography, which a future quantum computer could break. For IT teams this means a cryptography inventory, preparing systems to swap algorithms, and first protecting data that must stay secret for many years.

What NIST published

Since 2016, NIST has run an open process to select algorithms resistant to attacks by a quantum computer. The first three standards appeared in August 2024:

StandardAlgorithmWhat it is forDerived from
FIPS 203ML-KEMkey establishment, for example when opening a TLS connectionCRYSTALS-Kyber
FIPS 204ML-DSAdigital signatures, for example certificates, document and code signingCRYSTALS-Dilithium
FIPS 205SLH-DSAdigital signatures based only on hash functionsSPHINCS+

ML-KEM and ML-DSA rely on mathematical problems on lattices. SLH-DSA relies on hash functions, has larger signatures and is slower, but its security follows from well-understood assumptions, so it serves as a backup signature family. NIST has announced further standards, so it is worth following the post-quantum cryptography project page.

For an IT team the split is simple. Where ECDH or RSA is used today for key exchange, for example in TLS and VPNs, ML-KEM eventually takes over. Where RSA or ECDSA signatures are used, for example in certificates and in code and document signing, ML-DSA takes over, with SLH-DSA where caution and infrequent signing matter, for example when signing device firmware. The FIPS standards formally bind the US federal government, but in practice they set the direction for library, HSM, and browser vendors worldwide.

Why it matters now

Shor's algorithm, run on a sufficiently large quantum computer, would break RSA and elliptic curve cryptography (ECDH, ECDSA). Today, key establishment in TLS, certificates, code signing, and many VPN protocols rest on these algorithms. A quantum computer capable of such an attack does not exist yet, and it is not known when one will.

Even so, the problem affects companies today for two reasons:

  1. Harvest now, decrypt later. An attacker can record encrypted traffic today and decrypt it in a dozen years. For data that must stay secret for a long time (medical data, banking secrecy, technical product documentation, personal data), the risk exists right now.
  2. Migration takes years. Replacing cryptography at a bank or a telecom operator involves hundreds of systems, long-lived devices, hardware security modules (HSMs), cards, and certificates. Each of these has its own update schedule.

Symmetric cryptography, such as AES, and hash functions are much less at risk. Using sufficiently long keys, for example AES-256, is usually enough.

A cryptography inventory

Migration starts with a question: where in the company do we use public key cryptography? The answer is rarely in one place. The inventory covers:

  • protocols: TLS on servers and between services, VPNs, SSH, connections to partners,
  • certificates and public key infrastructure: issuers, validity periods, algorithms,
  • cryptographic libraries in applications and their versions,
  • devices: HSMs, payment terminals, cards, controllers, and IoT devices in the factory,
  • data encrypted at rest and backups, with the required confidentiality period.

To record such an inventory you can use the CycloneDX format, which supports a cryptography inventory (CBOM) alongside the component inventory. We describe the same discipline for SBOMs in the article Software supply chain.

Crypto agility and hybrid mode

The most important change in architecture is crypto agility: a system should allow swapping an algorithm through configuration and a library update, not through rewriting code. In practice this means using maintained libraries instead of custom implementations, not hardcoding algorithm names and key lengths, and managing certificates centrally.

For the transition period, many protocols use hybrid mode: the session key is derived from both a classical algorithm and ML-KEM at once. The connection stays secure if at least one of them is secure. This mode limits the risk that the new algorithm or its implementation turns out weaker than assumed.

Post-quantum algorithms have larger keys and signatures than RSA or ECDSA. The larger size of the handshake can matter for systems with many short connections and for resource-constrained devices, so every algorithm change is worth checking with a performance test, ideally a permanent part of the pipeline, as in the article Performance testing in CI/CD without false alarms.

A plan for the IT team

  1. Name a program owner and include them in risk management, alongside the process of vulnerability management.
  2. Build a cryptography inventory and mark systems with data that has a long confidentiality period.
  3. Ask vendors about their plans to support ML-KEM and ML-DSA in their products: application servers, HSMs, VPN gateways, card systems.
  4. Introduce crypto agility in new projects: configuration instead of constants in code, up-to-date libraries.
  5. Test hybrid mode on a selected connection, for example between services on the internal network, including a performance test.
  6. Draw up a migration schedule by risk: first long-confidentiality data and connections to partners, then the rest.

In systems with encrypted device communication, such as the one described in the scenario performance testing of a system with encrypted industrial device communication, changing the algorithm also affects connection setup time, so a performance test is part of the migration.

Questions and answers

Do you have to replace RSA and elliptic curves right now?

Not everywhere at once, but preparation has to start. First the inventory and crypto agility, then systems with data that must stay secret for many years, because for them the “harvest now, decrypt later” risk exists today. Other systems can be moved according to vendors' schedules and the update cycle.

How does ML-KEM differ from ML-DSA?

ML-KEM (FIPS 203) is used for key establishment, that is, securely agreeing on a shared secret between two parties, for example when opening a TLS connection. ML-DSA (FIPS 204) is used for digital signatures, that is, confirming authenticity and integrity, for example in certificates and code signing. A system usually needs both.

Does AES need to be replaced too?

Usually not. Quantum computers weaken symmetric cryptography far less than RSA and elliptic curves. A typical recommendation is to use 256-bit keys where data must stay confidential for a long time. The main migration effort therefore concerns public key cryptography.

What is hybrid mode?

It is a combination of a classical algorithm, for example elliptic curve key establishment, with a post-quantum algorithm, for example ML-KEM, in a single operation. The session key is derived from both, so the connection stays secure as long as at least one of the algorithms is secure. Hybrid mode makes the transition safer while new implementations are still maturing.

What it looks like in a project

Want to check your application's security? Talk to an engineer.

Let's talk

Read more: Security