What is algorithm negotiation?

Algorithm negotiation is how two systems agree which cryptographic algorithms to use in a session. Here is where it appears, how it protects against downgrades, and what it means for a post-quantum migration.

On this page

What is algorithm negotiation, and where do you meet it?

If a vendor document, tender question or audit request mentions algorithm negotiation or downgrade protection, the question is usually whether the product can be pushed to a weaker algorithm by an attacker, or whether it can agree on a post-quantum option at all. Algorithm negotiation is the process by which two peers agree on the algorithms they will use for a connection or session. RFC 7696 is the guidance document for selecting and migrating mandatory-to-implement algorithms, and it says peers typically negotiate the strongest mutually supported algorithm their policies allow. It also says the selection itself should be integrity protected, because otherwise downgrade attacks become possible.

Engineers meet this term when they configure TLS, IPsec and SSH, where each handshake lists supported options and the peers pick one. In TLS 1.3, the client offers cipher suites in descending preference, lists supported groups, and the server selects one; if no group overlaps, the server must abort. RFC 9846 defines this behavior. In IKEv2, RFC 9370 lets the initiator propose additional key exchange transforms, and the responder picks one per type or refuses. Security leads reviewing vendor answers should ask which algorithms are offered by default, whether a downgrade is blocked, and whether national cipher suites are disabled, since RFC 7696 recommends disabling them by default in server configurations. Confirm the exact protocol version and configuration each vendor runs, because RFC 9954 notes that it leaves the acceptability of a downgrade for hybrid groups to each endpoint's policy.

What names and identifiers does algorithm negotiation use?

This table lists the standards and the protocol identifiers that the sources use when two systems negotiate algorithms, grouped by protocol. Read each row as the name to search for in a specification, a packet capture or a configuration, and use only these names rather than aliases. The main takeaway is that TLS 1.3 and IKEv2 carry negotiation in different fields, so a hybrid upgrade needs checks in both places.

Name or identifierWhere it appearsWhat it doesSource
Algorithm negotiationGeneral termTwo systems agree which algorithms to use, ideally the strongest mutually supported option their policies allowRFC 7696
BCP 201 (RFC 7696)IETF guidance documentGuidelines for cryptographic algorithm agility and selecting mandatory-to-implement algorithms, dated November 2015RFC 7696
supported_groupsTLS 1.3 ClientHello extensionClient lists the key exchange groups it supports, including hybrid groupsRFC 9846
key_shareTLS 1.3 ClientHello extensionClient sends key shares for some or all listed groups, and the server must abort if no group overlapsRFC 9846
signature_algorithmsTLS 1.3 ClientHello extensionClient lists the signature schemes it can verify, in preference orderRFC 9846
signature_algorithms_certTLS 1.3 extensionSeparately indicates certificate-specific signature algorithmsRFC 9846
HelloRetryRequestTLS 1.3 server messageSent when parameters are acceptable but the ClientHello lacks a usable key_share groupRFC 9846
INTERMEDIATE_EXCHANGE_SUPPORTEDIKEv2 notificationInitiator signals support for additional key exchanges, which the responder must confirm before ADDKE transforms applyRFC 9370
ADDKE1 to ADDKE7 (IANA values 6 to 12)IKEv2 transform typesAdditional key exchange transforms; the responder picks one per type or replies NO_PROPOSAL_CHOSENRFC 9370
ML-KEM in IKEv2IKEv2 draftCarries ML-KEM proposals in IKEv2; the draft notes downgrade exposure and says responders that know initiators support ML-KEM should reject proposals without itdraft-ietf-ipsecme-ikev2-mlkem-09

Where does algorithm negotiation appear in real systems?

Algorithm negotiation is not one mechanism. It runs through handshake protocols, key exchange extensions, IETF design guidance and the vendor documentation buyers request. Each place below follows the same core pattern: one side offers options, the other selects, and the selection must be protected against downgrade.

TLS 1.3 handshakes

In TLS 1.3, the client lists cipher suites in descending preference and the server selects one. Supported groups are listed in supported_groups with key shares sent for some or all of them, and signature schemes are offered in signature_algorithms in preference order. If no group overlaps (when not using PSK alone), the server must abort. Check which groups and signature schemes your endpoints offer, and how a server handles a ClientHello without a usable key share, since a HelloRetryRequest adds a round trip.

RFC 9846 text

IKEv2 additional key exchanges

RFC 9370 lets an IKEv2 initiator propose additional key exchange transforms, ADDKE1 to ADDKE7, after the initial exchange, and send the INTERMEDIATE_EXCHANGE_SUPPORTED notification to signal support. The responder picks one transform per type or replies NO_PROPOSAL_CHOSEN. If the notification is not negotiated, peers skip those proposals. A draft on ML-KEM in IKEv2 states the protocol is exposed to downgrade attacks, so check whether your gateways reject proposals that omit a post-quantum transform when they know peers support it.

RFC 9370 text

IETF guidance on agility

RFC 7696 (BCP 201) gives guidance so IETF protocols can move from one mandatory-to-implement algorithm suite to another over time. It says peers typically negotiate the strongest mutually supported algorithm their policies allow, that selection should be integrity protected, and that the integrity algorithm protecting the negotiation itself needs extra care. It also recommends disabling national cipher suites by default. Use it as the reference when reviewing a protocol's negotiation design.

RFC 7696 text

Vendor documents and tender questions

Buyers and vendor-risk reviewers often ask how a product negotiates algorithms, which suites it offers by default, and whether a downgrade to classical-only is possible. Ask for the documented list of offered algorithms, the configuration keys that change them, and whether negotiation is integrity protected. The sources listed on this page do not say how any specific product behaves, so confirm each answer against the version you run.

NIST CSWP 39upd1

How do two systems agree on an algorithm during a handshake?

Algorithm negotiation during a handshake works through an ordered exchange of offers. In TLS 1.3, as described in RFC 9846, the client lists its supported cipher suites in descending order of preference and the server selects one. Supported groups are handled the same way: the client lists them in the supported_groups extension and sends key shares for some or all of them, and the server picks a group it accepts. The client also lists the signature schemes it can verify in the signature_algorithms extension in preference order, and signature_algorithms_cert can separately indicate the algorithms it accepts in certificates. The sources describe the server's choice as the mechanism that settles which algorithm both sides will use.

When the two sides have no acceptable overlap, the handshake ends rather than continuing with a weaker option. RFC 9846 says that if there is no group overlap, and the handshake is not using a pre-shared key alone, the server must abort with a handshake_failure or insufficient_security alert. Mismatches of other kinds also produce alerts, so an operator reading a failed connection should check the alert the peer sent before assuming a certificate or network fault. For a practical check, confirm which groups and signature schemes your server and client each enable, and test the pairing you actually deploy rather than relying on a default.

A special case is the HelloRetryRequest. When a server can find acceptable parameters but the ClientHello does not contain a usable key_share group, RFC 9846 says the server sends a HelloRetryRequest. The client then resends ClientHello with a single key_share entry for the group the server requested. This adds a round trip, so it is worth confirming in testing which group the server prefers and whether your clients send key shares for it. The sources also note that RFC 9954 does not specify a downgrade-protection mechanism for hybrid groups, leaving the acceptability of a downgrade to each endpoint's policy, so review that policy directly.

How the negotiation sequence runs from offer to selection

The diagram starts with the client sending a ClientHello that lists its preferred cipher suites, its supported_groups, the key_share entries it has generated, and the signature_algorithms it can verify. The server then either selects a group and a signature scheme it can accept and completes the handshake, or sends a HelloRetryRequest asking the client to resend with a key_share for a group it chose. If no group overlaps, the server aborts with a handshake_failure or insufficient_security alert. Check which of these outcomes your endpoints produce, and whether the negotiation is protected from downgrade.

Client offer, server selection, retry and abort paths in TLS 1.3.

How is a downgrade attack prevented during negotiation?

