华南理工大学学报(自然科学版) ›› 2023, Vol. 51 ›› Issue (5): 24-35.doi: 10.12141/j.issn.1000-565X.220355

所属专题: 2023年计算机科学与技术

• 计算机科学与技术 • 上一篇    下一篇

基于类梅森数的物联网密钥交换快速取模算法

覃健诚1 钟宇2,3 程喆4 黄成海1 陆以勤1,5 潘伟锵5   

  1. 1.华南理工大学 电子与信息学院, 广东 广州 510640
    2.中国电信广东肇庆分公司, 广东 肇庆 526000
    3.华南理工大学 软件学院, 广东 广州 510006
    4.华南理工大学 计算机科学与工程学院, 广东 广州 510006
    5.华南理工大学 信息网络工程研究中心, 广东 广州 510640
  • 收稿日期:2022-06-06 出版日期:2023-05-25 发布日期:2023-01-16
  • 通信作者: 陆以勤(1968-),男,教授,博士生导师,主要从事SDN、网络功能虚拟化、网络安全研究。 E-mail:eeyqlu@scut.edu.cn
  • 作者简介:覃健诚(1976-),男,博士,高级工程师,主要从事加密算法、物联网、SDN、网络安全研究。E-mail:jcqin@scut.edu.cn
  • 基金资助:
    广东省重点领域研发计划项目(2020B0101120002);广东省科技厅海外名师项目(科技类)(粤财科教[2021]157号)

Fast Modulus Algorithm for Internet of Things Key Exchange Based on Mersenne-like Numbers

QIN Jiancheng1 ZHONG Yu2,3 CHENG Zhe4 HUANG ChenghaiLU Yiqin1,5 PAN Weiqiang5   

  1. 1.School of Electronic and Information Engineering,South China University of Technology,Guangzhou 510640,Guangdong,China
    2.Zhaoqing Branch of China Telecom,Zhaoqing 526000,Guangdong,China
    3.School of Software Engineering,South China University of Technology,Guangzhou 510006,Guangdong,China
    4.School of Computer Science and Engineering,South China University of Technology,Guangzhou 510006,Guangdong,China
    5.Information and Network Engineering and Research Center,South China University of Technology,Guangzhou 510640,Guangdong,China
  • Received:2022-06-06 Online:2023-05-25 Published:2023-01-16
  • Contact: 陆以勤(1968-),男,教授,博士生导师,主要从事SDN、网络功能虚拟化、网络安全研究。 E-mail:eeyqlu@scut.edu.cn
  • About author:覃健诚(1976-),男,博士,高级工程师,主要从事加密算法、物联网、SDN、网络安全研究。E-mail:jcqin@scut.edu.cn
  • Supported by:
    the Key-Area R&D Program of Guangdong Province(2020B0101120002)

摘要:

为适应物联网加密传输中大量轻型传感器节点运算性能和能源有限的特点,解决传感器运行RSA(Rivest-Shamir-Adleman)、DHM(Diffie-Hellman-Merkle)、Elgamal等公钥基础设施(PKI)加密算法所面临的运算速度、功耗等瓶颈问题,并简化相应的硬件加密电路逻辑设计,文中提出了一种基于类梅森数的密钥交换快速取模算法(CZ-Mod算法)。CZ-Mod算法利用梅森数的数学特性,使关键的mod(取模)运算的时间复杂度降至On)。首先,提出了一种以类梅森数为模数的快速取模运算mod1,使复杂的mod运算变成简单的二进制移位相加运算;其次,提出了一种以任意近似类梅森数的正整数为模数的快速取模运算mod2,在简化mod运算的同时扩大模数的取值范围;然后,对mod1、mod2运算作逻辑电路设计,以简化mod运算的硬件电路;最后,将以上工作应用到物联网节点的密钥交换中,以降低计算的复杂度,提高PKI加密算法的速度。实验测试结果表明:采用CZ-Mod算法的DHM密钥交换速度可达到常规算法的2.5~4倍;CZ-Mod算法精简,适合做物联网传感器的硬件电路设计。

关键词: 网络安全, 传感器密码, 梅森数, 加密运算电路

Abstract:

In order to adapt to the limited computing performance and energy of numerous lightweight sensor nodes in the encrypted transmission of IoT (Internet of Things), this paper proposed a fast modulus algorithm (CZ-Mod algorithm) based on Mersenne-like numbers to slove the bottleneck problems of computing speed, power consumption and so on during the sensors run PKI (Public Key Infrastructure) encryption algorithms such as RSA (Rivest-Shamir-Adleman), DHM (Diffie-Hellman-Merkle), Elgamal, etc., and to simplify the corresponding hardware encrypting circuit logic design. CZ-Mod algorithm uses the mathematic characteristics of Mersenne numbers, and lowers the time complexity of its essential operation mod (modulo) into O(n). Firstly, a fast modulus algorithm mod1 using Mersenne-like numbers as modulus was presented, changing complex mod operation into simple binary shift/add operation; secondly, a fast modulus algorithm mod2 using any positive integers near Mersenne-like numbers as modulus was presented, expanding the modulus value range while simplifying mod operation; and then logic circuits of mod1 and mod2 operations were designed, simplifying mod operation hardware circuit. Finally, the above work was applied to the key exchange of IoT nodes, so as to lower the computing complexity and improve the speed of PKI encryption algorithms. The experiment test results indicate that the speed of DHM key exchange with CZ-Mod algorithm can reach 2.5 to 4 times of that of the conventional algorithm; CZ-Mod algorithm is concise and fits the hardware circuit design for the IoT sensors.

Key words: network security, sensor key, Mersenne number, encrypting operation circuit

中图分类号: