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

Disable sliding window exponentiation for exponent 65537

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 5.0
    • 5.0
    • core-libs
    • tiger
    • generic
    • generic

      RSA public keys most commonly use 65537 (0x10001) as the public exponent. The sliding window exponentation algorithm the BigInteger class uses is ineffective in this case, you only pay the precomputation penalty. It should be disabled for this exponent.

      I measure a 6-8% performance improvement for RSA public key operations using this exponent on SPARC/x86 with both C1 and C2, see suggested fix. RSA like benchmark program attached.

            andreas Andreas Sterbenz
            andreas Andreas Sterbenz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: