linux/drivers/staging/ccree
Gilad Ben-Yossef c51831be99 staging: ccree: register setkey for none hash macs
The original ccree driver was registering a useless setkey
method even for non-MAC hash transformations. Somewhere
around v4.9 a check was added that failed hash operations
if a setkey method was registered but was not called,
so during the initial upstream port code was added to
only register the setkey method for MAC type hash transform.

Unfortunately, the ccree driver also registers non-hash based
MAC transforms and the code had a logic error that stopped
it registering a setkey callback even for those, thus rendering
them useless.

This commit fixes the logic mistake, thus correctly registering
a setkey method only for MAC transformations, leaving it out
for non-MAC ones, whether they are hash based on not.

Fixes: 50cfbbb7e6 ("staging: ccree: add ahash support").

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-06-25 16:29:15 +02:00
..
Documentation/devicetree/bindings/crypto staging: ccree: add DT bindings for Arm CryptoCell 2017-04-28 12:17:54 +02:00
cc_crypto_ctx.h staging: ccree: remove descriptor context definitions 2017-06-04 10:16:26 +02:00
cc_hal.h staging: ccree: resolve possible macro issue in cc_hal.h 2017-05-15 07:41:57 +02:00
cc_hw_queue_defs.h staging: ccree: drop no longer used macro 2017-06-04 10:16:25 +02:00
cc_lli_defs.h staging: ccree: remove custom bitfield macros 2017-06-04 10:16:25 +02:00
cc_regs.h staging: ccree: remove spurious blank line 2017-06-04 10:16:26 +02:00
dx_crys_kernel.h staging: ccree: fix wrong whitespace usage 2017-06-04 10:16:26 +02:00
dx_host.h staging: ccree: fix wrong whitespace usage 2017-06-04 10:16:26 +02:00
dx_reg_base_host.h staging: ccree: remove unused code 2017-05-15 07:41:59 +02:00
dx_reg_common.h staging: ccree: Strip trailing whitespace 2017-05-15 07:41:57 +02:00
hash_defs.h staging: ccree: remove dead code 2017-06-04 10:16:25 +02:00
Kconfig staging: ccree: add CRYPTO dependency 2017-05-25 14:44:25 +02:00
Makefile staging: ccree: add FIPS support 2017-04-28 12:17:54 +02:00
ssi_aead.c staging: ccree: move else to follow close brace '}' 2017-06-24 00:26:26 +08:00
ssi_aead.h Drivers: ccree: ssi_aead.h - align block comments 2017-06-03 17:53:18 +09:00
ssi_buffer_mgr.c Merge 4.12-rc5 into staging-next 2017-06-12 08:20:47 +02:00
ssi_buffer_mgr.h staging: ccree: remove 48 bit dma addr sim 2017-06-04 10:16:25 +02:00
ssi_cipher.c staging: ccree: - style fix, spaces and tabs 2017-06-24 00:27:10 +08:00
ssi_cipher.h Drivers: ccree: ssi_cipher.h - align block comments 2017-06-03 17:53:18 +09:00
ssi_config.h staging: ccree: remove cycle count debug support 2017-06-04 10:16:25 +02:00
ssi_driver.c staging: ccree: - style fix, spaces and tabs 2017-06-24 00:27:10 +08:00
ssi_driver.h staging: ccree: - style fix, spaces and tabs 2017-06-24 00:27:10 +08:00
ssi_fips_data.h Drivers: ccree: ssi_fips_data.h - align block comments 2017-06-03 17:53:18 +09:00
ssi_fips_ext.c staging: ccree: - style fix, spaces and tabs 2017-06-24 00:27:10 +08:00
ssi_fips_ll.c staging: ccree: - style fix, spaces and tabs 2017-06-24 00:27:10 +08:00
ssi_fips_local.c staging: ccree: - style fix, spaces and tabs 2017-06-24 00:27:10 +08:00
ssi_fips_local.h staging: ccree: - style fix, spaces and tabs 2017-06-24 00:27:10 +08:00
ssi_fips.c Drivers: ccree: ssi_fips.c - align block comments 2017-06-03 17:53:18 +09:00
ssi_fips.h staging: ccree: - style fix, spaces and tabs 2017-06-24 00:27:10 +08:00
ssi_hash.c staging: ccree: register setkey for none hash macs 2017-06-25 16:29:15 +02:00
ssi_hash.h staging: ccree: fix hash import/export 2017-06-25 16:29:14 +02:00
ssi_ivgen.c staging: ccree: removed spaces after opening parentheses. 2017-06-24 00:27:28 +08:00
ssi_ivgen.h staging: ccree: fix enum/struct definitions style 2017-05-15 07:41:59 +02:00
ssi_pm_ext.c Drivers: ccree: ssi_pm_ext.c - align block comments 2017-05-29 16:53:43 +02:00
ssi_pm_ext.h Drivers: ccree: ssi_pm_ext.h - align block comments 2017-05-29 16:53:42 +02:00
ssi_pm.c staging: ccree: Strip trailing whitespace 2017-05-15 07:41:57 +02:00
ssi_pm.h Drivers: ccree: ssi_pm.h - align block comments 2017-05-29 16:53:43 +02:00
ssi_request_mgr.c staging: ccree: move request_mgr to generic bitfield ops 2017-06-04 10:16:25 +02:00
ssi_request_mgr.h Drivers: ccree: ssi_request_mgr.h - align block comments 2017-05-29 16:53:42 +02:00
ssi_sram_mgr.c staging: ccree: refactor HW command FIFO access 2017-06-04 10:16:25 +02:00
ssi_sram_mgr.h staging: ccree: fix enum/struct definitions style 2017-05-15 07:41:59 +02:00
ssi_sysfs.c Drivers: ccree: ssi_sysfs.c - align block comments 2017-05-29 16:53:42 +02:00
ssi_sysfs.h Drivers: ccree: ssi_sysfs.h - align block comments 2017-05-29 16:49:56 +02:00
TODO staging: ccree: add TODO list 2017-04-28 12:17:54 +02:00