Skip to content

feat: add TLS support for X25519MLKEM768 - #792

Open
mmcgill-supabase wants to merge 1 commit into
mainfrom
mmcgill/enable-hybrid-pqc-key-exchange
Open

mmcgill-supabase wants to merge 1 commit into
mainfrom
mmcgill/enable-hybrid-pqc-key-exchange

Conversation

@mmcgill-supabase

Copy link
Copy Markdown
Contributor

Compile aws-lc-rs into the binary alongside ring, which remains the default. Set

EDGE_RUNTIME_TLS_CRYPTO_PROVIDER=aws-lc-rs

to globally register aws-lc-rs with X25519MLKEM768 as the prefered key exchange group.

Addresses #791.

Compile aws-lc-rs into the binary alongside ring, which remains the default.
Set EDGE_RUNTIME_TLS_CRYPTO_PROVIDER=aws-lc-rs to globally register aws-lc-rs
with X25519MLKEM768 as the prefered key exchange group.

Addresses #791.
@mmcgill-supabase
mmcgill-supabase force-pushed the mmcgill/enable-hybrid-pqc-key-exchange branch from b3fb96c to 0e78651 Compare December 3, 2026 18:43
@mmcgill-supabase

Copy link
Copy Markdown
Contributor Author

In addition to the integration test, the following main worker serves as a simple smoke test:

const targets = [
  'https://pq.cloudflareresearch.com/cdn-cgi/trace',
  'https://www.cloudflare.com/cdn-cgi/trace',
];

Deno.serve(async () => {
  const lines = await Promise.all(targets.map(async (url) => {
    try {
      const text = await (await fetch(url)).text();
      const kex = text.split('\n').find((l) => l.startsWith('kex=')) ?? 'kex=<missing>';
      return `${url} ${kex}`;
    } catch (err) {
      return `${url} ERROR ${err}`;
    }
  }));
  return new Response(lines.join('\n') + '\n');
});

With EDGE_RUNTIME_TLS_CRYPTO_PROVIDER=aws-lc-rs, we get kex=X25519MLKEM768 for both sites.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant