Re: Configure enhancements (Was: Re: MIPS linux support patch)

2012-09-18 Thread Brad House
On a different note, thanks for the double dash fix for Configure. That said, I have one more issue in relation to the way Configure handles flags completely unrelated to MIPS... On MacOSX, you have to target a specific SDK if you want to ensure it targets the proper release of MacOSX. That mea

Re: MIPS linux support patch

2012-09-18 Thread Brad House
>> ./openssl-generic32 speed rsa1024 rsa2048 rsa 1024 bits 0.342000s 0.010615s 2.9 94.2 rsa 2048 bits 1.328750s 0.027632s 0.8 36.2 ./openssl-mips32r2 speed rsa1024 rsa2048 rsa 1024 bits 0.128228s 0.008619s 7.8116.0 rsa 2048 bits 1.055000s 0.023870s 0.9 41.9

Re: MIPS linux support patch

2012-09-18 Thread Andy Polyakov
./openssl-generic32 speed rsa1024 rsa2048 rsa 1024 bits 0.342000s 0.010615s 2.9 94.2 rsa 2048 bits 1.328750s 0.027632s 0.8 36.2 ./openssl-mips32r2 speed rsa1024 rsa2048 rsa 1024 bits 0.128228s 0.008619s 7.8116.0 rsa 2048 bits 1.055000s 0.023870s 0.9 41.9 As

Re: MIPS linux support patch

2012-09-18 Thread Brad House
There is more code committed. Check-out or wait for *tomorrow* openssl-SNAP-20120919 snapshot. There is SmartMIPS AES code (pass -msmartmips to Configure) and Configure accepts double dash as compiler options. Please double-check and optionally post performance for new AES code. I've done some s

Re: Configure enhancements (Was: Re: MIPS linux support patch)

2012-09-18 Thread Andy Polyakov
Brad House wrote: >> There is more code committed. Check-out or wait for *tomorrow* >> openssl-SNAP-20120919 snapshot. There is SmartMIPS AES code (pass >> -msmartmips to Configure) and Configure accepts double dash as compiler >> options. Please double-check and optionally post performance for new

Re: MIPS linux support patch

2012-09-18 Thread Brad House
There is more code committed. Check-out or wait for *tomorrow* openssl-SNAP-20120919 snapshot. There is SmartMIPS AES code (pass -msmartmips to Configure) and Configure accepts double dash as compiler options. Please double-check and optionally post performance for new AES code. Do I also need t

Re: MIPS linux support patch

2012-09-18 Thread Andy Polyakov
>> There is more code committed. Check-out or wait for *tomorrow* >> openssl-SNAP-20120919 snapshot. There is SmartMIPS AES code (pass >> -msmartmips to Configure) and Configure accepts double dash as compiler >> options. Please double-check and optionally post performance for new AES >> code. > >

Configure enhancements (Was: Re: MIPS linux support patch)

2012-09-18 Thread Brad House
There is more code committed. Check-out or wait for *tomorrow* openssl-SNAP-20120919 snapshot. There is SmartMIPS AES code (pass -msmartmips to Configure) and Configure accepts double dash as compiler options. Please double-check and optionally post performance for new AES code. On a different n

Re: MIPS linux support patch

2012-09-18 Thread Brad House
There is more code committed. Check-out or wait for *tomorrow* openssl-SNAP-20120919 snapshot. There is SmartMIPS AES code (pass -msmartmips to Configure) and Configure accepts double dash as compiler options. Please double-check and optionally post performance for new AES code. Do I also need t

Re: MIPS linux support patch

2012-09-18 Thread Andy Polyakov
There is more code committed. Check-out or wait for *tomorrow* openssl-SNAP-20120919 snapshot. There is SmartMIPS AES code (pass -msmartmips to Configure) and Configure accepts double dash as compiler options. Please double-check and optionally post performance for new AES code. __

Re: MIPS linux support patch

2012-09-17 Thread Brad House
I was expecting a bit better performance (in absolute terms), Could you double-check one thing? Run 'mipsel-linux-objdump -d crypto/sha/sha1-mips.o | grep ror | wc'. Do you get a lot of hits? This is to double-check that -mips32r2 was in fact effective and passed down _MIPS_ARCH_MIPS32R2 pre-

Re: MIPS linux support patch

2012-09-17 Thread Brad House
SSL negotiation (where the device is the server) takes about 2s as it currently stands, and that's with the current MIPS assembler support in OpenSSL. I grabbed openssl-SNAP-20120917 ... ./openssl-generic32 speed aes-128-cbc sha rsa1024 type 16 bytes 64 bytes256 bytes 1024

Re: MIPS linux support patch

2012-09-17 Thread Andy Polyakov
I was expecting a bit better performance (in absolute terms), Could you double-check one thing? Run 'mipsel-linux-objdump -d crypto/sha/sha1-mips.o | grep ror | wc'. Do you get a lot of hits? This is to double-check that -mips32r2 was in fact effective and passed down _MIPS_ARCH_MIPS32R2 pre-

Re: MIPS linux support patch

2012-09-17 Thread Andy Polyakov
SSL negotiation (where the device is the server) takes about 2s as it currently stands, and that's with the current MIPS assembler support in OpenSSL. I grabbed openssl-SNAP-20120917 ... ./openssl-generic32 speed aes-128-cbc sha rsa1024 type 16 bytes 64 bytes256 bytes 1024

Re: MIPS linux support patch

2012-09-17 Thread Brad House
SSL negotiation (where the device is the server) takes about 2s as it currently stands, and that's with the current MIPS assembler support in OpenSSL. I was planning on running some actual benchmarks but hadn't gotten around to it yet. I've just made some commits and here is "workflow". First c

Re: MIPS linux support patch

2012-09-15 Thread Brad House
SSL negotiation (where the device is the server) takes about 2s as it currently stands, and that's with the current MIPS assembler support in OpenSSL. I was planning on running some actual benchmarks but hadn't gotten around to it yet. I've just made some commits and here is "workflow". First c

Re: MIPS linux support patch

2012-09-15 Thread Andy Polyakov
What's your target more specifically? You mention 4ksd in commentary, is it it? This is the processor I'm running, it is a 32bit 96MHz MIPS 4ksd processor: http://www.maximintegrated.com/datasheet/index.mvp/id/6134 It looks like n32 is for 64bit CPUs only, so I'm assuming I'm using o32. Corre

Re: MIPS linux support patch

2012-09-15 Thread Brad House
Commenting below ... This patchset is against OpenSSL 1.0.1c. Whatever we will do, will apply to HEAD and optionally 1.0.2. 1.0.1 is closed for new features, including new platforms, and linux-generic32 is the one that serves MIPS there. Ok, not a problem ... more about future support, I ca

Re: MIPS linux support patch

2012-09-15 Thread Andy Polyakov
Brad, This patchset is against OpenSSL 1.0.1c. Whatever we will do, will apply to HEAD and optionally 1.0.2. 1.0.1 is closed for new features, including new platforms, and linux-generic32 is the one that serves MIPS there. It does 2 things very minor things. First, it adds a linux-mipsel

MIPS linux support patch

2012-09-08 Thread Brad House
This patchset is against OpenSSL 1.0.1c. It does 2 things very minor things. First, it adds a linux-mipsel target to Configure. Second, it fixes the MIPS perlasm, it appears as though at some point AES_set_encrypt_key and AES_set_decrypt_key in the ASM needed to be renamed to private_AES_set_en

Re: MIPS linux support patch

2012-09-07 Thread Brad House
On 09/07/2012 11:55 AM, Brad House wrote: This patchset is against OpenSSL 1.0.1c. It does 2 things very minor things. First, it adds a linux-mipsel target to Configure. Second, it fixes the MIPS perlasm, it appears as though at some point AES_set_encrypt_key and AES_set_decrypt_key in the ASM

MIPS linux support patch

2012-09-07 Thread Brad House
This patchset is against OpenSSL 1.0.1c. It does 2 things very minor things. First, it adds a linux-mipsel target to Configure. Second, it fixes the MIPS perlasm, it appears as though at some point AES_set_encrypt_key and AES_set_decrypt_key in the ASM needed to be renamed to private_AES_set_en