arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.15868cs.CR
收藏

低栈HAETAE用于内存受限的微控制器

Low-Stack HAETAE for Memory-Constrained Microcontrollers

LIX, CNRS, Inria, École Polytechnique, Institut Polytechnique de Paris(巴黎理工学院);Kookmin University(国民大学);NXP Semiconductors(恩智浦半导体)

Gustavo Banegas, Kim Youngbeom, Seo Seog Chung, Vredendaal Christine Van

AI总结:

本文提出低栈实现的HAETAE模块格签名方案,针对8kB-16kB SRAM的微控制器,通过优化技术将签名、密钥生成和验证的栈内存需求显著降低,同时验证在不同安全级别下的性能提升。

摘要:

我们提出了一种低栈实现的模块格签名方案HAETAE,目标是具有8kB-16kB可用SRAM的微控制器。在这些设备上,峰值栈使用量通常是瓶颈,而HAETAE的超球体采样器、大瞬态多项式向量和可变长度签名负载(提示和高位数组)构成了特别的挑战。为解决此问题,我们引入了(i)拒绝意识的通过分解,将编码隔离到接受后路径;(ii)组件级早期拒绝,当部分范数已超过界限时,短路响应计算;以及(iii)反向顺序流式熵编码使用范围非对称数字系统(rANS),这消除了完整的提示和高位数组缓冲区。结合流式矩阵生成,一个两阶段超球体采样器带有流式高斯后端和行流验证,这些技术将参考实现中的签名栈从71kB-141kB降低到5.8kB-6.0kB,密钥生成到4.7kB-5.7kB,验证到4.7kB-4.8kB,适用于所有三个安全级别。我们的纯C实现涵盖了所有三个安全级别(HAETAE-2/3/5),其优化路径因公钥域(d>0 vs. d=0)和拒绝结构而不同。我们在Nucleo-L4R5ZI上实现了我们的优化,并与参考pqm4(针对HAETAE-2和-3)和最近发布的内存优化实现(针对HAETAE-5)进行了比较。我们分别将HAETAE-2、-3和-5的栈减少了75%、86%和8%(密钥生成),92%、95%和24%(签名生成),以及85%、91%和22%(验证)。根据参数集,这影响性能最多为密钥和签名生成的1.8倍和3.4倍,同时甚至在验证上提供了高达18%的性能提升。在所有安全级别上,验证可以容纳在8kB的RAM(签名缓冲区+栈)内,并且比ML-DSA m4fstack在每个可比安全级别上快2.34-3.34倍。我们还验证了在RIOT-OS上的可移植性,目标为ARM Cortex-M4和RISC-V。

英文摘要:

We present a low-stack implementation of the module-lattice signature scheme HAETAE, targeting microcontrollers with 8 kB-16 kB of available SRAM. On such devices, peak stack usage is often the binding constraint, and 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 from 71 kB-141 kB in the reference implementation down to 5.8 kB-6.0 kB, key generation to 4.7 kB-5.7 kB, and verification to 4.7 kB-4.8 kB across all three security levels. Our pure C implementation covers all three security levels (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 to the reference pqm4 (for HAETAE-2 and -3) and a recently published memory-optimized implementation (targeting HAETAE-5 only). We reduce HAETAE-2, -3, and -5 stack 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 1.8 and 3.4 for key and signature generation respectively, while even offering a performance improvement up to 18 % for verification. Verification at all security levels fits within 8 kB of RAM (signature buffer + stack) and is 2.34-3.34x 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