Hi Martin! Hi Daniel!

On Wed, Jun 06, 2012 at 01:56:03PM +0300, Daniel Golle wrote:
> Hi Martin,
> thanks for bringing that up, sounds like a good improvement.

Can you give us some numbers? I'm attaching two output files (before and
after applying this patch). I have also rebuilt openssl so it uses hw
crypto support.

> On Wed, Jun 06, 2012 at 01:13:15AM +0200, Martin Mueller wrote:
> > > here is mv_cesa TDMA support for the kirkwood target. I only adapted
> > > the patches from Phil Sutter on the linux-crypto list and adjusted the
> > > kernel modules Makefile.
> > 
> > I had accidently deleted a line from package/kernel/modules/crypto.mk,
> > so here is the new version.
> Please repost your patch using a mail program which will mess with the 
> whitespace
> (e.g. use mutt with your prefered text editor) or send the patch as an 
> attachment
> instead of including it in the mail body.

I did not have any troubles with applying the patch (except renaming 
patches-3.3 to patches).

Regards,
Luka
root@OpenWrt:/# openssl speed md5 sha1 sha256 sha512 des des-ede3 aes-128-cbc 
aes-192-cbc aes-256-cbc rsa2048 dsa2048

Doing md5 for 3s on 16 size blocks: 609428 md5's in 2.75s
Doing md5 for 3s on 64 size blocks: 538064 md5's in 2.75s
Doing md5 for 3s on 256 size blocks: 383301 md5's in 2.76s
Doing md5 for 3s on 1024 size blocks: 178444 md5's in 2.75s
Doing md5 for 3s on 8192 size blocks: 29748 md5's in 2.76s
Doing sha1 for 3s on 16 size blocks: 449465 sha1's in 2.75s
Doing sha1 for 3s on 64 size blocks: 304694 sha1's in 2.76s
Doing sha1 for 3s on 256 size blocks: 153936 sha1's in 2.75s
Doing sha1 for 3s on 1024 size blocks: 51835 sha1's in 2.77s
Doing sha1 for 3s on 8192 size blocks: 7184 sha1's in 2.75s
Doing sha256 for 3s on 16 size blocks: 486210 sha256's in 2.91s
Doing sha256 for 3s on 64 size blocks: 298428 sha256's in 3.00s
Doing sha256 for 3s on 256 size blocks: 134264 sha256's in 3.00s
Doing sha256 for 3s on 1024 size blocks: 41971 sha256's in 3.00s
Doing sha256 for 3s on 8192 size blocks: 5659 sha256's in 3.00s
Doing sha512 for 3s on 16 size blocks: 149466 sha512's in 2.99s
Doing sha512 for 3s on 64 size blocks: 149463 sha512's in 3.00s
Doing sha512 for 3s on 256 size blocks: 54600 sha512's in 3.00s
Doing sha512 for 3s on 1024 size blocks: 18848 sha512's in 3.00s
Doing sha512 for 3s on 8192 size blocks: 2642 sha512's in 3.00s
Doing des cbc for 3s on 16 size blocks: 1454247 des cbc's in 3.00s
Doing des cbc for 3s on 64 size blocks: 384936 des cbc's in 3.00s
Doing des cbc for 3s on 256 size blocks: 97650 des cbc's in 3.00s
Doing des cbc for 3s on 1024 size blocks: 24504 des cbc's in 3.00s
Doing des cbc for 3s on 8192 size blocks: 3066 des cbc's in 3.00s
Doing des ede3 for 3s on 16 size blocks: 539998 des ede3's in 3.00s
Doing des ede3 for 3s on 64 size blocks: 137941 des ede3's in 3.00s
Doing des ede3 for 3s on 256 size blocks: 34671 des ede3's in 3.00s
Doing des ede3 for 3s on 1024 size blocks: 8680 des ede3's in 3.00s
Doing des ede3 for 3s on 8192 size blocks: 1085 des ede3's in 3.00s
Doing aes-128 cbc for 3s on 16 size blocks: 2096690 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 64 size blocks: 581305 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 256 size blocks: 149421 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 1024 size blocks: 37621 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 8192 size blocks: 4711 aes-128 cbc's in 3.00s
Doing aes-192 cbc for 3s on 16 size blocks: 1866760 aes-192 cbc's in 3.00s
Doing aes-192 cbc for 3s on 64 size blocks: 510572 aes-192 cbc's in 3.00s
Doing aes-192 cbc for 3s on 256 size blocks: 130734 aes-192 cbc's in 3.00s
Doing aes-192 cbc for 3s on 1024 size blocks: 32883 aes-192 cbc's in 2.99s
Doing aes-192 cbc for 3s on 8192 size blocks: 4116 aes-192 cbc's in 3.00s
Doing aes-256 cbc for 3s on 16 size blocks: 1684452 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 64 size blocks: 455351 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 256 size blocks: 116220 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 1024 size blocks: 29208 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 8192 size blocks: 3656 aes-256 cbc's in 3.00s
Doing 2048 bit private rsa's for 10s: 199 2048 bit private RSA's in 10.01s
Doing 2048 bit public rsa's for 10s: 7374 2048 bit public RSA's in 10.00s
Doing 2048 bit sign dsa's for 10s: 740 2048 bit DSA signs in 10.00s
Doing 2048 bit verify dsa's for 10s: 619 2048 bit DSA verify in 10.01s
OpenSSL 1.0.1c 10 May 2012
built on: Wed Jul 11 00:47:42 CEST 2012
options:bn(64,32) rc4(ptr,char) des(idx,cisc,2,long) aes(partial) blowfish(ptr) 
compiler: ccache_cc -fPIC -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -DDSO_DLFCN 
-DHAVE_DLFCN_H 
-I/home/luka/devel/openwrt-git-lvm/trunk/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/usr/include
 
