Transplantation and optimization of GPU-oriented SM3 cryptographic hash algorithm

Hengliang Guo, Yuanyuan Yue, Mengyu Bo, Yaqu Liu, Yu Fu, Jiandong Shang · 2022

In order to further improve the execution efficiency of the SM3 cryptographic hash algorithm, give full play to the advantages of the mainstream heterogeneous platform of CPU+GPU, SM3 algorithm message is filled, expanded and iterative compression part on the device end, by reasonably dividing thread blocks to make the full use of thread block resources, use loop unrolling to increase independent memory operation, use shared memory to hide the delay of visiting instructions. Experiments on files of different sizes on NVIDIA Tesla P100, the data show that the SM3 algorithm for GPU achieves an acceleration ratio of 0.593611 to 1.207481 compared with the CPU serial implementation, and the acceleration effect becomes faster with the file size, providing a reference for the implementation of the national secret algorithm on the GPU platform.

Read the paper · More papers on PaperTik