HAETAE on a Diet: Less Stack, Less Time on Low-End Microcontrollers
Reduces HAETAE signing stack and time on low-end MCUs by storing 16-bit polynomials, sharing buffers, and replaying Gaussian samples, fitting HAETAE-2 signing into 8 KiB SRAM on ATmega2560.
Schemes: HAETAE, HAETAE-2, ML-DSA, Low-Stack HAETAE
Findings (quotes checked against the source text)
-
The ATmega2560 firmware runs HAETAE-2 keygen, signing and verification within 8,070 bytes of total SRAM, the first standardization-track PQC-DSA signing in 8 KiB on hardware.
To the best of our knowledge, this is the first standardization-track PQC-DSA implementation that signs within $8\,\mathrm{KiB}$ of total SRAM on physical hardware.
-
Storing polynomial coefficients in 16 bits and lifting to modulo 2q only when consumed lowers peak stack without extra Gaussian regeneration.
We store them in 16 bits and lift each coefficient to modulo $2q$ in a register only when it is consumed, and let objects with disjoint lifetimes share buffers, which lowers peak stack usage without any additional Gaussian regeneration.
-
Exact Gaussian replay stores acceptance decisions and partial CDT ranks in unused signature-buffer space to restore samples with less recomputation.
Exact Gaussian replay and caching method then record the acceptance decisions and partial CDT ranks of the first generation in the unused space of the signature buffer, so that the original samples are restored from the same random stream with less recomputation.
-
Compared with Low-Stack HAETAE, stack usage drops by up to 34% and keygen and signing run 1.18-2.51x faster.
Compared with Low-Stack HAETAE on Cortex-M4, Cortex-M3, MSP430, and AVR, our implementation reduces stack usage by up to 34% and runs key generation and signing 1.18-2.51$\times$ faster wherever Low-Stack can run them.
-
The reference HAETAE signing stack reaches 158 KiB on Cortex-M4, and even HAETAE-2 needs 8,718 B in a realistic IoT setting before this work.
but the signing stack of its reference implementation reaches $158\, \mathrm{KiB}$ on Cortex-M4.
Numbers (as extracted, not quote-checked)
- HAETAE modulus q: 64513
- Total SRAM used by HAETAE-2 keygen+sign+verify on ATmega2560: 8070 B
- HAETAE-2 signing stack in realistic IoT scenario (prior work): 8718 B
- Reference HAETAE signing stack on Cortex-M4: 158 KiB
- Low-Stack HAETAE signing stack: 5.7-5.9 KiB
- Max stack reduction vs Low-Stack HAETAE: 34%
For builders
For MCU-class PQ signers, HAETAE-2 with 16-bit storage and buffer reuse is a credible option for constrained devices, though not for full-node chain validation.
Limits
Based on the ePrint abstract only; full text not read. Results target low-end MCUs and reflect the authors' benchmarks, and HAETAE is not a NIST-standardized scheme.