Vectorized optimization implementation of CRYSTALS-Kyber algorithm based on LoongArch architecture

Lei Xiongwei1
Wang Lutao1
Shen Yan1
Zhao Yihui1
Chen Jun2
1. School of Computer Science, Chengdu University of Information Technology, Chengdu Sichuan 610225, China
2. School of Computer Engineering and Network Security, Guang'an Institute of Technology, Guang'an Sichuan 638550, China

Abstract

To address the lack of efficient post-quantum cryptography implementations on the emerging domestic LoongArch architecture, a systematic vectorized optimization of the NIST-standardized CRYSTALS-Kyber algorithm was conducted. This research leveraged the LSX/LASX vector extension instruction sets of LoongArch to develop and implement several key techniques: a four-way parallel strategy for the SHA-3 hash function (SHAKE) to accelerate pseudo-random data generation; a vector-mask-based parallel rejection sampling and centered binomial distribution (CBD) sampling algorithm to enhance sampling efficiency; in-place computation using vector registers for the core number theoretic transforms (FNTT/IFNTT) to eliminate redundant memory accesses; and a pre-multiplied rotation factor technique to optimize polynomial multiplication. Experimental results on the Loongson 3A5000 processor demonstrate that the optimized Kyber-512, Kyber-768, and Kyber-1024 implementations achieve an overall performance improvement of over 70% compared to the standard C implementation and approximately 40% compared to a translated AVX2 implementation for key generation, encapsulation, and decapsulation. This work establishes an efficient and secure foundation for post-quantum cryptographic applications within the LoongArch ecosystem.

Foundation Support

国家自然科学基金资助项目(62172061)
四川省重大科技专项项目(25JBGS0039)

Publish Information

DOI: 10.19734/j.issn.1001-3695.2025.09.0439
Publish at: Application Research of Computers Accepted Paper, Vol. 43, 2026 No. 7

Publish History

[2026-03-05] Accepted Paper

Cite This Article

雷雄伟, 王录涛, 沈艳, 等. 基于LoongArch架构的CRYSTALS-Kyber算法向量优化实现 [J]. 计算机应用研究, 2026, 43 (7). (2026-03-24). https://doi.org/10.19734/j.issn.1001-3695.2025.09.0439. (Lei Xiongwei, Wang Lutao, Shen Yan, et al. Vectorized optimization implementation of CRYSTALS-Kyber algorithm based on LoongArch architecture [J]. Application Research of Computers, 2026, 43 (7). (2026-03-24). https://doi.org/10.19734/j.issn.1001-3695.2025.09.0439. )

About the Journal

  • Application Research of Computers Monthly Journal
  • Journal ID ISSN 1001-3695
    CN  51-1196/TP

Application Research of Computers, founded in 1984, is an academic journal of computing technology sponsored by Sichuan Institute of Computer Sciences under the Science and Technology Department of Sichuan Province.

Aiming at the urgently needed cutting-edge technology in this discipline, Application Research of Computers reflects the mainstream technology, hot technology and the latest development trend of computer application research at home and abroad in a timely manner. The main contents of the journal include high-level academic papers in this discipline, the latest scientific research results and major application results. The contents of the columns involve new theories of computer discipline, basic computer theory, algorithm theory research, algorithm design and analysis, blockchain technology, system software and software engineering technology, pattern recognition and artificial intelligence, architecture, advanced computing, parallel processing, database technology, computer network and communication technology, information security technology, computer image graphics and its latest hot application technology.

Application Research of Computers has many high-level readers and authors, and its readers are mainly senior and middle-level researchers and engineers engaged in the field of computer science, as well as teachers and students majoring in computer science and related majors in colleges and universities. Over the years, the total citation frequency and Web download rate of Application Research of Computers have been ranked among the top of similar academic journals in this discipline, and the academic papers published are highly popular among the readers for their novelty, academics, foresight, orientation and practicality.


Indexed & Evaluation

  • The Second National Periodical Award 100 Key Journals
  • Double Effect Journal of China Journal Formation
  • the Core Journal of China (Peking University 2023 Edition)
  • the Core Journal for Science
  • Chinese Science Citation Database (CSCD) Source Journals
  • RCCSE Chinese Core Academic Journals
  • Journal of China Computer Federation
  • 2020-2022 The World Journal Clout Index (WJCI) Report of Scientific and Technological Periodicals
  • Full-text Source Journal of China Science and Technology Periodicals Database
  • Source Journal of China Academic Journals Comprehensive Evaluation Database
  • Source Journals of China Academic Journals (CD-ROM Version), China Journal Network
  • 2017-2019 China Outstanding Academic Journals with International Influence (Natural Science and Engineering Technology)
  • Source Journal of Top Academic Papers (F5000) Program of China's Excellent Science and Technology Journals
  • Source Journal of China Engineering Technology Electronic Information Network and Electronic Technology Literature Database
  • Source Journal of British Science Digest (INSPEC)
  • Japan Science and Technology Agency (JST) Source Journal
  • Russian Journal of Abstracts (AJ, VINITI) Source Journals
  • Full-text Journal of EBSCO, USA
  • Cambridge Scientific Abstracts (Natural Sciences) (CSA(NS)) core journals
  • Poland Copernicus Index (IC)
  • Ulrichsweb (USA)