Does BoringSSL post-quantum key exchange work with the clients and peers you have?
If you run BoringSSL-based servers or clients that must talk to older clients, partner systems or middleboxes, the first question is whether the X25519MLKEM768 hybrid key exchange will even be negotiated with them. In the main branch of BoringSSL as read on 2026-12-03, the hybrid is used only under TLS 1.3. Below TLS 1.3, the source code excludes post-quantum groups from negotiation, with a comment that post-quantum key agreements do not fit in the one-byte length-prefixed point field used by TLS 1.2 and earlier. Default clients also send large post-quantum key shares in the first ClientHello, whether or not the server is known to support them. Those larger packets can cause handshake failures with some peers and middleboxes, and the Chromium team flagged this risk when it shipped the earlier Kyber hybrid in 2024.
The sources listed for this page do not describe compatibility outside TLS 1.3, so do not assume older protocol versions behave any differently from what the code shows. Operators of BoringSSL-based services should care most, and so should anyone whose clients reach those services through legacy networks, inspection devices or load balancers that were not built for large handshake messages. Confirm two things with your own tests: whether the peers you depend on negotiate TLS 1.3, and whether the handshake completes when the ClientHello carries the larger key share. The Go 1.24 release notes describe a tlsmlkem=0 setting for servers that time out on large records, which shows the failure pattern is real even outside BoringSSL, so plan a fallback path before rollout.
Which BoringSSL behaviors apply to which versions and settings
This table lists each post-quantum behavior in BoringSSL by TLS version, group, codepoint and default, with the source and date for each row. It reflects the main branch as read on 2026-12-03, and the sources do not state how any of these behaviors differ in released versions, so confirm release-version behavior with the project before relying on a row for a deployed build.
| Behavior | Setting or value | Applies to | Source and date |
|---|---|---|---|
| Post-quantum groups below TLS 1.3 | Excluded from negotiation | TLS 1.2 and below | BoringSSL extensions.cc, read 2026-12-03 |
| Main-branch hybrid group | X25519MLKEM768, codepoint 0x11EC (4588) | TLS 1.3, main branch | BoringSSL extensions.cc and ssl.h; RFC 10024, read 2026-12-03 |
| Earlier Kyber hybrid | Codepoint 0x6399 (25497 draft entry), X25519 placed first | Chrome before 131, older draft code | Google Security Blog, 2024-09-13; RFC 10024 |
| Default supported groups | X25519MLKEM768, X25519, P-256, P-384 in that order | Main branch default list | BoringSSL ssl_key_share.cc, read 2026-12-03 |
| Default client key shares | At most two groups, at most one post-quantum | Main branch default client behavior | BoringSSL ssl.h comment, read 2026-12-03 |
| Server group selection | First server-listed group the client supports, unless equal-preference flag is set | Server negotiation, main branch | BoringSSL extensions.cc (tls1_get_shared_group), read 2026-12-03 |
| Chrome 131 codepoint change | 0x6399 stopped; 0x11EC used, not both at once | Chrome 131 and later clients | Google Security Blog, 2024-09-13 |
| Release-version behavior | Not stated in the sources | Released BoringSSL builds | Confirm with the project before relying on any row |
Which parts of BoringSSL the compatibility question touches
Hybrid post-quantum key exchange changes how BoringSSL builds the ClientHello, picks a shared group and applies configuration. The six areas below are where a compatibility problem with an older client, peer or middlebox would show up, and each one names the header or source file to check.
TLS 1.3 handshake and key share ordering
Post-quantum groups only exist in TLS 1.3. BoringSSL's extensions.cc skips them below that version, because the post-quantum key agreements do not fit the u8-length-prefixed ECPoint field used by TLS 1.2 and earlier. For interoperability, a peer that negotiates TLS 1.2 will never use X25519MLKEM768, so the test has to force both versions. Check the key share list in the ClientHello with a packet capture, since the ML-KEM-768 share is about 1184 bytes and can change the record size a middlebox sees. Sources: extensions.cc and ssl_key_share.cc.
extensions.cc sourceServer-side group selection order
The function tls1_get_shared_group in extensions.cc walks the server's own group list in order and stops at the first group the client also supports, unless the group carries the equal-preference flag. The server's list order decides the outcome, not the client's. An operator who moves X25519 ahead of X25519MLKEM768 on the server will stop hybrid negotiation with clients that would otherwise support it. Confirm the order with SSL_CTX_set1_groups_list in ssl.h and test with a client that advertises only the classical groups.
ssl.h headerDefault supported group list
On the main branch as read on 2026-12-03, the default supported groups are X25519MLKEM768, X25519, P-256 and P-384, in that order. The named group table also lists P-521 and MLKEM1024, but they are not in the default list. For interoperability, a build that relies on defaults will advertise the hybrid group first, so a peer with a buggy hybrid implementation will see it before any classical group. Use SSL_CTX_set1_group_ids with an explicit list if you need a different set. Source: ssl_key_share.cc.
Protocol version range settings
SSL_CTX_set_min_proto_version and SSL_CTX_set_max_proto_version set the version range that the context will negotiate. A value of zero selects the default, which ssl.h documents as TLS 1.2 for the minimum. Because post-quantum groups never negotiate below TLS 1.3, a context capped at TLS 1.2 silently removes hybrid key exchange, and the handshake falls back to a classical group. Check the range in each context before testing, and confirm the negotiated version in the connection log. Source: ssl.h.
ssl.h headerCipher list calls that skip TLS 1.3
SSL_CTX_set_cipher_list and SSL_CTX_set_strict_cipher_list do not affect TLS 1.3 cipher suites. ssl.h says TLS 1.3 ciphers are configured through a separate set of functions, and SSL_DEFAULT_CIPHER_LIST is defined as "ALL". An operator who tightens the cipher list to meet a policy may believe TLS 1.3 is restricted when it is not. For interoperability and policy checks, record the TLS 1.3 suites and the group list separately, because a cipher list review will not show them. Source: ssl.h.
ssl.h headerCustom certificate verification path
Applications that use the CRYPTO_BUFFER APIs must implement their own verification through SSL_[CTX_]set_custom_verify, as PORTING.md states. The callback replaces the default chain checks, so a change in peer key type or signature algorithm reaches application code rather than the library's default path. Test the callback with each certificate type your peers present, including any that use ML-DSA or other new signature algorithms. Sources: ssl.h and PORTING.md.
PORTING.mdHow the compatibility risk differs by who the peer is
Peers that negotiate TLS 1.3 are the case BoringSSL is built for. The main-branch code offers X25519MLKEM768 first in the default group list and sends one post-quantum key share alongside one classical share, so a modern peer can select the hybrid group without a separate configuration step. Chromium moved its hybrid codepoint from Kyber (0x6399) to X25519MLKEM768 (0x11EC) in Chrome 131, and RFC 10024 now assigns 4588 (0x11EC) to X25519MLKEM768. Peers that have not updated to that codepoint will not match the hybrid group and fall back to a classical exchange.
- Group ordering: BoringSSL walks the server's own group list in order and stops at the first client-supported match, so the server's preference decides which hybrid group is chosen.
- Codepoint alignment: A peer still offering the draft Kyber codepoint will not negotiate with a server that dropped it, since Chrome 131 stopped supporting both at once.
- Key share size: Key shares for ML-KEM-768 are large (public key 1184 bytes), and the sources note the default client sends at most one post-quantum share.
- Verification step: Test a connection from each client build you serve and record the negotiated group with a handshake log.
Confirm the negotiated group against each modern client population you support before enabling hybrid groups for all traffic.
BoringSSL does not negotiate post-quantum groups below TLS 1.3. The extensions code skips post-quantum groups for older protocol versions, with a comment that post-quantum key agreements do not fit in the one-byte length-prefixed ECPoint field used by TLS 1.2 and below. A client that advertises only TLS 1.2 or lower therefore never receives a post-quantum key exchange from BoringSSL, whatever the server's group list says. The sources do not describe a fallback behavior for these clients beyond the classical groups the server still supports, so confirm this against your own handshake traces.
- Protocol floor: The minimum protocol version defaults to TLS 1.2 unless you set it with SSL_CTX_set_min_proto_version.
- Classical fallback: Clients on TLS 1.2 keep using P-256, P-384 or X25519 as before, which the group table still lists.
- Configuration check: Confirm the minimum version in your server config, since a version of zero selects the default rather than a stricter floor.
- Cipher lists: Cipher list functions such as SSL_CTX_set_cipher_list do not affect TLS 1.3, so TLS 1.3 policy needs its own settings.
Identify how many of your clients still advertise TLS 1.2 as their highest version before you plan any change to the protocol floor.
Middleboxes such as inspection devices and load balancers sit between the client and the server and can react to the larger handshake. The 2024 Chromium intent to ship says post-quantum ciphers are larger and may cause compatibility issues with middleboxes. Google Cloud warns that middleboxes might fail the handshake because of larger packets. The sources describe the risk but do not name specific device models or firmware versions that fail, so any list of affected devices must come from your own testing.
- Key share size: The Chromium intent says key shares are about 35 times larger than X25519 and are sent in the first ClientHello whatever the server supports.
- Handshake latency: The same intent reports a 4 to 6 percent increase in TLS handshake latency, which it describes as largely in the noise on desktop but more noticeable on Android.
- Inspection appliances: TLS inspection devices that parse or rewrite the ClientHello are the most likely place to see failures, and the sources do not say which products are affected.
- Packet size: Larger ClientHello messages can span more packets, which can expose devices that handle only a single packet per handshake message.
Test the handshake through each inspection device and load balancer in your path, and confirm with each vendor how their product handles larger ClientHello messages.
Some clients and servers mishandle large TLS records, and this is the case the sources document most directly. Google Cloud warns that buggy clients advertising ML-KEM might not tolerate the post-quantum key agreement. The Go 1.24 release notes give a concrete example: the GODEBUG setting tlsmlkem=0 reverts the X25519MLKEM768 default for buggy TLS servers that do not handle large records and time out the handshake. This shows that failures can appear on the server side as well as the client side, and that a workaround exists in at least one runtime.
- Symptom: The Go release notes describe a handshake timeout as the visible result when a server cannot handle the larger record.
- Workaround in Go: Setting tlsmlkem=0 turns off the X25519MLKEM768 default in Go 1.24, which shows the kind of per-peer opt-out a team may need.
- Scope of the example: The Go example concerns Go's TLS stack and its servers, not BoringSSL itself, so do not assume BoringSSL behaves the same way.
- Discovery: The sources do not list which specific client or server versions are buggy, so identify them through your own failure logs.
When a connection times out only after the hybrid group is offered, record the peer's implementation and version and test whether a classical-only group list resolves the failure.
Where the larger key share travels in a TLS 1.3 handshake
The diagram starts at a client whose ClientHello carries a post-quantum key share (X25519MLKEM768) alongside a classical X25519 share, since BoringSSL sends one of each by default. The hello may pass through an optional middlebox, then reaches the BoringSSL server, which picks the first group in its own list that the client also supports, so the server's order decides the outcome. Two branches need checking: a TLS 1.2 peer, which excludes post-quantum groups entirely, and a buggy peer or middlebox that can fail on the larger packet. Test both paths before enabling hybrid key exchange in production.
Hybrid key share path from client through middlebox to a BoringSSL server.
What to test before enabling post-quantum key exchange on BoringSSL
This sequence tells you which peers, versions and middleboxes will meet a hybrid post-quantum key share from your BoringSSL build, and what to change if they fail. Each step ends with a recorded check, so the decision to restrict groups or set a version floor rests on observed handshakes rather than assumptions.
Inventory peers, versions and middleboxes
Start by listing every client, peer and network device that reaches the service over TLS. For each one, record the client or library name and version, the TLS versions it supports, and any inspection appliance, load balancer or proxy on the path. Older clients and TLS 1.2-only peers are the most likely to fail, so flag them first. The step is complete when the list covers every path into the service and a named owner has confirmed each entry. Confirm with the vendor or in each device's documentation which TLS versions it negotiates, since the sources on this page do not give those details for third-party products.
Confirm negotiated versions and groups in your build
Using the configuration functions in ssl.h, check the protocol range your build allows with SSL_CTX_set_min_proto_version and SSL_CTX_set_max_proto_version, and check the key exchange groups with SSL_CTX_set1_group_ids or SSL_CTX_set1_groups_list. The main branch, as read on 2026-12-03, defaults to X25519MLKEM768, X25519, P-256 and P-384 in that order, but your build may differ, so read the group list from your own configuration. Note that post-quantum groups are excluded below TLS 1.3, and that the default client logic sends at most one post-quantum key share. The step closes when you have written down the protocol floor and the ordered group list the build will actually offer.
Test handshakes with TLS 1.2-only clients
Run handshakes from a TLS 1.2-only client against a test instance of the build. Because post-quantum groups are not negotiated below TLS 1.3, the expected result is a successful fallback to a classical exchange, and the check is whether the handshake completes with no post-quantum group selected. Record the negotiated version and group for each attempt. A failure here points to a configuration or client problem that must be resolved before enabling the feature. The step closes when every TLS 1.2-only test client in your inventory completes a handshake and its result is logged.
Test handshakes with older clients in the inventory
Repeat handshake tests using the older clients from your inventory, including any client versions that advertise post-quantum support but may handle it poorly. Google Cloud's announcement warns that buggy clients advertising ML-KEM might not tolerate the key exchange, so test those clients explicitly rather than assuming the fallback works. Capture the negotiated version, group and any error for each client. The step closes when each older client either completes a handshake or has a documented failure with its name and version attached.
Test through each middlebox on the path
Send test handshakes through every inspection appliance, load balancer and proxy identified in step one. The Chromium intent to ship notes that post-quantum key shares are much larger than X25519 and can cause compatibility problems with middleboxes, and Google Cloud reports that middleboxes can fail the handshake because of larger packets. Look for stalled or dropped handshakes, truncated records and timeouts, and compare results with and without the device in the path where you can. The step closes when each middlebox has a recorded result for a full handshake and any failure has a named device and firmware version.
Decide whether to restrict groups or set a version floor
Based on the results from the previous steps, decide whether the build should keep post-quantum groups in its offered list or restrict the list to classical groups for specific peers. You can also raise the minimum protocol version so that only TLS 1.3 peers reach the hybrid exchange. Note that the Go 1.24 release notes describe a runtime setting for reverting a post-quantum default when servers cannot handle large records, which shows a similar fallback pattern exists in other stacks; check how your own deployment would apply any restriction. The step closes with a written decision stating the chosen group list, version floor and the peers each choice affects.
Record test results and the build used
Write up the test outcomes in a single record that names the BoringSSL revision or commit used, the build configuration, the group list and version floor, every client and middlebox tested, and the result of each handshake. Date the record, because the main branch and the Chrome and Go behavior described in the sources can change. Include the decision from the previous step and the owner who approved it. The sources on this page do not state whether any post-quantum support is enabled by default in a given release, so confirm that against your own build. The step closes when the record is filed with the change ticket and a reviewer has signed off.
Questions engineers ask about BoringSSL post-quantum compatibility
Is BoringSSL quantum safe for these peers?
The sources support only one post-quantum mode in BoringSSL for these peers: hybrid key exchange in TLS 1.3, using X25519MLKEM768. Hybrid key exchange combines a classical X25519 share with an ML-KEM-768 share, so a connection is only as strong as the post-quantum component is trusted to be, and the sources do not present this as a guarantee. Post-quantum groups are excluded from negotiation below TLS 1.3. The sources also show that certificates and handshake signatures are still built on classical public-key algorithms, and ML-DSA signature support is listed in the sources with an April 2026 commit whose default state the sources do not state. Confirm with your own build which signatures are actually used on your connections.
Will older clients still connect to a BoringSSL server?
Older clients connect only if they negotiate TLS 1.3 and the rest of the handshake completes. The BoringSSL source skips post-quantum groups below TLS 1.3, because post-quantum key agreements do not fit the length-prefixed point field used by TLS 1.2 and below. A TLS 1.2 client therefore falls back to a classical group. A client that does negotiate TLS 1.3 but does not advertise X25519MLKEM768 also falls back to a classical group. Test each client family you support with a real handshake rather than assuming, since the sources do not list which clients are known to work.
Does BoringSSL have a fallback switch for post-quantum key exchange?
The sources do not describe a fallback switch in BoringSSL that disables X25519MLKEM768 while leaving TLS 1.3 intact. The tlsmlkem=0 setting that appears in the Go 1.24 release notes belongs to Go's TLS implementation, not to BoringSSL, and should not be used as a BoringSSL configuration. Group selection is controlled through SSL_CTX_set1_group_ids and SSL_CTX_set1_groups_list, which let you set the supported groups explicitly. Confirm with the project whether removing X25519MLKEM768 from the group list is a supported way to turn off the hybrid, and test the result before relying on it.
What breaks when middleboxes sit between BoringSSL peers?
The sources say post-quantum ciphers are larger and may cause compatibility issues with middleboxes, and that middleboxes may fail the handshake because of larger packets. The key share in the first ClientHello is about 35 times larger than an X25519 share, which increases the chance that a firewall, load balancer or inspection device drops or mishandles the message. Google Cloud also warns that buggy clients advertising ML-KEM might not tolerate the response. Check firewalls, TLS inspection appliances and proxies on the path with test handshakes that include the hybrid group, and watch for timeouts on the first connection attempt.
Has the BoringSSL project published compatibility guidance?
The sources listed on this page do not record any compatibility guidance published by the BoringSSL project for operators. The README says BoringSSL is open source but not intended for general use, discourages third parties from depending on it, and states there are no guarantees of API or ABI stability. Chromium and Google documents discuss compatibility of the hybrid in the context of Chrome clients and Google Cloud load balancers, not as guidance for BoringSSL operators. Ask the project directly, or check its current documentation, before treating any compatibility behavior as settled.
Can our team test BoringSSL post-quantum compatibility ourselves, or do we need outside help?
Your team can test this itself if it has a build of BoringSSL, a set of representative clients and access to the network path. The work is a matrix of handshakes: TLS 1.2 and TLS 1.3 clients, each client family you run, and each middlebox between them, checked with and without the hybrid group. Record the negotiated group and whether each handshake completes. Because BoringSSL is not designed for general use and has no stable API, the effort is mainly in building and maintaining the test environment, not in the handshake logic itself. Outside help is useful when the matrix is large, when middleboxes are hard to change, or when the team needs a retest after each upgrade. Ask any provider to state its scope and deliverables in writing before work starts.
What the BoringSSL project has not published on compatibility
The sources listed on this page describe how BoringSSL negotiates hybrid key exchange, but they leave several compatibility questions open. Each card below names one gap, the source that leaves it open, and what to ask the project or check in the code before relying on a default.
Legacy middlebox guidance
The Chromium intent to ship says post-quantum ciphers are larger and may cause compatibility issues with middleboxes, and Google Cloud warns that middleboxes might fail the handshake because of larger packets. Neither source gives a tested list of middlebox models, firmware versions or inspection products that break. Ask the project whether it has a compatibility matrix for inspection devices, and test your own inspection path with the initial ClientHello size in mind.
Chromium intentDisabling the post-quantum key share
The sources describe a Go runtime switch, tlsmlkem=0, that reverts the X25519MLKEM768 default, but the BoringSSL documentation reviewed here names no equivalent switch in libssl. The ssl.h header controls groups through SSL_CTX_set1_groups_list and SSL_CTX_set1_group_ids, yet it does not say whether excluding the post-quantum group also stops the post-quantum initial key share. Check the group selection code in ssl_key_share.cc and confirm the behavior with the project before treating it as a supported option.
Release date of default-on behavior
The Google Chrome blog dates Kyber hybrid key exchange as enabled by default in Chrome 124, and the Security Blog dates the codepoint change in Chrome 131. Those are browser release dates. The sources do not tie the default-on behavior in the BoringSSL library itself to a specific BoringSSL commit or release. Ask the project which commit made the post-quantum group default in libssl, and check the commit history in ssl_key_share.cc before you cite a date in a customer or audit record.
ML-DSA support and the handshake
A BoringSSL commit titled "Support ML-DSA in libssl" carries an author date of 2026-04-15, and ssl.h defines the SSL_SIGN_ML_DSA values as TLS 1.3 only. The commit page does not say whether the support is enabled by default, and it does not say whether a server that offers ML-DSA changes the handshake a client sees. Check the signature preference code in ssl_privkey.cc and test a handshake with a peer before assuming the signature path has changed.
Which settings can break peers or silently fall back to classical key exchange
The main compatibility risk with BoringSSL's hybrid key exchange is that the first ClientHello carries post-quantum key shares whether or not the server supports them. According to the Chromium intent to ship from March 2024, those key shares are about 35 times larger than X25519, and the same document warns that the larger packets can cause compatibility problems with middleboxes. Google Cloud's load balancer announcement makes the same point from the server side: buggy clients that advertise ML-KEM may not tolerate the post-quantum exchange, and middleboxes may fail the handshake. Go's 1.24 release notes describe the same failure pattern in buggy TLS servers that do not handle large records and time out. Before enabling X25519MLKEM768 for a fleet, test handshakes against representative older clients, proxies and inspection devices in your own network, and confirm whether any of them stall, time out or drop the connection. The sources listed on this page do not say how often such failures occur in production, so measure them in your environment.
A second risk is that post-quantum key agreement exists only at TLS 1.3. The BoringSSL extensions.cc source excludes post-quantum groups from negotiation below TLS 1.3, with a comment that post-quantum key agreements do not fit in the one-byte length-prefixed ECPoint field used by TLS 1.2 and below. A peer that negotiates TLS 1.2 therefore gets a classical exchange and no post-quantum protection, and nothing in the handshake will warn that this happened. Check the minimum and maximum protocol versions set through SSL_CTX_set_min_proto_version and SSL_CTX_set_max_proto_version, and confirm for each important peer population whether TLS 1.3 is actually negotiated. Note also that the default minimum version in ssl.h is TLS 1.2 when the value is zero, so a configuration that leaves it unset still accepts TLS 1.2 peers.
The third risk is group ordering. The function tls1_get_shared_group in extensions.cc walks the server's own group list in order and stops at the first group the client also supports, unless the group carries the equal-preference flag. If a server lists a classical group such as X25519 before X25519MLKEM768, a client that supports both will be matched to the classical group, and the post-quantum exchange is never used. The default supported-group list in BoringSSL's main branch places X25519MLKEM768 first, but a list set through SSL_CTX_set1_groups_list or SSL_CTX_set1_group_ids replaces that default. Treat the configured order as a security setting: after any change, confirm in tests which group is actually negotiated for each client class, using the handshake's reported group rather than the configuration file. Record the result, because a classical fallback produces no error.
How DeployOpen helps teams test post-quantum compatibility on BoringSSL
DeployOpen approaches BoringSSL post-quantum compatibility as a scoped test of your own clients, peers and middleboxes, not as a general upgrade. We start from the key exchange groups your BoringSSL build offers and the first ClientHello it sends, then check how each real counterpart responds. Each engagement is fixed-scope and agreed in writing before work starts.
How we scope
- Confirm the exact BoringSSL version, build and TLS settings the test will cover.
- List the clients, peers, load balancers and middleboxes that connect to your BoringSSL endpoints.
- Agree in writing which key exchange groups and TLS versions each test case must exercise.
How we build
- Set up test endpoints that offer X25519MLKEM768 alongside the classical groups your peers expect.
- Capture ClientHello and ServerHello traffic to measure handshake size, retries and failures.
- Test the GODEBUG-style fallback paths and the default two key share behavior against each counterpart.
How we hand over
- Deliver a compatibility matrix listing each client, peer and middlebox with its observed result.
- Document the exact configuration, version and packet captures behind every finding.
- Flag which counterparts need vendor updates or a rollback setting before any production change.
How we support
- Retest after vendor updates or BoringSSL upgrades to confirm the matrix still holds.
- Offer ongoing support and continuous testing as a retainer, scoped separately from the initial engagement.
- Keep the evidence trail current so your security and vendor-risk teams can review changes over time.

