X25519MLKEM768 vs SecP256r1MLKEM768: two hybrid TLS groups

X25519MLKEM768 and SecP256r1MLKEM768 both pair ML-KEM-768 with a classical elliptic curve, differing in the curve, message sizes and component order. This page sets out what the sources say about each.

On this page

How do X25519MLKEM768 and SecP256r1MLKEM768 differ?

A TLS configuration, vendor document or audit request may name X25519MLKEM768 in one place and SecP256r1MLKEM768 in another, and the reader needs to know whether the two are interchangeable. Both are hybrid key agreement groups for TLS 1.3 defined in RFC 10024, and both pair ML-KEM-768 with a classical elliptic curve. The distinction that matters is the classical component: X25519 in one group and ECDH on the secp256r1 curve in the other. Security leads, platform engineers and vendor-risk reviewers meet this question when they read a server's supported groups list, a library's release notes, or a vendor's statement about which hybrid groups it offers.

The two groups share the same overall design. Each produces a 64-byte shared secret made of 32 bytes from the ECDHE component and 32 bytes from ML-KEM. Their wire sizes differ because of the classical share: per RFC 10024, the X25519MLKEM768 client and server key_exchange values are 1216 and 1120 bytes, while the SecP256r1MLKEM768 values are 1249 and 1153 bytes. The SecP256r1 share is a 65-byte uncompressed point, while the X25519 share is 32 bytes. The ordering also differs: X25519MLKEM768 places the ML-KEM component first in the key_exchange value, while SecP256r1MLKEM768 places the ECDHE share first. Confirm the exact byte layout against RFC 10024 before relying on any packet capture.

Support is not uniform across the groups. The IANA TLS Supported Groups registry marks X25519MLKEM768 as Recommended "Y" and marks SecP256r1MLKEM768 as "N", and the release notes for OpenSSL 3.5 and Go 1.24 name X25519MLKEM768 as a default and do not mention SecP256r1MLKEM768. Before you accept SecP256r1MLKEM768 in a configuration or a vendor's compliance statement, check that the product version you run lists it, and ask the vendor which group a default handshake actually negotiates. An earlier, expired draft used a different secp256r1-based name, so check the group name and IANA codepoint in any document you are asked to certify against.

The two groups side by side in key sizes, IANA status and support

This table compares the two named hybrid TLS 1.3 groups on the classical curve they pair with ML-KEM-768, the key_exchange sizes each sends, their IANA codepoints and Recommended flag, and which release notes name each group. Read it as a set of checkable facts for a configuration review: the sizes matter for handshake planning, the registry flag indicates which group the IANA registry marks as recommended, and the release notes show where each name is documented today. The main takeaway is that X25519MLKEM768 is the group most widely documented and marked Recommended, while SecP256r1MLKEM768 carries larger values and appears in none of the release notes checked here.

AttributeX25519MLKEM768SecP256r1MLKEM768
Classical componentX25519 elliptic curve with ECDH, using 32-byte public keys and shared secretssecp256r1 elliptic curve with ECDH, using an uncompressed point (65 bytes in the key_exchange value)
Client key_exchange size1216 bytes1249 bytes
Server key_exchange size1120 bytes1153 bytes
Composition of the client value32-byte X25519 share with the ML-KEM component, with ML-KEM placed first65-byte secp256r1 share with the 1184-byte ML-KEM-768 encapsulation key, with the ECDHE share placed first
Composition of the server valueX25519 share with the ML-KEM ciphertext, with ML-KEM placed first65-byte secp256r1 share with the 1088-byte ML-KEM ciphertext, with the ECDHE share placed first
IANA codepoint4588, in the TLS Supported Groups registry4587, in the TLS Supported Groups registry
IANA Recommended flagYN
Release notes that mention the groupMozilla Firefox 132 names the mlkem768x25519 exchange; OpenSSL 3.5 notes list it as a default key share; Go 1.24 notes list it as a default exchangeNone of the release notes checked here (Firefox 132, OpenSSL 3.5, Go 1.24) mention this group

What X25519MLKEM768 and SecP256r1MLKEM768 each are

