From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22818 invoked by alias); 21 Apr 2006 02:30:20 -0000 Received: (qmail 22802 invoked by uid 48); 21 Apr 2006 02:30:19 -0000 Date: Fri, 21 Apr 2006 02:30:00 -0000 Message-ID: <20060421023019.22801.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug crypto/27228] java.security.InvalidAlgorithmParameterException In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: java-prs@gcc.gnu.org From: "csm at gnu dot org" Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2006-q2/txt/msg00142.txt.bz2 List-Id: ------- 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