linux_old1/drivers/crypto/ccp
Tom Lendacky ab6a11a7c8 crypto: ccp - Fix AES XTS error for request sizes above 4096
The ccp-crypto module for AES XTS support has a bug that can allow requests
greater than 4096 bytes in size to be passed to the CCP hardware. The CCP
hardware does not support request sizes larger than 4096, resulting in
incorrect output. The request should actually be handled by the fallback
mechanism instantiated by the ccp-crypto module.

Add a check to insure the request size is less than or equal to the maximum
supported size and use the fallback mechanism if it is not.

Cc: <stable@vger.kernel.org> # 3.14.x-
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2016-05-25 18:33:47 +08:00
..
Kconfig crypto: ccp - Ensure all dependencies are specified 2016-04-25 19:14:51 +08:00
Makefile crypto: ccp - Register the CCP as a DMA resource 2016-04-20 17:50:06 +08:00
ccp-crypto-aes-cmac.c crypto: ccp - Prevent information leakage on export 2016-04-15 22:13:56 +08:00
ccp-crypto-aes-xts.c crypto: ccp - Fix AES XTS error for request sizes above 4096 2016-05-25 18:33:47 +08:00
ccp-crypto-aes.c crypto: ccp - CCP versioning support 2016-03-11 21:19:16 +08:00
ccp-crypto-main.c crypto: ccp - Replace BUG_ON with WARN_ON and a return code 2015-10-08 21:42:15 +08:00
ccp-crypto-sha.c crypto: ccp - Prevent information leakage on export 2016-04-15 22:13:56 +08:00
ccp-crypto.h crypto: ccp - Limit the amount of information exported 2016-02-01 22:27:05 +08:00
ccp-dev-v3.c crypto: ccp - constify ccp_actions structure 2016-05-03 16:10:14 +08:00
ccp-dev.c crypto: ccp - Fix RT breaking #include <linux/rwlock_types.h> 2016-04-15 22:35:44 +08:00
ccp-dev.h crypto: ccp - constify ccp_actions structure 2016-05-03 16:10:14 +08:00
ccp-dmaengine.c crypto: ccp - Register the CCP as a DMA resource 2016-04-20 17:50:06 +08:00
ccp-ops.c crypto: ccp - Register the CCP as a DMA resource 2016-04-20 17:50:06 +08:00
ccp-pci.c crypto: ccp - Add abstraction for device-specific calls 2016-03-11 21:19:17 +08:00
ccp-platform.c crypto: ccp - Add abstraction for device-specific calls 2016-03-11 21:19:17 +08:00