Secure Distributed RSA Modulus Generation Revisited: A Faster and More Communication-Efficient Construction

Authors: 

Shaojing Zhang, College of Computer Science and Technology, Qingdao University; Chengliang Tian, College of Computer Science and Technology, Qingdao University, and State Key Laboratory of Cryptography and Digital Economy Security, Shandong University; Ruixue Wang and Hequn Xian, College of Computer Science and Technology, Qingdao University; Guangwu Xu, State Key Laboratory of Cryptography and Digital Economy Security and School of Cyber Science and Technology, Shandong University

Abstract: 

Securely generating an RSA modulus N = p q N=pq in a distributed n n-party setting while keeping its factors private is a core challenge in threshold cryptography. This paper revisits this problem and improves the state‑of‑the‑art distributed Miller–Rabin primality test by replacing its core component—the divisibility test—with a novel zero‑testing protocol.

Our key innovation is an elegant distributed design of Montgomery reduction, which transforms checking δmodf=0 (given shares of δ and f) into testing whether a product equals zero. This approach enables efficient distributed evaluation and offers: (1) Perfect correctness. Unlike prior approaches that are probabilistic or require impractically large shares, our zero test decides δmodf=0 deterministically. (2) Improved efficiency. Our zero test runs in only 7 rounds and uses 5 secure multiplications, improving over previous divisibility tests that require either 3+⌈log2n⌉ rounds with n+3 multiplications or 8 rounds with 5n−1 multiplications. Extensive experiments under honest-majority settings show increasing speedups for n ≥ 9, with the efficiency advantage growing as the number of parties increases. Moreover, our semi-honest protocol supports both honest- and dishonest-majority settings via appropriate secure multiplication primitives, and can be upgraded to malicious security with standard compilers.

USENIX Security '26 Open Access Sponsored by
King Abdullah University of Science and Technology (KAUST)

Open Access Media

USENIX is committed to Open Access to the research presented at our events. Papers and proceedings are freely available to everyone once the event begins. Any video, audio, and/or slides that are posted after the event are also free and open to everyone. Support USENIX and our commitment to Open Access.

BibTeX
@inproceedings {320815,
author = {Shaojing Zhang and Chengliang Tian and Ruixue Wang and Hequn Xian and Guangwu Xu},
title = {Secure Distributed {RSA} Modulus Generation Revisited: A Faster and More {Communication-Efficient} Construction},
booktitle = {35th USENIX Security Symposium (USENIX Security 26)},
year = {2026},
isbn = {978-1-939133-58-8},
address = {Baltimore, MD},
pages = {6287--6303},
url = {https://www.usenix.org/conference/usenixsecurity26/presentation/zhang-shaojing},
publisher = {USENIX Association},
month = aug
}