]> Pileus Git - ~andy/linux/commit
crypto: x86 - add more optimized XTS-mode for serpent-avx
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Mon, 8 Apr 2013 18:50:55 +0000 (21:50 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 25 Apr 2013 13:01:51 +0000 (21:01 +0800)
commita05248ed2d9a83ae7c3e6db7c4ef9331c3dedc81
tree62fead9aac2e2471dbc5d6df7b630589220eea3c
parentd2049d8566bf74723f0c353621174b37ff3d75ec
crypto: x86 - add more optimized XTS-mode for serpent-avx

This patch adds AVX optimized XTS-mode helper functions/macros and converts
serpent-avx to use the new facilities. Benefits are slightly improved speed
and reduced stack usage as use of temporary IV-array is avoided.

tcrypt results, with Intel i5-2450M:
        enc     dec
16B     1.00x   1.00x
64B     1.00x   1.00x
256B    1.04x   1.06x
1024B   1.09x   1.09x
8192B   1.10x   1.09x

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/glue_helper-asm-avx.S
arch/x86/crypto/glue_helper.c
arch/x86/crypto/serpent-avx-x86_64-asm_64.S
arch/x86/crypto/serpent_avx_glue.c
arch/x86/include/asm/crypto/glue_helper.h
arch/x86/include/asm/crypto/serpent-avx.h