低功耗嵌入式平台的SM2国密算法优化实现  被引量:3

Public key cryptographic algorithm SM2 optimized implementation on low power embedded platform

在线阅读下载全文

作  者:刘赣秦 李晖 朱辉 黄煜坤 刘兴东 LIU Ganqin;LI Hui;ZHU Hui;HUANG Yukun;LIU Xingdong(School of Cyber Engineering,Xidian University,Xi’an 710071,China)

机构地区:[1]西安电子科技大学网络与信息安全学院,陕西西安710071

出  处:《网络与信息安全学报》2022年第6期29-38,共10页Chinese Journal of Network and Information Security

基  金:国家自然科学基金(61972304,61932015);陕西省重点产业创新链项目(2020ZDLGY08-04)。

摘  要:随着无线通信技术的发展和智能终端的普及,越来越多的密码算法被应用到物联网设备中以保障通信安全和数据安全,其中,由国家密码管理局提出的SM2椭圆曲线公钥密码算法作为我国自主研发的椭圆曲线公钥密码算法具有安全性高、密钥短的优点,已在通信系统中广泛部署,应用于身份认证、密钥协商等关键环节。然而,由于算法涉及有限域上的大整数运算,计算开销较大,在低功耗嵌入式平台下的执行严重影响用户体验。因此,面向ARM-m系列处理器提出了一种低功耗嵌入式平台的SM2算法的高效实现方案。具体来说,通过Thumb-2指令集提供的支持处理进位和节省寻址周期,对大整数的模加、模减等基础运算进行优化,并结合平台可用寄存器的数量构建高效的基础运算模块;基于ARM-m系列处理器乘累加指令周期短的特点,优化蒙哥马利乘法实现,并结合CIOS算法设计高效的模乘方案,方案不再局限于梅森素数,极大地提高了模乘计算的速度和灵活性;在理论分析和实验测试的基础上,给出了嵌入式平台上多倍点标量乘法w NAF滑动窗法的窗长选取方法。实验测试结果表明,可有效提升资源受限的低功耗嵌入式平台中SM2算法的计算效率,不做预计算的情况下在Cortex-M3处理器上测试签名速度可达0.204秒/次,验签速度0.388秒/次,加密速度0.415秒/次,解密速度0.197秒/次。With the development of wireless communication technology and the popularization of intelligent terminals,more and more cryptographic algorithms are applied to IoT devices to ensure the security of communication and data.Among them,the SM2 elliptic curve public key cryptography proposed by the State Cryptography Administration is an elliptic curve public key cryptography algorithm developed domestically,which has the advantages of high security and short key.SM2 has been widely deployed in various communication systems and is used in essential parts such as identity authentication and key negotiation.However,since SM2 involves large integer operations on finite fields,the computational cost is high,and its execution on a low-power embedded platform seriously affects the user experience.Therefore,an efficient implementation scheme of SM2 algorithm for low-power embedded platform was proposed for ARM-m series processors.Specifically,Thumb-2 instruction set was adopted to handle carry and save addressing cycles,basic operations such as modulo addition and sub-traction of large integers were optimized,and the number of available registers on the platform was combined to build efficient basic operations.Besides,based on the short multiplication and accumulation instruction cycle of ARM-m series processors,the implementation of Montgomery multiplication was optimized,and an efficient modular multiplication scheme was designed in combination with the CIOS algorithm.The scheme was no longer limited to Mersenne primes,and greatly improved the speed and flexibility of modular multiplication.Based on the theoretical analysis and experimental test,the window length selection method of the multiple point-scalar multiplication w NAF sliding window method on the embedded platform was given.The experimental test results show that the proposed scheme can effectively improve the computational efficiency of the SM2 algorithm on the resource-constrained low-power embedded platform.Without pre-calculation,the test signature speed can

关 键 词:信息安全 椭圆曲线密码体制 SM2 嵌入式平台 优化 

分 类 号:TP393[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象