Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8216012

Infinite loop in RSA KeyPairGenerator

XMLWordPrintable

        When an even value is used for the RSA public exponent e, it is not possible to find a phi(n) that is relatively prime to e. The key generation routine still attempts to find one in an infinite loop. We can fix this by rejecting even values, and/or by exiting the loop after a fixed number of attempts.

              valeriep Valerie Peng
              apetcher Adam Petcher (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: