Diffie-Hellman vs ECDH: finite-field and elliptic-curve exchange

Diffie-Hellman over finite fields and ECDH over elliptic curves are two forms of the same key agreement idea. This page sets out how they differ, where each appears in TLS and NIST documents, and how to tell which applies to your systems.

On this page

Diffie-Hellman vs ECDH: which key exchange form your systems use

A vendor document, tender or audit request may name both finite-field Diffie-Hellman and ECDH in the same breath, and the question it is really asking is which one your systems are configured to use. Both are discrete-logarithm key establishment forms. Finite-field Diffie-Hellman (FFDH) performs its arithmetic with modular exponentiation over a prime group, while ECDH performs its arithmetic over elliptic-curve groups. The distinction that matters in practice is not the name of the protocol but which group parameters a system is actually configured with, since that determines what appears in the handshake and what the reviewer must verify.

The two forms are specified together in NIST SP 800-56A Rev. 3, published April 2018, which covers finite-field and elliptic-curve Diffie-Hellman along with the Menezes-Qu-Vanstone (MQV) schemes. NIST has also decided to update that publication, according to a planning note dated January 6, 2026, so reviewers should check the current revision rather than relying on the 2018 text alone. In TLS, the two forms appear as separate entries in the supported groups list: RFC 7919 registers five named finite-field groups (ffdhe2048 through ffdhe8192), while RFC 8422 defines ephemeral ECDH for TLS 1.0 through 1.2 with named curves such as secp256r1 and x25519.

Security and compliance teams meet this question most often when reviewing a TLS configuration inventory, a vendor's cryptographic bill of materials, or a tender that asks which key exchange groups a product negotiates. RFC 7919 states that ECDHE generally offers stronger security per unit of computational cost than FFDHE, and it requires clients to check that a server's finite-field public value lies in the range 1 < Y < p-1. Reviewers should confirm which group identifiers a product offers, whether finite-field groups are disabled where they are not needed, and whether the product validates peer public values as the RFC requires.

For the post-quantum migration, the same inventory question leads to the hybrid key exchange work. RFC 10024 defines post-quantum traditional hybrid key agreement for TLS 1.3, and RFC 9794 defines the terminology for such schemes. Confirm with each vendor which classical group is paired with which post-quantum algorithm, and check the product version and TLS library it runs, since support for a given group can differ between releases.

Diffie-Hellman and ECDH side by side: definitions, documents and group parameters

This table sets finite-field Diffie-Hellman against elliptic-curve Diffie-Hellman across the attributes the sources give: group form, governing NIST document, TLS registry entries and TLS 1.3 support. Read each row as a question about where a deployment's configuration lives, and check the cited document for the exact version you run. Both forms appear in TLS and in NIST SP 800-56A, so the row details matter more than the names.

AttributeFinite-field DH (FFDHE)Elliptic-curve DH (ECDH/ECDHE)
Form of the groupMultiplicative group modulo a prime p; RFC 7919 groups use a safe prime with generator g = 2Points on a named elliptic curve; the sources list secp256r1, secp384r1, secp521r1, x25519 and x448
NIST documentSP 800-56A Rev. 3 (April 2018) covers finite-field DH schemesSP 800-56A Rev. 3 (April 2018) covers elliptic-curve DH schemes; SP 800-186 (February 2023) specifies the recommended curves
TLS registry entriesRFC 7919 codepoints 256 to 260: ffdhe2048, ffdhe3072, ffdhe4096, ffdhe6144, ffdhe8192RFC 8422 named curves: secp256r1 (23), secp384r1 (24), secp521r1 (25), x25519 (29), x448 (30)
Estimated symmetric-equivalent strengthAbout 103, 125, 150, 175 and 192 bits for the five RFC 7919 groups, as RFC 7919 estimatesThe sources listed here do not give equivalent strength figures for the curves; confirm against SP 800-186
Relative security per unit of computationRFC 7919 says ECDHE generally offers stronger security per unit of computational costRFC 7919 says ECDHE generally offers stronger security per unit of computational cost
Peer validation requirementClient must check 1 < Y < p-1 on the server's value, and server must validate the client's value (RFC 7919)The sources listed here do not state this requirement for curve points; confirm in RFC 8422 and your TLS library
TLS 1.3 supportListed in the Supported Groups enumeration, for example ffdhe2048 (0x0100) in RFC 8446Listed in the Supported Groups enumeration, for example secp256r1 (0x0017) and x25519 (0x001D) in RFC 8446
Status of the RFC 8422 entryNot applicable to this rowRFC 8422 is marked obsolete by RFC 9846 and updated by RFC 8996 and RFC 10015; it covers TLS 1.0 through 1.2 only

