arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.19340cs.CRcs.ARcs.PF
收藏

在ARM Cortex-M0+上评估NIST标准化的ML-KEM和ML-DSA:性能、内存和能耗

Benchmarking NIST-Standardised ML-KEM and ML-DSA on ARM Cortex-M0+: Latency, Rejection-Sampling Variance, and Memory on the RP2040

Softora

Rojin Chhetri, Sijan Dhakal, Asmita Gautam

AI总结:

本文首次在RP2040上评估ML-KEM和ML-DSA的性能、内存和能耗,揭示了ML-KEM在密钥交换中的高效表现及ML-DSA签名的高延迟变异性。

摘要:

物联网设备迁移至后量子密码学迫在眉睫,但针对最受限的32位处理器类的NIST标准系统性基准评估尚不存在。本文首次在ARM Cortex-M0+上对ML-KEM(FIPS 203)和ML-DSA(FIPS 204)进行算法级基准测试,使用PQClean参考C实现,在RP2040(133 MHz,264 KB SRAM)上测量了三个安全级别(ML-KEM 512/768/1024,ML-DSA 44/65/87)的密钥生成、封装/签名及解封装/验证过程。ML-KEM-512在35.7 ms内完成完整密钥交换,估计能耗为2.83 mJ(数据表功率模型),比相同硬件上的完整ECDH P-256密钥协议快17倍。ML-DSA签名因拒绝采样导致高延迟变异性(系数变异率66-73%,ML-DSA-87的99百分位数高达1,125 ms)。M0+相比Cortex-M4参考C结果(-O3 vs. -Os)仅慢1.8-1.9倍,尽管缺少64位乘法、DSP和SIMD指令,这使该结果成为微架构惩罚的保守上限。所有代码、数据和脚本均作为开源基准套件发布以确保可重复性。

英文摘要:

Internet of Things devices with 10 to 20 year lifespans need post-quantum migration, yet the finalised NIST standards remain sparsely benchmarked on the most constrained 32-bit ARM class. We present, to our knowledge, the first isolated algorithm-level benchmarks of ML-KEM (FIPS 203) and ML-DSA (FIPS 204) on ARM Cortex-M0+: all six parameter sets on the RP2040 at 125 MHz, using PQClean reference C. A full ML-KEM-512 key exchange completes in 35.7 ms, 17x faster than an mbedTLS ECDH P-256 baseline on the same hardware. ML-DSA signing varies widely under rejection sampling (coefficient of variation 66.0 to 73.5%), and we recover the rejection-sampling iteration count of individual signatures from wall-clock time alone, a timing side channel that reveals attempt counts but not their content. The Cortex-M0+ incurs only a roughly 2.0x slowdown relative to published Cortex-M4 reference C despite lacking a 64-bit multiplier, DSP, and SIMD instructions. A second physical RP2040 agrees to within 0.075%, showing that build configuration, not silicon, dominates measurement variance. All code and data are released as an open-source benchmark suite.

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

↑