Re: RSA Keygen problem

2009-01-21 Thread Jean-Daniel
On Jan 21, 2:36 pm, Nelson Bolyard wrote: > Jean-Daniel wrote to mozilla.dev.security on 2009-01-20 10:42 PST: > > > Hello, I'm trying to generate a keypair using nss, but I encounter some > > issue. My key generation can take up to 30 seconds on a recent machine > &g

Re: RSA Keygen problem

2009-01-21 Thread Jean-Daniel
> You are running Darwin, and freebl does not have any optimizations for > RSA on darwin. It has some assembly optimizations on most other x86 > platforms. But on Darwin, freebl is built with plain C code, and no > assembly at all. That is one reason why the code is running a lot slower. > > It's

Re: RSA Keygen problem

2009-01-22 Thread Jean-Daniel
On Jan 22, 2:48 am, Julien R Pierre - Sun Microsystems wrote: > Jean-Daniel, > > Jean-Daniel wrote: > >> Another possible reason is if you are comparing 32-bit NSS vs 64-bit > >> OpenSSL binaries. Regardless of assembly optimizations. The 64-bit code > >>

Re: RSA Keygen problem

2009-01-22 Thread Jean-Daniel
On Jan 22, 1:23 am, Robert Relyea wrote: > Nelson B Bolyard wrote: > > Julien R Pierre - Sun Microsystems wrote, On 2009-01-21 15:03: > > >> Even if you end up building NSS with optimizations, they use the regular > >> multiply instructions, which performs best on AMD chips, but not as well > >> o

Re: RSA Keygen problem

2009-01-22 Thread Jean-Daniel
On Jan 22, 6:46 pm, Nelson B Bolyard wrote: > > min: 389 ms, max: 2648 > > That's more like what's expected. > > > > > Is there a simple way to test if the generated values are correct ? > > Two ways come to mind. > > 1) Run NSS's cipher tests. >    cd mozilla/security/nss/tests/cipher >    cipher

Re: RSA Keygen problem

2009-01-23 Thread Jean-Daniel
On Jan 24, 1:09 am, Julien R Pierre - Sun Microsystems wrote: > Jean-Daniel, > > Jean-Daniel wrote: > > Everything is green. > > Great ! > > > The new asm file does not try to determine at runtime if SSE2 is > > present, but it does it at compile time. > &g

Re: RSA Keygen problem

2009-01-24 Thread Jean-Daniel
On Jan 24, 1:40 am, Nelson B Bolyard wrote: > Jean-Daniel wrote, On 2009-01-21 07:43: > > >> What OS? > > > Mac OS 10.5.6 (darwin 9.6.0) > > Pardon my display of ignorance regarding MacOS/X, but ... > > What exactly is darwin? > Is it just another name f

Re: RSA Keygen problem

2009-01-24 Thread Jean-Daniel
On Jan 24, 2:46 am, Julien R Pierre - Sun Microsystems wrote: > Jean-Daniel, > > Jean-Daniel wrote: > > Since the death of OpenDarwin, I think the only Darwin stand alone > > projet is PureDarwin. > > But there is not yet a stable version. And in the list of require