What is Diffie-Hellman key exchange and where do you meet it?
When a vendor document, standard or audit request names Diffie-Hellman key exchange, it refers to a method in which two parties each contribute a public value and both derive the same shared secret, without that secret ever being sent in the clear. NIST SP 800-56A Revision 3, published 16 April 2018, specifies this exchange over finite fields and over elliptic curves. The Revision 3 document is the reference to check when a review asks which Diffie-Hellman variants are approved for US government use. NIST has also said it will update that document, with a planning note dated 6 January 2026, so confirm you are reading the current version before you cite it.
Engineers, security leads and auditors meet the term most often in three protocols. In TLS, the key exchange is negotiated through named groups, and RFC 9846 lists x25519 and secp256r1 among them. In SSH, the methods are named in the key exchange algorithm list, and RFC 8731 registers curve25519-sha256, which runs Diffie-Hellman using X25519. In IKE, the group is selected through a transform type in IKEv2, as defined in RFC 7296, and RFC 3526 defines the MODP groups used there. When you inventory a system, record which group or method each endpoint actually negotiates, since the protocol name alone does not tell you the group.
For post-quantum planning, the practical question is whether a key exchange is paired with a post-quantum algorithm. RFC 10024 defines hybrid TLS 1.3 groups that pair elliptic curve key agreement with ML-KEM, such as X25519MLKEM768, and its list does not include a finite field Diffie-Hellman hybrid group. OpenSSH 10.0 uses the hybrid mlkem768x25519-sha256 by default, and OpenSSH 10.6 turns on the WarnWeakCrypto warning in sshd_config by default. Ask each vendor which named groups or methods its product offers, and whether it can disable the classical-only options.
Which names and identifiers refer to Diffie-Hellman?
This table lists the names, identifiers and standards that refer to Diffie-Hellman in different documents and protocols. Each protocol negotiates its own identifier for the same underlying exchange, so match the name to the document you are reading rather than assuming they are interchangeable. Confirm the exact group or method your deployment negotiates before recording it in an inventory.
| Context | Name or identifier | Where it appears | What to confirm |
|---|---|---|---|
| Full name | Diffie-Hellman key exchange | NIST SP 800-56A Revision 3, which specifies it over finite fields and elliptic curves | Whether a document means the finite field form or the elliptic curve form |
| Abbreviation | DH | Vendor documents, configuration files and audit questions | Which form DH refers to in that product |
| Elliptic curve form | ECDH | Described in RFC 6090 as the elliptic curve version of Diffie-Hellman | The curve and group the implementation negotiates |
| TLS named groups | ffdhe2048 to ffdhe8192 | RFC 7919 negotiated finite field DH groups for TLS, with sizes 2048 to 8192 bits | Which named groups the TLS server and client actually accept |
| IKE group numbers | MODP group 5, 14, 15, 16, 17 and 18 | RFC 3526 defines the IKE MODP groups, from 1536-bit (group 5) to 8192-bit (group 18) | Which group numbers the IKEv2 peers negotiate in their transform settings |
| SSH method names | diffie-hellman-group14-sha256 and diffie-hellman-group16-sha512 | RFC 8268 defines these SSH methods, using groups 14 and 16 with SHA-256 and SHA-512 | Which method names the SSH server and client offer and accept |
| Elliptic curve SSH method | curve25519-sha256 | RFC 8731 registers this SSH method, which runs Diffie-Hellman using X25519 | Whether the SSH implementation supports the method at the version in use |
Where Diffie-Hellman appears in TLS, SSH and IKE
Diffie-Hellman is not used on its own. Each protocol names its own groups and method identifiers, and the group actually used is chosen during negotiation between client and server. The cards below show where the term appears in each protocol and what to check in a vendor configuration or audit.
TLS finite field groups
RFC 7919 defines negotiated finite field DH groups for TLS, named ffdhe2048, ffdhe3072, ffdhe4096, ffdhe6144 and ffdhe8192. These names appear in TLS configuration and in vendor documents listing supported groups. Check which named groups a server offers, since the client and server agree on one during the handshake. Finite field DH and ECDH are two forms of the same exchange, so confirm whether a document means one or the other.
RFC 7919 textTLS 1.3 named groups
RFC 9846 is the TLS 1.3 specification and lists named group values such as x25519 (0x001D) and secp256r1 (0x0017). Post-quantum hybrid groups are defined separately in RFC 10024, including X25519MLKEM768, which pairs elliptic curve key agreement with ML-KEM. A hybrid group is not the same as a plain DH group, so read the group name in a vendor's supported-groups list before treating it as a DH configuration.
RFC 10024 textIKEv2 key exchange payload
In IKEv2, the initiator sends its Diffie-Hellman value in a KE payload during IKE_SA_INIT, as defined in RFC 7296. Transform Type 4 selects the DH group. RFC 8031 assigns transform IDs 31 for Curve25519 and 32 for Curve448. Check the transform types a VPN gateway accepts, because a peer that offers only older MODP groups will not negotiate the newer curve-based groups.
RFC 7296 textIKE MODP groups
RFC 3526 defines the MODP groups used by IKE, numbered 5, 14, 15, 16, 17 and 18, at sizes from 1536 bits to 8192 bits. Gateways that still offer only these groups are common in older VPN deployments. When reviewing an IKE configuration, list the group numbers the gateway accepts and confirm which of them the peers actually negotiate.
RFC 3526 textSSH Diffie-Hellman methods
RFC 8268 defines the SSH methods diffie-hellman-group14-sha256, which uses the 2048-bit group 14, and diffie-hellman-group16-sha512, which uses the 4096-bit group 16. RFC 8268 also requires received public values to fall within a defined range, correcting an earlier SSH specification. Check the KexAlgorithms setting on SSH servers and clients, since the first method both sides support is the one used.
RFC 8268 textSSH curve25519-sha256 and OpenSSH defaults
RFC 8731 registers curve25519-sha256 as an SSH key exchange method that runs Diffie-Hellman using X25519. OpenSSH 10.0 uses the hybrid mlkem768x25519-sha256 by default for key agreement. OpenSSH 10.1 added the WarnWeakCrypto option, which warns clients when a non-post-quantum exchange is negotiated, and OpenSSH 10.6 turned it on by default in sshd_config. Confirm the OpenSSH version on each host, because the default key exchange depends on it.
OpenSSH release notesWhat does Diffie-Hellman do inside a system?
In most systems, Diffie-Hellman is the step that lets two endpoints agree on a shared symmetric key over a network they do not trust. Each side sends a public value to the other, and each combines its own private value with the peer's public value to arrive at the same secret. An eavesdropper who sees both public values does not get that secret. The result is then used to encrypt the traffic that follows, which is why the term shows up in the key exchange part of TLS, IPsec (through IKEv2) and SSH. When you review a product, the question to ask is which key exchange it uses, where it runs, and which group or curve it negotiates.
Diffie-Hellman does not authenticate anyone by itself. An unauthenticated exchange can be intercepted by a party sitting in the middle, so protocols add a separate step in which each endpoint proves its identity, usually with a certificate chain or a digital signature. When you inventory a system, check both halves: the key exchange that protects confidentiality, and the signature or certificate that proves who the peer is. A post-quantum upgrade of one does not automatically cover the other, so record them as separate items.
The same exchange can run over finite field groups or over elliptic curves. Finite field Diffie-Hellman uses the group parameters negotiated through named groups, such as the ffdhe groups in RFC 7919 or the MODP groups in RFC 3526. Elliptic curve Diffie-Hellman (ECDH) runs the same pattern on curves, and RFC 6090 describes it as the elliptic curve form of the same exchange. Confirm which form your endpoints negotiate, because the group names appear in configuration and logs, and the named groups in TLS 1.3 hybrid key agreement are defined in RFC 10024, which pairs elliptic curve key agreement with ML-KEM and lists no finite field hybrid group.
Is Diffie-Hellman standardized, and who recommends it?
Diffie-Hellman key exchange is standardized in several places, and the reader's question is usually which document governs their deployment. The primary US reference is NIST SP 800-56A Revision 3, published on 16 April 2018, which specifies the exchange over finite fields and over elliptic curves and supersedes Revision 2. A planning note dated 6 January 2026 says NIST will update that document, so the reader should check the current NIST page before citing a revision number in an audit response. For protocol-level use, the relevant documents are the IETF RFCs: RFC 7919 for negotiated finite field groups in TLS, RFC 3526 for the IKE MODP groups, RFC 7296 for how IKEv2 carries the exchange, and RFC 8268 for SSH. Each RFC names specific group identifiers, so the reader should confirm which groups their product offers and enables.
On the post-quantum side, the guidance points away from finite field Diffie-Hellman as a hybrid component. RFC 10024, which defines PQ/T hybrid key agreement for TLS 1.3, pairs elliptic curve key agreement with ML-KEM (FIPS 203) in its named groups, and the list it publishes contains no finite field DH hybrid group. For a TLS inventory, this means a finite field DH configuration will not be directly replaced by a published hybrid group, and the reader should ask the vendor which hybrid groups it offers and which classical groups remain enabled as fallback. NIST IR 8547, Transition to Post-Quantum Cryptography Standards, is the document that describes NIST's plan for moving from quantum-vulnerable algorithms to post-quantum key-establishment schemes, and it is the natural reference for a transition timeline. The sources listed here do not set an agency-wide deadline for commercial systems, so the reader should confirm any date against the document and against their own regulator or contract.
Where the exchange sits in a handshake
The diagram starts with two parties, each generating a private value and sending only the matching public value to the other. Each side then combines its own private value with the peer's public value and arrives at the same shared secret, which is never sent on the wire. That secret is then used to derive symmetric keys for encrypting the session data. Authentication is shown as a separate step, because the exchange by itself does not prove who the other party is. When you read a vendor document, check that the exchange is named with its group (finite field or elliptic curve), and that authentication is handled by a separate mechanism such as signatures or certificates.
Two parties exchange public values, derive a shared secret, then encrypt traffic.
What should you do about Diffie-Hellman in a migration?
The sequence below turns Diffie-Hellman from an assumed default into a verified inventory of which groups each system negotiates today, which hybrid options exist, and what vendors plan to support. It ends with a tested session that shows what is actually in use. Each step records its output so the migration can be tracked and checked.
Inventory every place DH groups are negotiated
Start by listing every service that negotiates a Diffie-Hellman group during key exchange. In TLS, that means finite field groups named ffdhe2048 through ffdhe8192 defined in RFC 7919. In IPsec, it means the IKE MODP groups from RFC 3526, which are carried in the IKEv2 transform. In SSH, it means the group14 and group16 methods defined in RFC 8268. Include load balancers, VPN gateways, bastion hosts and any appliance that terminates these protocols, since they often negotiate on behalf of applications behind them. The output is a list of endpoints, protocols and owners. Confirm the list is complete by checking configuration files and network scans, not by memory.
Record the group and version for each endpoint
For each endpoint on the inventory, record the specific DH group it offers, the protocol version, and the software release running it. A group name alone is not enough, because the same name can behave differently across releases and vendors. Note whether the endpoint offers finite field groups, elliptic curve variants such as those in RFC 8031 and RFC 8731, or both. The output is a table with one row per endpoint showing protocol, version, release and offered groups. A row is complete when a reviewer can answer which key exchange a client would receive from it, using only that row.
Check whether hybrid groups with ML-KEM are offered
For each endpoint, check whether it offers a hybrid key exchange that pairs a classical algorithm with ML-KEM, the post-quantum key-establishment standard in FIPS 203. For TLS 1.3, RFC 10024 defines named groups such as X25519MLKEM768 and SecP256r1MLKEM768. It does not list a finite field DH hybrid group, so a system that offers only ffdhe groups has no hybrid option under that definition. For SSH, check whether the release supports mlkem768x25519-sha256 and whether the WarnWeakCrypto option is set. The output is a yes or no per endpoint, with the named hybrid group or method recorded where one exists.
Ask vendors which groups their release supports
Send each vendor on the inventory a written question asking which DH and hybrid groups their current release supports, which of those are enabled by default, and which hybrid options they plan to add and in what release. Ask for the documentation that backs each answer, and ask them to name the release and edition the answer applies to. Vendor answers are only useful when they are tied to a version you run. The output is a dated vendor response per product, filed alongside the inventory. Where a vendor has published nothing on a point, record that as an open item rather than assuming support.
Test a negotiated session to confirm groups in use
Configuration files show what an endpoint is allowed to negotiate, not what a live client actually receives. For each endpoint, open a real session from a representative client and record the group that was negotiated. Use the client's verbose or debug output, or a protocol analyzer, to read the chosen group from the handshake. Test both a modern client and an older one, since fallback behavior often decides the result. The output is a record of the group actually negotiated per endpoint and client. An endpoint is confirmed only when the negotiated group matches what the inventory says it should be.
Reconcile inventory, vendor answers and test results
Compare the three records for each endpoint: the configured groups from the inventory, the vendor's stated support, and the group observed in the negotiated test session. Where they disagree, investigate the cause, which is often a default that differs from the documentation or a fallback to an older group. Mark each endpoint as verified, configured but untested, or in disagreement. The output is a single reconciled register that a security lead or auditor can use as evidence of current state. Do not treat the register as final until every disagreement has a recorded resolution.
Which confusions cause errors in tenders and audit answers?
Diffie-Hellman appears under several names and identifiers across standards and products, and the names do not always match. Reviewers who treat these as the same thing can give wrong answers in a tender or an audit response. The cards below separate the confusions the sources support.
DH versus ECDH
Diffie-Hellman and ECDH are the same exchange over different groups. RFC 6090 describes an elliptic curve version of Diffie-Hellman, so finite field DH and ECDH are two forms of one method. A product that says it supports ECDH has not, by that fact alone, said anything about finite field groups, and the reverse holds too. When answering a questionnaire, check which group type each system negotiates rather than assuming one form covers the other.
RFC 6090Group numbers versus curve names
Finite field groups are identified by numbers, elliptic curves by names. In IKE, the MODP group numbers such as 14 and 15 identify finite field groups, while curves appear under their own transform IDs. In TLS, finite field groups use names such as ffdhe2048, and curves use names such as x25519. Asking for a group by number in one protocol and by name in another can return different answers, so confirm the identifier that each system actually uses.
RFC 3526IKE MODP numbers versus TLS ffdhe names
The same key size can carry different identifiers in IKE and TLS. RFC 3526 defines IKE MODP group 14 as a 2048-bit group, while RFC 7919 defines the TLS group ffdhe2048 as group number 256 in its registry. A reviewer who matches on bit length alone may conclude two systems share a group when they negotiate different identifiers. Check the protocol-specific name or number in the configuration, not only the key size.
RFC 7919Using Diffie-Hellman versus post-quantum key agreement
Supporting Diffie-Hellman does not mean the product has post-quantum key agreement. RFC 9794 defines a PQ/T hybrid KEM as having at least one post-quantum component alongside a traditional one, and RFC 10024 pairs elliptic curve key agreement with ML-KEM in TLS 1.3 hybrid groups, with no finite field DH hybrid listed. A claim that a product uses DH therefore describes only the classical exchange. Ask whether a hybrid group such as X25519MLKEM768 is negotiated, and which software version enables it.
RFC 10024Frequently asked questions about Diffie-Hellman key exchange
What does DH stand for, and is it the same as ECDH?
DH stands for Diffie-Hellman, the key exchange method in which two parties each contribute a public value and derive the same shared secret. ECDH, or Elliptic Curve Diffie-Hellman, is the same exchange run over elliptic curves instead of finite fields. RFC 6090 describes the elliptic curve version, so the two are two forms of one method, not separate algorithms. When a document says only "DH," check whether it means the finite field group or an elliptic curve group, because the parameter names and sizes differ. Confirm the exact group in your configuration files.
Is Diffie-Hellman key exchange standardized, and by which body?
Yes. NIST SP 800-56A Revision 3 specifies Diffie-Hellman key establishment over finite fields and over elliptic curves. It was published on 16 April 2018, supersedes Revision 2, and carries a 6 January 2026 planning note saying NIST will update it. The IETF also defines DH groups in its protocol standards, including RFC 7919 for TLS, RFC 3526 for IKE, RFC 7296 for IKEv2 and RFC 8268 for SSH. Which document governs your system depends on the protocol it runs. Confirm the revision your auditors and vendors reference.
Do products use Diffie-Hellman key exchange today?
Yes, and it appears across common protocols. The sources list DH in IKEv2 (RFC 7296), where the initiator sends its DH value in a KE payload and a transform selects the group. They also list SSH methods such as diffie-hellman-group14-sha256 and curve25519-sha256 (RFC 8268 and RFC 8731), and TLS named groups defined in RFC 7919 and RFC 9846. OpenSSH 10.0 uses a hybrid key agreement by default. Inventory the key exchange settings in your own products, because which methods are enabled depends on version and configuration.
Is Diffie-Hellman key exchange post-quantum secure?
The sources do not support calling classical Diffie-Hellman post-quantum secure. RFC 9794 classes DH over finite fields and elliptic curves as traditional asymmetric algorithms, and NIST IR 8547 describes a plan to move from quantum-vulnerable algorithms to post-quantum key-establishment schemes. The post-quantum standards are FIPS 203 (ML-KEM), published 13 August 2024. Current guidance pairs classical and post-quantum algorithms in hybrid groups, such as X25519MLKEM768 in RFC 10024. Check the standard and vendor documentation for the status of the version you run.
What changes for a post-quantum migration?
A migration usually adds a post-quantum key encapsulation mechanism beside the classical exchange, rather than removing it at once. Under RFC 9794, a PQ/T hybrid KEM combines at least one post-quantum and one traditional algorithm. Teams must find every place a DH group is negotiated, including IKEv2 transforms, SSH key exchange methods and TLS named groups, and check that each peer supports the hybrid group. Plan for interoperability testing and for systems that cannot be upgraded. Confirm the exact steps with your vendors and the relevant standards.
What should I ask a vendor about Diffie-Hellman key exchange?
Ask which DH groups and key exchange methods the product negotiates by default and which it accepts, and whether finite field groups such as ffdhe2048 or MODP group 14 can be disabled. Ask which version introduced hybrid post-quantum key agreement and whether it is on by default. Ask how the product warns administrators when a non-post-quantum key agreement is negotiated, as OpenSSH does through WarnWeakCrypto. Ask for the standards and revisions the implementation follows, and for a written statement of its migration plan with dates.
Does the choice of Diffie-Hellman group affect my systems?
Yes. RFC 7919 names finite field groups from ffdhe2048 to ffdhe8192, and RFC 3526 defines MODP groups from 1536-bit to 8192-bit. Larger groups generally cost more processing time per handshake, so the choice affects performance on constrained devices and high-volume endpoints. Smaller groups may be disallowed by your own policy or by a compliance baseline. Confirm your minimum group size with your security policy and test handshake performance on your hardware before changing the default.
How DeployOpen works on this
DeployOpen approaches Diffie-Hellman as one piece of your key exchange inventory, not as a standalone product. We scope the places where finite field and elliptic curve Diffie-Hellman are negotiated in your systems, then plan, configure and document how those services move toward post-quantum or hybrid key agreement, with a written scope agreed before work starts.
How we scope
- We identify which services negotiate finite field or elliptic curve Diffie-Hellman, such as TLS, IPsec/IKEv2 and SSH endpoints.
- We record the group values and transform IDs each system accepts, so the migration plan reflects what is actually configured.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before any configuration changes begin.
How we build
- We configure the named groups and key agreement methods your platforms support, checking each against the version you run.
- We test negotiation behavior, including fallback to classical groups, so you can see which key agreement a client actually receives.
- We check peer values against the validation rules in the relevant RFC before a change is accepted into production.
How we hand over
- You receive documentation of every changed key agreement setting, the version it applies to, and the reason for the change.
- We provide the test results showing which groups were negotiated, so your security and compliance teams can review the evidence.
- Ownership of configurations, runbooks and the open-source platforms remains with your team inside your own infrastructure.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, for example when a library or SSH release changes defaults.
- We can retest key agreement settings after upgrades, so changes in default groups do not go unnoticed.
- Before relying on any specific group or hybrid pairing, confirm compatibility for your exact versions with the vendor documentation.
Sources and further reading
- NIST SP 800-56A Revision 3 ↗
- RFC 7919: Negotiated finite field Diffie-Hellman ephemeral parameters for TLS ↗
- RFC 7296: Internet Key Exchange Protocol Version 2 (IKEv2) ↗
- RFC 8268: More Modular Exponentiation (MODP) Diffie-Hellman groups for SSH ↗
- RFC 10024: Hybrid key agreement for TLS 1.3 ↗
- NIST IR 8547: Transition to Post-Quantum Cryptography Standards ↗

