Hybrid key share sizes in TLS by named group

Client and server key share lengths in bytes for each TLS 1.3 hybrid group defined in RFC 10024, and how each one adds to the ClientHello and ServerHello.

On this page

How big is a hybrid TLS key share in bytes

If you are sizing a ClientHello or ServerHello buffer for a hybrid group, the two numbers to start from are the X25519MLKEM768 client share of 1216 bytes and server share of 1120 bytes, as given in sections 4.1 and 4.2 of RFC 10024. For SecP384r1MLKEM1024 the client and server shares are both 1665 bytes. These are per-share figures: each key share is a fixed length, and the handshake message carries it along with the group identifier and length fields that TLS adds around it. The table on this page is used mainly by platform and network engineers checking packet limits and how middleboxes handle larger handshake messages, since the key share is the part of the ClientHello that grows most when a hybrid group is offered.

Within each share, the order of the parts matters for debugging. RFC 10024 places the ML-KEM part first in the X25519MLKEM768 shares, but places the ECDHE part first in the SecP256r1MLKEM768 and SecP384r1MLKEM1024 shares, which reverses the order implied by the X25519MLKEM768 name. Engineers reading a packet capture or comparing against a reference implementation should check which component comes first for the group in use, rather than assuming a single layout. The RFC also gives the shared secret lengths, 64 bytes for X25519MLKEM768 and SecP256r1MLKEM768 and 80 bytes for SecP384r1MLKEM1024, which are useful when checking that a session key derivation has the expected input size.

Before you rely on these figures for a buffer or a firewall rule, confirm the version of RFC 10024 and the codepoints your implementation uses. The RFC was published as a Proposed Standard in August 2026 and assigns codepoints 4588 (0x11EC) to X25519MLKEM768, 4587 (0x11EB) to SecP256r1MLKEM768 and 4589 (0x11ED) to SecP384r1MLKEM1024. The draft it grew from, draft-ietf-tls-ecdhe-mlkem-05, is recorded in the IETF datatracker history as becoming the RFC on 10 August 2026. Libraries built against an earlier draft may use different lengths or codepoints, so check the exact share sizes your stack negotiates in a test handshake.

Client and server key share sizes by named group in bytes

This table lists each hybrid TLS 1.3 named group defined in RFC 10024 with its codepoint, the client and server key share lengths, and the ML-KEM and classical component sizes that make up each share. Read the component columns to see how much of each share comes from the post-quantum part and how much from the classical elliptic curve part. The main takeaway is that the X25519MLKEM768 shares are the smallest of the three groups, while SecP384r1MLKEM1024 has the largest shares in the table.

Named groupCodepointClient share (bytes)Server share (bytes)ML-KEM and classical parts (bytes)
X25519MLKEM7684588 (0x11EC)12161120Client: 1184 ML-KEM encapsulation key and 32 X25519. Server: 1088 ML-KEM ciphertext and 32 X25519.
SecP256r1MLKEM7684587 (0x11EB)12491153Client: 65 secp256r1 and 1184 ML-KEM encapsulation key. Server: 1088 ML-KEM ciphertext and 65 secp256r1.
SecP384r1MLKEM10244589 (0x11ED)16651665Client: 97 secp384r1 and 1568 ML-KEM encapsulation key. Server: 1568 ML-KEM ciphertext and 97 secp384r1.

What each column in the key share table means

A key share is the value each side sends in the key_share extension of a TLS 1.3 handshake. The client sends its share in the ClientHello, one entry per named group it offers, and the server answers with a single share in the ServerHello for the group it selects. The two figures in the table are therefore not interchangeable: the client share is always the larger of the pair because it carries a public key or encapsulation key, while the server share carries a ciphertext or an ECDHE public key that answers it. Section 4.1 of RFC 10024 gives the client share lengths for each group, and Section 4.2 gives the server share lengths. Read each column against the section it comes from, because a row that quotes only one direction will mislead a buffer calculation on the other side.

The codepoint columns identify each group on the wire. RFC 10024 assigns 4588 (0x11EC) to X25519MLKEM768, 4587 (0x11EB) to SecP256r1MLKEM768 and 4589 (0x11ED) to SecP384r1MLKEM1024, as set out in Section 7. The decimal value is what appears in tables and logs, and the hex value is what appears in packet captures, so confirm that your tooling shows the same one before comparing traces. Note that the X25519MLKEM768 name lists the ECDHE part first, but the byte layout does not. In X25519MLKEM768 shares and its shared secret, the ML-KEM part comes first. In the SecP256r1MLKEM768 and SecP384r1MLKEM1024 shares, the ECDHE part comes first. A parser written from the group name alone will read the X25519MLKEM768 share in the wrong order, so check the layout in Section 4 before writing one.

RFC 10024 states that every group it defines uses fixed-length public keys, ciphertexts and shared secrets. That is why the figures in the table are single values rather than ranges, and why a receiver can reject a share whose length differs from the value for its group. Confirm any length against the RFC version your stack implements, since the table reflects the August 2026 Proposed Standard, and the IETF datatracker shows that the document became RFC 10024 on 10 August 2026. Where the underlying ML-KEM parameter set matters to your sizing, check the ML-KEM page for that set's key and ciphertext lengths, because the hybrid shares add the ECDHE part to those values.

Where hybrid key share sizes affect a handshake

A hybrid key share adds an ML-KEM part to a classical ECDHE part, so each named group changes the size of the ClientHello and ServerHello. The cards below cover where those byte counts start to matter, from packet fragmentation to constrained clients.

ClientHello size and fragmentation

The client sends its key share in the ClientHello, so a hybrid group raises the size of the first message in the handshake. The X25519MLKEM768 client share is 1216 bytes, and the SecP384r1MLKEM1024 client share is 1665 bytes, both larger than a classical ECDHE share. When a client offers several groups, all of their shares are sent together in that one message. Check how your client stack splits a large ClientHello across records and packets, and test handshakes with the offered groups you actually enable. Confirm the behavior of your own network path rather than assuming a limit.

RFC 10024 text

ServerHello size

The server returns its own share in the ServerHello, and that share is the ciphertext half of the exchange rather than the encapsulation key. The X25519MLKEM768 server share is 1120 bytes, while SecP256r1MLKEM768 and SecP384r1MLKEM1024 server shares are 1153 bytes and 1665 bytes. Servers that select a hybrid group send this larger message on every new connection that uses it. Measure the ServerHello for the group you select, since it is the message the client receives after its own large ClientHello. Confirm the byte count against the RFC text for the version you deploy.

RFC 10024 text

Middleboxes and firewalls

Firewalls, load balancers and TLS inspection appliances often parse handshake messages, and they may enforce limits on message or record size. A hybrid key share increases the bytes these devices must handle in the ClientHello and ServerHello. Ask each vendor whether its inspection engine handles handshake messages of the sizes listed in RFC 10024, and test the path with the groups you intend to offer. Keep a record of which devices sit between your clients and servers so that you can retest after a firmware change.

Constrained and embedded TLS clients

Devices with small memory budgets must hold the full key share, its private key and the shared secret while the handshake runs. For X25519MLKEM768 the shared secret is 64 bytes, and for SecP384r1MLKEM1024 it is 80 bytes. Check whether your embedded TLS library supports the named group and the buffer sizes it needs before you enable it. If a device cannot support a hybrid group, plan which classical groups it will offer, and document that fallback.

Byte difference across three groups

A client that offers several hybrid groups sends the key share for each one, so the ClientHello grows with every group added. The three groups differ: X25519MLKEM768 client share is 1216 bytes, SecP256r1MLKEM768 is 1249 bytes, and SecP384r1MLKEM1024 is 1665 bytes. Comparing these figures helps you decide which groups to offer and in what order. Keep the offered list short if message size is a concern, and confirm the total ClientHello length with a packet capture.

Key share sizes for each hybrid group in TLS

X25519MLKEM768 pairs the X25519 elliptic curve Diffie-Hellman function with the ML-KEM-768 parameter set. RFC 10024 gives a client key share of 1216 bytes and a server key share of 1120 bytes. The ML-KEM part comes first in both shares and in the shared secret, which reverses the order the group name suggests. Because the group name puts X25519 first, check the byte order against the RFC when you parse or test these shares.

  • Client share of 1216 bytes: 1184 bytes of ML-KEM encapsulation key followed by 32 bytes of X25519.
  • Server share of 1120 bytes: 1088 bytes of ML-KEM ciphertext followed by 32 bytes of X25519.
  • Shared secret of 64 bytes: 32 bytes per component, as RFC 10024 section 4.3 specifies.
  • Codepoint 4588 (0x11EC): the value a client and server use to negotiate this group in the supported_groups and key_share extensions.
  • Fixed lengths: RFC 10024 states that all groups it defines use fixed-length public keys, ciphertexts and shared secrets, so buffers can be sized to these values.

Before you size buffers, confirm the lengths and codepoint against RFC 10024 section 4.1, section 4.2, section 4.3 and section 7, and check how your TLS library orders the components for this group.

Shared secret length for each hybrid group in bytes

This table lists the shared secret length that each hybrid group in RFC 10024 produces, along with the ECDHE and ML-KEM part sizes that make it up, so you can size key derivation inputs and buffers. Each row is one named group, and the total equals the sum of its two parts. The main takeaway is that the ML-KEM-1024 group yields the largest shared secret at 80 bytes, while the two ML-KEM-768 groups yield 64 bytes each, and all three lengths are fixed.

Named groupECDHE part (bytes)ML-KEM part (bytes)Shared secret (bytes)
X25519MLKEM7683232 ML-KEM shared secret64
SecP256r1MLKEM7683232 ML-KEM shared secret64
SecP384r1MLKEM10244832 ML-KEM shared secret80

How to use these key share sizes in a deployment

This sequence turns the byte counts in the table into checks you can run against your own TLS stack. It confirms which hybrid groups are offered, which RFC version the implementation follows, and that buffers and tests match the sizes before the groups are enabled in production.

  1. Confirm the named groups your stack offers

    Ask whoever operates your TLS library and server which hybrid named groups they offer in the TLS 1.3 supported_groups extension, and check the codepoints they report against the table. The groups to look for are X25519MLKEM768 (codepoint 4588, 0x11EC), SecP256r1MLKEM768 (4587, 0x11EB) and SecP384r1MLKEM1024 (4589, 0x11ED), as assigned in Section 7 of RFC 10024. This step is done when you have a written list of enabled groups with codepoints that matches the server configuration and a packet capture or client-side test that shows the group being negotiated.

  2. Confirm the RFC 10024 version the implementation follows

    RFC 10024 is a Proposed Standard published in August 2026, so implementations may have been built against an earlier draft such as draft-ietf-tls-ecdhe-mlkem-05, which the IETF datatracker records as becoming RFC 10024 on 10 August 2026. Ask the vendor or library maintainer which draft or RFC revision their code follows and whether it includes the final codepoints and share layouts. This step is done when you have a written version statement, and any gap between that version and RFC 10024 is recorded as an open item.

  3. Size ClientHello and ServerHello buffers from the table

    Take the client and server key share lengths for each group you enabled and add them to the rest of the handshake message to size buffers. The sources give X25519MLKEM768 as a 1216-byte client share and a 1120-byte server share, SecP256r1MLKEM768 as 1249 and 1153 bytes, and SecP384r1MLKEM1024 as 1665 bytes on both sides. Keep in mind that a ClientHello may offer several groups, so the key share extension grows with each one you add. This step is done when your buffer and record size settings are documented with the byte totals used.

  4. Check the part order in each share

    RFC 10024 places the ML-KEM part first in X25519MLKEM768 shares and shared secrets, but places the ECDHE part first in SecP256r1MLKEM768 and SecP384r1MLKEM1024. Where you parse, log or compare these shares, confirm your code reads the parts in the order the RFC specifies, not the order the group name suggests. This step is done when parsing or logging code has been reviewed against the layouts in Section 4 of RFC 10024.

  5. Test handshakes with the groups you enable

    Run handshake tests from clients that offer each enabled group, and confirm the server selects the intended group and completes the handshake. Include a test that checks the shared secret length against the sizes in the table: 64 bytes for X25519MLKEM768 and SecP256r1MLKEM768, and 80 bytes for SecP384r1MLKEM1024. Also test the path through any load balancer, proxy or middlebox that inspects or resizes handshake messages. This step is done when the test results show successful negotiation and expected secret lengths for every enabled group.

  6. Ask the vendor how the TLS stack orders the parts

    Put these questions to your TLS library or appliance vendor in writing: which named groups the stack implements, which RFC or draft revision each one follows, how it orders the ML-KEM and ECDHE parts in shares and shared secrets, and whether it uses the fixed lengths described in RFC 10024. Ask for the answers in the vendor's documentation or a release note that names the product version. This step is done when the vendor's written answers are filed with the deployment record and any unanswered question is flagged before go-live.

What these key share sizes do not tell you

The byte counts on this page cover only the key share fields that a hybrid group places in the TLS key_share extension: the client share and the server share, as RFC 10024 defines them. They do not give the size of the whole ClientHello or ServerHello, the size of the certificate chain, or the total bytes a handshake puts on the wire. A ClientHello carrying a hybrid share will be larger than the share alone, and the other fields, extensions and any certificate chain sent later all add to the total. Before setting packet or buffer limits, measure a full handshake in your own environment, with the certificates and extensions your server actually uses. The certificate and handshake size pages cover that larger picture.

RFC 10024 sets the lengths of these shares, and the figures are correct for the specification. They do not confirm that any particular implementation produces or accepts them. A library may encode a share with extra framing, a length prefix or a different field order, and the sources listed on this page do not state any library-specific encoding overhead. Check the bytes your TLS stack actually sends with a packet capture or a protocol trace, and confirm which RFC 10024 codepoints it advertises. Interoperability is a property of the specific client and server versions you run, so test the pairs that will talk to each other rather than inferring it from the specification.

The order of parts also differs between groups, and this affects how you read a capture. In X25519MLKEM768 the ML-KEM part comes first, while in SecP256r1MLKEM768 and SecP384r1MLKEM1024 the ECDHE part comes first, which reverses the order the group name suggests. If you write a parser, a logging rule or a packet inspection signature that assumes one layout for every hybrid group, it will misread the other. Confirm the offsets for each group against RFC 10024 and against your stack's output, and check the field boundaries in a capture before relying on a fixed-offset rule.

Questions about hybrid TLS key share sizes

How many bytes is the X25519MLKEM768 client key share?

The X25519MLKEM768 client key share is 1216 bytes. RFC 10024, Section 4.1, splits that total into two parts: 1184 bytes of ML-KEM encapsulation key and 32 bytes of X25519 public key. The ML-KEM part comes first in the share. Because the client sends this in its ClientHello, the figure matters for packet sizing: the share alone is larger than a single 1,200-byte initial packet budget would leave room for once the rest of the ClientHello is added. Engineers sizing buffers should allocate for the full 1216 bytes plus the surrounding extension framing, not for the key material alone. Confirm the framing overhead against your TLS stack's implementation, since RFC 10024 gives only the key share length.

How many bytes is the X25519MLKEM768 server key share?

The X25519MLKEM768 server key share is 1120 bytes. RFC 10024, Section 4.2, gives this as 1088 bytes of ML-KEM ciphertext followed by 32 bytes of X25519 public key. The server share is smaller than the client share, and the difference of 96 bytes comes from the ML-KEM ciphertext being shorter than the encapsulation key. For a server, this figure drives the size of the ServerHello key share extension and the total handshake flight it sits in. Teams checking middlebox or load balancer limits should measure the real handshake messages in their environment, because the surrounding certificate and extension data will dominate the total size of the server's response.

Why is SecP384r1MLKEM1024 the largest hybrid key share?

SecP384r1MLKEM1024 is the largest because it pairs the ML-KEM-1024 parameter set with the secp384r1 elliptic curve. RFC 10024, Section 4.1, gives the client share as 1665 bytes, made up of 97 bytes of secp384r1 and 1568 bytes of ML-KEM. Section 4.2 gives the server share as the same 1665 bytes, with 1568 bytes of ML-KEM and 97 bytes of secp384r1. The larger ML-KEM parameter set accounts for most of the increase over the other two groups, since 1568 bytes is well above the 1184 bytes used by the ML-KEM-768 groups. The choice of this group therefore trades a larger handshake for a higher security level. Teams should confirm with their security owners whether that level is required before accepting the extra bytes.

Which codepoint does each hybrid TLS group use?

RFC 10024, Section 7, assigns three codepoints. X25519MLKEM768 uses 4588 (0x11EC), SecP256r1MLKEM768 uses 4587 (0x11EB) and SecP384r1MLKEM1024 uses 4589 (0x11ED). The codepoint is the value that identifies the group in the supported_groups extension and the key_share extension during negotiation. Configuration files and packet captures usually show the numeric codepoint or a group name, so engineers should match both when checking a negotiation. Note that the codepoint numbers do not follow the order of the group names, and that the ML-KEM and ECDHE parts appear in different orders across groups, as explained in the next question. Confirm the assignments against the RFC text itself before writing them into configuration.

How does the shared secret length compare across the hybrid groups?

The shared secret is 64 bytes for X25519MLKEM768 and for SecP256r1MLKEM768, with 32 bytes contributed by each part. For SecP384r1MLKEM1024 it is 80 bytes, made up of 48 bytes from ECDHE and 32 bytes from ML-KEM. RFC 10024, Section 4.3, gives these lengths. The difference matters for engineers who code against fixed buffer sizes, because a parser that assumes 64 bytes will fail on the P-384 group. The order of the two parts also differs between groups: ML-KEM comes first for X25519MLKEM768, while the ECDHE part comes first for the two P-curve groups. Teams writing or auditing code should confirm the concatenation order against the RFC, not against the group name.

Are these hybrid key share sizes fixed?

Yes, according to RFC 10024. The RFC states that all groups it defines use fixed-length public keys, ciphertexts and shared secrets. That means the lengths in this section do not vary with the implementation or the handshake, so a receiver can rely on them when parsing. The RFC was published as a Proposed Standard in August 2026, after draft-ietf-tls-ecdhe-mlkem-05 was dated 26 May 2026, according to the IETF datatracker history. Because the sizes are fixed by the standard, the main variable in a real deployment is everything around the key share, such as the certificate chain and extension overhead. Confirm the version of RFC 10024 your TLS library implements before relying on these numbers in production.

Where the key share travels in a TLS 1.3 handshake

The client places its key share in the ClientHello, and the server returns its own key share in the ServerHello. For X25519MLKEM768, the client share is 1216 bytes and the server share is 1120 bytes, and these two messages carry nearly all of the hybrid cost. Check that every hop between client and server accepts messages of this size, because these shares are much larger than classical ECDHE shares. RFC 10024 defines the group, and the lengths above come from its Section 4.1 and Section 4.2.

Key share exchange for X25519MLKEM768 in a TLS 1.3 handshake, with byte counts from RFC 10024.

How DeployOpen works on this

DeployOpen works from the share lengths in RFC 10024 and the configuration of your own TLS endpoints. We scope which hybrid groups your servers and clients negotiate, build and test the change in your environment, and hand over the sizes you confirmed along with the configuration evidence.

How we scope

  • We list which TLS endpoints, load balancers and clients in your estate would offer hybrid named groups.
  • We confirm each group's client and server share lengths against RFC 10024 and your own packet captures.
  • The written scope states which groups are in and out, and which versions of each component we test against.

How we build

  • We configure the hybrid groups on your endpoints and record the group order each one negotiates.
  • We check that handshake messages with the larger key shares still fit within your MTU and middlebox limits.
  • We test interoperability with each client population you name, and log any fallback to classical groups.

How we hand over

  • You receive the configuration, the measured share sizes per group, and the test results for your environment.
  • The documentation states the codepoints in use, such as 0x11EC for X25519MLKEM768, so your teams can match them in logs.
  • We walk your engineers through the evidence so they can review the sizes against their own buffer and bandwidth plans.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer when your client versions change.
  • Ask any provider to confirm which RFC 10024 share lengths their stack implements before you sign a scope.

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.