The IKEv2 draft draft-ietf-ipsecme-ikev2-mlkem-09 (5 July 2026) states that IKEv2 is exposed to downgrade attacks. Its guidance is that a responder which knows out of band that initiators support ML-KEM should reject proposals that do not include it. Negotiation itself does not supply this protection, so the protection depends on knowledge the responder holds from outside the handshake. The additional key exchange transforms in RFC 9370 (May 2023) let an initiator propose extra key exchanges, and the responder either picks one transform per type or replies NO_PROPOSAL_CHOSEN. The endpoint must decide which initiators it expects to support ML-KEM, how that expectation is recorded, and whether a proposal without ML-KEM is rejected or accepted.

  • Out-of-band knowledge: The draft ties rejection to what the responder knows from outside the exchange, not to anything the peer sends during it.
  • ADDKE transforms: RFC 9370 defines ADDKE1 to ADDKE7 (IANA values 6 to 12) and requires the INTERMEDIATE_EXCHANGE_SUPPORTED notification.
  • Skipped proposals: If the notification is not negotiated, peers treat the ADDKE transforms as unknown and skip those proposals.
  • NO_PROPOSAL_CHOSEN: A responder that cannot match a proposal in each type returns this reply.
  • Policy record: The endpoint must write down which peers it expects to offer ML-KEM so the rejection rule has a basis.

Confirm the exact behavior of the IKEv2 implementation you run against the draft version it claims to follow, because the draft is a work in progress.

What should you check in your environment for negotiation risk?

This sequence finds every place your systems negotiate algorithms, confirms which algorithms and fallbacks each endpoint will accept, and produces a record of where a downgrade could happen and who is responsible for closing it. Work through the steps in order, because each one depends on the inventory produced by the step before it.

  1. Inventory where negotiation occurs

    Start by listing every protocol and service in your environment where two endpoints agree on algorithms at connection time. This includes TLS termination points such as load balancers, reverse proxies and API gateways, VPN and IPsec gateways, SSH servers, and any internal service-to-service connections that use TLS or IKEv2. For each entry, record the component, the version or edition in use, the protocols it negotiates, and the team that owns it. The step is complete when every negotiating endpoint has an owner and a version recorded, since you cannot assess a downgrade path in a component you have not listed.

  2. Review server cipher suite and group configuration

    For each endpoint in your inventory, export the configured cipher suites, supported groups and signature algorithms, and compare them against your cryptographic policy. Pay particular attention to national cipher suites, which RFC 7696 says should be disabled by default in server configurations, so check whether any are enabled and whether that was a deliberate decision. Also confirm which hybrid or post-quantum groups are offered, and whether the server would accept a connection without them. Record the result per endpoint. The step is complete when you have a configuration file or export for each endpoint and a list of any enabled national suites with a stated reason for each.

  3. Confirm downgrade protection behaviour on each endpoint

    Determine how each endpoint behaves when a peer offers weaker options than it supports. For TLS 1.3, RFC 9846 says a server that negotiates TLS 1.2 or lower sets a specific marker in ServerHello.random, and a client that sees that marker must abort, so confirm your clients and servers implement that check. For hybrid key exchange, RFC 9954 does not specify a downgrade-protection mechanism for hybrid groups and leaves the acceptability of a downgrade to each endpoint's policy, so you need to test this behaviour directly rather than assume it. For IKEv2, the draft draft-ietf-ipsecme-ikev2-mlkem-09 notes that a responder knowing out of band that initiators support ML-KEM should reject proposals without it, and you should confirm whether your responders are configured to do so. Test with a controlled client that offers reduced options, and record whether each endpoint accepts or rejects the downgrade. The step is complete when every endpoint has a documented pass or fail result for each downgrade scenario you tested.

  4. Check that fallback policies match your requirements

    Using the results from the previous steps, decide for each endpoint whether a fallback to a classical-only or weaker algorithm is acceptable under your policy, and where it is not, whether the endpoint is configured to refuse it. Compare how the endpoints handle no-overlap cases: RFC 9846 says a server must abort with a handshake_failure or insufficient_security alert when there is no group overlap, so verify that your servers do this rather than silently falling back. Document each fallback you accept, the reason for accepting it, and the compensating control in place. The step is complete when every accepted fallback has a named owner, a stated reason and a review date set by your governance process.

  5. Ask vendors which negotiation behaviours they implement

    For each commercial product in your inventory, send the vendor a written question asking which negotiation behaviours it implements, which fallback policies it applies by default, and whether those defaults can be changed. Ask how the vendor tests downgrade resistance, what test evidence it can share, and which product version the answers apply to. Vendors often answer for the current release only, so ask for the version range your deployment uses. Give particular attention to whether the vendor sets any national suites or classical-only fallbacks as defaults. The step is complete when each vendor has returned written answers that name the product version, and any gap between the vendor's answer and your policy has been logged for remediation or acceptance.

  6. Record findings and assign remediation owners

    Bring the results from the previous steps into a single register that lists each endpoint, the negotiation behaviour observed, the downgrade risk, the fallback accepted or refused, and the vendor answer where one applies. Assign each open item to an owner with a target action, such as changing a configuration, upgrading a component or accepting the risk in writing. Share the register with your security and governance leads so that accepted risks are approved by the people responsible for them. The step is complete when every endpoint has a row in the register and every row with a gap has an owner and a recorded decision.

