u-boot/drivers/crypto/fsl
Breno Lima d7af2baa49 crypto/fsl: Fix HW accelerated hash commands
The hash command function were not flushing the dcache before passing data
to CAAM/DMA and not invalidating the dcache when getting data back.

Due the data cache incoherency, HW accelerated hash commands used to fail
with CAAM errors like "Invalid KEY Command".

Check if pbuf and pout buffers are properly aligned to the cache line size
and flush/invalidate the memory regions to address this issue.

This solution is based in a previous work from Clemens Gruber in
commit 598e9dccc7 ("crypto/fsl: fix BLOB encapsulation and
decapsulation")

Reported-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
2018-01-23 11:21:20 -08:00
..
desc.h Various, unrelated tree-wide typo fixes. 2016-07-16 09:43:12 -04:00
desc_constr.h crypto/fsl: Correct 64-bit write when MMU disabled 2016-03-29 08:46:22 -07:00
error.c fsl_sec: Add hardware accelerated SHA256 and SHA1 2014-10-16 14:17:07 -07:00
fsl_blob.c crypto/fsl: fix BLOB encapsulation and decapsulation 2018-01-08 08:26:03 -05:00
fsl_hash.c crypto/fsl: Fix HW accelerated hash commands 2018-01-23 11:21:20 -08:00
fsl_hash.h crypto/fsl - Add progressive hashing support using hardware acceleration. 2015-02-25 13:20:02 -08:00
fsl_rsa.c DM: crypto/fsl: Enable rsa DM driver usage before relocation 2016-07-26 09:01:21 -07:00
jobdesc.c arm: ls1046ardb: Add SD secure boot target 2017-04-17 09:03:30 -07:00
jobdesc.h imx6: Added DEK blob generator command 2015-03-02 09:57:06 +01:00
jr.c Merge git://git.denx.de/u-boot-fsl-qoriq 2017-04-18 11:36:06 -04:00
jr.h crypto/fsl: add support for multiple SEC engines initialization 2016-05-18 08:51:46 -07:00
Kconfig Convert CONFIG_CMD_HASH to Kconfig 2017-05-22 12:38:15 -04:00
Makefile crypto/fsl: fix obj-yy in Makefile 2017-09-04 09:02:07 -04:00
rsa_caam.h DM: crypto/fsl - Add Freescale rsa DM driver 2015-01-29 17:09:58 -07:00
sec.c drivers/crypto/fsl: clean-up - use fdt_setprop_u32 helper 2015-08-03 12:06:38 -07:00