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

PBE Cipher should have the ability to use params from PBE Key

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.4.0, 7u21, 8
    • security-libs

      Current PBE cipher can not retrieve the salt and iterateCount from a PBE key, which contains the password, salt and iteratecount, etc. The cipher should retrieve this information first from PBEKey, then check the PBEParameterSpec. If both two have no such information, then the cipher should produce them for itself.

      How to produce it.
      1. untar the attached tar file in a workdir.
      2. cd $workdir.
      3. sh Run.sh

      You will observe that the following message
      Compiling ......
      Running .....
      java.security.InvalidAlgorithmParameterException: Parameters missing
              at com.sun.crypto.provider.PBEWithMD5AndDESCipher.engineInit(DashoA6275)
              at javax.crypto.Cipher.init(DashoA6275)
              at TestCipherPBE.runTest(TestCipherPBE.java:63)
              at TestCipherPBE.main(TestCipherPBE.java:27)


      ###@###.### 2002-02-06

            mullan Sean Mullan
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: