Skip to content

BoringSSL ML-KEM defaults support #2553

Done

Description

@divVerent

BoringSSL changed its defaults in its commit google/boringssl@e748fac to now enable SSL_GROUP_X25519_MLKEM768 by default.

This however breaks Quiche's test suite.

As a stopgap, one can of course just disable ML-KEM in the test suite, e.g. by inserting

                let curves = std::ffi::CString::new("X25519:P-256:P-384").unwrap();
                bssl_sys::SSL_CTX_set1_curves_list(ctx_raw as *mut _, curves.as_ptr());

at https://github.com/cloudflare/quiche/blob/master/quiche/src/tls/mod.rs#L141, conditionally for tests only - but that's not super great, as it means the test suite runs without PQC coverage.

The problem is just that when changing that default, all the byte lengths of the ClientHello in various tests change, making the change rather involved. I would however suspect that a6c4dff might be changing the exact set of places that need updating from this?

Activity

  1. added
    type: bugfix
    area: tls
    on Nov 24, 2026
  2. ghedo commented on Nov 25, 2026

    @ghedo
    Member

    Fixed by #2446 (1372018), released in 0.30.0. It made boring 5.2 the default, which enables post-quantum key shares such as X25519MLKEM768, and updated the tests to expect them. Only tests that need a single-Initial ClientHello disable them through Config::set_curves_list().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: tlstype: bugfix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions