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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 1.4.0, 7u21, 8
    • Fix Version/s: None
    • Component/s: security-libs
    • Labels:

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mullan Sean Mullan
                Reporter:
                duke J. Duke (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: