linux/drivers/staging/ccree
Gilad Ben-Yossef 2c8cdb6b5d staging: ccree: do not map bufs in ahash_init
hash_init was mapping DMA memory that were then being unmap in
hash_digest/final/finup callbacks, which is against the Crypto API
usage rules (see discussion at
https://www.mail-archive.com/linux-crypto@vger.kernel.org/msg30077.html)

Fix it by moving all buffer mapping/unmapping or each Crypto API op.

This also properly deals with hash_import() not knowing if
hash_init was called or not as it now no longer matters.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-01-08 16:27:23 +01:00
..
cc_crypto_ctx.h staging: ccree: fold reg common defines into driver 2018-01-08 16:27:22 +01:00
cc_debugfs.c staging: ccree: tag debugfs init/exit func properly 2018-01-08 16:27:22 +01:00
cc_debugfs.h staging: ccree: SPDXify driver 2018-01-08 16:26:15 +01:00
cc_hw_queue_defs.h staging: ccree: fold hash defs into queue defs 2018-01-08 16:27:22 +01:00
cc_lli_defs.h staging: ccree: SPDXify driver 2018-01-08 16:26:15 +01:00
dx_crys_kernel.h staging: ccree: SPDXify driver 2018-01-08 16:26:15 +01:00
dx_host.h staging: ccree: SPDXify driver 2018-01-08 16:26:15 +01:00
Kconfig staging: ccree: SPDXify driver 2018-01-08 16:26:15 +01:00
Makefile staging: ccree: use Makefile to include PM code 2018-01-08 16:27:23 +01:00
ssi_aead.c staging: ccree: add backlog processing 2018-01-08 16:27:22 +01:00
ssi_aead.h staging: ccree: SPDXify driver 2018-01-08 16:26:15 +01:00
ssi_buffer_mgr.c staging: ccree: use array for double buffer 2018-01-08 16:27:23 +01:00
ssi_buffer_mgr.h staging: ccree: pick alloc mem flags based on req flags 2018-01-08 16:27:22 +01:00
ssi_cipher.c staging: ccree: add backlog processing 2018-01-08 16:27:22 +01:00
ssi_cipher.h staging: ccree: SPDXify driver 2018-01-08 16:26:15 +01:00
ssi_driver.c staging: ccree: copy larval digest from RAM 2018-01-08 16:27:22 +01:00
ssi_driver.h staging: ccree: add backlog processing 2018-01-08 16:27:22 +01:00
ssi_fips.c staging: ccree: SPDXify driver 2018-01-08 16:26:15 +01:00
ssi_fips.h staging: ccree: SPDXify driver 2018-01-08 16:26:15 +01:00
ssi_hash.c staging: ccree: do not map bufs in ahash_init 2018-01-08 16:27:23 +01:00
ssi_hash.h staging: ccree: allocate hash bufs inside req ctx 2018-01-08 16:27:23 +01:00
ssi_ivgen.c staging: ccree: SPDXify driver 2018-01-08 16:26:15 +01:00
ssi_ivgen.h staging: ccree: SPDXify driver 2018-01-08 16:26:15 +01:00
ssi_pm.c staging: ccree: use Makefile to include PM code 2018-01-08 16:27:23 +01:00
ssi_pm.h staging: ccree: use Makefile to include PM code 2018-01-08 16:27:23 +01:00
ssi_request_mgr.c staging: ccree: use Makefile to include PM code 2018-01-08 16:27:23 +01:00
ssi_request_mgr.h staging: ccree: break send_request and fix ret val 2018-01-08 16:27:22 +01:00
ssi_sram_mgr.c staging: ccree: SPDXify driver 2018-01-08 16:26:15 +01:00
ssi_sram_mgr.h staging: ccree: SPDXify driver 2018-01-08 16:26:15 +01:00
TODO staging: ccree: update TODO 2017-12-19 15:15:54 +01:00