Configuration-driven cryptography: algorithm negotiation and policy files

Algorithm choices can live in configuration and negotiation instead of application code. This page explains how the sources describe that pattern, what TLS 1.3 and RFC 7696 already provide, and how to start.

On this page

What configuration-driven cryptography means and who needs it

Configuration-driven cryptography keeps algorithm choices in negotiation and configuration rather than in application code. Instead of hard-coding a cipher suite or signature scheme into a service, the system advertises what it supports, agrees on a shared option at runtime, and reads its preferences from settings that an operator can change. The two documents that describe this approach most directly are NIST CSWP 39upd1, *Considerations for Achieving Crypto Agility: Strategies and Practices*, which treats agility as a practice spanning protocols, applications and infrastructure, and RFC 7696, which sets out the protocol-level guidelines for negotiating algorithms and selecting mandatory-to-implement sets. NIST's document is listed as Final with an update dated 29 June 2026.

Engineers designing protocols and services are the first readers who need this. Their work decides whether a new algorithm can be added by changing a list of supported groups or signature schemes, or whether it requires a code change and a new release. For TLS 1.3, that means checking how the supported_groups and signature_algorithms extensions are offered and answered, as described in RFC 8446 section 4.2.3, and confirming that the negotiation itself is integrity protected, since RFC 7696 section 2.4 warns that unprotected negotiation enables downgrade attacks. Platform owners running shared servers face a related question: which defaults the server ships with, and which weaker options are disabled until an administrator enables them, as RFC 7696 section 3.4 recommends for national cipher suites.

Architects who must answer for algorithm changes need a clear record of what each configuration file controls and who may change it. Ask the engineering team to show the setting that selects each algorithm, the owner of that setting, and the approval step before it changes in production. For a Java service, that includes the provider order set with security.provider.n in the java.security file, as the Oracle JCA Reference Guide describes. Confirm the deprecation plan as well: RFC 7696 section 2.1 says registry entries are marked deprecated rather than removed, and RFC 9155 shows how that works in practice for MD5 and SHA-1 in TLS 1.2. Where a candidate algorithm is hybrid, check the version of the draft or RFC the product implements, since named groups such as X25519MLKEM768 are defined in IETF RFC 10024 and must be confirmed against the versions you run.

What the sources describe as the parts of algorithm agility

This table lists the elements the cited sources describe for making algorithm choices changeable through configuration and negotiation, with the document and section that describe each one. Read each row as a requirement or mechanism the source names, not as a complete checklist. The main takeaway is that negotiation alone is not enough: the sources also call for integrity protection, authenticated negotiated approaches, and a way to change the required set without rewriting base specifications.

ElementWhat the source describesWhere it is described
Algorithm suite identificationProtocols must support one or more algorithms or suites and include a way to identify which one is in use. IANA registry entries should not be changed or removed but can be marked deprecated.RFC 7696, section 2.1
Negotiation with integrity protectionAlgorithm negotiation should be integrity protected to prevent downgrade attacks. Negotiated key establishment approaches must be authenticated.RFC 7696, sections 2.4 and 2.5
Deprecation via IANA registry markingDeprecated entries are marked in the registry, not removed. In TLS 1.2, the rsa_pkcs1_sha1 and ecdsa_sha1 signature schemes are marked not recommended, and clients must not list them in signature_algorithms.RFC 7696, section 2.1; RFC 9155
Mandatory-to-implement companion documentsA companion algorithms document lets the mandatory-to-implement set change without updating the base specification.RFC 7696, section 2.2
SHOULD+, SHOULD- and MUST- labelsAuthors signal expected future changes to an algorithm's status using these labels.RFC 7696, section 2.2.3
Default-disabled national suitesDefault server configurations should disable national cipher suites, so that enabling them requires explicit administrator action.RFC 7696, section 3.4
Java provider list in java.securityThe provider list is set with security.provider.n properties in the java.security file, which determines which implementations an application receives.Oracle JCA Reference Guide

How the pattern looks in running systems

Algorithm choice in deployed systems mostly happens during negotiation, in protocol handshakes and runtime provider lists, and in the configuration that sets which options are offered or enabled. The cards below cover the specific mechanisms where this happens, so that platform and security teams can check what their own systems offer and accept.

TLS 1.3 offers and server selection

In TLS 1.3 the client offers cipher suites, supported groups with key shares, and signature algorithms in its ClientHello. The server picks from that list, and if it selects a group for which the client sent no compatible key share, it must respond with a HelloRetryRequest so the client can retry. Teams should check which groups their servers and clients actually offer, because a mismatch adds a round trip and a fallback path to test.

RFC 8446 text

Hybrid named groups in configuration

The draft IETF specification for hybrid key agreement in TLS 1.3 defines the named groups X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024, and marks only X25519MLKEM768 as recommended. These names are configuration values, so whether a server offers them depends on the TLS library and version in use. Confirm which groups your deployed stack supports before assuming any hybrid group is available.

Hybrid TLS draft

signature_algorithms versus signature_algorithms_cert

TLS 1.3 uses two separate extensions. The signature_algorithms extension governs CertificateVerify signatures, while signature_algorithms_cert governs signatures on certificates. Each lists signature schemes in descending order of preference. Teams replacing certificates or signing algorithms should check both lists, since a change that updates only one can leave the other pointing at an algorithm the peer no longer accepts.

RFC 8446 section 4.2.3

Deprecating SHA-1 signature schemes

RFC 9155 deprecates MD5 and SHA-1 signature hashes in TLS 1.2 and DTLS 1.2. Clients must not list them in signature_algorithms, and the rsa_pkcs1_sha1 and ecdsa_sha1 schemes are marked not recommended in the IANA registry. Check whether your client and server stacks still offer these schemes by default, since a configured list may keep them active even when the standard discourages them.

RFC 9155 text

The java.security provider list

In Java, the provider list is set in the java.security file with security.provider.n properties. This decides which cryptographic implementations an application receives by default, so reordering or adding providers changes behavior without any application code change. Review the provider order on each runtime, because an application may silently pick up a different implementation after an upgrade or a configuration rollout.

JCA reference guide

Configured default versus explicit enable

RFC 7696 says default server configurations should disable national cipher suites, so that an administrator must take explicit action to enable them. A configured default is what ships or what the file says, while an explicit enable is a deliberate administrator step. Distinguish the two in your change records, and confirm that any algorithm you want off by default is absent from the active configuration, not just documented as optional.

RFC 7696 section 3.4

What TLS 1.3 and RFC 7696 already provide for negotiating algorithms

TLS 1.3 already moves algorithm choice out of fixed code paths and into negotiation. In RFC 8446 section 4.1.1 (August 2018), the client offers cipher suites, supported groups with key shares, and signature algorithms, and the server selects from them. If the server picks a group for which the client sent no compatible key share, it must send a HelloRetryRequest. Under RFC 8446 section 4.2.3, the signature_algorithms extension governs CertificateVerify signatures and signature_algorithms_cert governs certificate signatures. Each SignatureScheme is listed in descending order of preference, so the order a team configures on the client and server directly determines which algorithm wins. Teams should review that ordering as a configuration decision, not a default they inherit.

RFC 7696 (BCP 201, November 2015) sets the requirements a protocol must meet for negotiation to be safe. It asks that a protocol identify which algorithm suite is in use (section 2.1), that negotiation be integrity protected to prevent downgrade attacks (section 2.4), and that any negotiated key establishment approach be authenticated (section 2.5). Section 2.3 adds that transition works best when there is a defined point at which an algorithm is refused, either on a flag day or per installation. Section 2.5 also warns against offering many key establishment approaches, because each extra option complicates security analysis. For a configuration review, the practical check is whether the deployed stack can show which suite a session used and whether the enabled list has been trimmed to what the team intends to allow.

How the client offer, server selection and policy fit together

The flow starts when the client sends its ClientHello, listing cipher suites, supported groups with key shares, and signature algorithms. The server checks that offer against its policy file and selects parameters from what it allows. If the selected group has no compatible key share in the offer, the server sends a HelloRetryRequest and the client retries. The final negotiated parameters are what both sides should verify, since RFC 8446 governs CertificateVerify with signature_algorithms and certificates with signature_algorithms_cert.

TLS 1.3 negotiation flow from client offer through server policy to negotiated parameters.

What architects, engineers, procurement and governance each need to decide

Architects decide where algorithm lists live and how negotiation is authenticated. RFC 7696 section 2.1 requires that a protocol support one or more algorithms or suites and identify which one is in use, so the design must define how each side advertises its options. Section 2.4 says negotiation should be integrity protected to prevent downgrade attacks, and section 2.5 says negotiated key establishment approaches must be authenticated and that many approaches complicate security analysis. Section 2.2 recommends a companion algorithms document so the mandatory-to-implement set can change without rewriting the base specification.

  • Location of algorithm lists: Decide whether lists are compiled into the service, read from a configuration file, or delivered by a central policy service, and record which one is authoritative.
  • Authenticated negotiation: Confirm that the offer and selection are covered by integrity protection, as RFC 8446 does for the TLS 1.3 handshake, rather than trusting unprotected advertisements.
  • Limited key establishment options: Keep the set of key establishment approaches small, following section 2.5.
  • Companion algorithms document: Plan for a separate document or config artifact that holds the mandatory-to-implement set, so it can change independently.

Check that every negotiated choice can be traced to an authenticated message and that the design records which document governs each algorithm decision.

How to start moving algorithm choices out of code

This sequence moves the places where an algorithm is named from application code into configuration and negotiation, so that a change in algorithm choice does not require a code rewrite. It produces an inventory, a set of configuration files, negotiation tests and a companion document that records which algorithms must be supported. Each step depends on the one before it.

  1. Inventory where algorithm names are hard-coded

    Start by searching the codebase, build files and deployment templates for literal algorithm and suite names, such as cipher suite strings, named groups, signature scheme identifiers and provider names. Include the libraries and frameworks that set defaults you may not have written yourself. Assign each finding to an owning team. The step is complete when every occurrence is listed in one inventory with its file, its owner and whether it is a protocol choice, a provider choice or a fixed constant. Confirm the list with the team that owns each component, since defaults inside vendor libraries may not appear in your own source.

  2. List which protocols already negotiate

    For each protocol in use, record whether it already carries an algorithm negotiation mechanism and what is negotiated. TLS 1.3 negotiates cipher suites, supported groups with key shares, and signature algorithms, and the server can request a retry when no compatible key share was sent. Other protocols may negotiate less or nothing, and those gaps need a plan. Check the version and configuration your deployment actually runs, because negotiation behavior depends on the version. The step is complete when each protocol is marked as negotiating, partly negotiating or fixed, with the relevant specification cited for each.

  3. Move suite and group lists into configuration files

    Replace the hard-coded lists of suites, groups and signature schemes with values read from a configuration file or policy store at startup. Where a language runtime selects providers, such as the Java Cryptography Architecture with its security.provider entries in the java.security file, use the provider configuration rather than calling a specific implementation from code. Keep the ordering of preferences in the file, since order carries meaning in negotiation. The step is complete when the application runs with the same behavior using only the configuration values, and a test shows that changing a value in the file changes what is offered, without a rebuild.

  4. Define the point at which an algorithm is refused

    Decide, in writing, the date or condition on which each algorithm stops being offered or accepted, and whether the change happens on a single flag day or per installation. The RFC 7696 guidance describes this as a defined point of refusal and recommends that the transition be negotiated rather than forced. Record the threshold in the policy file so that the refusal is a configuration change. Name the owner who approves each change. The step is complete when every algorithm in the inventory has a stated refusal condition, or a stated reason it is kept, and that record is reviewed by the people who own the policy.

  5. Test negotiation for downgrade

    Write tests that try to make both sides agree on a weaker option than the strongest one they support. RFC 7696 says negotiation should be integrity protected to prevent downgrade attacks, and that weaker algorithms should be accepted only where they do not enable a downgrade. Test each configured protocol with a client that offers only weak options and with one that offers only strong ones, and check which connection results. Check that the negotiated choice cannot be altered in transit. The step is complete when each test produces the expected result and the results are kept with the configuration version they were run against. Repeat these tests when the configuration changes.

  6. Record the mandatory-to-implement set in a companion document

    Write a companion document that lists the algorithms every implementation in your environment must support, separately from the configuration files that set what is actually offered. RFC 7696 recommends this separation so that the mandatory set can change without rewriting the base specification. Mark each entry with its expected future status, using the labels the RFC defines, such as SHOULD+ or MUST-, where your organization has decided that status. Link the companion document to the policy owner and to the test results from the previous step. The step is complete when the document is approved, versioned, and matched against the configuration files so that the two cannot silently diverge.

What to require from vendors when they ship configurable cryptography

Configurable cryptography only helps if the vendor documents what can be changed, what is on by default and how the product behaves during a downgrade. The cards below are questions to put to a vendor before you rely on a product's negotiation or policy settings, and each one maps to a point the sources treat as necessary for safe algorithm change.

Is the algorithm list exposed in configuration?

Ask whether the cipher suites, named groups and signature schemes the product offers can be set in configuration files rather than compiled in. If the list is fixed in code, every algorithm change becomes a software release. Ask for the exact configuration keys, and check whether the product tells you which algorithm a live connection actually used. RFC 8446 describes the client offering suites, groups and signature algorithms during negotiation, so the offered set is the part you need to see and control.

RFC 8446 text

Is the provider or suite order documented?

Ask which provider or suite the product tries first, and whether that order is documented and changeable. In the Java Cryptography Architecture, the provider order is set in the java.security file with security.provider.n properties, which decides which implementation an application receives. Ask the vendor to name its equivalent setting and to confirm whether an unexpected reorder can silently change the algorithm in use.

JCA reference guide

Are legacy and national suites disabled by default?

Ask whether legacy suites and national cipher suites are off in the default configuration, and what an administrator has to do to turn them on. RFC 7696 says default server configurations should disable national cipher suites, so that enabling one requires explicit action. Ask for the list of disabled-by-default suites and for a record of who changed them. A product that enables weak or national suites out of the box creates downgrade exposure you would have to find and close yourself.

RFC 7696 text

Is deprecation marked, not removed?

Ask how the product handles algorithms that are being retired. RFC 7696 says IANA registry entries should not be changed or removed but can be marked deprecated, and RFC 9155 marks rsa_pkcs1_sha1 and ecdsa_sha1 as not recommended rather than deleting them. Ask whether the product flags deprecated algorithms in its own output and logs, and whether it removes an algorithm from the offered set only after a documented decision.

RFC 9155 text

Which named groups and signature schemes are negotiated?

Ask the vendor for a written statement of the named groups and signature schemes the product negotiates in its default and in each supported configuration. For hybrid key agreement, RFC 10024 defines X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024, and marks only X25519MLKEM768 as recommended. Ask which of these the product supports, which it prefers, and whether the statement covers the version you run.

RFC 10024 draft

Is negotiation protected against downgrade?

Ask whether the product's algorithm negotiation is integrity protected, so an attacker cannot strip the stronger options from the offer. RFC 7696 says negotiation should be integrity protected to prevent downgrade attacks, and that negotiated key establishment must be authenticated. Ask the vendor to describe how it detects and refuses a downgraded negotiation, and how it logs the result.

RFC 7696 text

What configuration-driven cryptography does not solve

Moving algorithm choices into configuration does not guarantee that the other side can use them. A policy file can list a preferred group or signature scheme, but the outcome depends on what the peer offers in its own handshake or configuration. In TLS 1.3, RFC 8446 section 4.1.1 has the server answer with a HelloRetryRequest when it selects a group for which the client sent no compatible key share, which shows that a configured preference is only one input to the result. Engineers should check both ends of each connection, including the client libraries and endpoints they do not control, and confirm the named groups they rely on. RFC 10024 defines several hybrid named groups and marks only X25519MLKEM768 as recommended, so a configured choice should be verified against what the peers actually support for the versions in use.

Negotiation also has to be protected. RFC 7696 section 2.4 says algorithm negotiation should be integrity protected to prevent downgrade attacks, and section 2.5 says negotiated approaches must be authenticated. A configuration that permits a weaker option only makes sense if the protocol prevents an attacker from forcing that option onto a connection. RFC 7696 section 2.9 adds that where opportunistic security is used, weaker algorithms should be accepted only if they do not enable downgrade attacks. Before relying on a negotiated outcome, review whether the handshake transcript is covered by authentication and whether the deployed protocol version provides that protection.

The sources listed on this page do not describe how a given product applies its configuration, including which setting wins when files conflict, when changes take effect, or whether a restart is required. The Oracle JCA Reference Guide explains that the provider list is set through security.provider.n properties in the java.security file, but how a specific application or runtime reads and overrides that file is outside what this page covers. The sources also do not say how long any transition takes. Confirm the behavior of each product in its own documentation and test it in your environment, and treat any timeline as something to set with your own owners rather than something taken from the standards.

Questions readers ask about algorithm negotiation and policy files

What is configuration-driven cryptography?

Configuration-driven cryptography keeps the choice of algorithms, key exchange groups and signature schemes in configuration or negotiation settings rather than hard-coded in application logic. The sources on this page describe the underlying capability as crypto agility: the ability to replace and adapt cryptographic algorithms in protocols, applications, software and infrastructure while preserving security and ongoing operations. NIST's CSWP 39 frames this as a starting point for environment-specific mechanisms, not a fixed product or setting. In practice, a service reads which suites it may use from a configuration file or a provider list, and the protocol negotiates the rest at connection time. The sources do not provide a single standard format for such policy files, so treat any specific file layout as a design choice to confirm against your own platform's documentation.

How do I know whether configuration-driven cryptography applies to my service?

