Method and device for achieving SM2 algorithm with combination of CPU and GPU
A technology of algorithm and encryption algorithm, which is applied in the field of public key cryptography algorithm, can solve the problems of unfavorable calculation efficiency and improvement, and achieve the effect of improving calculation efficiency and saving calculation time
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0092] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and examples.
[0093]In order to improve the calculation efficiency of the SM2 algorithm, the present invention adopts the CPU and the GPU cooperative mode to carry out the SM2 algorithm, and the calculation step of calculating the elliptic curve multiple point calculation step in the SM2 algorithm with a relatively large amount of calculation is pre-calculated on the GPU to obtain the result and store it in the set memory Then, when the CPU calculates the input data of the SM2 algorithm sequentially according to the steps of the SM2 algorithm, it calls the pre-calculated results stored in the memory, thereby saving the calculation time of the SM2 algorithm for the input data of the SM2 algorithm.
[0094] figure 1 The flow chart of the method for implementing the SM2...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


