This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug crypto/27228] java.security.InvalidAlgorithmParameterException
- From: "csm at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 21 Apr 2006 02:30:19 -0000
- Subject: [Bug crypto/27228] java.security.InvalidAlgorithmParameterException
- References: <bug-27228-7936@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from csm at gnu dot org 2006-04-21 02:30 -------
There's an `instanceof' check that I think is wrong in
gnu.javax.crypto.jce.sig.DHKeyPairGeneratorSpi.java, line 80:
-> if (! (params instanceof DHGenParameterSpec))
-> throw new InvalidAlgorithmParameterException("params");
The `DHKeyPairGeneratorSpi' class delegates the call to the class
`gnu.javax.crypto.key.dh.GnuDHKeyPairGenerator,' which looks to me like it can
handle both `DHParameterSpec' and `DHGenParameterSpec.' The `instanceof' above
should test for both kinds of parameters.
Also: why are Diffie Hellman classes in the `sig' package?
--
csm at gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |csm at gnu dot org
Last reconfirmed|2006-04-20 22:16:04 |2006-04-21 02:30:18
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27228