面向物联网安全的素域SM2点乘硬件优化
Hardware Optimization of Prime Field SM2 Point Multiplication for IoT Security
摘要: 为解决现有SM2软硬件实现在物联网应用中由于成本与功耗限制所存在的计算速度较慢问题,采用自下而上的思想对SM2点乘算法分层硬件优化。首先基于DSP乘法器提出单周期并行256位乘法算法KO-5,藉此设计了可流水线操作的2个时钟周期的256位模乘法器;然后基于并行化和流水线技术等设计点运算模块,大大减少了计算时间;最后,通过使用固定窗口点乘算法提升效率。实验结果分析表明,经过优化的点乘模块计算时间为136.68 us,逻辑资源使用仅19.59 kLUTs和144 DSPs,相对同类工作在性能和资源消耗方面均有优势,适用于高性能物联网安全场景。
Abstract:
To solve the problems of slow computation speed in the existing SM2 hardware and software implementations under the cost and power constraints of IoT applications, a bottom-up approach was adopted to optimise the SM2 algorithm hardware hierarchically. Firstly, a single-cycle parallel 256-bit multiplie algorithm KO-5 was proposed based on DSP multiplier, and utilized to design a two-clock-cycle pipeline version of the 256-bit modular multiplication; then the point operation module was designed by through parallelization techniques and pipeline techniques, which greatly reduced the calculation time. Finally, a fixed-window point multiplica-tion algorithm was used to improve the efficiency. The experimental results show that the computation time of the optimized point multiplication module is reduced to 136.68 us only by using 19.59 kLUTs and 144 DSPs logical resources, which has advantages of performance and lower resource utilization compared to similar works, and is suitable for high-performance IoT security scenarios.
参考文献
|
[1]
|
于全, 梁丹丹, 张伟. 面向万物智联的云原生网络[J]. 物联网学报, 2021, 5(2): 1-6.
|
|
[2]
|
张妍, 黎家通, 宋小祎, 等. 物联网设备安全检测综述[J]. 计算机研究与发展, 2023, 60(10): 2271-2290.
|
|
[3]
|
国家密码管理局. GM/T 0003-2012 SM2椭圆曲线公钥密码算法[S]. 北京: 国家密码管理局, 2012.
|
|
[4]
|
Pravin, Z. and Raghavendra, D. (2022) Optimization of Elliptic Curve Scalar Multiplication Using Constraint Based Scheduling. Journal of Parallel and Distributed Computing, 167, 232-239. [Google Scholar] [CrossRef]
|
|
[5]
|
Wang, X.J. (2016) Speed and Area Optimized Parallel Higher-Radix Modular Multipliers. Cryptology ePrint Archive, 2016, 53.
|
|
[6]
|
Eyupoglu, C. (2015) Performance Analysis of Karatsuba Multiplication Algorithm for Different Bit Lengths. Procedia—Social and Behavioral Sciences, 195, 1860-1864. [Google Scholar] [CrossRef]
|
|
[7]
|
李斌, 周清雷, 陈晓杰, 等. 可重构的素域SM2算法优化方法[J]. 通信学报, 2022, 43(3): 30-41.
|
|
[8]
|
李凡, 李云峰, 翁天恒, 等. 基于FPGA的SM2点运算快速并行实现[J]. 电子测量技术, 2020, 43(15): 105-111.
|