pentium optimized AES algo for 2.4.22-rc2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've adapted 

http://clemens.endorphin.org/patches/aes-i586-asm-2.5.58.diff

for 2.4.22-rc2, and put it up at

http://www.kernel.org/pub/linux/kernel/people/hvr/testing/patch-aes-asm-2.4.22-rc2.0 
for now you can build either a generic aes cipher, or the asm optimized
one (if you configured for a pentium compatible arch); should work for
static linkage as well as for module building;

I compared its performance to the gcc-3.2.2 compiled c implementation of
the AES algo wrt to cryptoloop usage, and got the following results on
an old pentium classic @ 133mhz box 
(the data was acquired with "zcav -b 10M /dev/loop0"):
          
               C-version    ASM-version 
aes-cbc-128    ~860K/s      ~1300K/s 
aes-cbc-256    ~690K/s      ~1050K/s           

thus the ASM version results in ~50% more throughput on a p5-133mhz for
my simple test;

it would be interesting to know how the ASM version performs relative to
the C-version on pentiumII/III/IV's/... since the inclusion of the asm
optimized AES in 2.6.0-test3 depends on whether there are significant
gains on other chips but pentium-classics

regards,
-- 
Herbert Valerio Riedel       /    Phone: (EUROPE) +43-1-58801-18840
Email: hvr@xxxxxxxxxx       /    Finger hvr@xxxxxxx for GnuPG Public Key
GnuPG Key Fingerprint: 7BB9 2D6C D485 CE64 4748  5F65 4981 E064 883F 4142

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux