信息网络安全 ›› 2021, Vol. 21 ›› Issue (10): 8-16.doi: 10.3969/j.issn.1671-1122.2021.10.002

• 优秀论文 • 上一篇    下一篇

国密算法分析与软件性能研究

胡景秀1,2, 杨阳1,2, 熊璐1,2(), 吴金坛1,2   

  1. 1.中国银联股份有限公司,上海 201201
    2.电子商务与电子支付国家工程实验室,上海 201201
  • 收稿日期:2021-05-15 出版日期:2021-10-10 发布日期:2021-10-14
  • 通讯作者: 熊璐 E-mail:xionglu@unionpay.com
  • 作者简介:胡景秀(1990—),女,山西,硕士,主要研究方向为密码学、移动支付安全、区块链安全等|杨阳(1987—),男,安徽,高级工程师,硕士,主要研究方向为网络安全、密码学等|熊璐(1991—),女,湖北,工程师,硕士,主要研究方向为网络安全、移动安全等|吴金坛(1968—),男,福建,高级工程师,主要研究方向为信息安全
  • 基金资助:
    上海市移动电子商务工程技术研究中心项目(19DZ2284800)

SM Algorithm Analysis and Software Performance Research

HU Jingxiu1,2, YANG Yang1,2, XIONG Lu1,2(), WU Jintan1,2   

  1. 1. China Unionpay Co., Ltd, Shanghai 201201, China
    2. National Engineering Laboratory of E-commerce and E-payment, Shanghai 201201, China
  • Received:2021-05-15 Online:2021-10-10 Published:2021-10-14
  • Contact: XIONG Lu E-mail:xionglu@unionpay.com

摘要:

密码技术是信息安全的核心,推广国密算法对维护我国网络信息安全意义重大。近年来,我国商用密码产业快速发展,但国密算法普遍存在实现效率较低的问题。为探究国密算法对国际密码算法的替代可行性,文章对国密SM3、SM2、SM4算法及其对标的国际密码算法进行全方位对比,分析算法的计算量与安全性,并利用OpenSSL及我国A厂商优化后的国密算法对各算法进行性能测试。性能测试结果表明,SM3算法与SHA-256算法性能相近;SM2数字签名算法与ECDSA算法的性能受两者选用的杂凑函数影响,但总体上性能相近;当数据量较少时,SM2公钥加密算法与ECIES算法性能取决于加密数据的规模,随着数据量增多,后者的性能显著优于前者;SM4算法性能介于AES与3DES之间。

关键词: 国密算法, SM2算法, SM3算法, SM4算法, 软件性能

Abstract:

Encryption technology is the core of information security, and the promotion of national secret algorithms is of great significance to safeguarding country’s network information security. In recent years, commercial encryption industry of China has developed rapidly, but the SM algorithm generally has the problem of low implementation efficiency. In order to explored the feasibility of the SM algorithm to replace the international encryption algorithm, this article mainly focused on the SM3, SM2, SM4 of SM algorithm and comprehensive comparison of the target international cryptographic algorithms, analyzed the calculation amount and security of the algorithms, and used OpenSSL and a SM algorithm optimized by a domestic manufacturer A to test the performance of each algorithm. The performance test results show that the SM3 is similar to the SHA-256, the performance of the SM2 digital signature algorithm and the ECDSA algorithm is affected by the Hash function they select, but the overall performance is similar. With small amount of data, the performance of SM2 public key encryption algorithm and ECIES algorithm depend on the size of the encrypted data. As the amount of data increases, the performance of the latter is significantly better than the former. The performance of the SM4 algorithm is between AES and 3DES.

Key words: SM algorithm, SM2 algorithm, SM3 algorithm, SM4 algorithm, software performance

中图分类号: