[PATCH v3 0/6] crypto/fsl: add RNG support
Michael Walle
michael at walle.cc
Thu Jun 25 14:18:59 CEST 2020
First, improve the compatibility on newer Era CAAMs. These introduced new
version registers. Secondly, add RNG support for the CAAM. This way we get
random number generator support for EFI for free and KASLR will work with
ARM64 kernels booted with bootefi.
Changes since v2:
- fix descriptor size of the deinstantiate descriptor
- use malloc_cache_aligned() instead of memalign(ARCH_DMA_MINALIGN..)
- don't check the RDSTA_PR() bit
- fix memcpy() length
- flush the dcache where the rng job description resides
Changes since v1:
- instantiate RNG with prediction resistance
- add annotation for caam_get_era()
- fix all prints to match u-boots status lines
- remove superfluous #ifdef CONFIG_DM_RNG
- changed kconfig help text
Michael Walle (6):
crypto/fsl: make SEC%u status line consistent
crypto/fsl: export caam_get_era()
crypto/fsl: support newer SEC modules
crypto/fsl: don't regenerate secure keys
crypto/fsl: instantiate the RNG with prediciton resistance
crypto/fsl: add RNG support
drivers/crypto/fsl/Kconfig | 14 +++++
drivers/crypto/fsl/Makefile | 1 +
drivers/crypto/fsl/desc.h | 2 +
drivers/crypto/fsl/jobdesc.c | 26 ++++++++-
drivers/crypto/fsl/jobdesc.h | 7 ++-
drivers/crypto/fsl/jr.c | 110 +++++++++++++++++++++++++++++------
drivers/crypto/fsl/rng.c | 86 +++++++++++++++++++++++++++
drivers/crypto/fsl/sec.c | 10 +++-
include/fsl_sec.h | 61 +++++++++++++++----
9 files changed, 282 insertions(+), 35 deletions(-)
create mode 100644 drivers/crypto/fsl/rng.c
--
2.20.1
More information about the U-Boot
mailing list