National cryptographic algorithm SM4 acceleration processing method and system based on high-level integration
A high-level synthesis and national secret algorithm technology, applied in the embedded field of national secret algorithm, can solve problems such as slow running speed, long hardware development time, and insufficient flexibility of embedded platforms, so as to reduce time cost, reduce development time, The effect of reducing the time to achieve
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0043] This embodiment provides an accelerated processing method based on high-level synthesis of the national secret algorithm SM4;
[0044] Such as figure 1 As shown, based on the high-level comprehensive national secret algorithm SM4 accelerated processing method, the data packets sent to the server to be processed by the national secret algorithm are processed, including:
[0045] S101: Using the high-level integrated HLS to realize the national secret algorithm SM4 through the high-level programming language; perform simulation processing on the high-level programming language;
[0046] S102: After the simulation process passes normally, perform synthesis to obtain a comprehensive report, and observe the performance of the national secret algorithm through the comprehensive report; use high-level comprehensive HLS to optimize the national secret algorithm SM4, and finally export the IP core through joint simulation, so that High-level comprehensive HLS automatically real...
example 1
[0084] Example 1-realization based on the disclosed SM4 algorithm:
[0085] The implementation of the present disclosure will be described below in conjunction with the accompanying drawings. The design, implementation and acceleration method of the SM4 algorithm based on high-level synthesis described in this implementation, the specific process is as follows:
[0086] First of all, E1 implements the SM4 algorithm through C language. This algorithm has multiple functions to implement, but in this example, in order to describe the problem simply, the algorithm is used as a function, and the input is all fixed length, such as unsigned long*sk, unsigned char*input, unsigned char*output, although the parameters of the function are in the form of pointers, in fact, unsigned long*sk is a 1024bit extended key in the form of unsigned long sk[32] in an encryption process, the same unsigned char *input, unsigned char*output is 128bit input and output information in the form of unsigned...
Embodiment 2
[0111] Such as Figure 6 , the present embodiment provides an accelerated processing system based on the high-level comprehensive national secret algorithm SM4;
[0112] Based on the high-level comprehensive national secret algorithm SM4 accelerated processing system, FPGA processes the data packets sent to the server to be processed by the national secret algorithm, including the server and FPGA;
[0113] Arrange the SM4 encrypted IP core generated by HLS on the FPGA, use python to call the IP core, and encapsulate it into an SM4 encrypted function;
[0114] FPGA reads the data packets to be processed by the national secret algorithm from the server memory;
[0115] Call the SM4 encryption function through python to realize the processing of the data packets to be processed by the national secret algorithm, and form the data packets processed by the national secret algorithm;
[0116] The FPGA transmits the data packets processed by the national secret algorithm to the memo...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