It applies to any service where the algorithms in use can be changed without rewriting application code. Check three things: whether your protocols negotiate algorithms or fix them, whether your libraries load providers or algorithms from configuration, and whether your certificates and key stores can be replaced without changes to the application. RFC 7696 says protocols must support one or more algorithms and include a way to identify which one is in use, which is the starting point for asking this question of each protocol you run. Services with hard-coded algorithm names in source, or with fixed cipher lists compiled into binaries, fall outside the pattern until those choices move into configuration. The sources do not offer a scoring method, so review each service against these three checks and record the results in your own inventory.

What does TLS 1.3 negotiation actually do?

In TLS 1.3, the client offers the cipher suites it supports, the supported groups along with key shares, and the signature algorithms it accepts. The server selects from those offers, and if it chooses a group for which the client sent no compatible key share, it must send a HelloRetryRequest so the client can supply one, according to RFC 8446 section 4.1.1. RFC 8446 section 4.2.3 states that the signature_algorithms extension governs CertificateVerify signatures, signature_algorithms_cert governs certificate signatures, and each signature scheme is listed in descending order of preference. The negotiation therefore selects algorithms per connection. It does not by itself decide which algorithms your policy should permit, so that choice must be set in your server and client configuration.

How does RFC 7696 define cryptographic algorithm agility?

RFC 7696, a Best Current Practice published in November 2015, describes algorithm agility as the ability of a protocol to migrate from one algorithm suite to another over time. Section 2.1 says protocols must support one or more algorithms or suites and include a way to identify which one is in use. Section 2.3 says transition works best through negotiation, with a defined point at which the old algorithm is refused, either on a flag day or per installation. Section 2.4 says negotiation should be integrity protected to prevent downgrade attacks. Section 2.2 recommends a companion document so the mandatory-to-implement set can change without updating the base specification. Section 2.5 warns against offering many key establishment approaches, because that complicates security analysis, and requires negotiated approaches to be authenticated.

What should I ask a vendor about algorithm negotiation and policy settings?

Ask which algorithms and key exchange groups the product negotiates by default, and where an administrator changes that list. Ask whether the negotiation is integrity protected against downgrade attacks, as RFC 7696 section 2.4 recommends. Ask whether deprecated algorithms are disabled or only marked as such, and which version of the protocol and library each answer applies to. For TLS, ask whether the product supports TLS 1.3 negotiation and which named groups it offers, since RFC 10024 defines several hybrid groups and marks only one as recommended. Ask whether national or optional cipher suites are off by default, following RFC 7696 section 3.4. Request written answers tied to the exact version you plan to run, and confirm any compatibility claim in your own test environment, because the sources here do not establish that products interoperate.

Should we build algorithm policy handling in-house or get outside help?

The sources on this page do not compare in-house and external approaches, so the decision depends on your own environment. Consider how many protocols and services you run, whether your engineers already maintain the libraries and key stores involved, and how much of the work is one-time configuration versus recurring upkeep. The cost components are your engineering time, any licensed products, and ongoing testing when algorithm guidance changes; NIST IR 8547 is cited as supporting the federal transition and may affect what you need to track. If you bring in outside help, define the scope, deliverables and retest approach in writing before work starts. DeployOpen plans, implements and tests self-hosted platforms in a client's infrastructure on a fixed-scope basis, and quotes follow from that written scope.

How DeployOpen helps plan and configure cryptography changes

DeployOpen plans and configures algorithm choices as settings that live outside application code, so a change of algorithm or policy can be made, reviewed and rolled back as a configuration change. We scope the work in writing, build and test the negotiation and policy files against the protocols your systems run, and hand over documentation your engineers and compliance team can review.

How we scope

  • We list which protocols, services and libraries in your environment negotiate algorithms, and where each choice is currently hard-coded.
  • We agree the written scope before work starts, including which named groups and signature schemes each system must offer.
  • We identify the mandatory-to-implement set and the points at which legacy algorithms will be refused, and record them in the scope.

How we build

  • We move algorithm lists into configuration files and provider settings, such as the provider order in the java.security file.
  • We check that negotiation is integrity protected and that downgrade paths to weaker algorithms are closed in each configuration.
  • We test each negotiation path, including hybrid key agreement and retry behavior, against the versions you run before any change reaches production.

How we hand over

  • You receive the configuration files, a written description of each negotiated parameter and the reason it is set that way.
  • Documentation lists which protocol versions and library editions each setting was tested against, so your team can confirm compatibility for its own versions.
  • We provide a rollback procedure for every policy change, so each algorithm setting can be reverted without rewriting application code.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, so policy files keep pace with new algorithm guidance.
  • We retest negotiation paths after library or protocol upgrades, since a new version can change which algorithms are offered by default.
  • Ask any quote to state which systems, protocols and retest cycles are covered, so your team can compare scopes on equal terms.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.