Yes it is Windows 7. If it is an open bug, any workarounds? The only thing I have been able to do is to disable RSA blinding..that seems to speed it up a bit at the expense of insecurity?
-----Original Message----- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Mounir IDRASSI Sent: Wednesday, May 04, 2011 4:47 AM To: openssl-users@openssl.org Subject: Re: RSA_private_decrypt across processes Hi, This could be related to the slowness of RAND_poll under Windows 7. See : http://rt.openssl.org/Ticket/Display.html?id=2100&user=guest&pass=guest Your second process is certainly trying to initialize its RNG and that's why you see this delay. Do you confirm that you are executing these processes under Windows 7? -- Mounir IDRASSI IDRIX http://www.idrix.fr On 5/4/2011 7:02 AM, Ashwin Chandra wrote: > > I generate an RSA key using RSA_generate_key in one process. I then > take the RSA structure that is generated and serialize it and send it > to another process via an RPC mechanism. In the other process I then > de-serialize the RSA data and use that as input to an > RSA_private_decrypt function to decrypt some data that was previously > encrypted with the RSA public key. > > This works fine and I am able to decrypt the data successful, HOWEVER, > it takes a long time to do so, like up to 2 seconds. It is almost as > if it is doing another key generation in the background. Note that if > I do this RSA_private_decrypt in the same process as the one that > generated the key, it takes around 20-30 ms. > > This leads me to think that maybe there is some static data that the > openssl library uses in RSA_private_decrypt that was cached when I > generated the key and now is not available since it is a new process. > > Can anyone enlighten me on this? > ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org