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

Second parameter of "initialize" method is not used

    XMLWordPrintable

Details

    • b19
    • generic
    • generic
    • 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

                valeriep Valerie Peng
                webbuggrp Webbug Group
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: