Subject: Re: MIPS switched to new-toolchain
To: enami tsugutomo <enami@sm.sony.co.jp>
From: FUKAUMI Naoki <naoki@fukaumi.org>
List: port-hpcmips
Date: 01/09/2002 18:44:43
On Wed, Jan 09, 2002 at 06:24:12PM +0900, FUKAUMI Naoki wrote:
> > It looks like if crypto/dist/openssl/crypto/rand/md_rand.c is compiled
> > with -O2, it returns 0.  It works correctly if compiled with -O1.
> 
> BINGO!
> 
> rm md_rand.{o,po}

This is in /usr/obj/lib/libcrypto/

> env DBG=-O1 make all install

This is in /usr/src/lib/libcrypto/

> then ssh{,d} works fine. Thank you!

I did
% openssl speed
and the result:

OpenSSL 0.9.6b 9 Jul 2001
built on: Tue Jan  8 00:32:37 JST 2002
options:bn(32,32) md2(int) rc4(ptr,int) des(idx,cisc,16,long) blowfish(ptr) 
compiler: /home/tools/bin/mipsel--netbsd-gcc -O2   -Werror
The 'numbers' are in 1000s of bytes per second processed.
type              8 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
md2                 57.29k      159.27k      215.37k      236.14k      241.46k
mdc2                86.55k      124.94k      133.13k      134.07k      135.66k
md4                759.54k     4025.25k     7719.31k    10044.05k    10463.94k
md5                620.55k     3110.40k     5794.02k     7382.81k     7711.86k
hmac(md5)          258.91k     1626.59k     4073.37k     6505.27k     7355.26k
sha1               385.62k      815.58k     1973.05k     3045.41k     3468.02k
rmd160             279.30k      202.77k      676.20k     1637.04k     2733.05k
rc4               1327.05k     1597.80k     1633.38k     1642.48k     1603.35k
des cbc            941.12k     1061.79k     1079.34k     1079.33k     1050.75k
des ede3           355.62k      373.30k      375.06k      375.32k      372.94k
idea cbc             0.00         0.00         0.00         0.00         0.00 
rc2 cbc            883.72k      990.27k     1002.78k     1008.22k      999.03k
rc5-32/12 cbc        0.00         0.00         0.00         0.00         0.00 
blowfish cbc      1581.39k     1990.52k     2030.98k     2057.61k     2000.79k
cast cbc          1297.36k     1538.11k     1555.80k     1566.60k     1472.69k
                  sign    verify    sign/s verify/s
rsa  512 bits   0.0850s   0.0052s     11.8    192.0
rsa 1024 bits   0.3290s   0.0131s      3.0     76.3
rsa 2048 bits   1.5668s   0.0423s      0.6     23.6
rsa 4096 bits   9.7630s   0.1513s      0.1      6.6
                  sign    verify    sign/s verify/s
dsa  512 bits   0.0570s   0.0756s     17.5     13.2
dsa 1024 bits   0.1340s   0.1676s      7.5      6.0
dsa 2048 bits   0.4195s   0.5159s      2.4      1.9

It works fine! (some test was failed in the past)

-- 
FUKAUMI Naoki