u-boot-brain/drivers/crypto/fsl
Lukas Auer dfaec76029 crypto/fsl: instantiate all rng state handles
Extend the instantiate_rng() function and the corresponding CAAM job
descriptor to instantiate all RNG state handles. This moves the RNG
instantiation code in line with the CAAM kernel driver.

Previously, only the first state handle was instantiated. The second
one was instantiated by the CAAM kernel driver. This works if the
kernel runs in secure mode, but fails in non-secure mode since the
kernel driver uses DEC0 directly instead of over the job ring
interface. Instantiating all RNG state handles in u-boot removes the
need for using DEC0 in the kernel driver, making it possible to use
the CAAM in non-secure mode.

Signed-off-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
Tested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: York Sun <york.sun@nxp.com>
2018-02-09 08:34:34 -08:00
..
desc_constr.h crypto/fsl: Correct 64-bit write when MMU disabled 2016-03-29 08:46:22 -07:00
desc.h Various, unrelated tree-wide typo fixes. 2016-07-16 09:43:12 -04: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 crypto/fsl: instantiate all rng state handles 2018-02-09 08:34:34 -08:00
jobdesc.h crypto/fsl: instantiate all rng state handles 2018-02-09 08:34:34 -08:00
jr.c crypto/fsl: instantiate all rng state handles 2018-02-09 08:34:34 -08:00
jr.h crypto/fsl: instantiate all rng state handles 2018-02-09 08:34:34 -08: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