What finite-field Diffie-Hellman and ECDH each are

Finite-field Diffie-Hellman performs key agreement with modular exponentiation over a large prime modulus. NIST SP 800-56A Rev. 3, published April 2018, specifies discrete-logarithm key-establishment schemes over finite fields, and names Menezes-Qu-Vanstone (MQV) schemes alongside them. In TLS, the common named groups are the five ffdhe groups registered in RFC 7919 at codepoints 256 to 260.

  • Named groups: ffdhe2048, ffdhe3072, ffdhe4096, ffdhe6144 and ffdhe8192, each using a safe prime with generator g = 2.
  • Estimated strength: RFC 7919 gives estimated symmetric-equivalent strengths of about 103, 125, 150, 175 and 192 bits for the five groups.
  • Relative cost: RFC 7919 says ECDHE generally offers stronger security per unit of computational cost than FFDHE.
  • Validation duties: a client must check that the server's public value lies in the range 1 < Y < p-1, and a server must validate the client's public value.
  • Where you meet it: TLS 1.3 lists ffdhe2048 (0x0100) in its Supported Groups enumeration, and SP 800-56A is cited in federal and regulated configuration baselines.

Before relying on a group, confirm the exact group names and parameter sizes your TLS library and server accept, since these vary by product and version.

How the two forms differ in configuration and validation

Finite-field and elliptic-curve Diffie-Hellman share a key exchange idea but are configured and validated differently. The differences below affect what a server or client must set, check and register when it supports one form, the other, or both.

Group parameters differ by form

Finite-field DH uses a prime modulus with a fixed generator. RFC 7919 registers five named groups (ffdhe2048, ffdhe3072, ffdhe4096, ffdhe6144 and ffdhe8192), each a safe prime with generator g = 2. Elliptic-curve DH instead uses a named curve, such as secp256r1 or x25519, selected from a separate list. Configuration on each side must name the group family it uses, because a finite-field group and a curve are not interchangeable settings. Confirm the exact group list in your TLS library's configuration before assuming a parameter set is in use.

RFC 7919 text

Strength per unit of computation

RFC 7919 states that ECDHE generally offers stronger security per unit of computational cost than FFDHE. This is a statement about the comparison the RFC makes, not a ranking of every deployed group. Teams weighing which form to offer on a constrained server or client can use it as a starting reference, then check the group sizes they actually configure against their own performance and security requirements.

RFC 7919 text

Client range check for FFDHE

For finite-field DH, RFC 7919 requires the client to check that the server's public value Y satisfies 1 < Y < p-1 before using it. The server carries the matching duty: it must validate the client's public value. These checks are part of the protocol requirements, so an implementation that skips them does not conform to RFC 7919. Verify that the TLS library you deploy performs both checks when it negotiates a finite-field group, since elliptic-curve exchanges use a different validation path.

RFC 7919 text

TLS version scope of each form

RFC 8422 defines ephemeral ECDH for TLS 1.0 through 1.2, with named curves including secp256r1, secp384r1, secp521r1, x25519 and x448, and states that TLS 1.3 is out of its scope. TLS 1.3 instead lists both finite-field and elliptic-curve groups in its Supported Groups enumeration, including secp256r1, x25519 and ffdhe2048. A deployment that negotiates TLS 1.2 and TLS 1.3 needs both sets of group configuration, and should confirm which version each group applies to in its library's documentation.

RFC 8446 text

Separate entries in the Supported Groups registry

The TLS Supported Groups registry treats finite-field and elliptic-curve groups as separate entries, each with its own codepoint. The FFDHE groups sit at codepoints 256 to 260 that RFC 7919 registers, while curves such as secp256r1 and x25519 have their own values. Because the registry distinguishes them, a configuration or inventory that lists only a family name, such as "DH," can be ambiguous. Record the exact group names and codepoints a system offers so that reviewers can tell which form is in use.

RFC 8422 text

Where finite-field DH and ECDH appear in protocols and vendor documents

