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

RSAKeyPairGenerator initialize drops SecureRandom parameter

    XMLWordPrintable

Details

    Description

      A DESCRIPTION OF THE PROBLEM :
      The behavior of the following piece of code changed between java10 and java11: https://gist.github.com/alokmenghrajani/94703a63652bf17c328f921bd3431189

      I believe the bug is the null in https://github.com/AdoptOpenJDK/openjdk-jdk11/blob/999dbd4192d0f819cb5224f26e9e7fa75ca6f289/src/java.base/share/classes/sun/security/rsa/RSAKeyPairGenerator.java?fbclid=IwAR2UE_r8ove135uXt2bv_5LJ3Ay3BHgnxoepi78Mhloe02Qb53oc1eivYxU#L73 which was introduced in https://github.com/AdoptOpenJDK/openjdk-jdk11/commit/12fbbe6212f4b8ce2822cd592841ba28524cf8c7 (when RSASSA-PSS was added).

      REGRESSION : Last worked in version 10.0.2

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run the code from https://gist.github.com/alokmenghrajani/94703a63652bf17c328f921bd3431189 on Java10. The output between genKey1() and genKey2() will differ when it should not.


      FREQUENCY : always


      Attachments

        Issue Links

          Activity

            People

              psonal Pallavi Sonal (Inactive)
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: