Name: iiR10263 Date: 11/17/2003
The specification requires javax.crypto.Cipher implementation to throw
InvalidKeyException if specified key is inappropriate for
initialization. The above means that if null Key is inappropriate
InvalidKeyException instead of NullPointerException should be thrown.
Unfortunately implementations of some SunJCE Cipher objects throw
NullPointerException. This problem was reported in bug 4953551 but was
closed as "will not fix". It is reasonable to correct specification
in order to make throwing NullPointerException valid.
The problem may be addressed by adding NullPointerExceptin to "Throws"
section of the javax.crypto.Cipher.init(...) methods.