linux/drivers/crypto/ccp
Tom Lendacky 01a997dacf crypto: ccp - Fix AES XTS error for request sizes above 4096
commit ab6a11a7c8 upstream.

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.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2016-08-22 22:38:05 +01:00
..
ccp-crypto-aes-cmac.c crypto: ccp - Prevent information leakage on export 2016-06-15 21:29:24 +01:00
ccp-crypto-aes-xts.c crypto: ccp - Fix AES XTS error for request sizes above 4096 2016-08-22 22:38:05 +01:00
ccp-crypto-aes.c crypto: ccp - Remove user triggerable pr_err calls 2013-12-20 20:06:22 +08:00
ccp-crypto-main.c crypto: ccp - Check for CCP before registering crypto algs 2014-10-05 13:41:09 -07:00
ccp-crypto-sha.c crypto: ccp - Prevent information leakage on export 2016-06-15 21:29:24 +01:00
ccp-crypto.h crypto: ccp - Limit the amount of information exported 2016-05-01 00:05:46 +02:00
ccp-dev.c crypto: ccp - Check for CCP before registering crypto algs 2014-10-05 13:41:09 -07:00
ccp-dev.h crypto: ccp - CCP device driver and interface support 2013-12-05 21:28:37 +08:00
ccp-ops.c crypto: ccp - Move HMAC calculation down to ccp ops file 2014-02-09 09:59:23 +08:00
ccp-pci.c crypto: ccp - Use pci_enable_msix_range() instead of pci_enable_msix() 2014-04-16 20:40:17 +08:00
Kconfig crypto: ccp - CCP Kconfig fixes 2013-12-20 20:06:20 +08:00
Makefile crytpo: ccp - CCP device driver build files 2013-12-05 21:28:40 +08:00