With the rapid development of modern communication,a large number of personal privacy and collective secret information are contained in the transmitted information.Whether the information can be transmitted in a trustworthy way is very critical.Block cipher algorithm is a method to realize information encryption,and it has been widely used in the field of information security.The SMS4 algorithm is one of the block cipher algorithms,which is the first official block cipher algorithm in China.The SMS4 block cipher algorithm contains a large number of linear and nonlinear iterative operations,which can confuse and diffuse information adequately.In this paper,the MATLAB simulation of SMS4 algorithm is carried out to verify the correct encryption and decryption process of the SMS4 cipher algorithm.On the basis of considering all possible practical applications,including Plaintext transmission and encryption or decryption plaintext,the hardware design of SMS4 encrypted IP core is carried out.Especially,a feasible solution for data block problem often occurs in block cipher encryption is made,and the corresponding short block encryption communication protocol is constitute.Under the FPGA development environment,the modules of SMS4 encryption IP core system are implemented by Verilog HDL coding.The implementation of short block encryption is completed by the two parts of FPGA and interface software.At last,the host computer communicates with FPGA through the interface software to verify the expected function that the SMS4 encrypted IP core can achieve. |