Parallel and High-speed Implementation of SM4 Encryption Algorithm on OpenCL

Xiaolin Fu, Xiaoqiang Di, Huimin Lu
{"title":"Parallel and High-speed Implementation of SM4 Encryption Algorithm on OpenCL","authors":"Xiaolin Fu, Xiaoqiang Di, Huimin Lu","doi":"10.1145/3474198.3478218","DOIUrl":null,"url":null,"abstract":"The current SM4 encryption algorithm is almost implemented on the CPU using a serial algorithm, which cannot meet the requirements of real-time data receiving and transmitting under the current high-speed network environment. In order to improve the speed of encryption and decryption to handle large-scale data such as 5G and Internet of Things, the paper designed and implemented a parallel SM4 algorithm of GPU based on OpenCL. And the performance of the original serial SM4 algorithm and the parallel SM4 algorithm based on OpenCL are compared and verified. The experimental results demonstrate that when the plaintext data exceeded 256KB, the speed-up ratio began to increase significantly. When the plaintext data reached about 8MB, the speed-up ratio of single GPU basically stabilized and tended to be flat. There is also a small increase in encryption speed by storing data in local variables. In the optimal case realized in this paper, the single GPU can bring about 180 times of acceleration efficiency even in the experimental environment of the same CPU, and the multi-GPU device can achieve 760 times of acceleration efficiency improvement. The SM4 computing using GPU can meet the real-time encryption and decryption requirements under 10 Gigabit Ethernet.","PeriodicalId":266221,"journal":{"name":"International Conference on Frontiers of Electronics, Information and Computation Technologies","volume":"124 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-05-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Conference on Frontiers of Electronics, Information and Computation Technologies","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3474198.3478218","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

The current SM4 encryption algorithm is almost implemented on the CPU using a serial algorithm, which cannot meet the requirements of real-time data receiving and transmitting under the current high-speed network environment. In order to improve the speed of encryption and decryption to handle large-scale data such as 5G and Internet of Things, the paper designed and implemented a parallel SM4 algorithm of GPU based on OpenCL. And the performance of the original serial SM4 algorithm and the parallel SM4 algorithm based on OpenCL are compared and verified. The experimental results demonstrate that when the plaintext data exceeded 256KB, the speed-up ratio began to increase significantly. When the plaintext data reached about 8MB, the speed-up ratio of single GPU basically stabilized and tended to be flat. There is also a small increase in encryption speed by storing data in local variables. In the optimal case realized in this paper, the single GPU can bring about 180 times of acceleration efficiency even in the experimental environment of the same CPU, and the multi-GPU device can achieve 760 times of acceleration efficiency improvement. The SM4 computing using GPU can meet the real-time encryption and decryption requirements under 10 Gigabit Ethernet.
SM4加密算法在OpenCL上的并行高速实现
目前的SM4加密算法几乎是采用串行算法在CPU上实现的,无法满足当前高速网络环境下数据实时收发的要求。为了提高处理5G、物联网等大规模数据的加解密速度,本文设计并实现了一种基于OpenCL的GPU并行SM4算法。并对原始串行SM4算法和基于OpenCL的并行SM4算法的性能进行了比较和验证。实验结果表明,当明文数据超过256KB时,加速比开始显著提高。当明文数据达到8MB左右时,单个GPU的加速比基本稳定,趋于平缓。通过将数据存储在局部变量中,还可以略微提高加密速度。在本文实现的最优情况下,即使在相同CPU的实验环境下,单GPU也可以带来180倍的加速效率提升,多GPU设备可以实现760倍的加速效率提升。采用GPU的SM4计算可以满足万兆以太网下的实时加解密需求。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书