HqcLethe: Streaming HQC Encapsulation for Tiny Stateless Servers
Streams an HQC KEM encapsulation in packet-sized pieces via CRT-split polynomial multiplication, enabling stateless, memory-bounded HQC key exchange on tiny servers.
Schemes: HQC, Classic McEliece, McTiny, WireGuard, HqcLethe
Findings (quotes checked against the source text)
-
HqcLethe streams an HQC encapsulation in packet-sized pieces using the Chinese remainder theorem, so a stateless server never buffers multi-packet handshakes.
It uses the Chinese remainder theorem to split the polynomial multiplication into independent remainders, one per packet, and masks them so that they reveal no more than an ordinary HQC ciphertext, which we prove in Rocq with SSProve; we also verify session secrecy, server authentication and forward secrecy in ProVerif.
-
Each worker runs in a fixed memory footprint on a Raspberry Pi 3B+, removing memory exhaustion as an attack surface.
Client puzzles bound CPU exhaustion, and HqcLethe removes memory exhaustion: on a Raspberry Pi 3B+, each worker runs in a fixed 1.2-1.6 MiB.
-
At category 5 HqcLethe sends 27x fewer bytes and uses 9.0x less server CPU than McTiny.
At category 5 it sends 27x fewer bytes and uses 9.0x less server CPU than McTiny, the earlier stateless code-based design.
-
Splitting HQC encapsulation is harder than splitting McEliece because cyclic polynomial multiplication is non-local.
However, HQC's encapsulation does not split as easily into individual packets, as cyclic polynomial multiplication, unlike matrix-vector multiplication, is inherently non-local.
-
BSI advised against McEliece, leaving stateless PQ WireGuard-style protocols reliant on lattices alone unless HQC is used for diversity.
However, recent attacks have led Germany's BSI to advise against McEliece, which leaves these protocols with lattices alone.
Numbers (as extracted, not quote-checked)
- Client memory per worker on Raspberry Pi 3B+: 1.2-1.6 MiB fixed
- Byte reduction vs McTiny at category 5: 27x fewer bytes
- Server CPU reduction vs McTiny at category 5: 9.0x less
For builders
Streaming KEM ciphertext pieces with a stateless server and client puzzles is a viable pattern for PQ handshakes where memory must stay bounded, though it is a KEM for transport rather than a chain signature scheme.
Limits
Based on the ePrint abstract only, not the full text; the claims are the authors', and the benchmarks are on one Raspberry Pi 3B+ setup.
Topics: kem implementation-sidechannel benchmarks hybrid-schemes threat-model