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

PBEWithMD5AndDES SecretKeyFactory not available

XMLWordPrintable

      FULL PRODUCT VERSION :
      java version "1.6.0-beta2"
      Java(TM) SE Runtime Environment (build 1.6.0-beta2-b86)
      Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-beta2-b86, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Linux powerpig 2.6.15-gentoo-r7 #11 SMP PREEMPT Sun Jun 25 09:52:42 CEST 2006 x86_64 AMD Turion(tm) 64 Mobile Technology MT-30 AuthenticAMD GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      SecretKeyFactory.getInstance("PBEWithMD5AndDES");

      results in:

      java.security.NoSuchAlgorithmException: PBEWithMD5AndDES SecretKeyFactory not available

      It worked in jdk1.6.0-beta-1 . However this wasn't a selection so I was not
      able to tell this. Nothing really - this has always worked, and have also worked in the mustang releases except this last beta2 release.

      I ran this small program on my Gentoo-Linux AMD64 (using mustang for amd64
      linux), and got the exception. This exception doesn't happen on earlier
      releases.

      REGRESSION. Last worked in version mustang

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      import java.security.NoSuchAlgorithmException;

      import javax.crypto.SecretKeyFactory;


      public class JSE6SecretKeyFactoryTest {

      /**
      * @param args
      * @throws NoSuchAlgorithmException
      */
      public static void main(String[] args) throws NoSuchAlgorithmException {
      SecretKeyFactory.getInstance("PBEWithMD5AndDES");
      }

      }


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The code above should not produce any output
      ACTUAL -
      Exception in thread "main" java.security.NoSuchAlgorithmException: PBEWithMD5AndDES SecretKeyFactory not available
      at javax.crypto.SecretKeyFactory.<init>(DashoA13*..)
      at javax.crypto.SecretKeyFactory.getInstance(DashoA13*..)
      at tests.JSE6SecretKeyFactoryTest.main(JSE6SecretKeyFactoryTest.java:16)


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Exception in thread "main" java.security.NoSuchAlgorithmException: PBEWithMD5AndDES SecretKeyFactory not available
      at javax.crypto.SecretKeyFactory.<init>(DashoA13*..)
      at javax.crypto.SecretKeyFactory.getInstance(DashoA13*..)
      at tests.JSE6SecretKeyFactoryTest.main(JSE6SecretKeyFactoryTest.java:16)


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import java.security.NoSuchAlgorithmException;

      import javax.crypto.SecretKeyFactory;


      public class JSE6SecretKeyFactoryTest {

      /**
      * @param args
      * @throws NoSuchAlgorithmException
      */
      public static void main(String[] args) throws NoSuchAlgorithmException {
      SecretKeyFactory.getInstance("PBEWithMD5AndDES");
      }

      }

      ---------- END SOURCE ----------

      Release Regression From : mustang
      The above release value was the last known release where this
      bug was not reproducible. Since then there has been a regression.

            wetmore Bradford Wetmore
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: