[EMAIL PROTECTED] - Wed Apr 21 08:27:34 2004]:

Interesting bug.  I guess that noone ever thought of testing for 
ridiculously small moduli...  A quick solution would be to have the 
following at the beginning of BN_generate_prime_ex():

         /* We know from experience that this algorithms barfs
            endlessly at 30 or less bits */
         if (bits < 31) return 0;

I'm a little hesitant to do this, however, as it has a strong smell of 
quick and dirty hack (which is about the same smell as I imagine a pair 
of socks you have worn for a week would while wearing sneackers 80% of 
the time...).

Comments?

-- 
Richard Levitte
[EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to