-
Bug
-
Resolution: Fixed
-
P4
-
5.0
-
None
-
beta
-
generic
-
generic
When using the PBEWithMD5AndDES cipher impl from SunJCE provider,
if the wrong parameters (e.g. IvParameterSpec rather then PBEParameterSpec)
is specified, ClassCastException is thrown.
According to the javadoc spec of javax.crypto.Cipher.init(...) method,
InvalidAlgorithmParameterException should be thrown instead of
ClassCastException.
The test program is attached.
###@###.### 2004-12-16 19:20:57 GMT
if the wrong parameters (e.g. IvParameterSpec rather then PBEParameterSpec)
is specified, ClassCastException is thrown.
According to the javadoc spec of javax.crypto.Cipher.init(...) method,
InvalidAlgorithmParameterException should be thrown instead of
ClassCastException.
The test program is attached.
###@###.### 2004-12-16 19:20:57 GMT