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

Second parameter of "initialize" method is not used

    Details

    • Subcomponent:
    • Resolved In Build:
      b19
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        A DESCRIPTION OF THE PROBLEM :
        The second parameter of method "initialize(int keySize, SecureRandom random)" in "sun.security.rsa.RSAKeyPairGenerator" is not used.

            // initialize the generator. See JCA doc
            public void initialize(int keySize, SecureRandom random) {
                try {
                    initialize(new RSAKeyGenParameterSpec(keySize,
                            RSAKeyGenParameterSpec.F4), null);
                } catch (InvalidAlgorithmParameterException iape) {
                    throw new InvalidParameterException(iape.getMessage());
                }
            }

        It seems "null" is used, ignoring the passing in parameter.

        I don't know if this is intended or not.

        FREQUENCY : always


          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  valeriep Valerie Peng
                  Reporter:
                  webbuggrp Webbug Group
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: