RE: Prime number generation on FreeBSD-sparc64

2008-07-22 Thread Ted Mittelstaedt
What version of gcc? Ted > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Yuliya Shulman > Sent: Friday, July 18, 2008 6:51 AM > To: openssl-users@openssl.org > Subject: RE: Prime number generation on FreeBSD-sparc64 > > &g

Re: Prime number generation on FreeBSD-sparc64

2008-07-18 Thread Victor Duchovni
On Fri, Jul 18, 2008 at 09:16:13AM -0700, Ted Mittelstaedt wrote: > > Since the table of primes previously mentioned tops out at around > > 30bit primes > > (and there are 50 Million of those)... and modern cryptography > > suggests at > > least 4096 bit primes, you are completely doing the ri

RE: Prime number generation on FreeBSD-sparc64

2008-07-18 Thread Yuliya Shulman
I hoped for a cheap fix but didn't really expect it. I really very much appreciate your help as well as everybody else's. Yuliya -Original Message- I guess it boils down to muck with the compiler or fix the OpenSSL code. Sorry I don't have any more cheap fixes to try. :-( Ted ___

RE: Prime number generation on FreeBSD-sparc64

2008-07-18 Thread Ted Mittelstaedt
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Yuliya Shulman > Sent: Thursday, July 17, 2008 7:27 AM > To: openssl-users@openssl.org > Subject: RE: Prime number generation on FreeBSD-sparc64 > > > Yes, I understand t

RE: Prime number generation on FreeBSD-sparc64

2008-07-18 Thread Ted Mittelstaedt
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Patrick Patterson > Sent: Thursday, July 17, 2008 8:04 AM > To: openssl-users@openssl.org > Subject: Re: Prime number generation on FreeBSD-sparc64 > > > On July 17, 2008

RE: Prime number generation on FreeBSD-sparc64

2008-07-18 Thread Yuliya Shulman
openssl-users@openssl.org Subject: RE: Prime number generation on FreeBSD-sparc64 I tried another 64-bit platform and had the same problem with the program hanging in the same place in the code. I think I'm missing some compile flag. What flags should be used to compile OpenSSL on a 64-bit pl

RE: Prime number generation on FreeBSD-sparc64

2008-07-18 Thread Yuliya Shulman
I tried another 64-bit platform and had the same problem with the program hanging in the same place in the code. I think I'm missing some compile flag. What flags should be used to compile OpenSSL on a 64-bit platform with GCC? I think we're using version 0.9.8, which is a few years old. Thanks, Y

Re: Prime number generation on FreeBSD-sparc64

2008-07-18 Thread Michael S. Zick
On Thu July 17 2008 19:36, Ger Hobbelt wrote: > > I believe it has worked in our code for years; however, the problem is > > now to make it work on FreeBSC-sparc64. :( > > > Hm, this may be a stupid remark (I seem to be good at those lately), > but do you compile your own code with gcc too? > >

Re: Prime number generation on FreeBSD-sparc64

2008-07-17 Thread Ger Hobbelt
> I believe it has worked in our code for years; however, the problem is > now to make it work on FreeBSC-sparc64. :( Hm, this may be a stupid remark (I seem to be good at those lately), but do you compile your own code with gcc too? I've ported OpenSSL to other hardware in the past; the first

RE: Prime number generation on FreeBSD-sparc64

2008-07-17 Thread Yuliya Shulman
> > > > RSA_generate_key() - in rsa_depr.c > > 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 > > > That's probably exactly what you should be doing. I believe it has worked in our code for

Re: Prime number generation on FreeBSD-sparc64

2008-07-17 Thread Patrick Patterson
On July 17, 2008 10:48:51 am Yuliya Shulman wrote: > I'm not using OpenSSL to generate the list of primes. OpenSSl is using > it in the following path: > > RSA_generate_key() - in rsa_depr.c > RSA_generate_key_ex() in rsa_gen.c > rsa_builtin_keygen() in rsa_gen.c > BN_generate_prime_ex() in prime.c

Re: Prime number generation on FreeBSD-sparc64

2008-07-17 Thread Victor Duchovni
On Thu, Jul 17, 2008 at 09:48:51AM -0500, Yuliya Shulman wrote: > I'm not using OpenSSL to generate the list of primes. OpenSSl is using > it in the following path: > > RSA_generate_key() - in rsa_depr.c > RSA_generate_key_ex() in rsa_gen.c > rsa_builtin_keygen() in rsa_gen.c > BN_generate_prime_

RE: Prime number generation on FreeBSD-sparc64

2008-07-17 Thread Yuliya Shulman
I'm not using OpenSSL to generate the list of primes. OpenSSl is using it in the following path: RSA_generate_key() - in rsa_depr.c 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 Algorithms of finding

Re: Prime number generation on FreeBSD-sparc64

2008-07-17 Thread Victor Duchovni
On Thu, Jul 17, 2008 at 09:27:26AM -0500, Yuliya Shulman wrote: > Yes, I understand the list of prime numbers is known; unfortunately, I > can only implement the solutions my management agrees with. This code > path is used for login authentication and has been used for a while, so > I guess every

RE: Prime number generation on FreeBSD-sparc64

2008-07-17 Thread Yuliya Shulman
Yes, I understand the list of prime numbers is known; unfortunately, I can only implement the solutions my management agrees with. This code path is used for login authentication and has been used for a while, so I guess everybody thinks it's OK to use it. Unfortunately, I also spoke too soon. I h

RE: Prime number generation on FreeBSD-sparc64

2008-07-16 Thread Ted Mittelstaedt
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Yuliya Shulman > Sent: Wednesday, July 16, 2008 9:29 AM > To: openssl-users@openssl.org > Subject: RE: Prime number generation on FreeBSD-sparc64 > > > Thank you so much fo

RE: Prime number generation on FreeBSD-sparc64

2008-07-16 Thread Yuliya Shulman
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

RE: Prime number generation on FreeBSD-sparc64

2008-07-15 Thread Ted Mittelstaedt
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Yuliya Shulman > Sent: Monday, July 14, 2008 12:03 PM > To: openssl-users@openssl.org > Subject: Prime number generation on FreeBSD-sparc64 > > > Hello! > > Hello! &g

Prime number generation on FreeBSD-sparc64

2008-07-14 Thread Yuliya Shulman
Hello! Hello! We're trying to use OpenSSL on FreeBSD-sparc64 and it goes into infinite loop while generating a prime number - the number generated is never prime, so it goes back for more and more. Has anyone had that problem? How did you solve it? Thank you, Yuliya P.S. Yes, I've read that FAQ