所以我试图找出离散对数问题和 RSA 之间的联系。我认为这就是以下问题试图做的事情。
Suppose you have an oracle which gives you the smallest positive x satisfying
the following congruence:
g^x ≡ k (mod N)
where N = p*q for some distinct primes p and q, and g and k are any integers.
We also have one more condition that (p -1)/2 and (q -1)/2 are both primes.
What is the quickest way to find p and q? i.e. factor N.
所以我完全不知道如何解决这个问题。如果有人可以为我提供解决此问题的提示/解决方案,我将不胜感激。谢谢。