In TLS, the two forms show up as different entries in the Supported Groups list rather than as separate protocols. The TLS 1.3 enumeration in RFC 8446 includes the elliptic-curve group secp256r1 (0x0017) and x25519 (0x001D), alongside the finite-field group ffdhe2048 (0x0100). A TLS stack or appliance advertises and accepts these values during the handshake, so the practical check is which codepoints appear in its configuration and handshake traces. For TLS 1.0 through 1.2, RFC 8422 defines ephemeral ECDH (ECDHE) with named curves such as secp256r1 (value 23), secp384r1 (value 24), secp521r1 (value 25), x25519 (value 29) and x448 (value 30). RFC 8422 states that TLS 1.3 is outside its scope, and it is marked obsolete by RFC 9846 and updated by RFC 8996 and RFC 10015, so readers should check which RFC governs the version they run.

The finite-field side of TLS is defined by the RFC 7919 registry, which places the five named groups ffdhe2048, ffdhe3072, ffdhe4096, ffdhe6144 and ffdhe8192 at codepoints 256 to 260. RFC 7919 states that each group uses a safe prime with generator g = 2, and it requires a client to check that the server's public value lies in the range 1 < Y < p-1, and requires a server to validate the client's public value. Those checks belong in the review of any stack that enables finite-field groups. The same RFC says ECDHE generally offers stronger security per unit of computational cost than FFDHE, which is relevant when a configuration offers both.

The sources listed on this page do not name specific products, library versions or vendor appliances that support these groups, so no product-level support claim is made here. Confirm group support in your own TLS stack, such as the library version your servers and clients use, along with the vendor documentation for any load balancer, gateway or appliance in the path. Check the supported group list and the negotiated group in handshake captures, because a group can be present in a build yet disabled in configuration. The NIST document that specifies the recommended elliptic curves for the elliptic-curve form, SP 800-186, is a useful reference when reviewing which curves a configuration allows.

How to work out which form applies to your systems

This sequence establishes which Diffie-Hellman form, finite-field (ffdhe) or elliptic-curve (ECDHE), each endpoint actually negotiates, so that a requirement naming one form can be checked against what is running. The output is a recorded list of group parameters per endpoint and protocol version that can be reviewed by security and procurement teams.

  1. Identify the requirement that names the form

    Start with the contract, policy or standard that asks for a specific form of key exchange, such as finite-field Diffie-Hellman or elliptic-curve Diffie-Hellman. Record the exact wording, the document and the section that names the form. NIST SP 800-56A Rev. 3, published April 2018, specifies both forms and also names MQV schemes, so a requirement may refer to that document or to a narrower profile of it. Note whether the requirement applies to the whole estate or to specific systems. The output is a written reference that names the form and its source, which the later steps are checked against.

  2. Search the inventory for group names

    Search the cryptographic inventory and the TLS configuration files for the names of the groups that belong to each form. Finite-field groups appear as ffdhe2048, ffdhe3072, ffdhe4096, ffdhe6144 and ffdhe8192, as registered in RFC 7919. Elliptic-curve groups appear as named curves such as secp256r1, secp384r1, x25519 and x448, as listed in RFC 8422 for TLS 1.2 and earlier. Record each system where a match is found and the configuration file or key in which it appears. The output is a list of candidate endpoints with the group names found, which will need confirmation in the steps that follow.

  3. Confirm the group list for each protocol version

    Check the vendor documentation for each protocol and product version in use, and confirm which groups it supports and enables by default. RFC 8422 applies to TLS 1.0 through 1.2 and says TLS 1.3 is outside its scope, while RFC 8446 lists both kinds of group in its Supported Groups enumeration. A group that appears in a configuration file does not always mean it is offered in every version, so record the vendor version and the protocol version alongside each group. The output is a per-product table of supported and enabled groups, with the source document cited for each entry.

  4. Determine whether TLS 1.3 or 1.2 is in use

    For each endpoint, establish which TLS version is negotiated in practice, not only which versions are configured. Where both versions are enabled, the server and client choose the highest version they both support, so record the versions that each endpoint offers and the versions that clients are observed to use. Note that RFC 8422 is marked obsolete by RFC 9846, so references to the 1.2 group rules should be checked against the current document set. The output is a version record for each endpoint that determines which group rules apply to it.

  5. Record the groups each endpoint negotiates

    Test each endpoint to see which group it actually negotiates with a client, using a TLS handshake inspection tool or the server's own logs. Configuration can list groups that are never selected, and the group negotiated is the one that matters for the requirement. Check finite-field groups for the RFC 7919 requirements that the public value lies in the range 1 < Y < p-1 and that the server validates the client's value. Record the negotiated group, protocol version and date of the test. The output is an evidence record per endpoint that shows the form in use, which can be compared directly against the requirement from the first step.

  6. Compare results against the requirement

    Compare each endpoint's negotiated group and protocol version with the requirement identified in the first step. Mark each endpoint as matching, not matching or unable to confirm, and record the reason for any mismatch or gap. Where an endpoint supports both forms, record which one is negotiated under typical client behavior and note any client that is able to force a different form. The output is a signed-off comparison that shows which systems meet the requirement and which need remediation or further review by the owner.

