What is X25519 (elliptic curve key exchange)?

X25519 is the Diffie-Hellman key exchange function on Curve25519, defined in RFC 7748. It is widely deployed for establishing shared keys and is paired with ML-KEM-768 in hybrid post-quantum groups.

On this page

What is X25519 and why does it show up in my migration inventory?

If you found X25519 in a vendor document, a TLS configuration or a tender response, it is most likely naming the function that two parties use to agree on a shared secret key. X25519 is the Diffie-Hellman function on Curve25519, defined in RFC 7748, which was published in January 2016 as an Informational document from the IRTF rather than an Internet Standards Track specification. It is a key exchange function, not a signature scheme, so it establishes keys for encrypting a session but does not authenticate anyone or sign anything. Keep that distinction in your inventory, because the signature side of the same curve family (Ed25519, defined in RFC 8032) is a separate item with separate migration questions.

You will meet X25519 in several places: TLS 1.3 named groups (where the value x25519 is listed as 0x001D in RFC 9846), SSH key exchange (where the method curve25519-sha256 is registered in RFC 8731), IKEv2 VPN negotiation (where Curve25519 is transform ID 31 under RFC 8031), and certificate profiles that carry X25519 keys (RFC 8410 requires keyAgreement in the key usage). In each case, check whether the component is using X25519 alone or as one half of a hybrid group, since the two have different post-quantum exposure. Hybrid groups such as X25519MLKEM768, defined in RFC 10024, pair X25519 with a post-quantum KEM, and RFC 9794 uses the term PQ/T hybrid for that pattern. Record which configuration each system actually negotiates, not only what its datasheet lists.

For the inventory itself, the useful question is whether a system's key agreement is quantum-vulnerable alone or combined with a post-quantum component, and the sources here give you names to match against. NIST's transition guidance in NIST IR 8547, which is final as of 27 October 2026, describes the move toward post-quantum key-establishment schemes, and NIST's standards for those schemes are FIPS 203 (ML-KEM). Ask vendors whether their X25519 use is alone, paired in a hybrid group, or planned for replacement, and ask for the version and configuration that supports each answer. Confirm the defaults for your own OpenSSH, TLS library and VPN versions in their release notes rather than assuming them.

Which names and identifiers refer to X25519?

This table lists the names and identifiers that refer to X25519 in each specification, with the document that defines it. The same Diffie-Hellman function appears under different identifiers in different protocols, so an inventory or specification review should match each identifier to the protocol it appears in. Use the reference column to check each value against the document it comes from.

ContextIdentifier or nameDefined inWhat to check
Full nameDiffie-Hellman function on Curve25519RFC 7748 (January 2016)RFC 7748 is an Informational document from the IRTF, not an Internet Standards Track specification
TLS 1.3 named groupx25519, value 0x001DRFC 9846 (July 2026)Confirm the group is offered and selected in the handshake configuration of each TLS endpoint
IKEv2 transformDiffie-Hellman group transform ID 31 (Curve25519)RFC 8031 (December 2016)Check that the VPN gateway and client both list transform ID 31 in their proposals
ASN.1 object identifierid-X25519, 1.3.101.110RFC 8410 (August 2018)The parameters field must be absent, and certificates need keyAgreement in key usage
SSH key exchange methodcurve25519-sha256RFC 8731 (February 2020)RFC 8731 states this is identical to the earlier curve25519-sha256@libssh.org name
HPKE KEM identifierDHKEM(X25519, HKDF-SHA256), KEM ID 0x0020RFC 9180Keys and encapsulated values are 32 bytes each, so check the KEM ID in the HPKE suite
Hybrid TLS groupX25519MLKEM768 (4588, 0x11EC)RFC 10024 (August 2026)X25519 supplies 32 bytes of each share alongside the ML-KEM-768 part, which is a PQ/T hybrid rather than X25519 alone

Where do TLS, SSH, IKE and certificates use X25519?

X25519 appears in several protocols and certificate formats under different names and identifiers. The cards below list where a reviewer is likely to see it, and what each place means for a migration inventory. Each entry names what the sources say and points to what still needs confirming in your own environment.

TLS 1.3 named group

