Key Management / Transition

Cryptographic Agility & PQC Operations

Cryptographic agility is the ability to replace or adapt cryptography across protocols, applications, hardware, firmware, and infrastructure while preserving security and operations. It is an inventory, architecture, deployment, and recovery capability—not a runtime switch that accepts any algorithm.

Agility starts with dependency discovery

NIST CSWP 39upd1, updated June 29, 2026, defines crypto agility in terms of replacing and adapting algorithms while preserving security and ongoing operations. The prerequisite is a maintained view of:

The key inventory identifies managed keys; the agility inventory extends to cryptography embedded outside the KMS.

Put algorithm choice behind policy, not arbitrary input

An agile design centralizes approved suites and transition state while preventing callers or attackers from selecting weak algorithms.

Agility means controlled change. Supporting more algorithms at once also increases code, configuration, and attack surface.

Treat post-quantum migration as a system migration

The algorithms and standards are covered in Post-Quantum Cryptography. Key management also has to handle the operational differences:

Area PQC migration question
Key generation Do approved libraries, modules, HSMs, and entropy paths support the selected parameter set?
Interfaces Can KMS, HSM, PKCS #11, certificate, and protocol APIs represent the new key and operation?
Size Do certificates, handshakes, signatures, databases, queues, MTUs, proxies, logs, and caches accept larger artifacts?
Performance Can endpoints and central services meet latency, throughput, memory, and energy targets under load?
Lifecycle Can inventory, rotation, revocation, recovery, archival verification, and destruction distinguish classical and PQC versions?
Signature state Does the selected signature scheme require monotonic state that must advance before each released signature and never roll back or be reused?
Interoperability Which clients, partners, devices, and trust anchors can operate during coexistence?

NIST standardized ML-KEM, ML-DSA, and SLH-DSA in FIPS 203, FIPS 204, and FIPS 205. NIST currently lists potential errata for FIPS 203 and FIPS 204, so implementations should check the current publication pages and errata. A standard’s publication does not prove that a particular protocol profile, product, validation, or deployment is ready.

Stateful signatures make recovery state security-critical

NIST SP 800-208 approves the stateful hash-based signature schemes LMS and XMSS for specific applications. Unlike stateless ML-DSA and SLH-DSA, an LMS or XMSS signer must never reuse a one-time signature key. Reuse can make signature forgery computationally feasible.

The signing index is therefore protected cryptographic state, not disposable operational metadata:

A successful post-crash signature does not prove safe recovery. The evidence must show that no previously allocated one-time state became available again.

Use coexistence and hybrid designs only with a defined construction

A transition may use parallel certificates, dual signatures, classical and PQC key establishment, or a protocol-defined hybrid combiner. “Use both” is not a complete design. Specify:

Hybrid security depends on the complete protocol and combiner. It should not be claimed merely because two algorithms appear in a handshake.

Migrate in measured, reversible stages

  1. Discover: reconcile cryptographic dependencies and data secrecy lifetimes.
  2. Prioritize: rank systems by risk, exposure, replacement lead time, and interoperability constraints.
  3. Prepare: update policies, formats, interfaces, inventories, test vectors, capacity, and vendor commitments.
  4. Pilot: deploy to a bounded population with telemetry for negotiation, failure, performance, and compatibility.
  5. Coexist: make the new suite preferred for new protection while preserving a deliberately constrained old-data path.
  6. Migrate: rotate keys and certificates, rewrap or re-encrypt data where needed, and update external trust relationships.
  7. Retire: disable old protective use, observe, then remove algorithms, keys, code paths, and exceptions when dependencies are cleared.

Rollback should restore a known-good configuration without creating new weakly protected data. Define the rollback window, allowed legacy operations, data written during the pilot, and the condition that stops the rollout.

Prove the transition at the boundaries

Test more than algorithm correctness:

A successful laboratory handshake proves interoperability for those versions and parameters. It does not prove production capacity, ecosystem support, downgrade resistance in every path, or complete migration of stored data.

What I need to remember

Crypto agility is controlled replacement backed by inventory, versioned formats, policy, testing, telemetry, and rollback. PQC migration changes keys, protocols, hardware, data formats, capacity, and trust relationships together; algorithm support alone is not readiness.

Primary references