-
Bug
-
Resolution: Fixed
-
P4
-
5.0
-
None
-
beta
-
generic, x86
-
generic, windows_xp
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2132434 | 5.0u7 | Bradford Wetmore | P3 | Resolved | Fixed | b01 |
Cipher.init(int opmode, Key key) throws exception when Cipher is generated using RC4 as algorithm, but no exception were thrown if algorithm is ARCFOUR.
The following exception is generated by the test program attached (SQE ws: .../security/src/Manual/PKCS11/TestSunJCE.java):
--- START ---
... TESTING: Algorithm = ARCFOUR : KeyLength = 128 ...
Provider: SunJCE version 1.5
IV: null
=== STATUS: PASS
... TESTING: Algorithm = RC4 : KeyLength = 128 ...
Provider: SunJCE version 1.5
IV: null
=== STATUS: FAIL (with exception)
java.security.InvalidKeyException: Illegal key size or default parameters
at javax.crypto.Cipher.a(DashoA12275)
at javax.crypto.Cipher.init(DashoA12275)
at javax.crypto.Cipher.init(DashoA12275)
at TestSunJCE.testSecretKey(TestSunJCE.java:213)
at TestSunJCE.main(TestSunJCE.java:480)
--- END: ---
STATUS: FAIL
The following exception is generated by the test program attached (SQE ws: .../security/src/Manual/PKCS11/TestSunJCE.java):
--- START ---
... TESTING: Algorithm = ARCFOUR : KeyLength = 128 ...
Provider: SunJCE version 1.5
IV: null
=== STATUS: PASS
... TESTING: Algorithm = RC4 : KeyLength = 128 ...
Provider: SunJCE version 1.5
IV: null
=== STATUS: FAIL (with exception)
java.security.InvalidKeyException: Illegal key size or default parameters
at javax.crypto.Cipher.a(DashoA12275)
at javax.crypto.Cipher.init(DashoA12275)
at javax.crypto.Cipher.init(DashoA12275)
at TestSunJCE.testSecretKey(TestSunJCE.java:213)
at TestSunJCE.main(TestSunJCE.java:480)
--- END: ---
STATUS: FAIL
- backported by
-
JDK-2132434 Cipher.init throws exception if Cipher is generated using RC4 as algorithm
-
- Resolved
-
- duplicates
-
JDK-5056170 Unspecified NPE in Cipher init(int, Key) and init(int, Key,
-
- Closed
-