Low-Stack HAETAE for Memory-Constrained Microcontrollers
Low-stack C implementation of HAETAE signatures for 8-16 kB SRAM microcontrollers, using pass decomposition, early rejection, and rANS streaming to cut stack use to about 6 kB.
Schemes: HAETAE, ML-DSA, rANS
Findings (quotes checked against the source text)
-
Signing stack usage drops from 71-141 kB in the reference implementation to 5.8-6.0 kB across all three HAETAE security levels.
these techniques bring signing stack usage from (71\,\mathrm{kB})–(141\,\mathrm{kB}) in the reference implementation down to (5.8\,\mathrm{kB})–(6.0\,\mathrm{kB})
-
Verification at all security levels fits within 8 kB of RAM (signature buffer plus stack) and is 2.34-3.34x faster than ML-DSA m4fstack at comparable levels.
Verification at all security levels fits within (8\,\mathrm{kB}) of RAM (signature buffer + stack) and is (2.34)–(3.34\times) faster than ML-DSA m4fstack at each comparable security level.
-
Rejection-aware pass decomposition confines encoding to the post-acceptance path, and rANS reverse-order streaming removes full hint and high-bits staging buffers.
(i) rejection-aware pass decomposition, which isolates encoding to the post-acceptance path; (ii) component-level early rejection, which short-circuits the response computation when a partial norm already exceeds the bound; and (iii) reverse-order streaming entropy coding using range Asymmetric Numeral Systems (rANS), which eliminates full hint and high-bits staging buffers.
-
Speed cost is bounded: key generation slows by at most 1.8x and signing by at most 3.4x, while verification improves by up to 18%.
Depending on the parameter set, this impacts performance by at most a factor of (1.8) and (3.4) for key generation and signature generation, respectively, while even offering a performance improvement of up to (18\%) for verification.
Numbers (as extracted, not quote-checked)
- HAETAE-2/3/5 signing stack reduction vs reference: 92%, 95%, 24%
- HAETAE-2/3/5 key generation stack reduction: 75%, 86%, 8%
- HAETAE-2/3/5 verification stack reduction: 85%, 91%, 22%
- Signing stack usage after optimization: 5.8-6.0 kB
- Key generation stack usage after optimization: 4.7-5.7 kB
- Verification stack usage after optimization: 4.7-4.8 kB
For builders
If a PQ chain must run signing or verification on constrained hardware, low-stack HAETAE-style streaming techniques are a usable reference, though it is a lattice scheme and not a hash-based or stateful alternative.
Limits
Only the ePrint abstract was available, not the full text; results target a Nucleo-L4R5ZI with pqm4 and one memory-optimized baseline, and HAETAE is not a standardized scheme.