summaryrefslogtreecommitdiff
path: root/crypto/ccm.c
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>2012-06-09 18:25:46 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2012-06-14 10:07:23 +0800
commita61a7d59cb59d96395d424238751f3a6b52edd60 (patch)
treebfd48078cb225462771a4861a2c11f5eaae9e313 /crypto/ccm.c
parentc3ee1c8324af8e0f66714c03a6cf2708da9ebf1e (diff)
downloadlinux-crypto-a61a7d59cb59d96395d424238751f3a6b52edd60.tar.gz
linux-crypto-a61a7d59cb59d96395d424238751f3a6b52edd60.zip
crypto: arc4 - improve performance by using u32 for ctx and variables
This patch changes u8 in struct arc4_ctx and variables to u32 (as AMD seems to have problem with u8 array). Below are tcrypt results of old 1-byte block cipher versus ecb(arc4) with u8 and ecb(arc4) with u32. tcrypt results, x86-64 (speed ratios: new-u32/old, new-u8/old): u32 u8 AMD Phenom II : x3.6 x2.7 Intel Core 2 : x2.0 x1.9 tcrypt results, i386 (speed ratios: new-u32/old, new-u8/old): u32 u8 Intel Atom N260 : x1.5 x1.4 Cc: Jon Oberheide <jon@oberheide.org> Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ccm.c')
0 files changed, 0 insertions, 0 deletions