Symphony of Speeds: Harmonizing Classic McEliece Cryptography With GPU Innovation
The Classic McEliece key encapsulation mechanism (KEM), a candidate in the fourth-round post-quantum cryptography (PQC) standardization process by the National Institute of Standards and Technology (NIST), stands out for its conservative design and robust security guarantees. Its deployment is impeded by exceptionally large public and secret keys. Modern GPUs offer abundant parallelism and global memory, making them well suited to such key sizes and to high-throughput cryptographic workloads. However, there has not been a systematic implementation of Classic McEliece on GPU platforms. This paper presents the first high-performance implementation of Classic McEliece on NVIDIA GPUs. Firstly, we present the first GPU-based implementation of Classic McEliece, utilizing a “CPU-GPU” heterogeneous approach and a kernel fusion strategy. We significantly reduce global memory accesses, optimizing memory access patterns. This results in encapsulation and decapsulation performance of 28,628,195 ops/s and 3,051,701 ops/s, respectively, for McEliece348864. Secondly, core operations like Additive Fast Fourier Transforms (AFFT), and Transpose AFFT (TAFFT) are optimized. We introduce the concept of the (T)AFFT stepping chain and propose two universal schemes: Memory Access Stepping Strategy (MASS) and Layer-Fused Memory Access Stepping Strategy (LFMASS), which achieve a speedup of 30.56% and 38.37%, respectively, compared to the native GPU-based McEliece6960119 implementation. Thirdly, extensive experiments on the NVIDIA RTX4090 show significant performance gains, achieving up to 344× higher encapsulation and 125× higher decapsulation compared to the official CPU-based AVX implementation, decisively outperforming existing ARM Cortex-M4 and FPGA implementations.
Authors
- Jiankuo Dong (ORCID: https://orcid.org/0000-0003-1693-3000)
- Jingqiang Lin (ORCID: https://orcid.org/0000-0003-1508-4879)
- Dung Hoang Duong (ORCID: https://orcid.org/0000-0001-8057-4060)
- Zhen Xu (ORCID: https://orcid.org/0000-0001-8855-0565)
- Zhenjiang Dong (ORCID: https://orcid.org/0009-0001-1213-8686)
- Fu Xiao (ORCID: https://orcid.org/0000-0003-1815-2793)
- Wen Wu (ORCID: https://orcid.org/0009-0007-0400-4323)
Institutions
- University of Science and Technology of China (CN)
- University of Wollongong (AU)
- Nanjing University of Posts and Telecommunications (CN)
Publication Details
- Journal
- IEEE Transactions on Information Forensics and Security
- Published
- 2025-01-01
- DOI
- https://doi.org/10.1109/tifs.2025.3595678
- Citations
- 1
- Primary Topic
- Chaos-based Image/Signal Encryption
- Type
- article
- Field-Weighted Citation Impact
- 1.28
Funders
- National Natural Science Foundation of China