RSA and prime-generator algorithms

前端 未结 5 2020
不思量自难忘°
不思量自难忘° 2021-02-02 00:59

OK, my understanding of the mathematical workings of RSA may not be as deep as it should, so feel free to slap me over the head if this is stupid:

To generate a private

5条回答
  •  春和景丽
    2021-02-02 01:29

    If you have true primes, then there are no shortcuts but brute force. If you are are not 100% sure, the attacker won't be either. Also, you can be enough confident with prime number test algoritms, that the risk of having a non prime nunber is less than 1 to the entire key space. Basically you can statistically be sure that your number is prime. In other words, the odds for guessing it's not a prime should be higher than guessing the right key. It just requires some patience at key generation time.

提交回复
热议问题