Crypto-Agility vs Hardcoded Debt: Systems That Survive the Next Algorithm Break
PQC migration is not a one-time swap to ML-KEM and ML-DSA. SIKE was broken in 2022 after standardisation was in sight. Crypto-agility, decoupling cryptographic logic from application code, is how systems survive the next break without a rewrite.

The post-quantum conversation is often framed as a destination: swap RSA and ECDSA for ML-KEM and ML-DSA, and you are done. The NSA's December 2026 advisory is careful to frame it differently. It asks for systems that have enough CPU, memory and architectural abstraction to swap algorithms without a full rewrite. The target is not a specific algorithm. It is crypto-agility.
SIKE is why you don't hardcode the winner
In 2022, SIKE, an isogeny-based scheme that had reached the final rounds of NIST's selection, was broken by a classical attack that ran on a single computer over a weekend. It was not weakened; it was broken outright, late in the process. The lesson is not that lattice schemes like ML-KEM are fragile; they have held up to intense scrutiny. The lesson is that mathematical confidence is never total, and the cost of being wrong depends entirely on how hard the algorithm is to replace. If your systems can swap a primitive with a config change, a break is an incident. If the algorithm is hardcoded across hundreds of services, a break is a multi-year rewrite.
PQC is not a drop-in replacement
Crypto-agility is not only about future breaks; today's PQC algorithms force architectural change because they are bigger. Larger keys, ciphertexts and signatures mean more bytes on the wire, which can fragment packets and add handshake latency. Systems that assumed small classical keys sometimes need real changes to buffers, record sizes and timeouts.
| Scheme | Role | Relative size vs classical |
|---|---|---|
| RSA-2048 / ECDSA P-256 | Classical baseline | Small keys and signatures |
| ML-KEM-768 (FIPS 203) | Key establishment | Public keys and ciphertexts around a kilobyte, far larger than ECDH |
| ML-DSA-65 (FIPS 204) | Digital signatures | Signatures and keys several times larger than ECDSA |
The exact numbers matter less than the direction: every PQC primitive is heavier than the classical one it replaces, and a system with no slack in CPU, memory or packet budget will feel it. The NSA's point about having headroom is practical engineering advice, not a formality.
What crypto-agility looks like in practice
Agility is an architecture, not a feature you buy. Three habits make the difference:
- Decouple cryptographic logic from application code. Call a crypto provider or service, not a pinned library function, so the algorithm can change in one place.
- Negotiate, don't hardcode. Use protocol negotiation (as TLS 1.3 does) so endpoints can agree on the strongest shared algorithm without code changes.
- Keep an inventory that maps algorithm to location. You cannot swap what you cannot find; a CBOM tells you every place a primitive is used.
Our guide on crypto-agility goes deeper, and the NIST PQC standards cover the ML-KEM, ML-DSA and SLH-DSA families you will be swapping toward.
The takeaway
Hardcoded cryptography is technical debt with a deadline attached. The migration to ML-KEM and ML-DSA is the first forced payment on that debt, and it will not be the last. Build systems that treat the algorithm as a replaceable component, keep a living inventory of where every primitive lives, and the next break, whenever it comes, becomes a configuration change rather than a crisis.