-I/home/luka/devel/openwrt-git-lvm/trunk/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/include
 
-I/home/luka/devel/openwrt-git-lvm/trunk/staging_dir/toolchain-arm_v5te_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/usr/include
 
-I/home/luka/devel/openwrt-git-lvm/trunk/staging_dir/toolchain-arm_v5te_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/include
 -DOPENSSL_SMALL_FOOTPRINT -DHAVE_CRYPTODEV -DOPENSSL_NO_ERR -DTERMIO -Os -pipe 
-march=armv5te -mtune=xscale -fno-caller-saves -fhonour-copts 
-Wno-error=unused-but-set-variable -msoft-float -fpic -fomit-frame-pointer -Wall
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
md5               3545.76k    12522.22k    35552.56k    66446.06k    88295.51k
sha1              2615.07k     7065.37k    14330.04k    19162.11k    21400.48k
des cbc           7755.98k     8211.97k     8332.80k     8364.03k     8372.22k
des ede3          2879.99k     2942.74k     2958.59k     2962.77k     2962.77k
aes-128 cbc      11182.35k    12401.17k    12750.59k    12841.30k    12864.17k
aes-192 cbc       9956.05k    10892.20k    11155.97k    11261.60k    11239.42k
aes-256 cbc       8983.74k     9714.15k     9917.44k     9969.66k     9983.32k
sha256            2673.32k     6366.46k    11457.19k    14326.10k    15452.84k
sha512             799.82k     3188.54k     4659.20k     6433.45k     7214.42k
                  sign    verify    sign/s verify/s
rsa 2048 bits 0.050302s 0.001356s     19.9    737.4
                  sign    verify    sign/s verify/s
dsa 2048 bits 0.013514s 0.016171s     74.0     61.8
root@OpenWrt:/# openssl speed md5 sha1 sha256 sha512 des des-ede3 aes-128-cbc 
aes-192-cbc aes-256-cbc rsa2048 dsa2048 

