-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
1.4.0, 7u21, 8
-
sparc
-
solaris_8
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
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
- relates to
-
JDK-4638027 SecretKeyFactory.generateSecret() should have the ability to generate PBEKey
- Closed