X25519 vs X25519MLKEM768: what a hybrid group adds to the classical one
X25519 is a classical elliptic curve function with no post-quantum part, and X25519MLKEM768 pairs it with ML-KEM-768 as one hybrid TLS 1.3 group. So the distinction that matters for a TLS configuration is what the group carries on the wire, not only its name. You will meet the two names in a TLS configuration file, in a vendor document describing supported groups, or in an audit request asking which key exchange groups a service offers. X25519 is specified in RFC 7748, where its public keys and shared secrets are 32 bytes. X25519MLKEM768 is defined in RFC 10024 as a Post-Quantum Traditional (PQ/T) hybrid key agreement group for TLS 1.3.
In practice the difference shows up in the handshake messages. The client key_exchange value for X25519MLKEM768 is 1216 bytes, made of the 1184-byte ML-KEM-768 encapsulation key and the 32-byte X25519 share. The server returns 1120 bytes, made of the 1088-byte ML-KEM ciphertext and the 32-byte X25519 share. The shared secret is 64 bytes: the 32-byte ML-KEM secret followed by the 32-byte X25519 secret. A plain X25519 share is 32 bytes in each direction, so a hybrid group adds roughly 1.2 kilobytes to the client's first flight. Before you enable it, confirm that load balancers, middleboxes and TLS terminators on your path handle the larger ClientHello. The Go 1.24 release notes describe buggy servers that time out on large records during the handshake, and the tlsmlkem=0 setting is the workaround they offer.
RFC 9954 treats X25519MLKEM768 as a group in its own right: a client offers it in supported_groups, and a server that does not select it does not use it. Clients list key shares in descending order of preference. Check which groups your servers select, not only which ones your clients offer, and confirm the exact group name and IANA code point (4588, marked as recommended) against the IANA TLS Parameters registry. Whether a given library or release offers the group by default differs: the OpenSSL 3.5 release notes describe its default key shares, and Mozilla bug 1919097 covers desktop Firefox. Confirm the defaults of the versions you run.
How the two groups compare on the attributes the sources give
This table sets the classical X25519 group against the hybrid X25519MLKEM768 group, one attribute per row, using only the sizes, dates and registry entries the sources give. Read each row as a fact about one group, then check the same field in the version of TLS stack you run, because a group only applies where both client and server offer and select it. The main takeaway is that the hybrid group adds a post-quantum KEM component and larger key_exchange values, while the classical group carries no post-quantum component at all.
| Attribute | X25519 | X25519MLKEM768 |
|---|---|---|
| What it is | A classical elliptic curve Diffie-Hellman function specified in RFC 7748 | A hybrid key agreement group that combines X25519 with ML-KEM-768 for TLS 1.3 |
| Defining document and date | RFC 7748, January 2016, an Informational IRTF document | RFC 10024, August 2026, a Proposed Standard |
| Post-quantum component | None, as RFC 7748 defines the function | ML-KEM-768 from NIST FIPS 203, published 13 August 2024 |
| Components | One X25519 share of 32 bytes for public keys and shared secrets | The X25519 share plus the ML-KEM-768 encapsulation key or ciphertext |
| Client key_exchange size | 32 bytes, the X25519 public key | 1216 bytes, the 1184-byte ML-KEM-768 encapsulation key plus the 32-byte X25519 share |
| Server key_exchange size | 32 bytes, the X25519 public key | 1120 bytes, the 1088-byte ML-KEM ciphertext plus the 32-byte X25519 share |
| Shared secret size | 32 bytes | 64 bytes, the 32-byte ML-KEM secret followed by the 32-byte X25519 secret |
| Registry entry | Classical curve entry in the IANA TLS Supported Groups registry | Entry 4588 in the IANA TLS Supported Groups registry, marked Recommended "Y" |
What X25519 and X25519MLKEM768 are, one at a time
X25519 is an elliptic curve Diffie-Hellman function specified in RFC 7748, published in January 2016 as an Informational document from the IRTF. It is the classical key exchange primitive that TLS deployments have used for years, and it is the group most servers and clients fall back to when a hybrid group is not offered. RFC 7748 defines it alongside X448, and it has no post-quantum component at all. Practitioners meet the name in TLS and SSH configuration lists, in packet captures, and in library defaults that name the group directly.
- Key size: X25519 public keys and shared secrets are 32 bytes each, so the key_exchange value a client sends for this group is 32 bytes.
- No post-quantum component: the group relies only on the elliptic curve assumption, so a session negotiated with X25519 alone carries no post-quantum protection for the key exchange.
- Standalone use: when X25519 is the only group offered, the handshake exchanges one 32-byte share in each direction and derives the shared secret from that single exchange.
- Where it appears: it is named in TLS 1.3 supported_groups lists, in SSH key exchange configuration, and in libraries that set it as a default preference.
- Interpreting a configuration: a server that lists X25519 first and a hybrid group later will normally select the hybrid group only when the client also offers it, so check both sides before you assume which group is in use.
What to check: confirm which groups your TLS library and load balancer offer, and whether X25519 appears alone or alongside a hybrid group. Confirm the exact versions you run, since defaults change between releases.
X25519MLKEM768 is a hybrid key agreement group defined in RFC 10024, a Proposed Standard published in August 2026. RFC 10024 describes it as a Post-Quantum Traditional (PQ/T) hybrid for TLS 1.3, which means it combines a classical component, X25519, with a post-quantum component, ML-KEM-768. The group is registered in the IANA TLS Supported Groups registry as 4588, and the registry marks it as Recommended. Practitioners meet the name in TLS 1.3 handshake captures, in library release notes that enable it by default, and in configuration entries that list it beside X25519.
- Components: the group pairs X25519 with ML-KEM-768, the middle parameter set of the NIST FIPS 203 standard published on 13 August 2024.
- Client share size: the client key_exchange value is 1216 bytes, made of the 1184-byte ML-KEM-768 encapsulation key and the 32-byte X25519 share.
- Server share size: the server key_exchange value is 1120 bytes, made of the 1088-byte ML-KEM ciphertext and the 32-byte X25519 share.
- Shared secret size: the combined shared secret is 64 bytes, made of the 32-byte ML-KEM secret followed by the 32-byte X25519 secret.
- Registry entry: IANA lists X25519MLKEM768 as 4588 with the reference RFC 10024, and the same registry lists SecP256r1MLKEM768 as 4587 and SecP384r1MLKEM1024 as 4589, which are the other two hybrid groups in that RFC.
What to check: confirm that your stack lists 4588 when it reports the group on the wire, and expect handshake messages several times larger than an X25519-only handshake, which matters for network devices and proxies that inspect or limit handshake size. Confirm the exact version and default for each TLS library you run.
The two groups share the X25519 component, and that is where most of the difference in negotiation behavior comes from. In TLS 1.3 the hybrid group is a NamedGroup in its own right: RFC 9954, Hybrid Key Exchange in TLS 1.3, published in July 2026 as an Informational RFC, says each hybrid combination gets an identifier in supported_groups. A client therefore offers X25519MLKEM768 as a separate entry, and a server that does not select it does not use it. RFC 9954 also states that clients list key shares in descending order of preference, so the order a client sends its groups affects which one a server is likely to pick.
The main goal RFC 9954 gives for a hybrid group is that the shared secret remains secure as long as at least one of the component key exchange mechanisms remains unbroken. In practice, that means X25519MLKEM768 keeps the classical protection of X25519 alongside the post-quantum protection of ML-KEM-768 in the same handshake. Both components feed the TLS 1.3 key schedule, and that concatenated secret is what the rest of the handshake uses.
- Negotiation: the client's key_exchange value for the hybrid carries both the ML-KEM encapsulation key and the X25519 share, while the server returns one share for the group it selected.
- Default behavior in libraries: Go 1.24 enables X25519MLKEM768 by default when Config.CurvePreferences is nil, and the tlsmlkem=0 GODEBUG setting reverts that default, which the release notes suggest for servers that mishandle large records. OpenSSL 3.5.0, released 8 April 2025, changed its default TLS key shares to offer X25519MLKEM768 and X25519.
- Browser behavior: Mozilla bug 1919097 enabled the mlkem768x25519 key exchange by default on desktop Firefox, and the Firefox 132 release notes say it does not affect Firefox for Android.
- Standards alignment: RFC 10024 says the groups it defines permit FIPS-approved key derivation as described in NIST SP 800-56C and SP 800-135.
- Terminology: the registry name X25519MLKEM768 is the TLS name, and the same pairing can be named differently in SSH or in drafts, so match names to the document that defines them.
What to check: when you read a TLS trace, look for 4588 or X25519MLKEM768 in the key share extension and confirm which group the server returned, because an offer alone does not show that the hybrid was used.
Differences that change systems, configurations or decisions
Adding ML-KEM to X25519 changes what goes on the wire, what a server must select, and what a secret is made of. Each card below is one consequence that engineers should check against their own clients, servers and load balancers before changing a configuration.
Client key share grows to 1216 bytes
A plain X25519 client share is 32 bytes. In X25519MLKEM768 the client key_exchange value is 1216 bytes: the 1184-byte ML-KEM-768 encapsulation key followed by the 32-byte X25519 share. The larger ClientHello can change handshake behavior on middleboxes, load balancers and older TLS stacks, so confirm that the ClientHello size is handled end to end in your path.
RFC 10024 textServer share grows to 1120 bytes
The server key_exchange value in X25519MLKEM768 is 1120 bytes, made of the 1088-byte ML-KEM ciphertext and the 32-byte X25519 share. A plain X25519 server share is 32 bytes. Check that the server's TLS implementation and any proxy in front of it accept the larger ServerHello, since a server that mishandles large handshake records will fail the handshake.
RFC 10024 textShared secret combines two components
The X25519MLKEM768 shared secret is 64 bytes: the 32-byte ML-KEM secret followed by the 32-byte X25519 secret. The combined value feeds the TLS 1.3 key schedule, so the derived keys depend on both components. Anyone reviewing key derivation should confirm that their stack derives keys from the full 64-byte value and not from a truncated one.
RFC 9954 textServers must select the hybrid group
RFC 9954 treats each hybrid combination as a NamedGroup in supported_groups, so a client can offer X25519MLKEM768 as a group in its own right. A server that does not select it does not use the hybrid group, and the connection falls back to whatever group it does select. Verify the negotiated group in handshake logs rather than assuming the hybrid group is in use.
RFC 9954 textClients rank key shares by preference
RFC 9954 says clients list their key shares in descending order of preference. Where a client sends several key shares, the order determines which group a server sees first. Review client configurations to confirm that X25519MLKEM768 appears where you intend it to, and check the order when a classical group is also offered.
RFC 9954 textHybrid goal is one unbroken component
RFC 9954 states the main goal of a hybrid group: the shared secret remains secure as long as at least one of the component key exchange mechanisms remains unbroken. This is the reason to keep X25519 in the combination. Read this as the stated design goal of the standard, and confirm with your security team how it fits your threat model before you rely on it.
RFC 9954 textWhat a client sends and what a server selects
A client that supports the hybrid group offers X25519MLKEM768 as a NamedGroup of its own inside the supported_groups extension, listed alongside plain X25519. RFC 9954 treats each hybrid combination as a named group with its own opaque identifier, so the hybrid is not a modifier applied to X25519 and cannot be selected implicitly. The client then lists its key shares in descending order of preference, and the first entry is the group it most wants. A server that does not select X25519MLKEM768 does not use it, even if the client offered it, and falls back to whichever offered group it accepts.
The key_exchange value for the hybrid group carries the component public keys concatenated into one value. Per RFC 10024, a client's X25519MLKEM768 share is 1216 bytes, made of the 1184-byte ML-KEM-768 encapsulation key followed by the 32-byte X25519 share. The server selects one offered group and returns its own share, which for X25519MLKEM768 is 1120 bytes, made of the 1088-byte ML-KEM ciphertext and the 32-byte X25519 share. Engineers should check these lengths in packet captures and in any TLS inspection or load balancer that parses handshake messages, since a device that assumes a 32-byte share for every group will misread the handshake.
Before enabling the hybrid group, confirm that every TLS terminator in the path, including load balancers, proxies and older server stacks, handles the larger ClientHello and ServerHello messages. The Go 1.24 release notes say the tlsmlkem=0 setting can help with buggy TLS servers that do not handle large records and time out during the handshake, which is a useful signal of the failure mode to test for. Also confirm which default your libraries and browsers use, since OpenSSL 3.5.0 changed its default key shares to offer X25519MLKEM768 and X25519, and that default may differ from the one in your own configuration.
How to work out which group applies to your systems
This sequence establishes whether your clients and servers offer or select X25519 alone or the hybrid X25519MLKEM768, and where that choice is made. Each step produces a record you can check against your inventory and your vendor's answers before any change is rolled out.
Check client and server library versions
Inventory every TLS client and server library or product in use, including the exact version and build. Use each vendor's release notes and documentation to find the TLS group defaults for that version. Go 1.24 enables X25519MLKEM768 by default when CurvePreferences is nil, and OpenSSL 3.5.0 changed its default key shares to offer X25519MLKEM768 and X25519. Your check is complete when every component has a recorded version and a recorded default for the named groups, with the source of each default noted.
Search requirements and questionnaires for group names
Review internal security standards, customer questionnaires and tender requirements for the names X25519MLKEM768 and X25519. Record which document names which group, which systems it covers, and whether it asks for the hybrid group, the classical group or either. Note any requirement that refers to the group only by a general label, so you can ask the owner what it means. The check is complete when each requirement is linked to a named group or marked as unspecified.
Inspect offered and selected groups in your own handshakes
In a test environment you control, capture a TLS 1.3 handshake and read the supported_groups extension the client sends and the key_exchange value the server returns. A client lists X25519MLKEM768 as its own named group, and the server's selection shows which group was used, with X25519 being the classical choice. Record the client's key share order, since RFC 9954 says clients list key shares in descending order of preference. The check is complete when you have captured one handshake per client and server pair with the offered and selected groups written down.
Test servers for timeouts on large client records
Before enabling X25519MLKEM768 on a server, test whether it completes handshakes when the client sends the larger key_exchange value. The client share is 1216 bytes in X25519MLKEM768, compared with 32 bytes for a plain X25519 share, and the Go 1.24 release notes say some buggy TLS servers do not handle large records and time out during the handshake. Run the test against each server build and record handshake success, failure or timeout. The check is complete when every server in the rollout scope has a recorded result and any failing servers are listed for follow-up.
Ask vendors which named groups they offer and select
Send each vendor a written question asking which named TLS groups their build offers by default, which it selects when a client offers X25519MLKEM768, and whether the group can be disabled. Ask them to cite the version and the setting that controls the behavior. Compare the answers with what your own handshake tests showed, and flag any difference. The check is complete when every vendor answer is on file, with the version it covers and any mismatch with your test results recorded.
Whether the two groups are used together or one replaces the other
X25519MLKEM768 is not a replacement for X25519 in the sense of one group retiring the other. It is a hybrid group that contains X25519 as its classical component, so the two are offered together in practice. RFC 10024 defines X25519MLKEM768 as a post-quantum/traditional (PQ/T) hybrid key agreement group for TLS 1.3, and the shared secret it produces is built from both the ML-KEM-768 secret and the X25519 secret. A client that offers X25519MLKEM768 is therefore already sending an X25519 share as part of that group, and the classical curve is not dropped when the hybrid group is used.
X25519 also remains a separate named group. RFC 9954 says each hybrid combination is a NamedGroup in supported_groups with its own opaque identifier, so a client can list X25519MLKEM768 and X25519 as distinct entries, and a server selects one of them during negotiation. Clients list their key shares in descending order of preference, so the order in which a client offers the two groups affects which one a server is likely to pick. A server that does not select X25519MLKEM768 does not use it, and a connection can end up on plain X25519 with no post-quantum component. Engineers should check their client and server configurations to confirm which groups are offered and in what order.
The sources describe the hybrid groups and the classical group without naming a date on which X25519 itself should stop being offered. The IANA TLS Supported Groups registry marks X25519MLKEM768 as recommended, while the sources listed on this page do not say when, or whether, plain X25519 will be withdrawn. Teams that need a retirement date for X25519 should confirm it against the current TLS standards, their vendor documentation and any policy their regulators or customers apply, rather than assuming one from the hybrid group's existence.
Common mix-ups between X25519 and X25519MLKEM768
Does X25519MLKEM768 replace X25519 in my TLS configuration?
No. X25519MLKEM768 is a separate named group that contains X25519 as one of its two components, and it sits alongside X25519 in the supported_groups list rather than swapping it out. RFC 9954 says each hybrid combination is a NamedGroup with its own identifier, so a client offers X25519MLKEM768 as a group in its own right. A server that does not select it does not use it, and the handshake falls back to whichever offered group both sides support. Plain X25519 still has no post-quantum component, so offering the hybrid group does not remove the classical path. Check your client and server configuration to see which groups they actually offer and in what order, since that order decides what gets negotiated.
Is the ML-KEM-768 key share in X25519MLKEM768 only 32 bytes?
No. The 32-byte figure belongs to the X25519 share. In X25519MLKEM768 the client key_exchange value is 1216 bytes, made of the 1184-byte ML-KEM-768 encapsulation key followed by the 32-byte X25519 share. The server key_exchange value is 1120 bytes, made of the 1088-byte ML-KEM ciphertext and the 32-byte X25519 share. Those sizes come from RFC 10024. Anyone sizing buffers, reviewing packet captures or tuning record handling should use the combined values, not the 32-byte X25519 length. Mistaking the component size for the full share is a common reason captures and parsers look wrong.
Are the 64 bytes of the X25519MLKEM768 shared secret two separate keys?
The 64-byte value is one shared secret built from two parts, not two independent keys handed out separately. According to RFC 10024, it is the 32-byte ML-KEM secret followed by the 32-byte X25519 secret. RFC 9954 describes how those shared secrets are concatenated into the existing TLS 1.3 key schedule, which then derives the traffic keys. The stated goal of a hybrid group is that the combined secret stays secure as long as at least one component remains unbroken. When you review a design or a capture, treat the 64 bytes as the input to the key schedule rather than as two keys you can use or inspect on their own.
Will Firefox for Android negotiate the hybrid group the way desktop Firefox does?
Do not assume so. Mozilla bug 1919097 set the security.tls.enable_kyber preference to true by default on desktop Firefox for the mlkem768x25519 key exchange in TLS 1.3. The Firefox 132 release notes say that change does not affect Firefox for Android. Desktop and Android builds can therefore offer different groups, and a server that sees desktop traffic may not see the same key shares from mobile clients. Confirm the group list each client platform sends in your own environment, for example by capturing a handshake, instead of inferring it from the desktop behavior.
Does a vendor's post-quantum claim mean X25519MLKEM768 is in the offered list?
No. A post-quantum claim describes what a product can do, not which groups it offers in a given configuration. A library can support X25519MLKEM768 while the default offer list omits it, or a version can enable it only under a setting. Go 1.24, for example, enables X25519MLKEM768 by default when Config.CurvePreferences is nil, and the tlsmlkem=0 GODEBUG setting reverts that default. OpenSSL 3.5.0, released 8 April 2025, changed its default key shares to offer X25519MLKEM768 and X25519. Ask the vendor which version, build and configuration produce the offered group list, then verify it in the deployed system.
Why do some servers time out when X25519MLKEM768 is offered?
The Go 1.24 release notes say the tlsmlkem=0 setting can help with buggy TLS servers that do not handle large records correctly and time out during the handshake. The hybrid client share is much larger than a 32-byte X25519 share, because it carries the 1184-byte ML-KEM-768 encapsulation key. A server or middlebox that mishandles records of that size can stall the handshake even though the group itself is valid. Before turning the hybrid group off across a fleet, test the affected server with the hybrid group offered and confirm the timeout is the cause. Then decide whether to fix the server, change the offer order or disable the group for that client.
Primary sources to check each claim against
Check each claim on this page against the document that defines it. For the classical side, RFC 7748 defines X25519 and its 32-byte public keys and shared secrets. Confirm there that X25519 has no post-quantum component, since the hybrid group adds one only in the protocol layer. For the hybrid group itself, read RFC 10024 to confirm the 1216-byte client key_exchange value, the 1120-byte server value and the 64-byte shared secret. Then read RFC 9954 to confirm how the hybrid combination is registered as a NamedGroup in supported_groups and how clients order their key shares.
Confirm the group's registration and recommended status in the IANA TLS Parameters Supported Groups registry, where X25519MLKEM768 is listed as 4588 and marked Recommended. For the ML-KEM-768 sizes that the hybrid builds on, check NIST FIPS 203 and the TLS encoding in draft-ietf-tls-mlkem-11. Treat the draft as a working document and confirm its status on the datatracker before relying on it.
Check implementation defaults against the release notes for the stack you run. The Go 1.24 release notes state when X25519MLKEM768 is enabled by default and describe the tlsmlkem=0 setting for servers that time out on large handshake records. The OpenSSL 3.5 release notes say the default key shares now offer X25519MLKEM768 and X25519. For Firefox, Mozilla bug 1919097 records the preference change for desktop builds, so confirm the browser version and platform in your own fleet before assuming the group is offered.
How DeployOpen helps teams roll out hybrid TLS groups
DeployOpen works through X25519 vs X25519MLKEM768 in four stages: scope, build, hand over and support. Each stage is tied to what the client's TLS endpoints actually negotiate, so the written scope reflects the groups, clients and servers in the client's own environment.
How we scope
- We inventory which TLS endpoints, load balancers and client libraries in scope offer or select X25519 or X25519MLKEM768.
- We record the versions of each server and client component, since support for the hybrid group varies by release.
- Engagements are fixed-scope, with the deliverables and timeline for the hybrid group rollout agreed in writing before work starts.
How we build
- We configure the group preference order on each endpoint and test that the server selects X25519MLKEM768 only when the client offers it.
- We test handshakes with the larger hybrid key share sizes, checking that middleboxes and buggy servers do not time out.
- We set fallback behavior so clients that do not offer the hybrid group still complete a classical X25519 handshake.
How we hand over
- We document which groups each endpoint offers and selects, with the configuration keys and versions used.
- We deliver test results showing the negotiated group for each client type, so reviewers can check the rollout themselves.
- We walk the client's platform and security teams through the configuration and the known interoperability limits.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer, covering changes to library and server releases.
- We retest hybrid negotiation after component upgrades, since default group behavior changes between library versions.
- Clients should confirm group support and compatibility for the exact versions they run before relying on it.