Doing md5 for 3s on 16 size blocks: 686509 md5's in 3.00s
Doing md5 for 3s on 64 size blocks: 596176 md5's in 3.00s
Doing md5 for 3s on 256 size blocks: 422773 md5's in 3.00s
Doing md5 for 3s on 1024 size blocks: 195660 md5's in 3.00s
Doing md5 for 3s on 8192 size blocks: 32492 md5's in 3.00s
Doing sha1 for 3s on 16 size blocks: 489087 sha1's in 3.00s
Doing sha1 for 3s on 64 size blocks: 331542 sha1's in 3.00s
Doing sha1 for 3s on 256 size blocks: 167683 sha1's in 3.00s
Doing sha1 for 3s on 1024 size blocks: 56364 sha1's in 3.00s
Doing sha1 for 3s on 8192 size blocks: 7830 sha1's in 3.00s
Doing sha256 for 3s on 16 size blocks: 502561 sha256's in 3.00s
Doing sha256 for 3s on 64 size blocks: 298345 sha256's in 3.00s
Doing sha256 for 3s on 256 size blocks: 134289 sha256's in 3.00s
Doing sha256 for 3s on 1024 size blocks: 41972 sha256's in 3.00s
Doing sha256 for 3s on 8192 size blocks: 5659 sha256's in 3.00s
Doing sha512 for 3s on 16 size blocks: 149468 sha512's in 3.00s
Doing sha512 for 3s on 64 size blocks: 149467 sha512's in 3.00s
Doing sha512 for 3s on 256 size blocks: 54601 sha512's in 3.00s
Doing sha512 for 3s on 1024 size blocks: 18848 sha512's in 3.00s
Doing sha512 for 3s on 8192 size blocks: 2642 sha512's in 3.00s
Doing des cbc for 3s on 16 size blocks: 1455179 des cbc's in 3.00s
Doing des cbc for 3s on 64 size blocks: 384888 des cbc's in 3.00s
Doing des cbc for 3s on 256 size blocks: 97627 des cbc's in 3.00s
Doing des cbc for 3s on 1024 size blocks: 24504 des cbc's in 3.00s
Doing des cbc for 3s on 8192 size blocks: 3066 des cbc's in 3.00s
Doing des ede3 for 3s on 16 size blocks: 540142 des ede3's in 3.00s
Doing des ede3 for 3s on 64 size blocks: 137940 des ede3's in 3.00s
Doing des ede3 for 3s on 256 size blocks: 34671 des ede3's in 3.00s
Doing des ede3 for 3s on 1024 size blocks: 8680 des ede3's in 3.00s
Doing des ede3 for 3s on 8192 size blocks: 1086 des ede3's in 3.01s
Doing aes-128 cbc for 3s on 16 size blocks: 2102718 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 64 size blocks: 581587 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 256 size blocks: 149447 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 1024 size blocks: 37606 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 8192 size blocks: 4711 aes-128 cbc's in 3.00s
Doing aes-192 cbc for 3s on 16 size blocks: 1867669 aes-192 cbc's in 3.00s
Doing aes-192 cbc for 3s on 64 size blocks: 510590 aes-192 cbc's in 3.00s
Doing aes-192 cbc for 3s on 256 size blocks: 130739 aes-192 cbc's in 3.00s
Doing aes-192 cbc for 3s on 1024 size blocks: 32885 aes-192 cbc's in 3.00s
Doing aes-192 cbc for 3s on 8192 size blocks: 4116 aes-192 cbc's in 3.00s
Doing aes-256 cbc for 3s on 16 size blocks: 1680013 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 64 size blocks: 454979 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 256 size blocks: 116183 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 1024 size blocks: 29206 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 8192 size blocks: 3655 aes-256 cbc's in 3.00s
Doing 2048 bit private rsa's for 10s: 199 2048 bit private RSA's in 10.01s
Doing 2048 bit public rsa's for 10s: 7365 2048 bit public RSA's in 10.00s
Doing 2048 bit sign dsa's for 10s: 740 2048 bit DSA signs in 10.01s
Doing 2048 bit verify dsa's for 10s: 607 2048 bit DSA verify in 10.01s
OpenSSL 1.0.1c 10 May 2012
built on: Mon Jul  9 23:52:36 CEST 2012
options:bn(64,32) rc4(ptr,char) des(idx,cisc,2,long) aes(partial) blowfish(ptr) 
compiler: ccache_cc -fPIC -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -DDSO_DLFCN 
-DHAVE_DLFCN_H 
-I/home/luka/devel/openwrt-git-lvm/trunk/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/usr/include
 
-I/home/luka/devel/openwrt-git-lvm/trunk/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/include
 
-I/home/luka/devel/openwrt-git-lvm/trunk/staging_dir/toolchain-arm_v5te_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/usr/include
 
-I/home/luka/devel/openwrt-git-lvm/trunk/staging_dir/toolchain-arm_v5te_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/include
 -DOPENSSL_SMALL_FOOTPRINT -DOPENSSL_NO_ERR -DTERMIO -Os -pipe -march=armv5te 
-mtune=xscale -fno-caller-saves -fhonour-copts 
-Wno-error=unused-but-set-variable -msoft-float -fpic -fomit-frame-pointer -Wall
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
md5               3661.38k    12718.42k    36076.63k    66785.28k    88724.82k
sha1              2608.46k     7072.90k    14308.95k    19238.91k    21381.12k
des cbc           7760.95k     8210.94k     8330.84k     8364.03k     8372.22k
des ede3          2880.76k     2942.72k     2958.59k     2962.77k     2955.65k
aes-128 cbc      11214.50k    12407.19k    12752.81k    12836.18k    12864.17k
aes-192 cbc       9960.90k    10892.59k    11156.39k    11224.75k    11239.42k
aes-256 cbc       8960.07k     9706.22k     9914.28k     9968.98k     9980.59k
sha256            2680.33k     6364.69k    11459.33k    14326.44k    15452.84k
sha512             797.16k     3188.63k     4659.29k     6433.45k     7214.42k
                  sign    verify    sign/s verify/s
rsa 2048 bits 0.050302s 0.001358s     19.9    736.5
                  sign    verify    sign/s verify/s
dsa 2048 bits 0.013527s 0.016491s     73.9     60.6
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to