OpenCloudOS-Kernel/drivers/crypto/ccp
Tom Lendacky 952bce9792 crypto: ccp - Add hash state import and export support
Commit 8996eafdcb ("crypto: ahash - ensure statesize is non-zero")
added a check to prevent ahash algorithms from successfully registering
if the import and export functions were not implemented. This prevents
an oops in the hash_accept function of algif_hash. This commit causes
the ccp-crypto module SHA support and AES CMAC support from successfully
registering and causing the ccp-crypto module load to fail because the
ahash import and export functions are not implemented.

Update the CCP Crypto API support to provide import and export support
for ahash algorithms.

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-01-25 22:39:03 +08:00
..
Kconfig crypto: ccp - Use precalculated hash from headers 2015-12-22 20:43:38 +08:00
Makefile crypto: ccp - Update CCP build support 2015-02-27 22:48:48 +13:00
ccp-crypto-aes-cmac.c crypto: ccp - Add hash state import and export support 2016-01-25 22:39:03 +08:00
ccp-crypto-aes-xts.c crypto: ccp - Updates for checkpatch warnings/errors 2015-02-27 22:48:47 +13:00
ccp-crypto-aes.c crypto: ccp - Updates for checkpatch warnings/errors 2015-02-27 22:48:47 +13: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 - Add hash state import and export support 2016-01-25 22:39:03 +08:00
ccp-crypto.h crypto: ccp - Updates for checkpatch warnings/errors 2015-02-27 22:48:47 +13:00
ccp-dev.c crypto: ccp - Convert calls to their devm_ counterparts 2015-02-27 22:48:48 +13:00
ccp-dev.h crypto: ccp - Updates for checkpatch warnings/errors 2015-02-27 22:48:47 +13:00
ccp-ops.c crypto: ccp - Use precalculated hash from headers 2015-12-22 20:43:38 +08:00
ccp-pci.c crypto: ccp - use to_pci_dev and to_platform_device 2015-12-25 21:41:05 +08:00
ccp-platform.c crypto: ccp - use to_pci_dev and to_platform_device 2015-12-25 21:41:05 +08:00