« Return to Thread: RSA Key Gen: Fast in Test App, Slow in Real App.

Re: RSA Key Gen: Fast in Test App, Slow in Real App.

by Bugzilla from bradh@frogmouth.net :: Rate this Message:

Reply to Author | View in Thread

On Tuesday 19 September 2006 12:35, jitspoe wrote:
> I made a test app to test RSA key generation and whatnot using gcrypt
> directly.  Generating a 128bit key pair is almost instant in the test app.
> It takes less than a second.  When I try using it in my real application (a
> game), however, it takes several seconds to generate the key.  The
> libraries and function calls are identical.  Any idea what the causes for
> the speed differences are?  I'm using Visual Studio 7.0 on Windows XP.  I'm
> not using secure memory or multithreading.
On the face of it, you are doing something different between your test
application and the real application. Try cutting down a copy of your real
application towards your test application.

You really haven't provided enough information to say more. However generating
RSA keys "instantly" sounds a bit suspicious - perhaps you should review your
code again.

Brad


_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@...
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel

attachment0 (196 bytes) Download Attachment

 « Return to Thread: RSA Key Gen: Fast in Test App, Slow in Real App.