跳到主要导航 跳到搜索 跳到主要内容

PQMagic: Towards Secure and Efficient Post Quantum Cryptography Implementations

  • Yituo He*
  • , Xinpeng Hao
  • , Juanru Li
  • , Yu Yu
  • *此作品的通讯作者
  • Shanghai Qi Zhi Institute
  • Feiyu Tech
  • Shanghai Jiao Tong University

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

Quantum computing threatens current public-key cryptosystems, driving the need for post-quantum cryptography (PQC). However, PQC implementations face additional risks. We find implementation issues in existing PQC libraries (e.g., pq-crystals and liboqs), while they also fail to fully leverage modern processors. To address these issues, we propose four optimization strategies: Branch Optimization, Register Allocation, Vectorized Execution, and Secure and Efficient Pipelining. These strategies minimize execution branches, instruction counts, and memory accesses while enhancing security, mitigating the implementation from side-channel attack risk. We implement these in PQMagic, a high-performance PQC library for ML-KEM and ML-DSA, and it significantly outperforms state-of-the-art libraries. For ML-KEM-1024, it achieves efficiency gains of up to 1.77x, 1.79x, and 1.52x for Keygen, Encaps, and Decaps, while reducing instruction counts and memory access overhead by up to 47.1% and 60.1%. For ML-DSA-87, it improves Keygen, Sign, and Verify by up to 2.24x, 1.89x, and 2.04x, with instruction counts and memory access reduced by up to 44.4% and 64.5%. Additionally, PQMagic eliminates up to 90.9% of branch operations in matrix expansion for ML-DSA. Besides, PQMagic also outperforms traditional cryptographic algorithm combinations (RSA-2048/ECDSA-256 + ECDH) selected from OpenSSL. It only has a slight gap at the highest level L5 compared to ECDSA-256 + ECDH combination. Our work shows that combining modern hardware capabilities with careful instruction scheduling enables secure and efficient PQC implementations, paving the way for post-quantum cryptographic migration.

源语言英语
主期刊名Applied Cryptography and Network Security Workshops - ACNS 2025 Satellite Workshops
主期刊副标题AIHWS, AIoTS, QSHC, SCI, PrivCrypt, SPIQE, SiMLA, and CIMSS 2025, Revised Selected Papers
编辑Mark Manulis
出版商Springer Science and Business Media Deutschland GmbH
152-172
页数21
ISBN(印刷版)9783032018052
DOI
出版状态已出版 - 2026
已对外发布
活动Satellite Workshops held in parallel with the 23rd International Conference on Applied Cryptography and Network Security, ACNS 2025 - Munich, 德国
期限: 23 6月 202526 6月 2025

出版系列

姓名Lecture Notes in Computer Science
15654 LNCS
ISSN(印刷版)0302-9743
ISSN(电子版)1611-3349

会议

会议Satellite Workshops held in parallel with the 23rd International Conference on Applied Cryptography and Network Security, ACNS 2025
国家/地区德国
Munich
时期23/06/2526/06/25

指纹

探究 'PQMagic: Towards Secure and Efficient Post Quantum Cryptography Implementations' 的科研主题。它们共同构成独一无二的指纹。

引用此