Common mix-ups between DH, ECDH and ECDHE names

The terms Diffie-Hellman, ECDH and ECDHE are used loosely in vendor documents, tenders and configuration files, and the same words can point to different groups, protocol versions and standards. The cards below separate the names that get confused and say what to confirm before treating two entries as the same.

Treating every exchange as Diffie-Hellman

Diffie-Hellman is a family of key agreement schemes, not one algorithm. NIST SP 800-56A Rev. 3 specifies finite-field Diffie-Hellman and elliptic-curve Diffie-Hellman as separate schemes, and also names MQV schemes. A product that says it supports Diffie-Hellman may mean finite-field groups, elliptic-curve groups or both, so ask which form is meant and which named groups are enabled. Check the configuration itself, not the marketing label.

SP 800-56A text

Treating ECDHE and ECDH as the same

The E in ECDHE stands for ephemeral, meaning a fresh key pair is generated for each session. ECDH without the E describes the elliptic-curve exchange in general, and a static ECDH key may be reused across sessions. RFC 8422 defines ephemeral ECDH for TLS 1.0 through 1.2. When a tender or audit asks about ECDHE, confirm that ephemeral keys are used, since the two names describe different key lifetimes.

RFC 8422 text

Reading RFC 8422 as current TLS 1.3 scope

RFC 8422 covers ephemeral ECDH for TLS 1.0 through 1.2 and states that TLS 1.3 is out of its scope. The same RFC is now marked obsolete by RFC 9846 and updated by RFC 8996 and RFC 10015. Citing RFC 8422 for TLS 1.3 behavior is therefore a mismatch. For TLS 1.3, check RFC 8446, which lists both finite-field and elliptic-curve groups in its Supported Groups enumeration.

RFC 8446 text

Assuming ffdhe groups and named curves are interchangeable

RFC 7919 registers finite-field groups named ffdhe2048 through ffdhe8192, each using a safe prime with generator 2. Named elliptic curves such as secp256r1 or x25519 are defined separately, and NIST SP 800-186 covers the recommended curves for the elliptic-curve form. In a tender, a requirement for a named ffdhe group and a requirement for a named curve are different checks, and a product may support one without the other. Ask for the exact group list.

RFC 7919 text

Ranking post-quantum schemes by RFC 7919 strength

RFC 7919 gives estimated symmetric-equivalent strengths for its five ffdhe groups, and it says ECDHE generally offers more security per unit of computation than FFDHE. These are statements about classical discrete-logarithm groups. They do not rank ML-KEM, ML-DSA or SLH-DSA, which are the post-quantum schemes in FIPS 203, FIPS 204 and FIPS 205. Keep the classical comparison and the post-quantum comparison in separate sections of any assessment.

FIPS 203 text

Is ECDH the same as Diffie-Hellman, and which one do I need?

Is ECDH the same thing as Diffie-Hellman?

No, but they are closely related. NIST SP 800-56A Rev. 3, published April 2018, specifies discrete-logarithm key-establishment schemes in two forms: finite-field Diffie-Hellman and elliptic-curve Diffie-Hellman. Both follow the same basic exchange pattern, but they run on different mathematical groups. The finite-field form uses integer groups defined by a prime, while the elliptic-curve form uses points on a curve. The same standard also names Menezes-Qu-Vanstone (MQV) schemes. When someone says "DH" in a vendor document, check whether they mean the finite-field or elliptic-curve form, because the parameters they configure differ.

Which one is newer, finite-field DH or ECDH?

Finite-field Diffie-Hellman is the older form, and the elliptic-curve form is the one most protocols now use by default. RFC 7919 registers five named finite-field groups for TLS (ffdhe2048 through ffdhe8192) and states that ECDHE generally offers stronger security per unit of computational cost. RFC 8422 defines ephemeral ECDH for TLS 1.0 through 1.2 with named curves, and TLS 1.3 lists both kinds of group in its Supported Groups enumeration. RFC 8422 is now marked obsolete by RFC 9846, so check the current RFC before citing it. The sources listed here do not give a single date when one form replaced the other in your environment.

Does a rule or customer require ECDH or finite-field DH?

The sources on this page do not say that any rule, mandate or customer requires one form over the other. Ask the customer or regulator which named groups or curves they expect, such as the RFC 7919 ffdhe groups or the curves listed in RFC 8422, and whether they accept both forms. Also ask which NIST document they reference. NIST SP 800-186, published February 2023, specifies the recommended elliptic curves for the elliptic-curve form, while finite-field DH uses group parameters like the RFC 7919 groups. Get the requirement in writing before you decide.

Do I need both finite-field DH and ECDH?

The sources on this page do not give a general answer. Many TLS deployments negotiate whichever form both sides support, and TLS 1.3 lists both kinds of group. Keeping both can add configuration work and widen the set of groups you must test and monitor. Whether you can drop one depends on what your clients, peers and customers support. Inventory which groups your endpoints actually negotiate, then decide. The RFC 7919 requirement that a client check the server's public value lies in the range 1 < Y < p-1 applies to the finite-field form and adds validation work to plan for.

How do ECDH and finite-field DH relate to quantum attacks?

Both forms rely on discrete-logarithm problems, so both are in the category of classical public-key algorithms that post-quantum guidance addresses. NIST IR 8547, Transition to Post-Quantum Cryptography Standards, has a final version dated October 27, 2026, and identifies quantum-vulnerable standards that products need to move away from. The quantum-resistant standards NIST published on August 13, 2024 are FIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA). RFC 9794 defines terminology for hybrid schemes that combine a post-quantum and a traditional algorithm, and RFC 10024 defines such a hybrid key agreement for TLS 1.3. Confirm with your own inventory which key exchange forms each system uses.

What should I ask a vendor about their DH and ECDH support?

Ask which form they use, and for each one, which named group or curve. Ask whether the finite-field groups are the RFC 7919 ffdhe groups, and whether they use the RFC 8422 named curves. Ask which RFC or NIST document their implementation follows and which version they run, since RFC 8422 is marked obsolete. Ask how they validate the peer's public value and whether they support TLS 1.3 Supported Groups. Ask whether a hybrid key agreement from RFC 10024 is planned or available. Request the answers in writing, with the product version each answer covers.

Does the choice of form change cost or effort?

The sources on this page do not give prices or effort figures for either form. In practice, the cost depends on how many systems negotiate each form, how many named groups you must configure and test, and whether your vendors support the parameters you need. The one-time work is the inventory, configuration and testing. The recurring work is monitoring and keeping configurations current as RFCs and NIST documents change. Ask any vendor or implementation partner for a quote that lists which groups and curves are in scope.

How DeployOpen works on this

DeployOpen approaches the Diffie-Hellman and ECDH comparison as a configuration and migration task inside the client's own infrastructure. Work starts from a written scope that names which key exchange forms, groups and protocol versions are in use, and ends with documented settings the client's teams can review.

How we scope

  • Engagements are fixed-scope, with the systems, protocol versions and key exchange groups agreed in writing before work starts.
  • Scoping records which finite-field DH groups and which elliptic-curve groups each TLS endpoint negotiates today.
  • Scoping identifies which components terminate the handshake, so the right layer is changed and tested.

How we build

  • Configuration changes cover allowed group lists, including the RFC 7919 ffdhe groups and the RFC 8422 named curves where they apply.
  • Validation checks confirm that peers enforce the public value range and reject weak or unexpected parameters.
  • Testing runs against client environments to confirm that handshakes complete with the groups and versions the scope names.

How we hand over

  • Handover includes documented settings for each endpoint, showing which exchange forms and groups are enabled and why.
  • Deliverables include test results and a record of changes so the client's security and compliance teams can review them.
  • Documentation notes which points the sources leave open, so the client confirms them against the current specifications.

How we support

  • Ongoing support is available as a retainer for upgrades, repeat testing and changes when standards are updated.
  • Support covers re-checking group lists when the client upgrades libraries, load balancers or TLS stacks.
  • Continuous testing can confirm that negotiated groups still match the documented configuration over time.

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.