Supposing that the (3 total) primes are kept secret? Does the reuse of $p_1$ allow an attacker to compromise $n_1$ and $n_2$ if the attacker guesses that both were generated with a shared prime between them (each having one unique prime)?
Asked
Active
Viewed 83 times
1
-
4Hint : GCD them all – kelalaka May 24 '20 at 10:30
1 Answers
2
Yes, this trivially compromises them. Simply compute the gcd of $n_1$ and $n_2$, which will return $p_1$ (assuming $q_1 \neq q_2$). The gcd can be computed efficiently using Euclid's algorithm.

hakoja
- 2,725
- 18
- 22