EB-BENCH v1.0 · OPEN EMPIRICAL LAB

X25519 vs. NIST ML-KEM-768 (FIPS 203)

Replacing classical elliptic-curve key agreement (X25519) with NIST Post-Quantum ML-KEM-768 changes two things: key-exchange payload size increases by ~2.3 KB under RFC 10024 hybrid TLS, while lattice arithmetic in real browsers costs only fractions of a millisecond.

1. Live Browser Key-Exchange Speed Probe

Measure local X25519 derivation throughput alongside NIST FIPS 203 ML-KEM-768 key encapsulation + decapsulation directly inside a zero-network Web Worker.

Check this browser's TLS handshake →
Ready. Runs audited FIPS 203 KEM + X25519 locally.
Key Exchange Runtime Ops / sec Median CV Wire
X25519 (Classical ECDH) WebCrypto / Noble Click run — — 64 B
ML-KEM-768 (FIPS 203 Encaps+Decaps) Pure-ESM Click run — — 2,272 B

2. Exact RFC 10024 Wire Size Breakdown

Group / Protocol ClientHello Share ServerHello Share Total Key Share
X25519 (Classical Baseline) 32 bytes 32 bytes 64 bytes
ML-KEM-768 (Standalone FIPS 203) 1,184 bytes 1,088 bytes 2,272 bytes
X25519MLKEM768 (RFC 10024 Hybrid TLS) 1,216 bytes 1,120 bytes 2,336 bytes

3. TCP initcwnd, QUIC MTU & Middlebox Interference

  • TCP / HTTPS: Modern servers default to 10-segment initial congestion windows (~14,600 B), so a 1,216-byte X25519MLKEM768 ClientHello rarely adds any round-trip delay over TLS 1.3.
  • QUIC / HTTP/3: UDP Initial datagrams target a ~1,200–1,280 byte IPv6 MTU ceiling. ML-KEM-768 fits close to a single packet/pair boundary, whereas larger ML-KEM-1024 (1,568 B) forces immediate multi-datagram fragmentation.
  • Legacy Middlebox Friction: Unpatched stateful firewalls and DPI appliances inspecting TLS ClientHello packets above ~1.5 KB can occasionally reset connections until updated for RFC 10024 extension lengths.

4. Recommended Deployment Standard

Major browsers (Chrome, Firefox, Safari) and edge CDNs now negotiate hybrid X25519MLKEM768 by default on TLS 1.3. Pairing classical ECDH with FIPS 203 ML-KEM-768 guarantees security even if either primitive is broken later, defending against "harvest now, decrypt later" collection with negligible latency cost.

5. Cite This Monograph (BibTeX & Markdown)

BibTeX
@techreport{encryptbench2026kem,
  title       = {X25519 vs. NIST ML-KEM-768 (FIPS 203): Wire Size \& Hybrid TLS Latency},
  author      = {{EncryptBench Empirical Lab}},
  year        = {2026},
  month       = nov,
  institution = {EncryptBench},
  note        = {EB-Bench v1.0 Monograph CMP-03, zero-upload connect-src none harness},
  url         = {https://encryptbench.com/compare/x25519-vs-ml-kem-768/}
}
Markdown
[X25519 vs. NIST ML-KEM-768 (FIPS 203): Wire Size & Hybrid TLS Latency](https://encryptbench.com/compare/x25519-vs-ml-kem-768/) — *EncryptBench Empirical Lab* (EB-Bench v1.0 Monograph CMP-03, Nov 2026).