What crypto agility architecture means and who needs it
Crypto agility is the capability to replace and adapt cryptographic algorithms while preserving security and ongoing operations. NIST defines it in Considerations for Achieving Crypto Agility: Strategies and Practices (NIST CSWP 39upd1) as the capabilities needed to change algorithms in protocols, applications, software, hardware, firmware and infrastructure without losing security or service. The IETF describes the same idea for protocols in Guidelines for Cryptographic Algorithm Agility and Selecting Mandatory-to-Implement Algorithms (RFC 7696), where algorithm agility is the ability of a protocol to migrate from one algorithm suite to another over time. NIST's guidance is the newer and broader reference, and RFC 7696 is the protocol-level baseline that many implementers already follow.
This page is written for the architects, platform engineers and security leads who own the systems in which algorithms must change. If you define how services encrypt data, sign tokens, issue certificates or store keys, the question you need to answer is how far a change of algorithm can go through configuration and how far it forces code changes, redeployments or protocol version bumps. RFC 7696 warns that hard-coding one cipher suite forces a protocol version change when that suite must be replaced, so the first review task is to find where algorithm choices are fixed in your own code, libraries and protocol settings.
The decisions you will face are concrete: which algorithm identifiers your protocols carry, whether your libraries let applications request algorithms by type instead of by provider, and how many algorithm options you offer. RFC 7696 cautions that offering too many choices is hard to undo and creates maintenance burden, and that complex negotiation raises downgrade and bug risk. Confirm these points against your own environment before you choose a pattern, because the sources describe principles, and the mechanics depend on your protocols, libraries and versions.
Which practices and patterns the sources describe for algorithm agility
This table lists each practice the cited standards and vendor documents describe for algorithm agility, with the source that states it. Read each row as a design rule to check against your own protocols and services. The main takeaway is that most of these practices ask for simpler, more limited algorithm choices and a clear way to identify which algorithm is in use.
| Practice | What the source describes | Source |
|---|---|---|
| Modular implementations | Implementations should be modular so that new algorithms can be added without redesigning the rest of the code. | RFC 7696, section 1 |
| Algorithm or suite identifiers | Protocols should carry an identifier for the algorithm or suite in use, with entries recorded in an IANA registry. | RFC 7696, sections 1 and 2.1 |
| Avoid hard-coded cipher suites | Hard-coding one cipher suite forces a protocol version change when that suite must be replaced. | RFC 7696, section 3.3 |
| Limit algorithm choices | Offering too many algorithm choices is hard to undo and creates a maintenance burden. | RFC 7696, section 3.2 |
| Keep negotiation simple | Complex negotiation and many alternatives create downgrade and bug risks, so implementations should stay simple. | RFC 7696, section 2.8 |
| Measure and deprecate unused algorithms | Measure which algorithms are actually used, remove unused ones, and mark them deprecated in the IANA registry instead of deleting entries. | RFC 7696, sections 2.1 and 4 |
| Provider-based independence in Java | Request engines by type, such as Cipher or Signature, and avoid requesting specific providers, so applications are not tied to one provider. | Oracle JCA Reference Guide |
How configuration instead of code shows up in real systems
Crypto agility depends on keeping algorithm choices out of application code. The cards below cover four places where that separation appears in published standards and libraries, and one place where it is commonly broken.
Provider-based cryptographic engines
The Java Cryptography Architecture separates algorithm independence, achieved by defining engine types such as Signature, Cipher, MessageDigest, KeyFactory and KeyPairGenerator, from implementation independence, achieved through a provider-based architecture. OpenSSL 3.5 follows a similar idea: a provider is a unit of code offering implementations for various operations, and it may be a dynamically loadable module or built into OpenSSL or the application. Check which providers a deployment actually loads, and confirm that swapping one changes the algorithm without a code change.
OpenSSL provider docsAlgorithm identifiers in protocol messages
RFC 7696 says protocols need to support one or more algorithms or suites and include a way to identify which one is in use. Without that identifier, a peer cannot tell which algorithm it is receiving, so replacing an algorithm forces a protocol change. Review each protocol you run to confirm it carries an explicit algorithm or suite identifier, and that the identifiers come from a registry rather than being hard-coded.
RFC 7696Central registries and deprecation marking
RFC 7696 advises that IANA registry entries should not be changed or removed but can be marked deprecated. It also recommends measuring which algorithms are actually used, removing unused ones and marking them deprecated. Inside an organization, a central list of approved algorithms with deprecation status plays the same role. Ask who maintains that list, how often usage is measured, and how a deprecated algorithm is removed from configuration.
RFC 7696 section 4Avoiding provider-specific requests
The Java Cryptography Architecture reference guide advises that general-purpose applications should not request cryptographic services from specific providers. A request tied to a named provider only works where that provider exists, which limits portability across Java implementations. Search your codebase for calls that name a provider explicitly, and confirm that the application asks for an algorithm and lets the runtime choose the provider.
JCA reference guideLimiting choices in negotiation
RFC 7696 warns that offering too many algorithm choices is hard to undo and creates a maintenance burden. It also says complex negotiation and many alternatives create downgrade and bug risks, so implementations should be kept simple. Review the cipher suites and algorithm lists your services advertise, and confirm that each one is still needed and that removing it is a configuration change.
What existing protocols and standards already provide for swapping algorithms
Several published standards already contain the mechanisms that make algorithm change possible, and architects should build on them rather than invent their own. The starting point is RFC 7696, the IETF Best Current Practice on cryptographic algorithm agility (BCP 201, November 2015). It says protocols must support one or more algorithms or suites and include a way to identify which one is in use, and it requires that IANA registry entries are never changed or removed but can be marked deprecated. For a system you design, this means every negotiated or stored algorithm choice should carry an identifier that maps to a registry entry, so that a retired algorithm can be marked deprecated and phased out without breaking the identifier scheme. RFC 7696 also warns against hard-coding a single cipher suite, because that forces a protocol version change when the suite has to be replaced, and against offering so many choices that negotiation becomes a downgrade and maintenance risk. Keep the set of accepted algorithms small and measure which ones are actually used before removing any.
For post-quantum change, three newer documents define the building blocks. RFC 9794, an Informational RFC from June 2025, defines a PQ/T hybrid key encapsulation mechanism as a multi-algorithm KEM with at least one post-quantum and at least one traditional component, and a PQ/T hybrid digital signature in the same way. That structure lets a deployment combine a traditional and a post-quantum algorithm during a transition. RFC 9629, a Standards Track RFC from August 2024, sets conventions for using KEM algorithms to encrypt and decrypt Cryptographic Message Syntax content and updates RFC 5652, so teams that use CMS can adopt KEMs through a published profile. RFC 10073, published in November 2026 as a Proposed Standard from the IETF LAMPS working group, defines composite signatures that pair ML-DSA with RSASSA-PKCS1-v1_5, RSASSA-PSS, ECDSA, Ed25519 or Ed448 for X.509 and PKIX use. Because it is a Proposed Standard, confirm its status in the datatracker and check the library and certificate tooling your PKI depends on before planning production use. Confirm compatibility for the exact versions you run.
How application code, a crypto provider layer and configuration relate
The diagram starts with application code, which asks for a cryptographic operation by engine type, such as Signature or key encapsulation, and never names a specific algorithm or provider. The provider layer resolves that request to an implementation, and configuration decides which algorithm and provider are chosen. Where the algorithm must be identified on the wire, the chosen identifier is carried in the protocol message, and the peer uses the same registry entry to find its matching implementation. Check that every algorithm name and identifier used in the configuration appears in the protocol's registry, and that the provider you rely on actually supplies it.
Application code asks for engine types, while configuration picks the algorithm and provider.
What architects, engineers, procurement and governance each need to do
Architects decide whether a system can change algorithms without code changes. RFC 7696 says implementations should be modular so new algorithms can be added, and that protocols need algorithm or suite identifiers backed by an IANA registry. Architects also decide how far to go, because RFC 7696 warns that offering too many algorithm choices is hard to undo and creates a maintenance burden, and that hard-coding one cipher suite forces a protocol version change when that suite must be replaced.
- Define algorithm types, not algorithms: Application code should request engine types such as Signature or KeyEncapsulation, following the algorithm-independence model in the Oracle JCA Reference Guide.
- Put identifiers in every interface: Protocols and data formats should carry an identifier for the algorithm or suite in use, so a receiver can tell which one applies.
- Keep the offered set small: RFC 7696 section 2.8 says complex negotiation and many alternatives create downgrade and bug risks, so limit what each system accepts.
- Plan deprecation paths: RFC 7696 section 4 advises measuring which algorithms are used, removing unused ones, and marking them deprecated in the IANA registry rather than deleting entries.
Check that each system has a single, documented place where its algorithm identifiers are defined, and that no service hard-codes an algorithm outside it.
Engineers turn the architecture into working code and configuration. The OpenSSL 3.5 provider manual defines a provider as a unit of code that supplies one or more implementations for various operations, and it may be a dynamically loadable module or built into OpenSSL or the application. Engineers choose where providers load and how configuration selects them, so that changing an algorithm means changing a provider or a configuration value rather than editing application logic.
- Use provider-based loading: Load cryptographic implementations through a provider mechanism so the application does not name a specific library or module.
- Avoid pinning to a named provider: The Oracle JCA guide advises that general purpose applications should not request services from specific providers, because those providers may not exist on other Java implementations.
- Keep algorithm selection in configuration: Store the active algorithm choices in configuration files that operators can review and change under change control.
- Test the alternatives: Run the same tests against each supported algorithm and each provider, so a switch is verified before production.
Confirm the exact provider names, configuration keys and version behavior against the documentation for the OpenSSL or JDK release you run, because the sources here describe the model, not every setting.
Procurement decides whether a supplier can support agility, and it should write the requirement into the contract before purchase. Agility depends on the product, not only the architecture, so a supplier that hard-codes algorithms or cannot show how its identifiers and providers work will limit what the buyer can change. NIST CSWP 39upd1 frames crypto agility as the capabilities needed to replace algorithms across protocols, applications, software, hardware and firmware while preserving security and operations, and procurement is where those capabilities are made a condition of purchase.
- Ask how algorithms are selected: Require the supplier to describe whether algorithm choice is by configuration, by provider or by code change, and to identify any hard-coded choices.
- Ask for identifier and registry support: Confirm that the product carries algorithm or suite identifiers and can handle a deprecated algorithm without breaking operation.
- Require a change path: Ask for a documented procedure, with a defined owner, for replacing an algorithm in the product.
- Ask for evidence: Request test results or documentation that show the product operating with more than one algorithm.
Use NIST CSWP 39upd1 as the reference for what agility covers, and tie each requirement to a question the supplier must answer in writing.
Governance decides who may approve an algorithm change and how that approval is recorded. Technical agility is wasted if the approval path is unclear, because changes then stall or happen without review. NIST IR 8547 describes the transition to post-quantum standards, and governance owns the decisions about when and how an organization moves to the approved algorithms it supports, so that each change has an accountable approver.
- Name an owner for algorithm decisions: Assign a single accountable role that approves which algorithms are permitted and when they are retired.
- Set the approval path: Define who reviews a proposed change, who tests it and who signs off before it reaches production.
- Record deprecations: Track which algorithms are deprecated and when, in line with the RFC 7696 practice of marking entries deprecated rather than removing them.
- Review on a schedule: Revisit the permitted algorithm list at set intervals and after relevant standards change.
Check that the approval record names each approver and the date of each decision, and that the list of permitted algorithms matches what the systems actually run.
How to start building crypto agility into an existing system
The sequence below moves a system from hard-coded algorithm choices to configuration-driven selection in six steps, each producing an artifact you can review. The order matters: you cannot change what you have not inventoried, and you cannot retire an algorithm you have not measured. The steps follow the design patterns and guidance on this page and the NIST and IETF sources it cites.
Inventory every place cryptography is used
Engineering and security teams list each system, library, protocol and service that performs encryption, signing, key exchange or hashing, and record the algorithm, key size and library version each one uses. Include third-party components and certificates, since these are often missed. The step is done when the inventory covers every production system and each entry names its algorithm and owner. Without this list, none of the later steps can be scoped, so treat it as the foundation for the rest of the sequence.
Separate algorithm choice from application code
Architects move calls that name a specific algorithm behind a provider or engine layer, so application code requests an operation such as signing or encryption rather than a particular algorithm. The Java Cryptography Architecture organizes this around engine types such as Signature and Cipher, and OpenSSL 3.5 uses providers that supply implementations for operations. General-purpose code should avoid naming a specific provider, because that ties it to one environment. The step is done when application code no longer contains algorithm names, and a test can swap the underlying implementation without editing the calling code.
Add algorithm identifiers and a registry
For protocols and message formats that your organization owns, add an identifier that states which algorithm or suite is in use, so that a receiver can tell what it is reading. RFC 7696 recommends an IANA-style registry for these identifiers, and says that entries should be deprecated rather than deleted. Your team maintains an internal registry if the protocol is not public. The step is done when every message or record you produce carries an identifier, and every identifier maps to an entry in the registry.
Move algorithm selection into configuration
Platform and security teams move the choice of algorithm, key size and suite out of source code and into configuration files or policy settings that operators can change. RFC 7696 notes that hard-coding a single cipher suite forces a protocol version change when that suite must be replaced, which is the outcome this step avoids. Keep the number of allowed options small, since RFC 7696 warns that many alternatives are hard to undo and add maintenance and downgrade risk. The step is done when changing an approved algorithm requires a configuration change and a deployment, not a code change.
Measure actual algorithm use and deprecate unused ones
Teams collect data on which algorithms are negotiated or used in production, using logs, protocol traces or library telemetry, and compare that against the registry. RFC 7696 section 4 advises removing unused algorithms and marking them deprecated in the registry. Security leads review the results before any removal, since a low-volume client may still depend on an old option. The step is done when a report shows usage per algorithm across production, every deprecation has an owner and a recorded decision, and no removal happens without that review.
Test replacement in a non-production environment
Before changing a live algorithm, engineers run the replacement in a staging or test environment that mirrors production configuration, and confirm that both sides of each protocol still interoperate. Check that the new algorithm is supported by every library and hardware component on the path, and that fallback and negotiation behave as designed. NIST CSWP 39upd1 describes crypto agility as preserving security and ongoing operations during replacement, so verify operational behavior, not just functionality. The step is done when a documented test shows a successful swap, rollback has been exercised, and the results are reviewed before production change. Confirm compatibility for the exact versions you run, since the sources on this page do not establish interoperability between versions for you.
What to require from vendors before you depend on their crypto
The sources reviewed here do not publish a vendor checklist for crypto agility. The questions below are drawn from the guidance in RFC 7696, NIST CSWP 39upd1 and the Java and OpenSSL provider documentation, and each vendor should confirm every point for the versions it runs.
Provider or engine abstraction
Ask whether the product calls cryptography through a provider or engine layer, or whether algorithms are hard-coded into application logic. The Java Cryptography Architecture defines algorithm independence through engine types such as Signature and Cipher, and implementation independence through providers. OpenSSL 3.5 describes providers as loadable units that supply implementations. A product without such a layer usually needs code changes to swap an algorithm. Ask the vendor to name the layer and the versions that include it.
OpenSSL provider docsExposed algorithm and suite identifiers
Ask whether the product exposes algorithm and suite identifiers in its protocol messages, configuration and logs. RFC 7696 says protocols must support one or more algorithms or suites and include a way to identify which one is in use. Identifiers let operators see what is negotiated and report it during a migration. Ask which registry or naming scheme the vendor uses and whether entries are documented.
RFC 7696 textAlgorithm changes by configuration
Ask whether an algorithm can be changed through configuration without modifying or recompiling code. RFC 7696 notes that hard-coding one cipher suite forces a protocol version change when that suite must be replaced. Configuration-level control lets an operator respond on the product's own schedule. Ask the vendor to show which settings control algorithm selection and whether changes take effect without a restart.
Hybrid PQ/T constructs
Ask whether the product supports hybrid constructs that combine a post-quantum component with a traditional one, as defined in RFC 9794. RFC 9794 describes PQ/T hybrid KEMs and signatures as multi-algorithm schemes with at least one component of each type. Ask which hybrid constructs are implemented, which versions include them, and whether they are enabled by default. Also ask how the product handles composite signature formats such as those in RFC 10073.
RFC 9794 textDocumented algorithm deprecation
Ask whether the vendor documents how algorithms are deprecated and removed. RFC 7696 advises measuring which algorithms are actually used, removing unused ones and marking them deprecated in the IANA registry rather than deleting them. A clear deprecation policy tells operators when to plan a change and prevents surprise removals. Ask for the published deprecation schedule and how the vendor notifies customers before an algorithm is removed.
What crypto agility does not solve on its own
Crypto agility is a property a system either has or lacks, and adding it does not remove every risk that comes with changing algorithms. RFC 7696 warns that offering many algorithm choices is hard to undo and creates a maintenance burden, because every option must be implemented, tested and kept secure for as long as it remains available. The same section of guidance warns that complex negotiation and large sets of alternatives create downgrade and bug risks. A system that can select among many suites may be pushed onto a weaker one by an attacker or by a misconfigured peer. Architects should therefore measure which algorithms are actually used, remove the unused ones, and mark them deprecated in the IANA registry instead of deleting entries, as RFC 7696 advises in its later sections.
Agility also does not make the opposite mistake safe. Hard-coding a single cipher suite forces a protocol version change whenever that suite must be replaced, which RFC 7696 identifies as the cost of having no agility at all. Designers therefore have to balance two failure modes: too few options make replacement a protocol-level migration, and too many options make the system harder to test and easier to downgrade. Neither extreme is solved by the pattern alone.
Finally, NIST CSWP 39upd1 describes crypto agility as a capability that must be built out with mechanisms suited to each environment, and presents its own guidance as a starting point for that work rather than a finished design. An abstraction layer or configuration file does not by itself confirm that a new algorithm works with the peers, libraries and hardware already deployed. Before a change is scheduled, confirm the compatibility of each version pair with its vendor or project documentation and test the negotiated result end to end, including fallback behavior when the peer does not support the new option.
Common questions about crypto agility architecture
What is crypto agility in system architecture?
Crypto agility is the ability to replace and adapt cryptographic algorithms in protocols, applications, software, hardware, firmware and infrastructure while preserving security and ongoing operations. NIST's CSWP 39 describes it this way, and RFC 7696 (BCP 201) frames the same idea as a protocol's ability to migrate from one algorithm suite to another over time. In architecture terms, the goal is that swapping an algorithm is a configuration or provider change rather than a rewrite of application code. The current NIST guidance is CSWP 39upd1, which supersedes the original CSWP 39 and is listed as Final.
Does crypto agility matter for small systems?
Yes, though the effort scales with the system. RFC 7696 says that hard-coding one cipher suite forces a protocol version change when that suite has to be replaced, and that problem exists at any size. For a small system, the practical steps are usually smaller: identify the few places where algorithms are named, route them through a single module or configuration value, and record which algorithm each component uses. Illustrative example: a small internal API that names one signature algorithm in five files can move that name into one config key. The cost of doing this early is usually low, while retrofitting it later is usually harder. Confirm the specifics against your own environment.
What do engineers need to build for crypto agility?
The sources point to a few recurring patterns. First, keep algorithm choices out of application code by calling engine types rather than specific algorithms. The Java Cryptography Architecture achieves algorithm independence by defining engine types such as Signature, Cipher and KeyPairGenerator, and implementation independence through a provider-based architecture. Second, avoid naming a specific provider in general-purpose code, because the JCA reference guide notes that this ties the application to providers that may not exist on other Java implementations. Third, let protocols carry an algorithm or suite identifier so the active choice is visible, as RFC 7696 section 2.1 requires. Fourth, keep negotiation simple: RFC 7696 section 2.8 warns that complex negotiation and many alternatives create downgrade and bug risks. Fifth, measure which algorithms are actually used and deprecate the rest, per RFC 7696 section 4.
What should you ask vendors about crypto agility?
Ask whether the product separates algorithm choice from application logic, and whether the algorithm can be changed by configuration or by a provider update rather than a code change. Ask which algorithms are hard-coded and which are selectable, and whether the product uses an identifier that shows which suite is in use. Ask how the vendor handles deprecation and whether it follows the marking approach in RFC 7696, which says registry entries should be marked deprecated rather than removed. For post-quantum readiness, ask which hybrid or composite forms are supported. RFC 9794 defines PQ/T hybrid schemes with at least one post-quantum and one traditional component, and RFC 10073 defines composite signatures for X.509 and PKIX use. Confirm compatibility for the exact versions you run, since the sources do not establish that any two algorithms or versions interoperate by default.
Should we build crypto agility in-house or get outside help?
The decision depends on your internal skills and how many systems need changing. The cost components to weigh are internal engineering time, which is usually a recurring cost as algorithms change, and any outside work, which is usually a one-time scoped engagement followed by optional ongoing support. Factors that raise the cost include the number of legacy components, custom protocols, and hard-coded algorithm choices across many codebases. DeployOpen plans, implements and documents self-hosted platforms inside client infrastructure and runs security testing, and most engagements are fixed-scope with the scope and deliverables agreed in writing before work starts. A quote follows from that written scope. Whichever route you choose, ask any partner which parts of the design they will own and which parts your team retains.
How does crypto agility relate to NIST IR 8547?
NIST IR 8547, Transition to Post-Quantum Cryptography Standards, is listed as Final and dated 27 October 2026, after a draft of 12 November 2024. NIST describes it as supporting Executive Order 14412 and OMB Memorandum M-26-15. Crypto agility is the architectural capability that makes a transition like this manageable: a system that can swap algorithms by configuration can adopt the post-quantum standards without rebuilding. NIST's CSWP 39upd1 is the companion guidance on achieving that capability. The relationship is one of dependency rather than a direct mapping, so read IR 8547 for the transition timeline and deprecation expectations, and read CSWP 39upd1 for how to design for change. Check the current text of both documents, as the sources provided do not give the transition milestones.
Which post-quantum standard should a system use for key establishment?
NIST published FIPS 203, the Module-Lattice-Based Key-Encapsulation Mechanism Standard (ML-KEM), as a Final standard on 13 August 2024. A system that needs key encapsulation should design its key exchange to accept a KEM through a provider or configurable identifier, so the choice of ML-KEM parameter set or a hybrid combination can change without touching application code. RFC 9629 sets conventions for using KEM algorithms in the Cryptographic Message Syntax, which is one place where that design applies. Verify the parameter sets your libraries support, because the sources do not establish a default for every product.
How DeployOpen works on this
DeployOpen approaches crypto agility architecture as a scoped engineering task. We start by defining which algorithm choices must move out of application code and into configuration, provider layers or a central service, then build and test those seams against your own protocols and components. Every engagement ends with written documentation and a handover your team can run.
How we scope
- Engagements are fixed-scope, with the systems, protocols and deliverables agreed in writing before work starts
- We map where algorithm identifiers are hard-coded and which protocols or services would need a version change to swap one
- We agree which pattern fits each component, such as provider-based APIs, negotiated suites or configuration files
How we build
- We refactor application code to request cryptographic services by type, such as signature or key encapsulation, instead of a named algorithm
- We keep the number of supported algorithm options small, following the guidance in RFC 7696 on avoiding unbounded choice
- We test each algorithm swap in a staging environment to confirm that configuration changes alone switch the algorithm in use
How we hand over
- You receive documentation of each algorithm seam, its configuration keys, and the steps to change an algorithm
- We record which algorithms are in use and mark unused ones for removal, in line with RFC 7696 section 4
- Handover includes a walkthrough so your engineers can run an algorithm change without outside help
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after handover
- Retainers can cover re-testing when a new standard such as a composite or hybrid scheme is adopted by your components
- Ask for the support scope, response expectations and retest schedule in writing before you sign a retainer

