Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 42200 invoked from network); 5 May 2007 10:05:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 May 2007 10:05:24 -0000 Received: (qmail 29260 invoked by uid 500); 5 May 2007 10:05:28 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 29212 invoked by uid 500); 5 May 2007 10:05:28 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 29203 invoked by uid 99); 5 May 2007 10:05:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 May 2007 03:05:28 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of sergey.v.dmitriev@gmail.com designates 64.233.166.177 as permitted sender) Received: from [64.233.166.177] (HELO py-out-1112.google.com) (64.233.166.177) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 May 2007 03:05:20 -0700 Received: by py-out-1112.google.com with SMTP id p76so906756pyb for ; Sat, 05 May 2007 03:05:00 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DS4IpaPGNclhgSDOkTWHGJtzPGGoZO5rzRGgf7VI9PimZ2x5XQ5rgjPJ+HILQw+e43o9JaPt4iEqqQI83OzQtnDCPKDDB6KoWm2IWgk0eol9QpRel3/l+FY1VujA1GYSqlBReanObITrDlHUPXXRRRxdKGl2MniuovCESwpF1TA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OIgaI96Om2mnw3z4y160zvj64epFqlkRgpzyNm0bR8MrCpxvsXe6EeWkGpUZ0lvPsUgdXVeH/zUkGqUE6FE0EAiomOzLlf3J0VJjuViBjPVj0O68x89UEWcMgz6KnuExCMFF9BD4hbAUX/03fyOp+M4xd1mhE7rQM5UYsvv5EGs= Received: by 10.64.241.3 with SMTP id o3mr7289368qbh.1178359500184; Sat, 05 May 2007 03:05:00 -0700 (PDT) Received: by 10.65.237.19 with HTTP; Sat, 5 May 2007 03:05:00 -0700 (PDT) Message-ID: Date: Sat, 5 May 2007 14:05:00 +0400 From: "Sergey Dmitriev" To: dev@harmony.apache.org Subject: Re: Diffie-Hellman KeyPairGenerator problem In-Reply-To: <6e47b64f0705032330g48a85158qd5fa3028d2afff80@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6e47b64f0705032330g48a85158qd5fa3028d2afff80@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Yes, the case you mentioned hangs on my side as well. Well I've replaced Harmony's math.jar with JRockit's math classes - the same picture, it just hangs. It is not about math. I've taken a walk to BC sources and found that it does not actually hangs up - it just works very long. The problem is in safe primes generation for DH in org.bouncycastle.crypto.generators.DHParametersHelper.generateSafePrimes(). The default values I found there are: strength = 1024 bit, certainty = 20. Probably some crypto specialists can comment this issue out. BTW the given testcase comes "back to life" in 12-15 minutes on my box. Thank Sergey On 5/4/07, Stepan Mishura wrote: > On 5/3/07, Sergey Dmitriev wrote: > > Guys > > > > could some of you take a look at java.security.KeyPairGenerator? > > It hangs while generating public/private key pair. > > > > The test hands for me on BEA JRockit. I did the following: > 1) modify a test from JIRA - add provider name param to method: > KeyPairGenerator.getInstance("DH", "BC"); > 2) copy /depends/jars/bcprov-jdk15-136/bcprov.jar to > jre/lib/ext directory > 3) add line to java.security file: > security.provider.7=org.bouncycastle.jce.provider.BouncyCastleProvider > > Could you reproduce it? > > -Stepan. > > > I filed JIRA with respect to this: > > https://issues.apache.org/jira/browse/HARMONY-3789. > > > > > > Thanks > > Sergey > > > > > -- > Stepan Mishura > Intel Enterprise Solutions Software Division >