linux/drivers/crypto/vmx
Anton Blanchard 12d3f49e1f crypto: vmx - Increase priority of aes-cbc cipher
All of the VMX AES ciphers (AES, AES-CBC and AES-CTR) are set at
priority 1000. Unfortunately this means we never use AES-CBC and
AES-CTR, because the base AES-CBC cipher that is implemented on
top of AES inherits its priority.

To fix this, AES-CBC and AES-CTR have to be a higher priority. Set
them to 2000.

Testing on a POWER8 with:

cryptsetup benchmark --cipher aes --key-size 256

Shows decryption speed increase from 402.4 MB/s to 3069.2 MB/s,
over 7x faster. Thanks to Mike Strosaker for helping me debug
this issue.

Fixes: 8c755ace35 ("crypto: vmx - Adding CBC routines for VMX module")
Cc: stable@vger.kernel.org
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2016-06-13 17:43:05 +08:00
..
Kconfig crypto: vmx - Remove duplicate PPC64 dependency 2015-06-16 14:35:01 +08:00
Makefile crypto: vmx - fix two mistyped texts 2015-05-15 14:57:46 +08:00
aes.c powerpc: Create disable_kernel_{fp,altivec,vsx,spe}() 2015-12-01 13:52:25 +11:00
aes_cbc.c crypto: vmx - Increase priority of aes-cbc cipher 2016-06-13 17:43:05 +08:00
aes_ctr.c crypto: vmx - Increase priority of aes-cbc cipher 2016-06-13 17:43:05 +08:00
aesp8-ppc.h crypto: vmx - Reindent to kernel style 2015-06-16 14:35:02 +08:00
aesp8-ppc.pl crypto: vmx - Fixing AES-CTR counter bug 2015-08-18 10:30:35 +08:00
ghash.c powerpc: Create disable_kernel_{fp,altivec,vsx,spe}() 2015-12-01 13:52:25 +11:00
ghashp8-ppc.pl crypto: vmx - Fixing GHASH Key issue on little endian 2015-08-18 10:30:36 +08:00
ppc-xlate.pl crypto: vmx - Fix ABI detection 2016-06-13 17:43:04 +08:00
vmx.c crypto: vmx - Reindent to kernel style 2015-06-16 14:35:02 +08:00