>> ./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.8    116.0
rsa 2048 bits 1.055000s 0.023870s      0.9     41.9

As for rsa2048 sign result. Try following. Open crypto/bn/asm/mips-mont.pl in 
text editor, locate line that reads

     slt    $at,$num,17

replace 17 with 33, make and retry. Essentially the number varies for processor 
to processor and this one what found optimal for R5000.

Done (rebuilt the 'smartmips' version with the change):

./openssl-smartmips2 speed rsa1024 rsa2048
rsa 1024 bits 0.129103s 0.008072s      7.7    123.9
rsa 2048 bits 0.903333s 0.024000s      1.1     41.7

~10% improvement on RSA2048 signs

Thanks.
-Brad
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to