crypto: serpent - add AVX2/x86_64 assembler implementation of serpent cipher
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Sat, 13 Apr 2013 10:46:55 +0000 (13:46 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 25 Apr 2013 13:09:07 +0000 (21:09 +0800)
commit56d76c96a9f3e39ab733c5643b3ce5a1d4be242a
tree7922fedc46cba8320671d4eefebf7a4f27adcc77
parentcf1521a1a5e21fd1e79a458605c4282fbfbbeee2
crypto: serpent - add AVX2/x86_64 assembler implementation of serpent cipher

Patch adds AVX2/x86-64 implementation of Serpent cipher, requiring 16 parallel
blocks for input (256 bytes). Implementation is based on the AVX implementation
and extends to use the 256-bit wide YMM registers. Since serpent does not use
table look-ups, this implementation should be close to two times faster than
the AVX implementation.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/Makefile
arch/x86/crypto/serpent-avx2-asm_64.S [new file with mode: 0644]
arch/x86/crypto/serpent_avx2_glue.c [new file with mode: 0644]
arch/x86/crypto/serpent_avx_glue.c
arch/x86/include/asm/crypto/serpent-avx.h
crypto/Kconfig
crypto/testmgr.c