X25519MLKEM768 is a hybrid key agreement group for TLS 1.3 that combines the classical X25519 elliptic curve Diffie-Hellman function with ML-KEM-768, the module-lattice key encapsulation mechanism at the 768 parameter set defined in NIST FIPS 203. RFC 10024, a Proposed Standard published in August 2026, defines it together with SecP256r1MLKEM768 and SecP384r1MLKEM1024. The group is built on the general hybrid approach described in RFC 9954, where the shared secret remains secure as long as at least one component remains unbroken.

  • Classical share: The X25519 share is 32 bytes, as X25519 public keys are defined in RFC 7748.
  • Client and server sizes: Per RFC 10024, the client key_exchange value is 1216 bytes and the server value is 1120 bytes.
  • Component order: The ML-KEM component comes first in the key_exchange value, which RFC 10024 says is reversed from the RFC 9954 naming convention for historical reasons.
  • Registry status: IANA lists X25519MLKEM768 as codepoint 4588 with Recommended set to "Y", referencing RFC 10024.
  • Library and vendor documentation: The OpenSSL 3.5 release notes describe X25519MLKEM768 as a default key share, and the Go 1.24 release notes describe it as a default exchange.

When reviewing a deployment, confirm the group name your TLS library and version actually negotiate, and check the handshake capture against the sizes above rather than assuming a default is in use.

Which differences change what a system sends and selects

The two groups share the same ML-KEM-768 component and the same 64-byte shared secret size, but they differ in the classical curve, the order of components on the wire, the size of each key_exchange value, and how each is flagged and covered in release notes. Each card below names one of these differences and what to check before enabling or selecting either group.

Key_exchange sizes differ on the wire

SecP256r1MLKEM768 sends a 1249-byte client key_exchange value and a 1153-byte server value, while X25519MLKEM768 sends 1216 and 1120 bytes. The gap comes from the 65-byte uncompressed secp256r1 point, compared with the 32-byte X25519 share. If you tune packet sizes, handshake buffers or middlebox rules, test with the size your server actually produces rather than assuming the two groups are interchangeable.

Client key_exchange, SecP256r1
1249 bytes
RFC 10024 text

ECDHE share position in key_exchange

In SecP256r1MLKEM768 the ECDHE share comes first in the key_exchange value, followed by the ML-KEM component. In X25519MLKEM768 the ML-KEM component comes first. Any parser, packet capture filter or test harness that reads these values by offset must match the group, or it will misread which bytes belong to which algorithm.

RFC 10024 text

Shared secret ordering and FIPS reasons

Both groups derive a 64-byte shared secret from 32 bytes of ECDHE output and 32 bytes of ML-KEM output, but SecP256r1MLKEM768 places the ECDHE secret first, while X25519MLKEM768 places the ML-KEM secret first. RFC 10024 Section 5 explains this ordering by FIPS considerations, and RFC 9954 notes that NIST SP 800-56C accepts simple concatenation when one constituent secret comes from an approved method. Reviewers checking FIPS alignment should read that section rather than rely on a summary.

RFC 10024 Section 5

IANA Recommended flag differs

The IANA TLS Supported Groups registry marks X25519MLKEM768 as Recommended "Y", while SecP256r1MLKEM768 and SecP384r1MLKEM1024 are marked "N". A registry flag does not set a product's default, but a security review that uses the registry as a reference will treat the two groups differently. Record which flag your policy cites and confirm the registry entry on the day you review.

SecP256r1MLKEM768 code
4587
IANA TLS Parameters

Limited release-note coverage of SecP256r1MLKEM768

The Firefox 132, OpenSSL 3.5 and Go 1.24 release notes name X25519MLKEM768 or the equivalent mlkem768x25519 exchange, but none of the sources reviewed for this page mention SecP256r1MLKEM768 in those notes. If your library version is a candidate for SecP256r1MLKEM768, check its own documentation and configuration reference rather than inferring support from the release notes.

Go 1.24 release notes

Where each group shows up in releases, libraries and vendor documents

