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.
Russ Selph - [EMAIL PROTECTED]
Architect, TIBCO Software Inc.
veni vidi gdb
---
$ ssleay version
SSLeay 0.8.1 19-Jul-1997
$ time ssleay genrsa 4096
1112 semi-random bytes loaded
Generating RSA private key, 4096 bit long modulus
................r...++++
......................................................................................................................................+++++
e is 65537 (0x10001)
-----BEGIN RSA PRIVATE KEY-----
MIIJKAIBAAKCAgEApvDFgc2tT1AQBQ0nIONqjJv4tqLl76hPm4jNkgXU+JRWIpgm
<... irrelevant detail omitted ...>
cUXDDpgJ9dwX0MN0GeyD+aq24dF0DlXPQfyRrJKFjZvF2hphDETobJ3KYeM=
-----END RSA PRIVATE KEY-----
144.77user 0.15system 2:27.78elapsed 98%CPU
$ openssl version
OpenSSL 0.9.2 31-Dec-1998
$ time apps/openssl genrsa 4096
1112 semi-random bytes loaded
Generating RSA private key, 4096 bit long modulus
............................................................................................................................................................................................................................................................................+++++
....................................................................................................................................................................................++.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................++...................................................................................................................................................................................................................................................................................................................................+............!
...................................................
<... several screenfuls of dots omitted ...>
...Command terminated by signal 2
15374.25user 2.05system 4:17:24elapsed 99%CPU
$ time apps/openssl genrsa 2048
1112 semi-random bytes loaded
Generating RSA private key, 2048 bit long modulus
..............................................................................................................................+++++
.......................+++++
e is 65537 (0x10001)
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEA2g/6TzISDyqfEj1KyZF0N+3Gk7Rrk38sVpxho/kdW2E47XBH
<... irrelevant detail omitted ...>
LswYdDmXazEP6WEOlszxFdtmLPFuZIIYcCsZuM80VupNUrKIeQ+0MxXcmb3UYT39
z7LwuoYbA/zO8tic/ZtPMDxjAELfnnJLsVXxhVpVvOTI1MrL6A+0/Q==
-----END RSA PRIVATE KEY-----
30.42user 0.04system 0:30.97elapsed 98%CPU
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]