Russell Selph wrote:
>
> Another poster commented that he was having trouble generating large RSA
> keys. (Sorry, but I've deleted the post.) I'm also seeing a difference in
> behavior between versions. Below is a test of SSLEAY 0.8.1 vs. the current
> CVS source. The older code completes in a couple of minutes. The new
> code did not complete after 4 hours! I've run a couple of times with
> similar results. The curious thing is that shorter keys seem to work just
> fine.
>
Yes there is a problem. Its to do with the Montgomery conversion stuff
and BN_RECURSION. A quick fix is to change the #define BN_RECURSION to
#undef BN_RECURSION in bn.h (and bn.org).
A more specific fix is to change bn_mont.c so the BN_from_montgomery()
BN_RECURSION stuff isn't compiled in.
I'll add this to the official tree soon and see if I can narrow down the
problem further and fix it.
Steve.
--
Dr Stephen N. Henson. UK based freelance Cryptographic Consultant.
For info see homepage at http://www.drh-consultancy.demon.co.uk/
Email: [EMAIL PROTECTED]
NOTE NEW (13/12/98) PGP key: via homepage.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]