This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug crypto/27228] java.security.InvalidAlgorithmParameterException



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]