High-level synthesis (HLS) tools are becoming popular in some applications such as digital signal processing and neural network,but their usability for cryptographic applications is largely unexplored.SM4 algorithms have been widely used in data encryption with increasing performance requirements for the widely used SM4 algorithm,which have the advantages of strong security,high efficiency and easy hardware implementation,and the use of hardware features for high-speed.The implementation of SM4 algorithm has become a hot topic of current research.In this paper,we use high-level synthesis(HLS) tools to synthesize C into the underlying hardware design,and propose three optimization schemes: loop unfolding,array optimization,and pipeline optimization to implement and optimize the SM4 algorithm hardware implementation.The design solutions are simulated and verified on Kintex-7 chip,and the best solution achieves a clock frequency of up to 223 MHz and a throughput of 32.10 Gb/s,which is a five-fold performance improvement over the traditional design approach.
Key words
SM4 /
high-level synthesis /
Kintex-7 /
FPGA
{{custom_sec.title}}
{{custom_sec.title}}
{{custom_sec.content}}
References
[1] Chen S,Hu W,Li Z.High Performance Data Encryption with AES Implementation on FPGA[C]//Intl Conference on Big Data Security on Cloud.Wuhan University of Science and Technology,2019.
[2] Cong J,Liu B,Neuendorffer S,et al.High-Level Synthesis for FPGAs:From Prototyping to Deployment[J].IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems,2011,30(4):473-491.
[3] 党宏社,王黎,王晓倩.基于Vivado HLS的FPGA开发与应用研究[J].陕西科技大学学报(自然科学版),2015,33(1):155-159.
[4] HENZENL,FICHTNE RW.FPGA parallel-Pipelined AES-GCM core for 100G Ethernet applications[C]//Proceedings of the 2010 European Solid-State Circuits Conference.Piscataway,NJ:IEEE,2010:202-205.
[5] 何诗洋,李晖,李凤华.SM4算法的FPGA优化实现方法[J].西安电子科技大学学报,2021,48(3):155-162.
[6] GAO X,LU E,XIAN L,et al.FPGA Implementation of the SMS4 Block Cipher in the Chinese WAPI Standard[C]//Proceedings of the 2008 International Conference on Embedded Software and Systems Symposia.Piscataway:IEEE,2008:104-106.
[7] JINY,SHEN H,YOU R.Implementation of SM4 Block Cipher on FPGA[C]//Proceedings of the 2006 First International Conference on Communications and Networking in China.Piscataway:IEEE,2006:1-4.
[8] GUAN Z Y,LI Y H,SHANG T,et al.Implementation of SM4 on FPGA:Trade-Off Analysis Between Area and Speed[C]//Proceedings of the 2018 IEEE International Conference on Intelligence and Safety for Robotics(ISR).Piscataway:IEEE.2018:192-197.