Thank you so much for providing the article and the flags! V8 worked, at
least with the limited functionality we're using!

I know there are lists of prime numbers as well as known algorithms. We
don't generate primes for our own use; OpenSSL does. We're using
RSA_generate_key() - a function in rsa_depr.c

In turn, it uses:
RSA_generate_key_ex() in rsa_gen.c
rsa_builtin_keygen() in rsa_gen.c
BN_generate_prime_ex() in prime.c
BN_is_prime_fasttest_ex() in bn_prime.c

As for downloading a list of primes - I briefly toyed with the idea in
moments of desperation (this code is not easy to debug, to put it
mildly), but unfortunately, having a list of codes in one's program
makes it very easy to break them. 

Thank you so much again!
Yuliya 

-----Original Message-----

I believe the correct flag for 32 bit on a Sparc for gcc is
-mv8 and -mv7, not -m32.  The V8 Sparc chip is a 32 bit chip
so if gcc is generating 64 bit code with this flag that's
a bug that should be reported to gcc.  See more:

http://www.osnews.com/story/6136/SPARC_Optimizations_With_GCC/page1/

I don't know, of course, if 32 bit binaries generated this
way could even run.

Why exactly are you trying to generate primes with OpenSSL?  It's much
faster to just download the table of primes from someplace like 
http://primes.utm.edu/lists/small/millions/ and pack this with
your application.

Ted


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to