Hybrid key share sizes for TLS 1.3 handshakes
If you are sizing a TLS 1.3 handshake for hybrid key exchange, the figures you need first are these: under draft-ietf-tls-ecdhe-mlkem-05, the group X25519MLKEM768 (codepoint 4588, 0x11EC) uses a 1216-byte client key share (1184 bytes of ML-KEM-768 plus 32 bytes of X25519) and a 1120-byte server key share (1088 bytes of ML-KEM-768 plus 32 bytes of X25519), and it produces a 64-byte shared secret. These are fixed lengths, which the draft states for all of its groups. The table is for engineers and architects who need to check buffer sizes, packet budgets and record-layer assumptions before a deployment, and for security reviewers who need to confirm which group a configuration negotiates. The same draft defines SecP256r1MLKEM768 (codepoint 4587, 1249-byte client share, 1153-byte server share, 64-byte shared secret) and SecP384r1MLKEM1024 (codepoint 4589, 1665-byte shares, 80-byte shared secret), both marked not Recommended, so confirm which groups your TLS library offers and in what order.
The shares above are the key-exchange portion of the handshake only. The ClientHello and ServerHello grow by these amounts, and the handshake as a whole may cross the initial congestion window or a middlebox's packet limit, so check the full flight sizes with the certificate and chain sizes covered on the certificate and handshake page. Handshake latency and CPU time per connection are not covered by the sources listed for this topic. The draft makes no performance or benchmark claims, and the OQS datasheets list key, ciphertext and shared secret sizes for ML-KEM-512, ML-KEM-768 and ML-KEM-1024 (with ML-KEM-768 at 1184-byte public key and 1088-byte ciphertext) but no timing. For latency and CPU figures, ask your TLS library vendor or run a benchmark in your own environment, and record the library version, platform and cipher settings alongside the results.
Hybrid TLS key share and ML-KEM sizes in bytes
This table compares the three hybrid TLS groups from the IETF draft with the three ML-KEM parameter sets, listing codepoint, client share, server share, shared secret, recommendation status and source for each. Read the TLS group rows as what goes on the wire during the handshake, and the ML-KEM rows as the sizes of the underlying key encapsulation objects. The main takeaway is that the recommended X25519MLKEM768 group sends a 1216-byte client share and a 1120-byte server share, and that a larger share adds bytes to the first flight and to the server's reply.
| Item | Codepoint, client share and server share (bytes) | Shared secret (bytes) | Status and source |
|---|---|---|---|
| X25519MLKEM768 | Codepoint 4588 (0x11EC). Client share 1216, server share 1120. | 64 | Recommended and DTLS-OK. IETF draft-ietf-tls-ecdhe-mlkem-05, Standards Track. |
| SecP256r1MLKEM768 | Codepoint 4587 (0x11EB). Client share 1249, server share 1153. | 64 | Not Recommended. IETF draft-ietf-tls-ecdhe-mlkem-05. |
| SecP384r1MLKEM1024 | Codepoint 4589 (0x11ED). Client share 1665, server share 1665. | 80 | Not Recommended. IETF draft-ietf-tls-ecdhe-mlkem-05. |
| ML-KEM-512 | Public key 800, secret key 1632, ciphertext 768. | 32 | Claimed NIST level 1. OQS liboqs ML-KEM datasheet. |
| ML-KEM-768 | Public key 1184, secret key 2400, ciphertext 1088. | 32 | Claimed NIST level 3. OQS liboqs ML-KEM datasheet. |
| ML-KEM-1024 | Public key 1568, secret key 3168, ciphertext 1568. | 32 | Claimed NIST level 5. OQS liboqs ML-KEM datasheet. |
How to read the key share and codepoint columns
The key share and codepoint columns tell you which hybrid group a client and server agree on during the TLS 1.3 key exchange, and how many bytes each side sends to get there. The codepoint is the 16-bit identifier that appears in the TLS supported_groups and key_share extensions, written in hexadecimal in the source. For the hybrid group X25519MLKEM768, the codepoint is 4588, which is 0x11EC. Codepoints 4587 (0x11EB) and 4589 (0x11ED) identify the SecP256r1MLKEM768 and SecP384r1MLKEM1024 groups. When you read a table, check the codepoint first, because it is the value a packet capture or server configuration will show you.
The client share and server share columns give the number of bytes each side transmits in its key share. For X25519MLKEM768 the source defines a 1216-byte client share and a 1120-byte server share. These totals come from combining two components. The client share contains 1184 bytes of ML-KEM-768 public key plus 32 bytes of X25519 public key. The server share contains 1088 bytes of ML-KEM-768 ciphertext plus 32 bytes of X25519 public key. The composition is described in draft-ietf-tls-ecdhe-mlkem-05, which is the Internet-Draft to cite for these figures. The draft is at version 05 and has not been published as an RFC, so confirm the version your implementation follows before relying on these sizes in a design.
The shared secret length column reports the length of the secret derived from the key exchange. For X25519MLKEM768 it is 64 bytes, and the other two hybrid groups in the same draft list 64 and 80 bytes. The Recommended and not Recommended markings come from the draft's own status for each group. A group marked not Recommended is not a poor choice for every deployment, but it is the lower-priority option the draft designates. The draft makes no performance or benchmark claims, so the table does not tell you how long any of these exchanges take on your hardware. Confirm the handshake timing for your own configuration, and check which groups your TLS library and load balancer enable by default.
Where these key share sizes matter in practice
The hybrid key exchange groups defined in the IETF draft carry fixed-length key shares, so the byte counts of the ClientHello and ServerHello grow in predictable steps. The cards below cover the places where those larger messages can affect a deployment: message size, packet and record planning, inspecting devices, and bandwidth per connection.
ClientHello key share size
The client sends a key share for each group it offers, so a hybrid group adds its full share to the first flight. For X25519MLKEM768 the draft gives a 1216-byte client share, made of 1184 bytes of ML-KEM-768 public key and 32 bytes of X25519. Check the total ClientHello size in your own captures, because other extensions and any additional offered groups add to it. The draft lists X25519MLKEM768 as Recommended, while SecP256r1MLKEM768 and SecP384r1MLKEM1024 are marked not Recommended.
- Client share, X25519MLKEM768
- 1216 bytes
ServerHello key share size
The server replies with one key share for the group it selects, so its size is set by that group. For X25519MLKEM768 the draft gives a 1120-byte server share, made of 1088 bytes of ML-KEM-768 ciphertext and 32 bytes of X25519. Because the server share is smaller than the client share, the ServerHello is usually shorter than the ClientHello. Confirm the figures against the group your servers select in testing, since the selected group determines which share is sent.
- Server share, X25519MLKEM768
- 1120 bytes
Packet and record size planning
A ClientHello that grows past a single packet has to be split across several, which affects how capture tools, firewalls and TLS stacks reassemble it. Plan for the full message size rather than the size of the key share alone. The draft makes no statement about packet or record limits, so check the limits of your own TLS stack and network path. Test with the groups you plan to enable, because each adds bytes.
Middleboxes and load balancers
Load balancers, web application firewalls and intrusion detection systems that parse ClientHello messages must accept the larger hybrid share and the new group codepoints. A device with a fixed buffer or a rule keyed to message size can drop or misclassify these handshakes. Ask each vendor whether its inspection handles the codepoints 4588 (0x11EC) and 4587 (0x11EB) and messages of this size. Test every inspection point in the path before enabling a hybrid group on production traffic.
Bandwidth per new connection
Each new TLS connection carries the extra key share bytes in both directions once, during the handshake. The added cost is the difference between the hybrid and classical shares, multiplied by the number of new connections your servers and clients open. Estimate that figure from your own connection rates and the share sizes listed here, and note that resumed sessions do not repeat the key exchange. The draft gives no benchmark figures, so measure bandwidth in your environment before drawing conclusions.
- Shared secret, X25519MLKEM768
- 64 bytes
ML-KEM-512, ML-KEM-768 and ML-KEM-1024 byte sizes
ML-KEM-512 is the smallest of the three ML-KEM parameter sets. The Open Quantum Safe liboqs ML-KEM datasheet lists it with a claimed NIST security level of 1 and the following byte sizes: a public key of 800 bytes, a secret key of 1632 bytes, a ciphertext of 768 bytes and a shared secret of 32 bytes. The datasheet links NIST FIPS 203 as the reference for the algorithm, so that standard is where to confirm the parameter definitions.
- Public key, 800 bytes: This is the value a party sends when it offers a key exchange share, so it sets the floor for the size of a key share message.
- Secret key, 1632 bytes: This is stored locally by the party that holds the decapsulation key. It affects memory and storage on devices that keep long-term key material.
- Ciphertext, 768 bytes: This is the response sent back to the key share holder, and it is the value that changes the size of the server's reply.
- Shared secret, 32 bytes: This is the output of a successful exchange. It is fixed in length, which the IETF draft also relies on for its hybrid groups.
- Hybrid use: The IETF draft draft-ietf-tls-ecdhe-mlkem-05 does not pair ML-KEM-512 with any hybrid group in the sources supplied for this page, so a deployment that wants ML-KEM-512 in a hybrid handshake should confirm its support in the draft or the implementation documentation.
Before relying on these figures, confirm the byte counts against the datasheet and the standard for the exact liboqs version you run, since the datasheet is the source for the numbers shown here.
ML-KEM-768 sits in the middle of the family and is the parameter set used by the main hybrid TLS group in the IETF draft. The liboqs ML-KEM datasheet lists it with a claimed NIST security level of 3 and these sizes: a public key of 1184 bytes, a secret key of 2400 bytes, a ciphertext of 1088 bytes and a shared secret of 32 bytes. The same datasheet links NIST FIPS 203 as the reference.
- Public key, 1184 bytes: The IETF draft uses this value as the ML-KEM part of its client share, which adds 32 bytes of X25519 for a 1216-byte client share in X25519MLKEM768.
- Ciphertext, 1088 bytes: The IETF draft uses this value as the ML-KEM part of the server share, which adds 32 bytes of X25519 for a 1120-byte server share.
- Secret key, 2400 bytes: This is held by the decapsulating party and matters for storage, not for the handshake messages themselves.
- X25519MLKEM768, codepoint 4588 (0x11EC): The draft marks this group Recommended and DTLS-OK, and it produces a 64-byte shared secret, which is the ML-KEM 32 bytes combined with the X25519 32 bytes.
- SecP256r1MLKEM768, codepoint 4587 (0x11EB): This group also uses ML-KEM-768. The draft gives it a 1249-byte client share and a 1153-byte server share, and marks it not Recommended.
When sizing packets for X25519MLKEM768, use the 1216 and 1120 byte shares from the draft and confirm them against the version of the draft your stack implements, since later revisions may change these values.
ML-KEM-1024 is the largest ML-KEM parameter set and carries the highest claimed NIST security level in the family, level 5. The liboqs ML-KEM datasheet lists it with a public key of 1568 bytes, a secret key of 3168 bytes, a ciphertext of 1568 bytes and a shared secret of 32 bytes. The datasheet links NIST FIPS 203 as the reference for these parameters.
- Public key, 1568 bytes: This is the largest public key of the three sets, and it increases the size of any key share that carries it.
- Ciphertext, 1568 bytes: The ciphertext returned to the key share holder is also 1568 bytes, so the reply is larger than the ML-KEM-768 reply.
- Secret key, 3168 bytes: Storage for the decapsulation key is roughly twice the size of the ML-KEM-512 secret key, which matters on constrained systems.
- SecP384r1MLKEM1024, codepoint 4589 (0x11ED): The IETF draft pairs ML-KEM-1024 with the P-384 curve in this group. The draft gives it 1665-byte client and server shares and an 80-byte shared secret.
- Recommended status: The draft marks SecP384r1MLKEM1024 as not Recommended. Teams that want ML-KEM-1024 in a hybrid TLS handshake should check the current Recommended status in the draft before selecting it.
Because the draft gives no performance figures, the size values here are the only numbers available for this set, and any handshake time or CPU use claims need separate measurements in your own environment.
How to check the key share sizes in your own handshake
This sequence shows how to confirm which hybrid group your TLS stack negotiates and measure the key share it actually sends, so you can compare the observed length with the byte figures in the draft. It also tells you whether the resulting handshake fits your buffer and packet limits, and which draft version your library implements.
Confirm the negotiated named group
Start by finding out which named group your TLS library and server agree on for the key exchange. Configure the client to offer the hybrid group X25519MLKEM768, which the draft defines with codepoint 4588 (0x11EC), and check the group that appears in the ServerHello. Most TLS libraries and debugging tools report the selected group name in their handshake logs or verbose output. You know this step is done when the negotiated group matches the one you intended to test. If the server selects a different group, or none of the hybrid groups, record that result, because the key share you measure later will not be the hybrid one. Confirm the exact group names and codepoints your library supports in its own documentation.
Capture the key share lengths on the wire
Next, capture the handshake and measure the key_share extension sent by the client and returned by the server. A packet capture tool or the TLS library's debug output can show the length of each key share entry. Compare these observed lengths with the draft's figures for X25519MLKEM768: a 1216-byte client share (1184 bytes of ML-KEM-768 plus 32 bytes of X25519) and a 1120-byte server share (1088 bytes of ML-KEM ciphertext plus 32 bytes of X25519). You know this step is done when you have a recorded length for each share and can line it up against the draft's figures. Any mismatch should be investigated before you draw conclusions, because it can point to a different group, a different draft version, or a library that encodes the share differently.
Check the shared secret length
Verify that the shared secret derived during the exchange matches the length the draft specifies for the group you tested. For X25519MLKEM768 the draft gives a 64-byte shared secret. Most TLS libraries do not expose the raw shared secret directly, so check this through your library's documentation or its test vectors, or with a test harness that exposes the key schedule inputs. You know this step is done when you have confirmed the length or have recorded that your library does not expose it and where you looked. Do not assume the length from another group, because the draft lists different shared secret sizes for the other hybrid groups.
Test the handshake against your buffer and packet limits
Using the observed client and server share lengths, check that the full handshake fits within the buffers and packet sizes in your environment. Review the TLS record size limits, the receive buffers in your client and server code, and any packet size limits imposed by load balancers, firewalls or other middleboxes on the path. Also confirm whether your deployment carries these handshakes over DTLS, since the draft marks X25519MLKEM768 as DTLS-OK. You know this step is done when you have written down each limit you checked and whether the observed handshake fits within it. If a limit is exceeded, note the component and its configuration so the owning team can review it. The sources listed on this page do not give a general packet size threshold, so confirm the figures for your own network.
Run the test against your own client and server pair
Repeat the measurement with your own client and server pair, because the sizes you see depend on the software versions and configuration you actually run. Set up a test connection between the two, force the hybrid group, and record the handshake lengths for each run. Where possible, include the component versions in your record. You know this step is done when you have at least one recorded handshake from the pair you intend to deploy, along with its group name, share lengths and version details. Results from a different client or server implementation may differ, so do not generalize from another pair without testing it.
Ask which draft version your library implements
Finally, ask your TLS library or vendor which version of the draft they implement, and whether the figures they use match the draft you are comparing against. The draft you have been reading, draft-ietf-tls-ecdhe-mlkem-05, is dated 26 May 2026 and expires 27 November 2026, so the implementation may be based on a different revision. Request the draft version, the codepoint they use and the key share sizes they document, and compare these with your measurements. You know this step is done when you have a written answer from the vendor or library maintainers, or a note that they have not published one. Do not assume that two versions are interoperable unless the vendor confirms it for the versions you run.
What the sizes do not tell you about handshake speed
The sizes in this reference describe what goes on the wire, not how long a handshake takes. The IETF draft that defines the hybrid group X25519MLKEM768 and its related groups, draft-ietf-tls-ecdhe-mlkem-05, makes no performance or benchmark claims. It states only that all of its groups use fixed-length public keys, ciphertexts and shared secrets. A reader should not infer from the byte counts that one group will complete a handshake faster or slower than another, or by how much.
The sources listed on this page do not publish handshake latency or CPU figures for hybrid key exchange, and they do not give connection timings for classical key exchange to compare against. Any measured result depends on the hardware on both client and server, the cryptographic library and its build options, the TLS stack and its configuration, and the network path, including round-trip time, packet loss and any middlebox that inspects handshake messages. Two deployments running the same group can produce very different numbers.
Before committing capacity or a rollout date, run your own measurements on hardware and network conditions that match production. Time the full handshake and record CPU use per connection for the classical group and for each hybrid group you plan to offer, using the same library version and settings on both sides. Confirm the library and TLS stack version you run supports the group you intend to enable. For published benchmark results, check the vendor or project documentation for the platform and settings used, and treat them as inputs to your own tests rather than as a substitute for them.
Questions about hybrid TLS key share sizes
How big is the X25519MLKEM768 client key share in bytes?
The X25519MLKEM768 client key share is 1216 bytes. It is the 1184-byte ML-KEM-768 public key plus the 32-byte X25519 public key. The draft-ietf-tls-ecdhe-mlkem-05 Internet-Draft, dated 26 May 2026, defines this size and marks the group Recommended with codepoint 4588 (0x11EC). The server share is 1120 bytes, made up of the 1088-byte ML-KEM-768 ciphertext and the 32-byte X25519 public key. Because the client share is sent in the first handshake message, its size affects how much data the first flight carries. Check the figures against the draft and the implementation you run, since a library may send a different encoding.
What is the 64-byte shared secret in X25519MLKEM768?
The 64-byte shared secret is the combined output of the hybrid key exchange, not a single algorithm's output. The draft defines it as the value that both sides derive from the X25519 exchange and the ML-KEM-768 encapsulation together. ML-KEM-768 alone produces a 32-byte shared secret according to the OQS liboqs ML-KEM datasheet, which lists 32 bytes for each of the three parameter sets. The 64-byte figure is therefore the hybrid total from the draft, not the ML-KEM output. The draft does not describe how the two parts are combined, so read its key schedule section and the TLS 1.3 specification for that detail.
How does X25519MLKEM768 compare with the groups marked not Recommended?
The draft marks SecP256r1MLKEM768 and SecP384r1MLKEM1024 as not Recommended, while X25519MLKEM768 is Recommended. The client share for SecP256r1MLKEM768 is 1249 bytes, and its server share is 1153 bytes. Its shared secret is 64 bytes. The client share for SecP384r1MLKEM1024 is 1665 bytes, with the same size for the server share and an 80-byte shared secret. Compared with the 1216-byte X25519MLKEM768 client share, both not Recommended groups send more bytes in the first flight. The draft gives these sizes only and says nothing about performance, so measure the handshake yourself before choosing a group.
Which ML-KEM parameter set does the 1665-byte group use?
The 1665-byte group, SecP384r1MLKEM1024 with codepoint 4589 (0x11ED), uses ML-KEM-1024. The OQS liboqs ML-KEM datasheet lists ML-KEM-1024 as the level 5 parameter set, with a 1568-byte public key, a 3168-byte secret key, a 1568-byte ciphertext and a 32-byte shared secret. The 1665-byte client and server shares from the draft are the hybrid totals that combine a P-384 public key with the ML-KEM-1024 public key and ciphertext. The draft marks this group not Recommended. Confirm the parameter set and sizes in the draft text for the version your stack implements.
Do the sources report handshake latency for hybrid key exchange?
No. The sources listed on this page do not report handshake latency, round-trip time or CPU time for hybrid key exchange. The draft draft-ietf-tls-ecdhe-mlkem-05 makes no performance or benchmark claims. It states only that all of its groups use fixed-length public keys, ciphertexts and shared secrets. The OQS liboqs datasheets list key and ciphertext sizes but not timing. Latency depends on the network path, the server and client hardware, the TLS library and whether the handshake is resumed, so you will need to benchmark your own setup. Ask any vendor for its test conditions before you rely on a published figure.
Why does the size of the client key share matter for a TLS handshake?
The client key share travels in the ClientHello, which is the first message of the TLS handshake. A larger share increases the amount of data the client sends before the server replies. The sources give the sizes but do not say how this affects handshake time, so the impact depends on your network and packet limits. The X25519MLKEM768 client share is 1216 bytes, and the not Recommended groups send 1249 and 1665 bytes. Packet fragmentation, middlebox behavior and the initial congestion window can all change the outcome. Test the handshake from the networks your clients use.
Can we test hybrid TLS handshake performance ourselves?
Yes. A test needs a TLS client and server that support the groups you want to measure, a controlled network and a clear measurement method. Record the time from the first ClientHello to the completed handshake, and repeat each run enough times to see the spread. Include both full handshakes and resumed ones if your service uses them. Record the CPU use of the server during the test and note the library versions, since the draft is still an Internet-Draft and implementations may change. DeployOpen can plan and run this kind of test as a fixed-scope engagement when your team wants outside help with the setup.
Where the key share bytes travel in a TLS 1.3 handshake
The diagram follows the two key shares that make up the hybrid group X25519MLKEM768 during the TLS 1.3 handshake. The client sends its share in the ClientHello, which the draft sizes at 1216 bytes (1184 bytes of ML-KEM-768 public key plus 32 bytes of X25519). The server returns its share in the ServerHello at 1120 bytes (1088 bytes of ML-KEM-768 ciphertext plus 32 bytes of X25519), and both sides derive a 64-byte shared secret. Check these figures against the draft version your stack implements, because the draft makes no performance claims and says only that the sizes are fixed.
Key share sizes for X25519MLKEM768 in the TLS 1.3 handshake, per the IETF draft.
How DeployOpen works on this
DeployOpen approaches TLS handshake latency with hybrid post-quantum key exchange by first measuring the handshake in your own environment, then configuring and testing the hybrid groups your servers and clients support. Each step is written down so your security and platform teams can review it and repeat it later.
How we scope
- We confirm which TLS endpoints, load balancers and clients will offer hybrid key exchange, and which will stay classical.
- The written scope states what we measure, which libraries and versions are in use, and which handshake changes are in or out.
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before any work starts.
How we build
- We configure the hybrid group X25519MLKEM768 on the endpoints that support it, using the codepoint defined in the IETF draft.
- We check that clients negotiate the hybrid group and fall back cleanly to classical key exchange where they do not.
- We test handshake time and CPU use per connection against your baseline, and record the results with the exact versions tested.
How we hand over
- You receive the configuration, the test scripts and the measured handshake results for each endpoint in scope.
- The documentation records which groups are enabled, which clients were tested and any clients that did not negotiate the hybrid group.
- Your team can rerun the same tests after upgrades, so latency changes are visible before they reach production.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer, covering library and TLS stack updates.
- Retainers can include retesting handshake latency when server, library or client versions change.
- Quotes follow from the written scope, so ask for the scope, deliverables and retainer terms before committing.