Readers checking a vendor claim about SecP256r1MLKEM768 should know that the two release notes most often cited for post-quantum TLS defaults do not name it. The OpenSSL 3.5 release notes mention X25519MLKEM768 as a default key share and do not mention SecP256r1MLKEM768 or SecP384r1MLKEM1024. The Go 1.24 release notes mention X25519MLKEM768 as a default exchange and do not mention SecP256r1MLKEM768. The sources listed on this page do not mention SecP256r1MLKEM768 in those release notes. If a procurement reviewer or auditor asks whether a given OpenSSL or Go build negotiates that group, the answer has to come from the build's own configuration and handshake tests, not from these notes. Check the OpenSSL 3.5 release notes and the Go 1.24 release notes directly, and confirm the exact version you run.

Firefox uses a different name again. Mozilla bug 1919097 names the mlkem768x25519 exchange for TLS 1.3, and the Firefox 132 release note names only that exchange among these groups. Engineers who see mlkem768x25519 in a Firefox trace should not map it to X25519MLKEM768 or SecP256r1MLKEM768 without checking the bug and the browser's handshake output, since the name ordering and the mapping to the IANA registry are separate questions. The Mozilla bug is the natural next read for that point.

The name history also matters for older documents. The expired individual draft draft-kwiatkowski-tls-ecdhe-kyber-01, dated 18 May 2023, defined SecP256r1Kyber768Draft00 with codepoint 0x639A. IANA lists that codepoint as 25498 with Recommended "D" and a comment that RFC 10024 obsoletes it. Any appliance, library or internal design that still uses the Kyber-era name should be traced to its current registry entry before it is compared with the RFC 10024 group. RFC 10024, a Proposed Standard published in August 2026, is the document that registers SecP256r1MLKEM768 as 4587 in the IANA TLS Supported Groups registry, and the registry marks it "N" for Recommended, so a reviewer should not assume it is a recommended default.

Where each hybrid group sits in a TLS 1.3 key share exchange

The client sends one key_exchange value per hybrid group it offers, and each value concatenates the component public keys. In X25519MLKEM768 the ML-KEM encapsulation key comes first and the 32-byte X25519 share second, while in SecP256r1MLKEM768 the 65-byte secp256r1 share comes first and the ML-KEM-768 encapsulation key second. The server selects one offered group and returns its own share in the same order, and both sides derive a 64-byte shared secret of 32 bytes from ECDHE and 32 bytes from ML-KEM, with the ordering of those halves also differing between the two groups. Check the client and server byte lengths and the component order before comparing captures.

Client offers component shares in each group's order, and the server returns one selected share.

Whether the two groups are used together or one replaces the other

X25519MLKEM768 and SecP256r1MLKEM768 are alternatives, not parts of each other. Both are named hybrid key agreement groups in the IANA TLS Supported Groups registry, and RFC 10024 defines each as a complete group in its own right. Neither group contains the other, and neither is a component that gets added to the other. A TLS 1.3 client lists the groups it supports in its supported_groups extension and sends key shares for the groups it offers. The server then selects one group from that list and returns its own share. For a given handshake, the client and server therefore settle on one of the two, and the other is not used in that connection. Engineers reviewing a configuration should treat them as separate entries that compete during negotiation, not as a pair that runs together.

The two groups also changed name over time, and the sources explain that change. The earlier draft defined SecP256r1Kyber768Draft00 with codepoint 0x639A, which IANA lists as 25498 and marks as obsoleted by RFC 10024. RFC 10024 renames the group to SecP256r1MLKEM768 and assigns it 4587 in the registry. The renaming reflects the standardization of ML-KEM in FIPS 203, published by NIST on 13 August 2024. Teams that captured traffic or logs from pre-standard implementations should confirm which name and codepoint appear in their captures, because a server or library built against the draft will not recognize the final identifier. Confirm the exact name each deployed component advertises before assuming two products are negotiating the same group.

How to work out which group applies to your system

This sequence establishes which named hybrid TLS group your client and server actually negotiate, so you can record it accurately in your inventory and answer tender or audit questions with evidence rather than assumption. Each step names the check and the output that closes it.

  1. Check vendor and library documentation for group names

    Start with the documentation for each TLS stack you run, including the web server, load balancer, client library and runtime. Look for the exact group names the product supports, such as X25519MLKEM768, SecP256r1MLKEM768 or SecP384r1MLKEM1024, and note the release version the documentation applies to. Release notes can differ on which groups are listed, so confirm each name against the version you deploy rather than the latest release. The step is done when you have a list of group names per component and version, with the source for each entry. The current release notes for OpenSSL 3.5 and Go 1.24 name X25519MLKEM768, and the sources listed on this page do not say whether they list the other two groups, so check those notes directly.

  2. Check the TLS configuration for group order

    Review the TLS configuration on both the client and the server to see which groups are offered, and in what order. The client's preference order matters because it determines which hybrid group it sends in its key share, and the server then selects one of the groups offered. Look for the configuration key or directive your stack uses for supported groups or key share groups, and record its exact value. Confirm whether the setting is a default or an explicit override. The step is done when you have the configured group order for each side and can state which group the client will offer first.

  3. Check tender and audit requirements for named groups

    Review the tender, contract, security questionnaire or audit request for any requirement that names a specific group. Some requests name a group explicitly, while others name only a standard or a category, and the two call for different evidence. Record the exact wording and the document it comes from. If a requirement names a group, you will need to show that group is negotiated, not only configured. If the requirement is broader, ask the requester which group or groups they accept. The step is done when you have each requirement recorded against the group it names, or a written question to the requester where the wording is unclear.

  4. Test the handshake and confirm key_exchange sizes

    Run a TLS 1.3 handshake between the client and server you actually operate, and capture the negotiated group from the handshake trace. Use a packet capture or the client's debug output to read the key_exchange value that the client sends and the value the server returns. Compare the byte lengths against the sizes the RFC defines for each group, which are 1216 and 1120 bytes for X25519MLKEM768 and 1249 and 1153 bytes for SecP256r1MLKEM768, for the client and server values respectively. A mismatch suggests a different group, a different version or a misconfiguration. The step is done when the negotiated group name and the observed sizes agree, and you have saved the trace or log as evidence.

  5. Test with the client and server pairs you run

    Repeat the handshake test for each client and server combination in your environment, because a group that negotiates between one pair may not negotiate between another. Include internal services, external-facing endpoints and any client that connects to a vendor-managed service. Where a pair falls back to a classical group or fails to negotiate a hybrid group, record that result and its cause. The step is done when you have a results table listing each pair, the negotiated group, the observed sizes and any fallback. Do not assume a result for a pair you have not tested.

  6. Record the negotiated group in the cryptographic inventory

    Enter the negotiated group in your cryptographic inventory against each service, endpoint and component you tested. Record the group name exactly as it appears in the IANA TLS Supported Groups registry, the component versions, the configuration source, the date of the test and the evidence reference. Keep separate entries for the configured group and the negotiated group, since they can differ. Note any group that a tender or audit names and whether your test confirmed it. The step is done when every tested endpoint has an inventory entry that a reviewer can trace back to the handshake evidence, and any untested endpoint is marked as untested.

Common mix-ups between the two groups

The two groups share a structure but differ in their classical component, their wire sizes and their names across drafts and release notes. Each card below covers one point where readers commonly confuse them, with the check to run before relying on either group.

Confusing ML-KEM-768 with the group name

ML-KEM-768 is a parameter set of the ML-KEM algorithm defined in FIPS 203, and it appears in both groups. The group name is the TLS identifier that combines a classical curve with that parameter set. Both X25519MLKEM768 and SecP256r1MLKEM768 use ML-KEM-768, so the parameter set alone does not tell you which group a client or server negotiated. Check the named group in the handshake, not the algorithm name in a configuration file.

FIPS 203 text

Treating the secp256r1 point size as the X25519 share size

The X25519 share is 32 bytes, while the secp256r1 share in SecP256r1MLKEM768 is a serialized uncompressed point of 65 bytes. The two key_exchange values are 1216 and 1120 bytes for X25519MLKEM768, and 1249 and 1153 bytes for SecP256r1MLKEM768, on the client and server sides. Parsers, buffer sizes and packet captures that assume one share length will misread the other group. Confirm the length against RFC 10024 before writing a fixed-size parser.

