WeaveTLS: High-Throughput Cross-Connection ML-DSA Authentication in Mutual TLS
Batches concurrent ML-DSA authentications across TLS connections in nginx mTLS, keeping the wire protocol unchanged, to raise post-quantum handshake throughput.
Schemes: ML-DSA, ML-DSA-44, ML-DSA-65, ML-DSA-87
Findings (quotes checked against the source text)
-
Mutual TLS authenticates both peers, so ML-DSA signature cost is paid on every connection.
Mutual TLS (mTLS) authenticates both peers and therefore incurs post-quantum signature costs on every connection.
-
WeaveTLS batches ML-DSA authentication across concurrent TLS connections while keeping the wire format.
We present WeaveTLS, a wire-transparent architecture that executes ML-DSA authentication across concurrent TLS connections.
-
A stackless OpenSSL continuation lets nginx suspend and run compatible ML-DSA operations in 1-, 4-, or 8-request AVX-512 kernels without fibers or thread handoff.
A stackless OpenSSL continuation lets an nginx worker suspend authentication, expose work from other connections, and execute compatible operations through optimized single-request, four-request, or eight-request AVX-512 kernels without fibers or cross-thread handoff.
-
WeaveTLS preserves the TLS authentication barrier, certificate validation, and wire protocol.
WeaveTLS preserves the TLS authentication barrier, certificate validation, and wire protocol.
-
Cohort publication reduces client-visible rejection timing leakage under load, but singleton execution still leaks the signal.
Cohort publication also weakens client-visible rejection timing under load, reducing attempt-count/latency correlation to 0.063 at concurrency 16 and 0.008 at 64; singleton execution retains the signal.
Numbers (as extracted, not quote-checked)
- one-core nginx mTLS throughput gain over OpenSSL default ML-DSA path: 2.81-4.31x
- one-core nginx mTLS throughput gain over synchronous reference-C control: 2.19-3.29x
- attempt-count/latency correlation at concurrency 16: 0.063
- attempt-count/latency correlation at concurrency 64: 0.008
- ML-DSA-65 signing speedup from rejection-aware refill vs lockstep scheduling: 1.90x
- expanded-key eight-request verification speedup vs matched cached AVX2: 1.65-2.23x
For builders
Batching PQ signature verification and signing across concurrent connections, with rejection-aware refill, is a practical way to cut ML-DSA server cost without changing the protocol.
Limits
Abstract only; full text not read. Benchmarks are a single Ryzen 9 9950X3D and nginx/OpenSSL. It is TLS mTLS, not a blockchain design, and the AVX-512 kernels are platform-specific.
Topics: sig-lattice benchmarks