{
  "id": "2026/635",
  "url": "https://opencryptology.org/2026/635",
  "original_url": "https://eprint.iacr.org/2026/635",
  "title": "Low-Stack HAETAE for Memory-Constrained Microcontrollers",
  "authors": [
    "YoungBeom Kim",
    "Christine van Vredendaal",
    "Gustavo Banegas",
    "Seog Chung Seo"
  ],
  "affiliations": null,
  "abstract": "We present a low-stack implementation of the module-lattice signature scheme \\(\\mathrm{HAETAE}\\), targeting microcontrollers with \\(8\\,\\mathrm{kB}\\)–\\(16\\,\\mathrm{kB}\\) of available SRAM. On such devices, peak stack usage is often the binding constraint, and \\(\\mathrm{HAETAE}\\)'s hyperball-based sampler, large transient polynomial vectors, and variable-length signature payloads (hint and high-bits arrays) pose a particular challenge. To address this, we introduce (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. Combined with streamed matrix generation, a two-pass hyperball sampler with streaming Gaussian backend, and row-streamed verification, 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}\\), key generation to \\(4.7\\,\\mathrm{kB}\\)–\\(5.7\\,\\mathrm{kB}\\), and verification to \\(4.7\\,\\mathrm{kB}\\)–\\(4.8\\,\\mathrm{kB}\\) across all three security levels. Our pure C implementation covers all three security levels (\\(\\mathrm{HAETAE}\\)-2/3/5), whose optimization paths differ due to the public-key domain (\\(d > 0\\) vs. \\(d = 0\\)) and rejection structure. We implement our optimization on a Nucleo-L4R5ZI and compare it to the reference `pqm4` implementation (for \\(\\mathrm{HAETAE}\\)-2 and -3) and to a recently published memory-optimized  implementation (targeting \\(\\mathrm{HAETAE}\\)-5 only). We reduce \\(\\mathrm{HAETAE}\\)-2, -3, and -5 stack usage by respectively \\(75\\%\\), \\(86\\%\\), and \\(8\\%\\) for key generation, \\(92\\%\\), \\(95\\%\\), and \\(24\\%\\) for signature generation, and \\(85\\%\\), \\(91\\%\\), and \\(22\\%\\) for verification. 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. 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. We additionally validate portability under RIOT-OS on ARM Cortex-M4 and RISC-V targets.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Low-Stack HAETAE for Memory-Constrained Microcontrollers” by YoungBeom Kim, Christine van Vredendaal, Gustavo Banegas, Seog Chung Seo, Cryptology ePrint Archive, Paper 2026/635, https://eprint.iacr.org/2026/635. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2026-04-01T10:11:22Z",
    "updated": "2026-07-12T05:21:37Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2026/635.pdf",
    "sha256": "85ed35400e6e2a0ef05337d03fa09527466500f6673fd0e92ec7b951dc28c857",
    "size": 880819,
    "source": "upload",
    "source_date": "2026-11-14T03:37:55.134Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2026/635/versions/20261114T033755Z.pdf",
      "captured_at": "2026-11-14T03:37:55.134Z",
      "label": "copy captured 2026-11-14",
      "source": "upload",
      "source_url": null,
      "size": 880819,
      "sha256": "85ed35400e6e2a0ef05337d03fa09527466500f6673fd0e92ec7b951dc28c857",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2026/635/versions/20260512T112848Z.pdf",
      "captured_at": "2026-05-12T11:28:48Z",
      "label": "copy captured 2026-05-12",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2026/635.pdf",
      "size": 983086,
      "sha256": "17276b6944a1c51930f4348677faa40c02bc4ab56f828aa19754dd6c8d5442ad",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2026/635.pdf",
      "captured_at": "2026-05-12T11:28:48Z",
      "size": 983086
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260430112515id_/https://eprint.iacr.org/2026/635.pdf",
      "captured_at": "2026-04-30T11:25:15Z",
      "size": 938973
    }
  ],
  "bibtex": "@misc{cryptoeprint:2026/635,\n      author = {YoungBeom Kim and Christine van Vredendaal and Gustavo Banegas and Seog Chung Seo},\n      title = {Low-Stack HAETAE for Memory-Constrained Microcontrollers},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2026/635},\n      year = {2026},\n      url = {https://eprint.iacr.org/2026/635}\n}"
}