RFC 10024

Assuming the earlier draft codepoint applies

The expired draft draft-kwiatkowski-tls-ecdhe-kyber-01 defined SecP256r1Kyber768Draft00 with codepoint 0x639A, which IANA lists as 25498. That draft is no longer the reference. The current IANA registry lists SecP256r1MLKEM768 as 4587 under RFC 10024. Older test builds or configuration files may still advertise the draft value, so match on the codepoint your peers actually send, not the name you remember.

Draft text

Mistaking the classical curve for the KEM parameter set

Both groups use ML-KEM-768 but pair it with different classical components: X25519 in one and the secp256r1 curve with ECDH in the other. The curve is the ECDHE part of the hybrid, and the parameter set is the ML-KEM part. Swapping one for the other in a design review changes the classical share size and the group identity while leaving the KEM unchanged. Record both components separately when documenting a deployment.

RFC 10024

Assuming a release note covers both groups

Some release notes name only one group. The Go 1.24 notes and OpenSSL 3.5 notes mention X25519MLKEM768 as a default exchange and do not mention SecP256r1MLKEM768. Firefox 132 names only its own mlkem768x25519 exchange. A note that lists one group does not confirm the other is supported or enabled. Check the library or browser source, or test the negotiated group directly, before assuming coverage.

Go 1.24 notes

Questions people ask about X25519MLKEM768 and SecP256r1MLKEM768

Are X25519MLKEM768 and SecP256r1MLKEM768 the same group?

No. They are two separate named hybrid key agreement groups defined in RFC 10024, and both pair ML-KEM-768 with a classical elliptic curve. X25519MLKEM768 pairs ML-KEM-768 with X25519, while SecP256r1MLKEM768 pairs it with the secp256r1 curve used in ECDH. Each has its own IANA codepoint: SecP256r1MLKEM768 is 4587 and X25519MLKEM768 is 4588. Because the classical curve differs, the key_exchange values and the shared secret layouts also differ on the wire. A server or client that supports one group does not automatically support the other, so you should check the group list each product actually negotiates.

Which one is newer or recommended for new TLS deployments?

The sources in this topic point to X25519MLKEM768 as the one marked for general use. The IANA TLS Supported Groups registry marks X25519MLKEM768 as Recommended "Y", while SecP256r1MLKEM768 and SecP384r1MLKEM1024 are marked "N". Both groups are defined in RFC 10024, a Proposed Standard published in August 2026, so neither is older than the other as a standard. The earlier draft name SecP256r1Kyber768Draft00, codepoint 0x639A, came from the expired individual draft draft-kwiatkowski-tls-ecdhe-kyber-01 of 18 May 2023, and IANA notes that RFC 10024 obsoletes it. Among the libraries and browsers named in these sources, the OpenSSL 3.5 and Go 1.24 release notes mention X25519MLKEM768, but not SecP256r1MLKEM768. Confirm the recommendation for your own environment against the IANA registry and your vendor's documentation before you standardize on either.

Does a deployment need both groups, or is one enough?

The sources do not set a requirement that both groups be enabled. RFC 9954 says the main goal of a hybrid group is a shared secret that stays secure as long as at least one of its component key exchange mechanisms remains unbroken, and both groups satisfy that goal with ML-KEM-768 as the post-quantum part. The practical question is which groups your client and server software can negotiate together. Offering both gives a peer that lacks one a second option, but it also means more code paths to test. For a single-product rollout, check which groups that product supports by default. The OpenSSL 3.5 notes name X25519MLKEM768 as a default key share and do not mention SecP256r1MLKEM768 or SecP384r1MLKEM1024, so a stack built on those defaults may only offer the X25519-based group. Test the negotiated group in each configuration you run.

Which group does a standard, policy or customer require?

The sources in this topic do not show that any named regulation or customer contract requires either group by name. They do show that the NIST parameter set ML-KEM-768 underlies both groups, that NIST published FIPS 203 on 13 August 2024, and that RFC 9954 notes NIST SP 800-56C lists simple concatenation as an approved method when one constituent secret comes from an approved method. The ordering of the shared secret differs between the two groups: in X25519MLKEM768 the ML-KEM secret comes first, and in SecP256r1MLKEM768 the ECDHE secret comes first. RFC 10024 explains that ordering by FIPS reasons in its Section 5. If a customer or assessor asks you to name a group, quote the exact IANA name and codepoint, and ask them to confirm whether they mean the group name, the curve, or the ML-KEM parameter set. Those three can differ.

How do the handshake key_exchange sizes differ on the wire?

X25519MLKEM768 uses smaller key_exchange values than SecP256r1MLKEM768 in RFC 10024. The X25519MLKEM768 client and server values are 1216 and 1120 bytes, while the SecP256r1MLKEM768 client and server values are 1249 and 1153 bytes. The difference comes from the classical share: the X25519 share is 32 bytes, while the secp256r1 share is the serialized uncompressed point of 65 bytes. The SecP256r1MLKEM768 client value is that 65-byte share plus the 1184-byte ML-KEM-768 encapsulation key, and the server value is that share plus the 1088-byte ML-KEM ciphertext. The shared secret is 64 bytes in both groups, made of 32 bytes from ECDHE and 32 bytes from ML-KEM. These sizes matter for handshake capture analysis, middlebox limits and packet budgets, so check them against your own captures.

What should we ask a vendor about these two groups?

Ask the vendor which named groups its TLS stack offers by default and which it can enable, and get the exact IANA names and codepoints it uses. Ask whether it follows RFC 10024 for both groups, and whether it uses the final name in place of the earlier Kyber draft names. Ask which ML-KEM parameter set and which classical curve each group uses in its build, and whether the shared secret ordering matches RFC 10024. Ask for the release notes or configuration key that controls group selection, and whether any group is off by default. Ask what the vendor's documentation says on interoperability with other stacks, and whether it has tested both groups against the peers you run. Ask for test evidence rather than assurances, and confirm that any version you are shown is the one you will deploy. DeployOpen can test the negotiated group in your own environment as part of a TLS configuration review, but it does not issue certifications for either group.

Can we tell from a packet capture which group was used?

Yes, but only by reading the negotiated group in the handshake and matching it to the IANA registry. Each group has a distinct codepoint, so a capture that shows 4588 negotiated corresponds to X25519MLKEM768, and 4587 to SecP256r1MLKEM768. Use the key_exchange length as a cross-check: the 1216-byte and 1120-byte values point to X25519MLKEM768, and the 1249-byte and 1153-byte values point to SecP256r1MLKEM768, as RFC 10024 states. Capture both the client hello and the server hello, because the server returns the share for the one group it selected. Record the software version alongside the capture, since a group may be offered in one release and absent in another. Treat any tool's label for a group as a secondary signal and verify it against the codepoint.

How DeployOpen works on this

DeployOpen helps teams decide between X25519MLKEM768 and SecP256r1MLKEM768 by first inventorying which TLS endpoints and clients use each group, then configuring and testing them in the client's own environment. Engagements are fixed-scope, with the group choice, configuration and evidence agreed in writing before work starts.

How we scope

  • Agree in writing which TLS endpoints, load balancers and clients the group decision covers.
  • Record which named groups each component supports, based on its vendor documentation and tested versions.
  • Confirm the client's requirements for classical curve choice and the IANA recommendation status they will cite.

How we build

  • Configure the chosen hybrid group on the client's TLS terminators and check the group negotiated in test handshakes.
  • Test handshake sizes against the key_exchange lengths in RFC 10024 to confirm the expected traffic is seen.
  • Confirm the client and server both offer the group, and document any fallback to X25519MLKEM768 or classical groups.

How we hand over

  • Deliver a written record of the group selected, the configuration used and the versions tested.
  • Document the shared secret ordering and the component sources, so reviewers can trace the design to RFC 10024.
  • Hand over test results and a list of open points to confirm against each vendor's release notes.

How we support

  • Offer ongoing support as a retainer to re-check group support when TLS libraries and load balancers are upgraded.
  • Retest negotiated groups after configuration changes, so the record stays current with the deployed setup.
  • Review new vendor releases against the group choice and report any change in named group support.

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.