Learn · Core concepts

Crypto Agility & Architecture Patterns

6 sections

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

For you, every role: what this means
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.

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

The key takeaway

To achieve crypto agility, organizations typically use provider APIs, infrastructure proxies for data in transit, or outsourced central cryptographic services.

✓ Reviewed by PQC Today

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

The key takeaway

Using the CycloneDX standard, a Cryptographic Bill of Materials inventories an organization's cryptographic algorithms, usage locations, security levels, compliance requirements, and migration recommendations.

✓ Reviewed by PQC Today

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

The key takeaway

This module's seven-phase teaching model structures migration from inventory and risk prioritization through tooling, hybrid testing, full PQC deployment, and continuous monitoring.

✓ Reviewed by PQC Today

Industry Case Studies

Cloudflare

Deployed hybrid PQC key agreement (X25519Kyber768, later ) across its network. The combined client key share is 1,216 B versus 32 B 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.

Systems security engineering and cryptographic agility

This section introduces foundational security engineering concepts, architectural design principles, and transition-planning topics for system architects and security engineers.

Security engineering and trustworthiness

Traceability, modularity, and trust boundaries

Turning trustworthiness into a working architecture involves linking security goals to system structure and limiting exposure.

Planning for cryptographic transitions

Applying these engineering principles to cryptography brings interface design, complexity control, parameter growth, and upgrade paths into focus.

  • NIST CSWP 39 states that system designers must introduce mechanisms that simplify replacing cryptographic algorithms in software, libraries, hardware, and firmware, while ensuring cryptographic interfaces are easy to use and well-documented.

    Source: Considerations for Achieving Crypto Agility: Strategies and Practices, 2026-06, Section 4 Crypto Agility in System Implementations, p. 21

  • NIST CSWP 39 says protocol designers should balance agility with simplicity, avoid gratuitous options, remove disallowed algorithms to reduce complexity, and periodically remove unused options to keep the attack surface small.

    Source: Considerations for Achieving Crypto Agility: Strategies and Practices, 2026-06, Section 3.4.2 Balancing Protocol Complexity, pp. 19-20

  • ANSSI guidance on crypto-agility states that crypto-agility requires planning in advance and designing for the worst case because key, ciphertext, or signature lengths will often grow when switching to another cryptosystem.

    Source: ANSSI’s views on crypto-agility, 2026, Section 2 Levels of crypto-agility capabilities, p. 3

  • CCCS guidance ITSAP.40.018 explains that cryptographic agility allows algorithms to be interchanged primarily through configuration, and states that agile products must have streamlined software and firmware upgrade capabilities when configuration options are exhausted.

    Source: Guidance on Becoming Cryptographically Agile (ITSAP.40.018), 2022-05, Guidance on becoming cryptographically agile (ITSAP.40.018), introduction

The key takeaway

Standards guidance links cryptographic agility to early engineering, modular architectures, minimal trust zones, simple replaceable interfaces, and planning for larger parameters and upgrades.

✓ Reviewed by PQC Today

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

Check off all sections and mark this reading done.

Try it

workshop steps that practise this lesson
  • Step 1: Abstraction Layer

    See how algorithm-agnostic APIs keep call sites unchanged when the backend changes.
  • Step 2: CBOM Scanner

    Scan a sample enterprise to find quantum-vulnerable algorithms.
  • Step 3: Migration Planning

    Walk through the 7-phase PQC migration framework.

Production Tool Capabilities & Verification ChecklistSoftware Architects & Platform Engineers

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.