linux/drivers/crypto/vmx
Leonidas Da Silva Barbosa 176688bba9 crypto: vmx - Fixing GHASH Key issue on little endian
commit 3c5f0ed78e upstream.

GHASH table algorithm is using a big endian key.
In little endian machines key will be LE ordered.
After a lxvd2x instruction key is loaded as it is,
LE/BE order, in first case it'll generate a wrong
table resulting in wrong hashes from the algorithm.

Bug affects only LE machines.
In order to fix it we do a swap for loaded key.

Signed-off-by: Leonidas S Barbosa <leosilva@linux.vnet.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2015-09-21 10:05:40 -07:00
..
aes.c crypto: vmx - Adding AES routines for VMX module 2015-02-28 23:13:44 +13:00
aes_cbc.c crypto: vmx - Adding CBC routines for VMX module 2015-02-28 23:13:45 +13:00
aes_ctr.c crypto: vmx - Adding CTR routines for VMX module 2015-02-28 23:13:45 +13:00
aesp8-ppc.h crypto: vmx - Adding AES routines for VMX module 2015-02-28 23:13:44 +13:00
aesp8-ppc.pl linux-next: Tree for Mar 11 (powerpc build failure due to vmx crypto code) 2015-03-12 21:18:00 +11:00
ghash.c crypto: vmx - Adding GHASH routines for VMX module 2015-02-28 23:13:46 +13:00
ghashp8-ppc.pl crypto: vmx - Fixing GHASH Key issue on little endian 2015-09-21 10:05:40 -07:00
Kconfig crypto: vmx - Enabling VMX module for PPC64 2015-02-28 23:13:46 +13:00
Makefile crypto: vmx - Enabling VMX module for PPC64 2015-02-28 23:13:46 +13:00
ppc-xlate.pl linux-next: Tree for Mar 11 (powerpc build failure due to vmx crypto code) 2015-03-12 21:18:00 +11:00
vmx.c crypto: vmx - Adding VMX module for Power 8 2015-02-28 23:13:44 +13:00