Michael D'Errico wrote:
I am running into a problem where BN_generate_prime
always returns a BIGNUM with the value 35879 if the
number of bits is less than 16. Here is an example
program that illustrates this:
$ ./BNTest 15
Bits: 15
1287302641 = 35879 * 35879
1287302641 = 35879 * 35879
1287302641 = 35879 * 35879
1287302641 = 35879 * 35879
$ ./BNTest 16 #works as expected
Bits: 16
3319015657 = 57503 * 57719
3203515489 = 61343 * 52223
2981297941 = 58403 * 51047
3599545897 = 58679 * 61343
this is a known problem. have a look at
http://www.aet.tu-cottbus.de/rt2/Ticket/Display.html?id=487
Nils
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [email protected]
Automated List Manager [EMAIL PROTECTED]