Back to DashboardStrategyFoundationsintermediate40 min

Crypto Agility & Architecture Patterns

Design systems that can rapidly swap cryptographic algorithms — the key to PQC migration readiness.

Why this matters: The one certainty is that algorithms will change again; agility is what lets you swap them without re-architecting every system.

Start here: Toggle between the RSA-2048, ML-KEM-768 and X25519MLKEM768 backends in the Abstraction Layer demo: the call sites never change while the backend config flips to quantum-safe, and the key-size line shows what still has to change around them.

For your role

Executive / Business Leader
Score your organisation across four crypto-agility dimensions in the last step: the result says whether the next algorithm change is a configuration change or a rebuild.
GRC / Risk & Compliance
The scan of a sample enterprise for quantum-vulnerable algorithms and the four-dimension agility score are the two artefacts a governance review wants: what is exposed and how fast it can change.
Developer / Engineer
The first step shows algorithm-agnostic APIs swapping backends without code changes; the scanner then finds the hardcoded algorithms in a sample enterprise, which is what your codebase would look like.
Security Architect
Abstraction layers, CBOM scanning and the seven-phase migration framework are the design pattern; the agility score across four dimensions tells you which layer to fix first.
Researcher / Academic
The seven-phase framework and the four-dimension scoring model are stated explicitly; the module is the reference the rest of the curriculum's migration steps cite.
IT Ops / DevOps
Walk the seven-phase migration framework: it is the operating sequence the Command Center tools follow, and the scanner step shows what discovery has to find before rollout.
Curious Explorer
The one certainty is that algorithms will change again; this module shows, with a swap-the-backend demo, what it takes to be able to change them without rebuilding everything.
Practice in the Simulation

What is Crypto Agility?

is the ability to switch cryptographic algorithms, protocols, and implementations without rewriting the applications that use them. It is a design goal, not a switch: callers can be insulated from the primitive, but credentials, encodings, key and signature sizes, negotiation, storage, rollback and tests still change with each algorithm. NIST's current crypto-agility white paper is CSWP 39-upd1.

“Cryptographic (crypto) agility refers to the capabilities needed to replace and adapt cryptographic algorithms in protocols, applications, software, hardware, firmware, and infrastructures while preserving security and ongoing operations.”

— NIST CSWP 39upd1, Considerations for Achieving Crypto Agility (December 2025, updated June 2026)

Algorithm Agility

Swap algorithms ( → ) in configuration rather than hard-coded calls. A KEM cannot encrypt data directly (NIST SP 800-227), so RSA encryption call patterns and buffer sizes still change.

Protocol Agility

Support multiple protocol versions simultaneously ( 1.2/1.3, hybrid key exchange).

Implementation Agility

Switch between crypto providers (OpenSSL, BoringSSL, AWS-LC) without application changes.

Architecture Patterns

Crypto agility isn't just about code — it's an architectural decision. Organizations typically use one or more of these three macro-patterns to achieve agility:

Provider Model

Applications link to a crypto library through an abstraction API (like JCA or OpenSSL Providers). The algorithm is selected in config, one application at a time.

App Code
↓
Provider API
↓
Algorithm
Service Mesh / Proxy

Cryptography for data-in-transit (mTLS) is completely offloaded to an infrastructure proxy (Envoy, Istio). The application behind the proxy needs no crypto code changes.

App (Plaintext)
↔
Sidecar Proxy
↔
PQC Network
External /

Crypto operations are outsourced over the network to a central service (AWS KMS, Azure Key Vault). Callers are insulated from the primitive, but each one still adopts new key types, handles larger outputs and is re-tested; upgrading the service is not instant enterprise-wide migration.

App (API Request)
↔
Cloud KMS API
↔
Hardware Security Module

CBOM: Cryptographic Bill of Materials

Before you can migrate, you need to find every cryptographic algorithm in your organization. A provides this visibility using the CycloneDX standard.