Which terms do people confuse with algorithm negotiation?

Algorithm negotiation is often blurred with neighboring ideas in post-quantum and protocol work. The cards below separate it from agility, hybrid key exchange and preference order, so you can check which mechanism a vendor or specification is actually describing.

Negotiation versus algorithm agility

Agility is a design capability, negotiation is a runtime exchange. NIST CSWP 39upd1 describes crypto agility as the capabilities needed to replace and adapt algorithms across protocols, applications and infrastructure while preserving security and operations. Negotiation is one protocol mechanism that lets two peers agree on an algorithm during a session. A system can be agile without negotiating, and a system can negotiate while being hard to change. Ask whether a vendor's claim refers to the design or to the handshake.

NIST CSWP 39upd1

Negotiation versus hybrid key exchange

Hybrid is a combination, negotiation is how it gets chosen. RFC 9794 defines a PQ/T hybrid key encapsulation mechanism as a multi-algorithm KEM with at least one post-quantum and one traditional component. Negotiation decides whether a given session uses such a group at all. RFC 9954 notes that it does not specify a downgrade protection mechanism for hybrid groups and leaves the acceptability of a downgrade to each endpoint's policy. Confirming that hybrid exists in a product does not confirm that the negotiated result is hybrid.

RFC 9954

Preference order versus actual selection

Listing a preference does not mean it gets used. In TLS 1.3 under RFC 9846, the client lists cipher suites in descending preference and the server selects one, and the server may decline every offered group and abort. A preference list is only an offer. The outcome depends on what the server supports and its policy. When auditing, check the negotiated parameters observed in a real handshake, not only the configured lists.

RFC 9846

Strongest algorithm versus any algorithm

Negotiation aims for the strongest common choice, not just a working one. RFC 7696 says peers typically negotiate the strongest mutually supported algorithm their policies allow. That is different from accepting whatever both sides happen to share. The gap matters for downgrade risk: RFC 7696 says algorithm selection should be integrity protected because otherwise downgrade attacks become possible. Check whether the negotiation itself is protected, not only the traffic it sets up.

RFC 7696

Negotiation versus mandatory-to-implement

Mandatory algorithms are a fixed fallback, negotiation chooses above it. RFC 7696 (BCP 201) gives guidance for moving IETF protocols from one mandatory-to-implement algorithm suite to another over time. A protocol can require a baseline that every implementation supports while negotiation picks stronger options when both peers offer them. Confusing the two hides the baseline that a downgrade attack would target. Ask which algorithm is mandatory and which are optional.

What do people ask about algorithm negotiation?

What does algorithm negotiation stand for?

Algorithm negotiation is the process by which two systems agree which cryptographic algorithms to use for a connection or session. Typically the peers offer the algorithms they support, and they settle on the strongest option both sides support and that their policies allow. RFC 7696 describes this approach in its guidance on cryptographic algorithm agility. In protocols such as TLS 1.3, the client lists its cipher suites, supported groups and signature schemes, and the server selects from them. The term covers the selection step only, not the algorithms themselves.

Is algorithm negotiation the same as crypto agility?

No. Crypto agility is the broader capability to replace and adapt cryptographic algorithms across protocols, applications, software, hardware and infrastructure while keeping systems secure and running. NIST CSWP 39upd1 describes it that way. Algorithm negotiation is one mechanism that can support agility inside a protocol, because it lets peers choose among the algorithms they both implement. Negotiation does not replace the need to update software, configuration or policy when an algorithm is retired.

Is algorithm negotiation standardized?

The mechanism is defined per protocol rather than by one general standard. RFC 9846 (TLS 1.3, July 2026) defines how clients and servers negotiate cipher suites, key shares and signature schemes. RFC 9370 defines how IKEv2 peers negotiate additional key exchange transforms. RFC 7696 (BCP 201, November 2015) gives the general guidance that IETF protocols should follow when they negotiate algorithms. Confirm the exact RFC or draft that governs the protocol you run, because the rules differ between them.

