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. Thanks, Sergey On 5/5/07, Sergey Dmitriev 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 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 > > >