u-boot/drivers/crypto/fsl
Clemens Gruber 598e9dccc7 crypto/fsl: fix BLOB encapsulation and decapsulation
The blob_encap and blob_decap functions were not flushing the dcache
before passing data to CAAM/DMA and not invalidating the dcache when
getting data back.
Therefore, blob encapsulation and decapsulation failed with errors like
the following due to data cache incoherency:
"40000006: DECO: desc idx 0: Invalid KEY command"

To ensure coherency, we require the key_mod, src and dst buffers to be
aligned to the cache line size and flush/invalidate the memory regions.
The same requirements apply to the job descriptor.

Tested on an i.MX6Q board.

Reviewed-by: Sumit Garg <sumit.garg@nxp.com>
Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
2018-01-08 08:26:03 -05: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 treewide: replace #include <asm-generic/errno.h> with <linux/errno.h> 2016-09-23 22:25:27 -04: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