What a CBOM tracks
  • • Algorithm name and key size
  • • Where it's used (component, service, protocol)
  • • Classical and quantum security levels
  • • Compliance framework requirements
  • • Migration recommendation
Tools for CBOM generation
  • • IBM Quantum Safe Explorer
  • • Keyfactor CBOM Generator
  • • InfoSec Global AgileSec
  • • Cryptosense Analyzer
  • • Manual audit + code scanning

7-Phase Migration Framework

This module's seven-phase migration framework is informed by , CISA guidance, and NSA timelines. The phases are this module's teaching model, not a seven-step sequence prescribed by those sources; the NSA dates apply to U.S. national security systems.

1
Assessment & Inventory

Discover all crypto assets, build CBOM

2
Risk Prioritization

Rank by data sensitivity and compliance

3
Preparation & Tooling

Select PQC-ready libraries and HSMs

4
Testing & Validation

Pilot hybrid deployments

5
Hybrid Migration

Deploy dual-algorithm configurations

6
Production Deployment

Full PQC across all systems

7
Monitoring

Continuous compliance and optimization

Industry Case Studies

Cloudflare

Deployed hybrid PQC key agreement (X25519Kyber768, later ) across its network. The combined client key share is 1,216 bytes versus 32 bytes for X25519 alone. Chrome reported about a 4% TLS handshake slowdown in its deployment testing.

Google Chrome

Enabled hybrid PQC key exchange (X25519Kyber768) by default in Chrome 124 (April 2024); upgraded to standardized X25519MLKEM768 in Chrome 131 (November 2024).

Apple

iMessage adopted PQ3 protocol (P-256 ECDH + Kyber-1024 initial keys, Kyber-768 rekeying ratchet — both now standardized as ML-KEM-1024 / ML-KEM-768 per FIPS 203) in iOS 17.4. Phased rollout leveraging protocol agility.

Related Resources

Explore abstraction layers, scan a sample CBOM, and plan a PQC migration.

Check off all sections and mark this reading done.

Check your understanding

13 questions on Crypto Agility, each with its answer and the reason.

Take the quiz

Next step

Produce the artifact: Compliance Checklist

This module belongs to the Foundations phase; Compliance Checklist produces a deliverable of that phase in the Command Center.

Production Tool Capabilities & Verification Checklist

Capabilities to require in your production tools:

  • Provider-based cryptographic abstraction layers (e.g., OpenSSL 3 Provider API, JCA/JCE, PKCS#11 v3.2) decoupled from business logic.
  • Variable-length buffer and schema support accommodating PQC public keys (up to 2,592 B for ML-DSA-87) and signatures (up to 49,856 B for SLH-DSA-256f).
  • Automated certificate and key rotation pipelines capable of swapping OIDs and parameter sets via configuration.

How to evaluate in your environment

Execute a staging algorithm-swap drill (e.g., ECDSA P-256 to ML-DSA-65) using configuration-only changes and measure service continuity.

Production evidence to collect

Configuration diff, zero-code-change deployment log, and post-swap verification transcript.

Completing this Hub module and its browser-based sample exercises teaches the technical and governance decision criteria for your role; it does not test, validate, or certify your deployed production systems.

Record evidence for your environment

Identify the tested build and configuration. Use reference IDs for observations. For a proposed exclusion, record the system boundary or rule and why it excludes this build.

Provider-based cryptographic abstraction layers (e.g., OpenSSL 3 Provider API, JCA/JCE, PKCS#11 v3.2) decoupled from business logic.
Variable-length buffer and schema support accommodating PQC public keys (up to 2,592 B for ML-DSA-87) and signatures (up to 49,856 B for SLH-DSA-256f).
Automated certificate and key rotation pipelines capable of swapping OIDs and parameter sets via configuration.

Evidence missing. 0 of 3 requirements have a reference or scope rationale.

Learning module content can be inaccurate. Please double-check its information. Report inaccuracies in PQC Today GitHub Discussions.