wokier / gwt-crypto

Automatically exported from code.google.com/p/gwt-crypto
8 stars 1 forks source link

RSA KeyPair generation fails in Production Mode #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is a very interesting project. Great work!

When I try to generate an RSA keypair in production mode, the browser freezes. 
Possibly an infinite loop somewhere? The code runs fine in Dev Mode.  I'm new 
to GWT so maybe I'm just doing something wrong.

Also, I noticed in the gwt-crypto source code that the unit test 
RSATest.testGenKey() is skipped in production mode. Does that mean this is a 
known issue?

What steps will reproduce the problem?
1) Build the attached project with "mvn clean install"
2) Open the HTML file in a browser: target/rsa-test-1.0-SNAPSHOT/RsaTest.html 
(Chrome, as usual, will require it to be on a web server)
3) Push the button.
4) Firefox v22.0 and Chromium v28.0.1500.52 freeze. (Running on Ubuntu 12.04)

What version of the product are you using? On what operating system?
Version 2.3.0
Ubuntu 12.04 LTS

Original issue reported on code.google.com by question...@gmail.com on 8 Jul 2013 at 2:21

Attachments:

GoogleCodeExporter commented 9 years ago
It actually doesn't freeze completely. It just takes hours or possibly days. 
The issue is the modPow implementation in BigInteger.

See https://code.google.com/p/google-web-toolkit/issues/detail?id=8310

Original comment by quickte...@gmail.com on 5 Feb 2014 at 12:55

wokier commented 9 years ago

Same as #26