In TLS 1.3, X25519 is registered as the named group x25519 with the value 0x001D in RFC 9846. Reviewers will see this name in handshake configuration and packet captures when a client and server agree on a key exchange group. Check whether the group is offered or selected by your TLS stack, since a value appearing in a specification does not mean a given product enables it. Note that hybrid groups such as X25519MLKEM768 are defined separately in RFC 10024.

RFC 9846

SSH key exchange method

RFC 8731 registers the SSH key exchange method curve25519-sha256, which uses X25519 with SHA-256. The same RFC states that it is identical to the earlier curve25519-sha256@libssh.org name. Reviewers will find this string in SSH server and client configuration, so the list of enabled key exchange algorithms is the thing to check. OpenSSH release notes describe default behavior and warnings for non-post-quantum key agreement, which are separate from this method name.

OpenSSH release notes

IKEv2 Diffie-Hellman group

RFC 8031 assigns IKEv2 Diffie-Hellman group transform ID 31 to Curve25519. A reviewer will see this number in IPsec VPN and tunnel configuration when a peer proposes or accepts a key exchange group. The number is only meaningful when both ends negotiate it, so check the proposal list on each gateway rather than assuming support from the RFC alone.

HPKE key encapsulation

RFC 9180 defines DHKEM(X25519, HKDF-SHA256) with the KEM identifier 0x0020, using 32-byte public, encapsulated and private keys. Reviewers meet this combination in libraries and protocols that use Hybrid Public Key Encryption. The name lists X25519 as the underlying key agreement, so it should be treated as a classical component when you inventory encryption that relies on HPKE.

RFC 9180

X.509 certificate key usage

RFC 8410 gives X25519 keys in X.509 certificates the object identifier 1.3.101.110, requires the parameters field to be absent, and requires keyAgreement in the key usage extension. Reviewers will see this in certificate profiles and PKI inventories when a certificate carries an X25519 key intended for key agreement rather than signing. Confirm which certificates in your environment use this key type, since certificates are issued by your CA and not by the protocols above.

RFC 8410

Hybrid groups alongside X25519

RFC 10024 defines the TLS named group X25519MLKEM768, which carries 32 bytes of X25519 next to an ML-KEM-768 share, and marks it Recommended. Reviewers reading post-quantum migration plans will see this group name next to plain x25519 and must not treat the two as the same. Whether a given TLS stack or server offers the hybrid group is a question for its own documentation and your own testing.

Client share size
1216 bytes
RFC 10024

What role does X25519 play in a connection or system?

X25519 is the function a system calls when two parties need to agree on a shared secret over a channel that anyone can observe. Each side generates a private value and derives a public value from it, exchanges only the public values, and computes the same shared secret from its own private value and the other side's public value. An eavesdropper sees both public values but not the secret. In practice X25519 does not encrypt the traffic itself. It produces key material, and the protocol then feeds that material into a key derivation function (KDF), which turns the shared secret, together with both public keys, into the symmetric keys used for encryption and integrity. When you review a protocol or product, the question to ask is where the key agreement happens, which KDF follows it, and whether the key material ever reaches application code.

Within a connection, X25519 typically appears as a named group or method rather than as a standalone feature. For example, the TLS 1.3 named group x25519 (0x001D) is negotiated during the handshake, SSH uses the method curve25519-sha256, and IKEv2 uses Diffie-Hellman group transform ID 31. Each of these carries the same underlying function, but the surrounding protocol determines the KDF, the hash and how the keys are used. Confirm which group or method your endpoints actually offer and select, since a server can be configured to accept X25519 while a client still negotiates a different group. The sources listed on this page do not say how a given product orders its preferences, so check that in its configuration or documentation.

RFC 7748 notes that an implementation MAY check whether the computed shared secret is all zeros and abort if it is. An all-zero result can arise when a peer supplies a low-order or otherwise degenerate public value, so the check is a defensive measure against a malformed or hostile input. Whether a particular library performs this check, and whether it treats the abort as a fatal handshake error, is a question for the vendor or for the library's source. When assessing an implementation, ask whether the check is enabled by default, and whether the protocol above X25519 handles the failure without falling back to weaker behavior.

Is X25519 standardized, and which bodies require or recommend it?

