mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-02 01:19:49 +00:00
dfaec76029
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> |
||
---|---|---|
.. | ||
desc.h | ||
desc_constr.h | ||
error.c | ||
fsl_blob.c | ||
fsl_hash.c | ||
fsl_hash.h | ||
fsl_rsa.c | ||
jobdesc.c | ||
jobdesc.h | ||
jr.c | ||
jr.h | ||
Kconfig | ||
Makefile | ||
rsa_caam.h | ||
sec.c |