OSDN Git Service

[CRYPTO] Add faster DES code from Dag Arne Osvik
authorDag Arne Osvik <da@osvik.no>
Wed, 6 Jul 2005 20:55:44 +0000 (13:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Jul 2005 20:55:44 +0000 (13:55 -0700)
commite1d5dea1dfbfe484358c40db7f233ed6b5605646
tree0bcea9bf2d5d12f1a400e01cffd001d2d22e4026
parenta9df3597fec5472d0840fbfdc2a3fac5268f7d08
[CRYPTO] Add faster DES code from Dag Arne Osvik

I've made a new implementation of DES to replace the old one in the kernel.
It provides faster encryption on all tested processors apart from the original
Pentium, and key setup is many times faster.

                                Speed relative to old kernel implementation
Processor       des_setkey      des_encrypt     des3_ede_setkey des3_ede_encrypt
Pentium
120Mhz          6.8             0.82            7.2             0.86
Pentium III
1.266Ghz        5.6             1.19            5.8             1.34
Pentium M
1.3Ghz          5.7             1.15            6.0             1.31
Pentium 4
2.266Ghz        5.8             1.24            6.0             1.40
Pentium 4E
3Ghz            5.4             1.27            5.5             1.48
StrongARM 1110
206Mhz          4.3             1.03            4.4             1.14
Athlon XP
2Ghz            7.8             1.44            8.1             1.61
Athlon 64
2Ghz            7.8             1.34            8.3             1.49

Signed-off-by: Dag Arne Osvik <da@osvik.no>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
crypto/des.c