Do my products negotiate post-quantum algorithms?

The sources do not say whether any particular product negotiates post-quantum algorithms, and they do not list vendor support. Check the vendor's documentation for the protocol versions, key exchange groups and signature schemes the product supports. For TLS, look for the hybrid or post-quantum groups listed in the server and client configuration. For IKEv2, check whether the product implements RFC 9370 and the ML-KEM draft (draft-ietf-ipsecme-ikev2-mlkem-09, dated 5 July 2026), which is still a draft. Ask the vendor to confirm this in writing for the exact versions you run.

What does algorithm negotiation change for my systems?

It changes how the algorithms used in a connection are chosen, which in turn affects configuration, testing and monitoring. RFC 7696 notes that selection should be integrity protected, because otherwise downgrade attacks become possible. RFC 9846 requires a server to abort when there is no group overlap, with a handshake_failure or insufficient_security alert. RFC 9954 says it does not specify a downgrade protection mechanism for hybrid groups, so acceptability of a downgrade is left to each endpoint's policy. Plan to review those policies, the disabled-by-default settings for national cipher suites, and the logs that show which algorithms were actually selected.

What downgrade risks should I check for in algorithm negotiation?

The main risk is that an attacker forces both sides to settle on a weaker algorithm than either would choose alone. RFC 7696 says extra care is needed when the mandatory-to-implement integrity algorithm protects the negotiation itself, because a flaw there could let an attacker influence other choices. The ML-KEM IKEv2 draft says that IKEv2 is exposed to downgrade attacks, and that a responder which knows out of band that initiators support ML-KEM should reject proposals without it. Test whether your endpoints reject weaker proposals, and document the policy that governs acceptable fallback.

What should I ask a vendor about algorithm negotiation?

Ask which protocol versions and extensions the product implements, and which key exchange groups and signature schemes it offers in its default configuration. Ask whether it uses the server's preference or the client's order when selecting an algorithm, and how it handles a failed group overlap. Ask whether it can be configured to reject weaker fallback, and whether it logs the algorithms selected in each session. Request the vendor's documentation and test results for the exact versions you run, and confirm in writing any claim about post-quantum support.

Can my team set up algorithm negotiation without outside help?

Teams with protocol and configuration experience can often review and adjust negotiation settings in-house, using the RFCs and vendor documentation as references. The work usually includes reading the negotiation rules for each protocol, checking the configured algorithm lists, testing for downgrade behavior and monitoring which algorithms are negotiated in production. Costs depend on the number of systems, the protocols involved and how much testing is needed, and most of that effort is internal staff time. Outside help can add value where the protocols are unfamiliar or where the testing needs independent evidence.

How DeployOpen works on this

DeployOpen approaches algorithm negotiation as a configuration and testing task inside your own infrastructure. We map which peers in your environment negotiate algorithms, review the negotiation settings each one uses, and check that downgrade protection behaves as the relevant RFCs describe before a migration changes the defaults.

How we scope

  • Written scope lists which protocols and endpoints in your environment negotiate algorithms, such as TLS, IKEv2 or other handshakes.
  • Scope records which negotiation settings are in use, including cipher suite order, supported groups and signature algorithm lists.
  • Scope states whether a hybrid or post-quantum group is in view, and which downgrade behavior must be verified.

How we build

  • We configure preferred algorithm order and group lists on the servers and clients you run, following the vendor documentation for each version.
  • We check that policy-disabled national cipher suites and legacy groups are turned off by default, as RFC 7696 recommends for server configurations.
  • We test the handshake outcomes in your environment, including what happens when a peer offers no overlapping group or key share.

How we hand over

  • Handover includes a record of each negotiation setting, its value and the component version it applies to.
  • Documentation notes where a downgrade is accepted by policy and where your team must confirm the behavior for its own versions.
  • Test results show which handshake outcomes were verified, with the test steps needed to repeat them later.

How we support

  • Ongoing support is available as a retainer, covering upgrades that change negotiation defaults in your products.
  • Continuous testing can repeat negotiation checks after each change, so a downgrade regression is caught before production.
  • Support reviews vendor release notes against your recorded settings, so you know which ones need retesting after an update.

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.