You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Paulex Yang (JIRA)" <ji...@apache.org> on 2007/04/30 18:27:15 UTC
[jira] Updated: (HARMONY-3789) [classlib][security]Diffie-Hellman
KeyPairGenerator hangs on generating public/private keys
[ https://issues.apache.org/jira/browse/HARMONY-3789?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paulex Yang updated HARMONY-3789:
---------------------------------
Summary: [classlib][security]Diffie-Hellman KeyPairGenerator hangs on generating public/private keys (was: Diffie-Hellman KeyPairGenerator hangs on generating public/private keys)
> [classlib][security]Diffie-Hellman KeyPairGenerator hangs on generating public/private keys
> -------------------------------------------------------------------------------------------
>
> Key: HARMONY-3789
> URL: https://issues.apache.org/jira/browse/HARMONY-3789
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: linux-ia32, win-ia32
> Reporter: Sergey Dmitriev
>
> Diffie-Hellman KeyPairGenerator hangs on generating public/private
> pair of keys (at least it takes more than 5 minutes of 100% CPU load,
> I pressed Ctrl-C). On JRockit it takes about couple of seconds on same
> machine.
> ] boy@moon ~
> ] time java -showversion keypair
> java version "1.5.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
> BEA WebLogic JRockit(R) (build dra-38972-20041208-2001-linux-ia32, R25.0.0-75, GC: System optimized over throughput (initial strategy singleparpar))
>
> kpg : java.security.KeyPairGenerator$Delegate@80d0bd8
> keypair: java.security.KeyPair@80d2c33
>
> real 0m2.845s
> user 0m1.854s
> sys 0m0.178s
> ] boy@moon ~
> ] time ~/jre2/bin/java -showversion keypair
> Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable.
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r532358, (Apr 25 2007), Linux/ia32/gcc 3.3.3, release build
> http://incubator.apache.org/harmony
> kpg : org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH@128
> ^C
>
> real 5m17.690s
> user 5m16.204s
> sys 0m0.485s
> ] boy@moon ~
> ] cat keypair.java
> import java.security.*;
>
> public class keypair {
> public static void main(String args[]) throws Exception {
> KeyPairGenerator kpg = KeyPairGenerator.getInstance("DH");
> System.out.println("kpg : " + kpg);
> System.out.println("keypair: " + kpg.genKeyPair());
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.