Improved Distributed RSA Key Generation Using the Miller-Rabin Test

Jakob Burkhardt, Ivan Damgård, Tore Kasper Frederiksen, Satrajit Ghosh, Claudio Orlandi

TL;DR

This paper introduces a new, more efficient protocol for securely generating RSA keys in a distributed setting, using the Miller-Rabin primality test instead of the traditional Boneh-Franklin test. This leads to significant speedups, especially in honest majority scenarios, while maintaining strong security guarantees.

What Problem Does This Paper Address?

Generating RSA keys securely in a distributed manner is crucial for advanced cryptographic applications like threshold RSA and protocols requiring a trusted RSA modulus whose factors are unknown. The challenge lies in ensuring that no single party learns the prime factors (p and q) of the modulus (N=pq) during the generation process. Existing protocols often rely on the Boneh-Franklin bi-primality test, which, while secure, requires many iterations to achieve a negligible error probability, making it computationally expensive. This paper aims to improve the efficiency of this process by leveraging the Miller-Rabin test, which offers a much lower error rate per iteration for sufficiently large numbers.

Methods

The core of the paper is a novel protocol for distributed RSA key generation that utilizes the Miller-Rabin primality test. The authors introduce a new, efficient divisibility test that allows them to perform the primality test on secret-shared values without revealing them. This protocol is built modularly from several sub-protocols (macros) for operations like secure multiplication, share conversion, and inversion. The protocol is designed to be secure against semi-honest adversaries and can be upgraded to achieve malicious security using existing compilers. The authors also explore different underlying secure multiplication protocols, allowing instantiation for both honest and dishonest majority settings.

Datasets

Not discussed in the paper. The evaluation is based on experimental benchmarks of the implemented protocols.

Key Insights and Ideas

  • Miller-Rabin's Advantage: The Miller-Rabin test, when applied to large numbers (e.g., 4096 bits), provides a negligible error probability after just a single iteration, significantly reducing the computational overhead compared to the Boneh-Franklin test which requires multiple iterations.
  • Novel Divisibility Test: A key technical contribution is a new divisibility test that enables efficient primality testing of secret-shared numbers, a critical component for distributed RSA key generation.
  • Modular Design: The protocol's modular structure allows for flexibility in choosing underlying secure multiplication protocols, enabling adaptation to different security settings (honest vs. dishonest majority) and facilitating easier analysis and implementation.
  • Efficiency Gains: For honest majority scenarios, the proposed protocol offers substantial performance improvements over existing methods, particularly in terms of latency.

Key Results

The experimental evaluation demonstrates that the proposed protocol is significantly faster than the Boneh-Franklin protocol in honest majority settings. For instance, in the honest majority case, the latency was observed to be 3.5x to 20x lower for 3 parties and 3.2x to 14x lower for 11 parties. The protocol also shows better throughput and price performance in honest majority scenarios. While the protocol is slower in dishonest majority settings due to the increased cost of secure multiplications, it still offers a viable alternative. The authors also note that upgrading to malicious security using existing compilers incurs only a small constant factor overhead.

Limitations and Future Work

The authors acknowledge that their protocol is slower in dishonest majority settings due to the reliance on secure multiplications. They also mention that while their semi-honest protocol can be upgraded to malicious security, a full implementation of the malicious version was not completed. Future work could involve further optimizing the protocol for dishonest majority scenarios and exploring more advanced techniques for achieving malicious security with guaranteed output delivery. The paper also suggests that the modular design facilitates further research into optimizing individual sub-protocols.

Summary updated

BibTeX
@article{burkhardt2023improved,
  author = {Jakob Burkhardt and Ivan Damgård and Tore Kasper Frederiksen and Satrajit Ghosh and Claudio Orlandi},
  title = {{Improved Distributed RSA Key Generation Using the Miller-Rabin Test}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2023},
  url = {https://openreview.net/forum?id=pN6B6l4LnA},
}
Figure