u-boot/drivers/crypto
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
..
fsl crypto/fsl: fix BLOB encapsulation and decapsulation 2018-01-08 08:26:03 -05:00
rsa_mod_exp verified-boot: Minimal support for booting U-Boot proper from SPL 2016-06-12 13:14:58 -04:00
ace_sha.c treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
ace_sha.h drivers: crypto: ace_sha: add implementation of hardware based lib rand 2014-03-28 15:06:31 -04:00
Kconfig drivers: hierarchize drivers Kconfig menu 2015-08-12 20:47:44 -04:00
Makefile DM: crypto/rsa_mod_exp: Add rsa Modular Exponentiation DM driver 2015-01-29 17:09:58 -07:00