Crypto-agility · Architecture

Crypto-agility explained: how to measure it before the post-quantum migration

Published 7 October 2026 · 7 min read · By Ali Korsi Post-quantum migration will not be your last cryptographic migration. Agility is what makes the next one cheap — and you can measure it.

Lire en français

“Crypto-agility” appears in almost every post-quantum strategy document, usually as a goal and rarely as something anyone measures. That is a problem, because the cost of your migration to ML-KEM and ML-DSA will be decided less by the new algorithms than by how tightly the old ones are wired into your systems.

What crypto-agility actually means

NIST’s Cybersecurity White Paper 39, finalised in December 2025, describes crypto agility as the capabilities needed to replace and adapt cryptographic algorithms in protocols, applications, software, hardware, firmware and infrastructure while preserving security and ongoing operations.

In practice, an agile system lets you change three things without re-architecting:

If changing any of these means touching application logic in dozens of places, rewriting a file format or waiting for a vendor’s next major release, you are not agile — whatever the architecture diagram says.

Why post-quantum will not be the last migration

Cryptographic migrations are routine, not exceptional. A few that most enterprises have already lived through:

Each of these took most organisations years, largely because nobody knew where the algorithm was used. Post-quantum is the same problem at a larger scale: NIST’s draft transition plan (IR 8547) proposes deprecating quantum-vulnerable RSA and elliptic-curve algorithms after 2030 and disallowing them after 2035.

And the new algorithms are young. In 2022, SIKE — then a fourth-round candidate in NIST’s post-quantum process — was broken by a classical key-recovery attack that ran in about an hour on a single core. The same year, the Rainbow signature scheme, a third-round finalist, fell to a practical classical attack. Neither was standardised, but both show that confidence in a new algorithm can collapse quickly.

That is why European agencies push hybrid deployments, combining a classical and a post-quantum algorithm so that security does not rest on either one alone. ANSSI and BSI both recommend hybrid mechanisms during the transition, and in November 2024 18 EU member states, led by France, Germany and the Netherlands, issued a joint statement urging organisations to make the transition a priority. Hybrid is a hedge; agility is what lets you remove the weaker half later.

The anti-patterns that kill agility

In code and configuration reviews, the same patterns recur:

The first two are the easiest to spot and to fix. Compare:

# Brittle: algorithm and key size fixed at the call site
from Crypto.PublicKey import RSA
key = RSA.generate(2048)

# Agile: algorithm chosen by policy, behind one interface
from crypto_provider import get_signer
signer = get_signer(purpose="document-signing")  # reads central policy
signature = signer.sign(payload)

The second version does not make the code post-quantum. It makes the change a policy update plus a provider implementation, instead of a search-and-replace across every repository — and it keeps the algorithm identifier with the data, so old and new signatures can coexist during the transition.

A practical five-level maturity model

Maturity models are only useful if each level is observable. This one is deliberately evidence-based: you should be able to show an auditor why you are at a given level.

LevelWhat it looks likeEvidence
1 · UnknownNo inventory. Cryptography is discovered when something expires or breaks.Certificate outages; spreadsheets maintained by individuals.
2 · InventoriedA cryptographic inventory exists for at least the critical systems, but changes still require code edits.A CBOM or equivalent, with owners.
3 · CentralisedMost applications call cryptography through a small number of approved providers or services.Share of call sites going through the provider; approved-library list.
4 · ConfigurableAlgorithms and parameters come from configuration or policy; formats carry algorithm identifiers.A tested rotation of an algorithm or key size without a code release.
5 · Policy-driven, automatedA central policy defines allowed algorithms; pipelines block violations; inventory updates continuously.CI gate results, drift alerts, measured time-to-rotate.

Many organisations will find themselves at level 1 or 2. That is a normal starting point, not a failure — but you cannot plan a migration credibly from level 1.

Indicators you can actually measure

Pick a handful of indicators, measure them now, and re-measure each quarter. Four are enough to start:

  1. Inventory coverage — percentage of applications, certificates and endpoints with known cryptography. Without this, every other number is a guess. See our guide to cryptographic inventory.
  2. Centralisation rate — percentage of cryptographic call sites that go through an approved provider or abstraction rather than calling a primitive directly.
  3. Time-to-rotate — elapsed time to replace an algorithm, key size or certificate across a representative system, measured in an exercise rather than estimated.
  4. New-weak-crypto gate — whether a CI/CD control prevents new quantum-vulnerable or deprecated cryptography from being merged. If it does not, your inventory decays from the day you finish it.
An agility programme without a gate is a one-off clean-up. The debt starts growing back with the next pull request.

Two supporting measures are worth tracking where relevant: the proportion of quantum-vulnerable assets protecting long-lived data (your HNDL exposure), and the number of critical dependencies whose cryptography only a vendor can change.

Where to start

  1. Inventory first. Scan code, certificates and TLS endpoints. You need to know where RSA, ECC, SHA-1 and 3DES live before you can measure centralisation.
  2. Baseline the four indicators on two or three representative systems, not the whole estate.
  3. Introduce a provider abstraction for new code and for the systems you will migrate first.
  4. Add a CI gate so new weak cryptography is caught at pull-request time.
  5. Feed the results into your migration plan — systems with low agility need earlier starts and more budget. Our PQC migration roadmap explains how to sequence the waves.

If you want a quick sense of where you stand, the free 2-minute PQC readiness self-assessment is a reasonable first step. To see how CRYPTAGION supports each step, read crypto agility with CRYPTAGION.

The takeaway

Crypto-agility is not a product feature or a slogan; it is a measurable property of your estate. Organisations that can show inventory coverage, a centralisation rate, a tested time-to-rotate and a working CI gate will find the post-quantum migration — and the one after it — far cheaper than those that start from scratch each time.

Sources

Baseline your crypto-agility

CRYPTAGION inventories cryptography across code, certificates and TLS endpoints, and its Platform tier adds a CI/CD gate that flags new weak cryptography before it is merged.

Book a free discovery call →

← All resources · Home