]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - crypto/Kconfig
crypto: camellia - add AVX2/AES-NI/x86_64 assembler implementation of camellia cipher
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Sat, 13 Apr 2013 10:47:00 +0000 (13:47 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 25 Apr 2013 13:09:07 +0000 (21:09 +0800)
commitf3f935a76aa0eee68da2b273a08d84ba8ffc7a73
treec33db3ca826852d1f5b66ec48e08a08b0e273b78
parent56d76c96a9f3e39ab733c5643b3ce5a1d4be242a
crypto: camellia - add AVX2/AES-NI/x86_64 assembler implementation of camellia cipher

Patch adds AVX2/AES-NI/x86-64 implementation of Camellia cipher, requiring
32 parallel blocks for input (512 bytes). Compared to AVX implementation, this
version is extended to use the 256-bit wide YMM registers. For AES-NI
instructions data is split to two 128-bit registers and merged afterwards.
Even with this additional handling, performance should be higher compared
to the AES-NI/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/camellia-aesni-avx2-asm_64.S [new file with mode: 0644]
arch/x86/crypto/camellia_aesni_avx2_glue.c [new file with mode: 0644]
arch/x86/crypto/camellia_aesni_avx_glue.c
arch/x86/include/asm/crypto/camellia.h
crypto/Kconfig
crypto/testmgr.c