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

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: 1.4.0, 7u21, 8
    • Component/s: 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: