Andy Polyakov wrote:
> 
> > OS: SunOS 5.6 Generic_105181-06 sun4u sparc SUNW,Ultra-2
> > cc: WorkShop Compilers 4.2 30 Oct 1996 C 4.2
> >
> > Built without RSAref the loop seems to start right after
> > the 4096 bit RSA timings.
> It looks like it's DSA_generate_key which never completes starving for
> entropy for the pseudo-random number generator. At least it appears to
> be *my* case. In order to check if it's also *your* case fire up
> 'openssl speed dsa', run 'ps -e | grep openssl' in another window and
> note the pid (the first number). Then run '/usr/proc/bin/pstack pid' few
> times... You should see that it never gets out DSA_generate_key.
> 
> Andy.
> ...

Thanks! Attached are a few outputs of pstack() which I must confess
I didn't know about before your response. Indeed, DSA_generate_key
appears in each.

This was with the "with rsaref" version of openssl 0.9.5. So it would
seem with/without rsaref is not a factor.
 
Ed
--------------------------
Ed Kubaitis - [EMAIL PROTECTED]
CCSO - University of Illinois at Urbana-Champaign
=======================================================================
bluestem1./usr/proc/bin/pstack 8610
8610:   apps/openssl speed dsa
 ef60824c getpid   (130c00, 9a805365, 528b8b8e, 4e94ddb8, 13, 8) + 8
 000ac4bc ERR_get_state (0, 130e04, 14c400, 1b2e01ee, 0, ac000) + 14
 000abbe0 ERR_put_error (24, 64, 64, 130a24, 1d6, efffd6b9) + 4
 000aaff4 ssleay_rand_bytes (0, a, efffd6c2, 130a24, 152557, 7) + 45c
 000fa3ec bnrand   (0, 15d648, 0, 1, 0, 137774) + d4
 0009f9e8 DSA_generate_key (0, 15d2b0, 15d648, a0, 164480, efffdbe1) + 60
 0005352c speed_main (14a6ac, 0, 161c40, 14a6cc, 15fc30, 0) + 1c6c
 00039ad0 do_cmd   (15c618, 2, effffc80, 12d061d4, 15c84c, 0) + 40
 000398a4 main     (3, effffc7c, 1532e0, 148eac, effffafc, 15c618) + 210
 0003967c _start   (0, 0, 0, 0, 0, 0) + dc
bluestem1./usr/proc/bin/pstack 8610
8610:   apps/openssl speed dsa
 ef60824c getpid   (130c00, ec4d793c, 1bc7e433, 2e56f0c1, 1d, 1c) + 8
 000ac4bc ERR_get_state (0, 130e04, 14c400, a05dd0d, 1, ac000) + 14
 000abbe0 ERR_put_error (24, 64, 64, 130a24, 1d6, efffd6b9) + 4
 000aaff4 ssleay_rand_bytes (0, a, efffd6c2, 130a24, 152557, 7) + 45c
 000fa3ec bnrand   (0, 15d648, 0, 1, 0, 137774) + d4
 0009f9e8 DSA_generate_key (0, 15d2b0, 15d648, a0, 164480, efffdbe1) + 60
 0005352c speed_main (14a6ac, 0, 161c40, 14a6cc, 15fc30, 0) + 1c6c
 00039ad0 do_cmd   (15c618, 2, effffc80, 12d061d4, 15c84c, 0) + 40
 000398a4 main     (3, effffc7c, 1532e0, 148eac, effffafc, 15c618) + 210
 0003967c _start   (0, 0, 0, 0, 0, 0) + dc
bluestem1./usr/proc/bin/pstack 8610
8610:   apps/openssl speed dsa
 ef60824c getpid   (130c00, c835c9f7, 4bbea3df, 78ac9797, 19, 10) + 8
 000ac4bc ERR_get_state (0, 130e04, 14c400, 1c058023, 1, ac000) + 14
 000abbe0 ERR_put_error (24, 64, 64, 130a24, 1d6, efffd6b9) + 4
 000aaff4 ssleay_rand_bytes (0, a, efffd6c2, 130a24, 152557, 7) + 45c
 000fa3ec bnrand   (0, 15d648, 0, 1, 0, 137774) + d4
 0009f9e8 DSA_generate_key (0, 15d2b0, 15d648, a0, 164480, efffdbe1) + 60
 0005352c speed_main (14a6ac, 0, 161c40, 14a6cc, 15fc30, 0) + 1c6c
 00039ad0 do_cmd   (15c618, 2, effffc80, 12d061d4, 15c84c, 0) + 40
 000398a4 main     (3, effffc7c, 1532e0, 148eac, effffafc, 15c618) + 210
 0003967c _start   (0, 0, 0, 0, 0, 0) + dc
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to