crypto: ccp - Fix XTS-AES-128 support on v5 CCPs
authorGary R Hook <gary.hook@amd.com>
Tue, 25 Jul 2017 19:12:11 +0000 (14:12 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 4 Aug 2017 01:27:41 +0000 (09:27 +0800)
commite652399edba99a5497f0d80f240c9075d3b43493
treec06c6732cfd13900a65361f1e96d92be97d56c4f
parent7c83d689c71fd6ca8829d4a34416685938368c13
crypto: ccp - Fix XTS-AES-128 support on v5 CCPs

Version 5 CCPs have some new requirements for XTS-AES: the type field
must be specified, and the key requires 512 bits, with each part
occupying 256 bits and padded with zeroes.

cc: <stable@vger.kernel.org> # 4.9.x+

Signed-off-by: Gary R Hook <ghook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-crypto-aes-xts.c
drivers/crypto/ccp/ccp-dev-v5.c
drivers/crypto/ccp/ccp-dev.h
drivers/crypto/ccp/ccp-ops.c
include/linux/ccp.h