harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stepan Mishura" <stepan.mish...@gmail.com>
Subject Re: Diffie-Hellman KeyPairGenerator problem
Date Mon, 07 May 2007 04:16:57 GMT
On 5/6/07, Sergey Dmitriev wrote:
> Actually I've filed an issue on Bouncy Casle JIRA,
> http://www.bouncycastle.org/jira/browse/BJA-19. It is closed as not a
> bug.
>

Interesting ... to browse Bouncy Casle JIRA an account is required.

Anyway could you add a link(to BJA-19) to HARMONY-3789 and close it?

Thanks,
Stepan.

> Thanks, Sergey
>
>
> On 5/5/07, Sergey Dmitriev <sergey.v.dmitriev@gmail.com> wrote:
> > 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 <stepan.mishura@gmail.com> wrote:
> > > On 5/3/07, Sergey Dmitriev <sergey.v.dmitriev@gmail.com> 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 <classlib>/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

Mime
View raw message