Learn · Core concepts
Crypto Agility & Architecture Patterns
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)
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.
Support multiple protocol versions simultaneously ( 1.2/1.3, hybrid key exchange).
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:
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.
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.
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.
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.
- • Algorithm name and key size
- • Where it's used (component, service, protocol)
- • Classical and quantum security levels
- • Compliance framework requirements
- • Migration recommendation
- • 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.
Discover all crypto assets, build CBOM
Rank by data sensitivity and compliance
Select PQC-ready libraries and HSMs
Pilot hybrid deployments
Deploy dual-algorithm configurations
Full PQC across all systems
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
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.
Enabled hybrid PQC key exchange (X25519Kyber768) by default in Chrome 124 (April 2024); upgraded to standardized X25519MLKEM768 in Chrome 131 (November 2024).
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
NIST SP 800-53 states that integrating security and privacy considerations early in the system development life cycle is a foundational principle of systems security engineering and privacy engineering.
Source: NIST SP 800-53 Rev. 5 - Security and Privacy Controls (Release 5.2.0), 2020-09, Chapter Three, SA-3 System Development Life Cycle, p. 277
According to NIST SP 800-53, systems security and privacy engineering principles are implemented throughout the system development life cycle to help organizations develop trustworthy, secure, and resilient systems.
Source: NIST SP 800-53 Rev. 5 - Security and Privacy Controls (Release 5.2.0), 2020-09, Chapter Three, SA-8 Security and Privacy Engineering Principles, p. 284
NIST SP 800-53 defines trustworthiness as being worthy of trust to fulfill needed requirements, and states that effective trustworthiness measures are meaningful only when requirements are complete, well-defined, and accurately assessable.
Source: NIST SP 800-53 Rev. 5 - Security and Privacy Controls (Release 5.2.0), 2020-09, Section 2.5 Trustworthiness and Assurance, p. 41
NIST SP 800-53 identifies functionality and assurance as two fundamental concepts affecting system trustworthiness, defining assurance as the measure of confidence that system functionality meets security and privacy requirements.
Source: NIST SP 800-53 Rev. 5 - Security and Privacy Controls (Release 5.2.0), 2020-09, Section 2.5 Trustworthiness and Assurance, p. 41
Traceability, modularity, and trust boundaries
Turning trustworthiness into a working architecture involves linking security goals to system structure and limiting exposure.
Common Criteria explains that tracing between security objectives and security problem definition elements shows that there are no spurious objectives and that the security problem definition is completely covered.
Source: Common Criteria for Information Technology Security Evaluation, CC:2022 Release 1, Part 1, 2022-11, Clause 7.2.5 Tracing between security objectives and the SPD, p. 47
In NIST SP 800-53, the design principle of modularity isolates functions and related data structures into well-defined logical units, while layering clarifies their relationships and dependencies to avoid undesired complexity.
Source: NIST SP 800-53 Rev. 5 - Security and Privacy Controls (Release 5.2.0), 2020-09, Chapter Three, SA-8(3) Modularity and Layering, p. 285
NIST SP 800-207 defines an implicit trust zone as an area where all entities are trusted to at least the level of the last policy gateway and states it must be as small as possible.
Source: Zero Trust Architecture, 2020-08, Section 2 Zero Trust Architecture Defined, p. 14
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
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.
Your comments on Crypto Agility(0)
Stored on this device only. A comment never counts toward your progress.
Related resources
- Library documentTransition to Post-Quantum Cryptography Standards
- Library documentQuantum-Safe Migration Handbook (Version 1)
- Library documentRFC 9846 — The Transport Layer Security (TLS) Protocol Version 1.3
- Library documentOMB Memorandum M-26-15 — Execution of the Migration to Post-Quantum Cryptography
- Library documentAn Assessment Framework for Application-Level Cryptographic Agility
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.
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.