信息网络安全 ›› 2023, Vol. 23 ›› Issue (7): 1-8.doi: 10.3969/j.issn.1671-1122.2023.07.001

• 等级保护 • 上一篇    下一篇

量子求解欧拉函数破解RSA算法

张兴兰1,2, 张丰1,2()   

  1. 1.北京工业大学信息学部,北京 100124
    2.可信计算北京市重点实验室,北京 100124
  • 收稿日期:2023-01-16 出版日期:2023-07-10 发布日期:2023-07-14
  • 通讯作者: 张丰 changfeng@emails.bjut.edu.cn
  • 作者简介:张兴兰(1970—),女,山西,教授,博士,主要研究方向为密码学、量子计算、量子机器学习和量子密钥|张丰(1998—),男,江西,硕士研究生,主要研究方向为量子计算、量子机器学习和量子组合优化
  • 基金资助:
    北京市自然科学基金(4212015)

Quantum Solving Euler’s Totient Function to Crack RSA

ZHANG Xinglan1,2, ZHANG Feng1,2()   

  1. 1. Faculty of Information Technology, Beijing University of Technology, Beijing 100124, China
    2. Beijing Key Laboratory of Trusted Computing, Beijing 100124, China
  • Received:2023-01-16 Online:2023-07-10 Published:2023-07-14

摘要:

量子计算根据量子力学原理设计,具有天然的并行计算优势。Shor算法是一个能够快速分解整数,从而有望破解RSA加密技术的算法。然而Shor算法存在着需要构造的模幂电路极其复杂、量子位数会影响后期连分式计算精度的缺点,因此难以在量子计算机上实现。针对上述问题,文章基于数论知识和RSA算法提出一种新的算法,设计相关量子线路去求解待分解整数$~N$的欧拉函数,待量子求解出待分解整数的欧拉函数后,通过构造二元一次方程组可以求出整数$~N$的两质因子。并且结合公钥可以进一步计算出私钥,从而对密文进行破译。文章所提算法在做到通用的基础上,只使用$~2n+2$个量子比特,仅需要求解数的模乘,不用进行连分式计算,从而实现计算量和线路复杂度低的量子算法。

关键词: 量子计算, Shor算法, RSA算法, 欧拉函数

Abstract:

Quantum computing is a novel computing mode based on the principles of quantum mechanics, which has the natural advantages of parallel computing. Shor’s algorithm is an algorithm that can quickly decompose integers and is expected to crack RSA encryption technology. However, Shor’s algorithm is difficult to be implemented on a quantum computer due to the fact that the modular power circuit to be constructed is extremely complex, and the number of qubits affects the accuracy of the subsequent continued fractions. To solve the above problems, this paper proposed a new algorithm based on the knowledge of number theory and RSA algorithm, designed relevant quantum circuits to solve the Euler’s totient function of the integer N to be decomposed. After the Euler’s totient function of the integer N to be decomposed was solved by quantum computing, the two prime factors could be obtained by constructing and solving a system of binary linear equations. Moreover, the private key could be further calculated by combining the public key, so as to crack the ciphertext. On the basis of universality, this algorithm only uses 2n+2 qubits, only needs to solve the modular multiplication of numbers, and does not need to calculate continued fractions.

Key words: quantum computing, Shor’s algorithm, RSA algorithm, Euler’s totient function

中图分类号: