Research on FPGA-Based SM4 Encryption and Decryption Algorithm and Side-Channel Security
(The 6th Research Institute of China Electronics Corporation, Beijing 100083, China)
Abstract
This study presents a comprehensive review of the hardware implementation methods and side-channel security protection techniques for the FPGA-based SM4 block cipher algorithm. In terms of hardware implementation, it analyzes the implementation method combining finite field multiplicative inverse operation with affine transformation for S-box permutation, as well as the application of a 32-stage inter-round pipeline architecture, multi-channel parallel processing, and a round key fast switching mechanism. In terms of side-channel security protection, it describes the basic principles of simple power analysis and differential power analysis and their potential threats to the SM4 algorithm. For key leakage points such as S-box outputs and round outputs, a hybrid protection strategy of "masking as the main approach and hiding as a supplement" is proposed. This study provides an important reference for the design, implementation, and security deployment of SM4 encryption and decryption algorithms on the FPGA platform.
Keywords
SM4 algorithm; FPGA; pipeline optimization; side-channel security
References
- [1] Liang Jiahao, left golden seal Research on High Parallel Encryption and Decryption Based on FPGA [J]. Chinese Science and Technology Achievements, 2023, 24 (3): 16-18
- [2] Dou Yuchao Design and Implementation of SM4 Algorithm Optimization and Key Expansion Algorithm [D]. Harbin: Harbin Institute of Technology, 2021
- [3] Yue Linlin Design and Implementation of Digital Envelope Algorithm Based on FPGA [D]. Harbin: Heilongjiang University, 2023
- [4] Zhang Zhaoshi, Wei Ying, Wu Rangle, etc Performance Optimization Analysis of Domestic SM4 Encryption Algorithm for Smart Grid [J]. Information and Computer (Theoretical Edition), 2024, 36 (20): 11-14
- [5] Yuan Haonan Efficient Implementation Scheme of SM4 Algorithm Based on FPGA [D]. Xi'an: Xi'an University of Electronic Science and Technology, 2024
- [6] Lyu S S,Li B,Chen X,et al. High-Performance Optimization of SM4-GCM Based on FPGA [C]//2021 International Conference on Advanced Computing and Endogenous Security,2022:1-5.
- [7] Chen Y,Song J,Chen S,et al. Exploring the High-Throughput and Low-Delay Hardware Design of SM4 on FPGA [C]//2022 19th International SoC Design Conference (ISOCC),2022:211-212.
- [8] Chen Kunming, Wang Jiahui, Mali Min, etc SM4 pipeline optimization design based on SIMD concept [J]. Information Security Research, 2023, 9 (9): 832-842
- [9] Guo Yu, Jia Xiaoyun, Jiang Jianwei, etc FPGA optimization of SM4 algorithm for in wheel flow line [J]. Journal of Shaanxi University of Science and Technology, 2025, 43 (3): 174-180
- [10] Zhang Zhenbin Research and Implementation of Key Technologies for Power Attack of State Secrets SM4 and SM2 Algorithms [D]. Beijing: Tsinghua University, 2015
- [11] Liu W,Cheng J,Sun N,et al. A 128-Gbps Pipelined SM4 Circuit with Dual DPA Attack Countermeasures [J].IEEE Transactions on Very Large Scale Integration (VLSI) Systems (S1063-8210),2024,32(6):1164-1168.
- [12] Wang Yongjuan, Fan Haopeng, Dai Zhengyi, etc Research progress on side channel attack and defense technology [J]. Journal of Computer Science, 2023, 46 (1): 2022-228
- [13] Sun N Y,Liu W R,Cheng J F,et al. A novel SM4 cryptographic architecture against higher order power analysis attacks [J].International Journal of Circuit Theory and Applications,2024,52(8):4184-4198.
- [14] Jiang Z J,Yan W H,Ding W,et al. SM4 Chaotic Masking Scheme Against Power Analysis Based on FPGA [J/OL].International Journal of Bifurcation and Chaos,2022,32(8):2250110.https://doi.org/10.1142/S0218127422501103.
- [15] Li Yue Hardware Design of Digital Envelope System Based on SM2 and SM4 [D]. Hangzhou: Hangzhou University of Electronic Science and Technology, 2025
- [16] Zhang H,Yan Z. Design and Implementation of Data Encryption Mechanism in Fiber Channel Network [C]//2024 IEEE 23rd International Conference on Trust,Security and Privacy in Computing and Communications (TrustCom),2024:2442-2446.
- [17] Liu Yang Design of Encryption Authentication Hardware Acceleration Engine for Vehicle CAN Network Nodes [D]. Wuhan: Huazhong University of Science and Technology, 2024
- [18] Jiang K,Wang Z,Liu G,et al. FPGA Implementation of Short Message Authentication Based on the SM4 Algorithm [C]//2024 7th International Conference on Information Communication and Signal Processing (ICICSP),2024:306-311.
About the authors
Zhang Zhenao (2000-), male, Han ethnicity, from Anqing, Anhui Province, assistant engineer, master's student, research direction: communication confidentiality.