[PATCH v8 0/8] Add a random number generator uclass

Heinrich Schuchardt xypron.glpk at gmx.de
Mon Dec 30 22:34:43 CET 2019


On 12/29/19 11:00 AM, Sughosh Ganu wrote:
> Add a random number generator(rng) uclass to facilitate adding drivers
> for rng devices. I plan to add an implementation of the
> EFI_RNG_PROTOCOL, which would get the random number from the rng
> uclass -- the protocol would be used by the efi stub for getting a
> random number for the kaslr feature.
>
> The patch series also adds a driver for the rng device found on the
> stm32mp1 and qemu platforms. A dummy rng driver for sandbox has also
> been added, along with the unit test for the rng uclass.

drivers/crypto/ace_sha.c (for the Samsung Exynos 4412) has some RNG
related code (cf. CONFIG_LIB_HW_RAND) which could be moved to your new
driver structure *after* merging this patch series.

The Linux driver is in drivers/crypto/exynos-rng.c.

Such a RNG driver would for instance add support for the Samsung Exynos5
CPU of the Odroid XU4 which is still on sale.

Best regards

Heinrich


More information about the U-Boot mailing list