X25519 is defined in RFC 7748, but that document is an Informational publication from the IRTF, not an Internet Standards Track specification. Its status matters when a vendor answer or tender says X25519 is "standard": the accurate statement is that the function is specified and widely deployed, while the protocols that use it carry their own status. In practice, the normative requirement usually comes from the protocol document. RFC 9846, the TLS 1.3 specification of July 2026 (Proposed Standard), lists the named group x25519 with value 0x001D. RFC 8731 (February 2020, Proposed Standard) registers the SSH method curve25519-sha256, and RFC 8031 assigns IKEv2 transform ID 31 to Curve25519. Confirm which of these documents your products implement before citing one as the basis for a claim.

For post-quantum planning, the relevant recommendation sits in RFC 10024 (August 2026, Standards Track), which defines the hybrid named group X25519MLKEM768 and marks it Recommended Y. The sibling hybrids SecP256r1MLKEM768 and SecP384r1MLKEM1024 are marked Recommended N in the same document. This is the reference point a reviewer is most likely to be asked about when checking TLS key agreement. The post-quantum building blocks come from NIST: FIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA), each published on 13 August 2024, and NIST IR 8547, final as of 27 October 2026, which describes NIST's transition plan. None of these is binding on commercial organizations. Treat them as reference points, and check any contractual or federal obligation with the customer or the agency concerned.

When you read a vendor document, check three things: whether it names the protocol document it implements, whether it states a version (for example, OpenSSH 10.0 uses the hybrid mlkem768x25519-sha256 by default, and OpenSSH 10.6 turns WarnWeakCrypto on in sshd_config), and whether it distinguishes key exchange from signatures. X25519 is a key exchange function, while Ed25519 is a signature scheme that uses a related curve, so an answer about one does not establish the other. Ask the vendor for the exact version and the RFC or standard each claim rests on, and confirm compatibility for the versions you run.

Where X25519 sits in a hybrid TLS key exchange

The client sends a key share for the X25519MLKEM768 group, which carries an X25519 share alongside an ML-KEM-768 share. The server answers with its own pair of shares, and each side runs both components. The X25519 output and the ML-KEM-768 output are combined into one shared secret, so the handshake depends on both parts. RFC 10024 defines this hybrid group for TLS 1.3. When you review a deployment, check that the client and server both offer and select X25519MLKEM768, and note that X25519 provides the classical half of the exchange.

Client and server exchange one hybrid share, and each side combines the X25519 and ML-KEM-768 outputs.

What should I do with X25519 in a post-quantum migration?

The sequence below finds where X25519 is used alone, separates those uses from hybrid groups such as X25519MLKEM768, and confirms what is actually negotiated in each protocol. The result is an evidence-backed list of endpoints and vendors to move to hybrid key agreement.

  1. Inventory where X25519 appears

    Search TLS, SSH, IKE and certificate inventories for X25519 and its identifiers. In TLS 1.3 the named group is x25519 (0x001D). In SSH the method is curve25519-sha256. In IKEv2 the Diffie-Hellman transform ID is 31. In certificates, the key type is id-X25519 (OID 1.3.101.110). Record the system, component, version and owner for each hit. The step is done when every inventoried endpoint has a row that names the protocol and the identifier that appears in its configuration or handshake.

  2. Classify each configuration as alone or hybrid

    For each row from the inventory, record whether X25519 is offered on its own or inside a hybrid group. The TLS hybrid group X25519MLKEM768 (0x11EC) combines X25519 with ML-KEM-768 and is marked Recommended in RFC 10024. A configuration that lists x25519 without a post-quantum partner is classical only. Note the configuration file, the setting, and the group list it produces. The step is done when every row is marked classical only, hybrid, or unknown, with the evidence beside it.

  3. Check OpenSSH versions against release notes

    Compare each OpenSSH version in use with the OpenSSH release notes. OpenSSH 10.0, released 2025-04-09, uses the hybrid mlkem768x25519-sha256 by default for key agreement. OpenSSH 10.1, released 2025-10-06, adds a client warning controlled by WarnWeakCrypto when a non-post-quantum key agreement is negotiated. OpenSSH 10.6, released 2026-10-06, adds WarnWeakCrypto to sshd_config and turns it on by default. Record the version of each client and server, and mark those that still negotiate curve25519-sha256 alone. The step is done when every SSH endpoint has a version and a negotiation status, and any version below 10.0 is listed for follow-up.

  4. Ask vendors which groups they offer

    For each product that terminates TLS, SSH, IPsec or certificate issuance, ask the vendor which key exchange groups it offers and whether a hybrid group such as X25519MLKEM768 is enabled by default or by configuration. Ask for the version and the setting that controls it, and ask whether the answer is documented. Do not assume support from a product name. The step is done when each vendor's answer is written down with the version it applies to, and any vendor that cannot answer has its gap recorded.

  5. Confirm negotiated groups in test handshakes

    Run a test handshake against each endpoint from a client you control, and record the group that is actually negotiated. For TLS, capture the named group in the server hello. For SSH, capture the key exchange algorithm in the connection log. A configuration that offers a hybrid group is not proof that it is chosen, because the client and server both have to agree. The step is done when each endpoint has a recorded negotiated group, and any endpoint that falls back to X25519 alone is flagged for configuration change and retested.

Which X25519 confusions cause mistakes in tenders and audits?

X25519 appears in many documents under names that look similar but refer to different functions, versions and protocol identifiers. The four confusions below are the ones most likely to produce wrong answers in a tender response, a vendor questionnaire or an audit finding. Each one is worth checking against the exact specification and product version before you record a conclusion.

X25519 versus Ed25519

X25519 is a key exchange function and Ed25519 is a signature scheme. Both are built on curves from the same family, and RFC 8032 notes that Ed25519 uses a curve equivalent to Curve25519 under a change of coordinates, so the names are easy to blur. In a migration inventory, the two must be recorded separately because they protect different things: X25519 establishes a shared secret for encrypting a session, while Ed25519 authenticates a signer. When a vendor says a product uses 25519 curves, ask which function it uses for each purpose.

RFC 8032 text

X25519 versus X25519MLKEM768

X25519MLKEM768 is a hybrid group that includes X25519 alongside ML-KEM-768. In RFC 10024 the hybrid group carries 32 bytes of X25519 in each key share next to the ML-KEM-768 part, giving a 1216-byte client share and a 1120-byte server share. A product that reports X25519MLKEM768 is therefore not simply using X25519, and a product that reports only x25519 has no post-quantum component in that exchange. Check the named group in the negotiated handshake, not only the configuration page.

RFC 10024 text

SSH curve25519-sha256 names

RFC 8731 registers curve25519-sha256 and states it is identical to the earlier curve25519-sha256@libssh.org. Both names refer to the same X25519 method with SHA-256, so an audit finding that lists one name as missing while the other is present may be a naming artifact rather than a gap. Still, configuration files and logs may use either string, so record both when you build an SSH inventory. Confirm which name each server version actually negotiates, because the presence of one string in a config file does not prove the handshake used it.

RFC 8731 text

Product claims need version checks

A statement that a product uses X25519 must be confirmed for the specific version and component. Support for X25519 depends on the TLS library, the SSH implementation, the IKEv2 stack or the certificate tooling involved, and these can differ across releases. OpenSSH shows how this changes over time: version 10.0 uses the hybrid mlkem768x25519-sha256 by default, while version 10.1 added a WarnWeakCrypto client warning for non-post-quantum key agreement. Ask the vendor for the version, the component and a captured handshake or configuration output that supports the claim.

OpenSSH release notes

What do people search about X25519?

What does X25519 stand for?

X25519 is a name for the Diffie-Hellman function on Curve25519, defined in RFC 7748. The "25519" refers to Curve25519 and the "X" marks that the function works on the u-coordinate of the curve, not the full point. The function takes a scalar and a u-coordinate and outputs a u-coordinate, using 32-byte strings, with base point u equal to 9. The field prime is 2^255 minus 19, which RFC 7748 describes as targeting roughly the 128-bit security level. RFC 7748 credits Daniel J. Bernstein with developing the function. Read the RFC itself to confirm the exact encoding rules for your implementation.

Is X25519 the same as ECDH?

X25519 is one specific elliptic curve Diffie-Hellman function. ECDH is the general family of key agreement using elliptic curves, and X25519 is one member of that family, built on Curve25519. Because X25519 is a function on a particular curve with fixed encoding, a system that says it uses ECDH may use a different curve, such as the NIST curves. Check the curve and encoding named in a specification or vendor document rather than assuming the two terms are interchangeable.

Is X25519 standardized, and by whom?

RFC 7748, published in January 2016, defines X25519, but it is an Informational document from the IRTF and not an Internet Standards Track specification. X25519 is nonetheless used in several protocols that carry their own standards status. RFC 8731 registers it for SSH, RFC 8031 assigns it an IKEv2 group identifier, and RFC 9846, the TLS 1.3 specification, lists the named group x25519 as 0x001D. Confirm which document your product's protocol requires when a tender asks for a standard.

Is X25519 post-quantum?

No. X25519 is a classical elliptic curve key exchange and is not post-quantum on its own. The post-quantum protection in current deployments comes from combining it with a post-quantum key encapsulation mechanism. RFC 10024 defines the hybrid group X25519MLKEM768, where X25519 supplies 32 bytes of each key share next to the ML-KEM-768 part. The NIST post-quantum standards are FIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA), each published on 13 August 2024. Treat X25519 as a classical component in your inventory and check whether a hybrid group is negotiated.

Does X25519 change what I need to inventory?

It can. An inventory should record where X25519 is negotiated, not just that an elliptic curve is in use. Look for the TLS 1.3 named group x25519 (0x001D), SSH key exchange using curve25519-sha256, IKEv2 group identifier 31, and X25519 keys in certificates, which RFC 8410 identifies with object identifier 1.3.101.110. Note whether each system offers a hybrid group such as X25519MLKEM768, and whether it is preferred or only available. Record the version of each component, since default behavior differs across releases.

What should I ask a vendor about X25519?

Ask which key exchange groups the product offers and which it negotiates by default, including whether a hybrid group such as X25519MLKEM768 is available. Ask for the version and configuration that the answer applies to, because defaults change between releases. For SSH products, ask whether a warning is raised when a non-post-quantum key agreement is negotiated. Ask whether X25519 is used only for key exchange or also appears in certificates, since key exchange and signatures are separate functions. Request written answers tied to a named version so you can check them against your own environment.

Is X25519 the same as Ed25519?

No. Ed25519 is a signature scheme and X25519 is a key exchange function. RFC 8032 notes that Ed25519 uses a curve equivalent to Curve25519 under a change of coordinates, but the two perform different jobs. A system may use Ed25519 for signing certificates or software while using X25519 for key agreement during a connection. Keep them separate in an inventory, since migrating one does not automatically migrate the other.

Do I need to run X25519 myself, or can my team do it?

Whether your team can manage it depends on how the function is exposed in your stack. Many teams reach X25519 only through a TLS library, SSH server or VPN product, so the work is usually configuration and version management. Where you control the code path, you need to follow RFC 7748, including its advice that an implementation may check for an all-zero shared secret and abort. Scope and cost depend on your environment, and DeployOpen scopes any engagement in writing before work starts.

How DeployOpen works on this

DeployOpen approaches X25519 as one component in a wider inventory of key exchange, not as a standalone change. We scope the migration against the protocols where X25519 is negotiated, build and test the configuration in your environment, and hand over the documentation your security and compliance teams need to review it.

How we scope

  • We identify every protocol and service in your estate where X25519 is offered or negotiated, including TLS, SSH, IKEv2 and HPKE uses.
  • We record which systems would negotiate X25519 alone and which could move to a hybrid group such as X25519MLKEM768, where your software supports it.
  • Engagements are fixed-scope, so the written scope states which systems, versions and components are covered before any work starts.

How we build

  • We configure the named groups and key exchange methods on your servers, clients and gateways, based on what each product version supports.
  • We test negotiation in your environment to confirm which key exchange actually gets selected, rather than assuming the configured default holds.
  • Where a component cannot offer a post-quantum or hybrid option, we document the gap and the compensating controls for it.

How we hand over

  • We deliver a written inventory of X25519 usage, with protocol, version, configuration and the owning team for each system.
  • We provide configuration records and test results that your auditors or internal reviewers can check against your own requirements.
  • We document the rollback steps and the settings that changed, so your operations team can maintain the setup after handover.

How we support

  • Ongoing support is available as a retainer, covering upgrades when a product adds or changes its key exchange defaults.
  • Continuous testing can re-check negotiated groups after updates, so drift from the agreed configuration is caught early.
  • Before any change to a product version, confirm with the vendor's current release notes which key exchange options it supports.

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.