| In recent years,with the development of the times and the advancement of science and technology,cryptographic algorithms have been more and more widely used in all aspects of our lives.Our mobile phones,tablets,computers and other electronic devices involve encryption and decryption in operation,storage and transmission.Algorithm module,especially in aerospace,military and other fields,the role of encryption will be more prominent.At present,SM4 is the first block encryption algorithm published in my country,which is similar to AES and DES invented abroad,and they all belong to symmetric encryption algorithms.The SM4 algorithm is widely used in information systems such as government offices,public security,banks,taxation,and electric power,and it occupies a very important position in my country’s encryption industry.However,the standard SM4 algorithm is vulnerable to side-channel attacks,and the key during SM4 encryption can be cracked through methods such as power consumption attacks and timing attacks,thereby threatening the security of the system.The existing anti-side-channel attack methods have some disadvantages such as low speed and large area.In order to increase the security of the SM4 algorithm structure against side channel attacks,reduce area overhead,maintain the original encryption and decryption speed of the encryption algorithm,and resist timing attacks and power consumption attacks of order 3 and below,this paper proposes a novel SM4 algorithm structure against side channel attacks.In the anti-side-channel attack research work of the SM4 algorithm,a true random number module is needed to improve security,and the true random number generator is extremely susceptible to temperature and noise in reality,making randomness worse.Therefore post-processing techniques are required to improve the quality of true random number generators.In order to make the true random number generator better applied in the anti-attack research work,a series of optimization methods for the post-processing of true random numbers are carried out here.Finally,based on the idea of statistics and calibration,a kind of calibration function is developed.The statistical averaging method to post-process the true random numbers.After being tested by the National Encryption Administration’s randomness testing specification,this method can greatly improve the pass rate of national secret testing.This method has advantages in speed,area,and quality of randomness.Among them,the speed has reached 50 Mbps,the area obtained based on the TSMC 90 nm process design kits(PDK)is 52718 μm2,and the national secret inspection pass rate has reached 90%.In this research topic,the post-processing method of true random numbers is used to improve the quality of true random numbers,thus improving the security of the entire SM4 attack defense system.Finally,this new anti-side-channel attack SM4 algorithm structure is built on the chipwhisperer FPGA development board.The experimental results show that the structure has high security and can effectively resist side-channel attacks,and the speed can reach 300 Mbps.The integrated area of this solution in the TSMC 90 nm PDK is 165354 μm2. |