arch/arm/include/asm/archrandom.h
0 → 100644
+20
−0
arch/arm/mach-msm/early_random.c
0 → 100644
+83
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Currently, the software random number generator is not initialized until relatively late in the boot process. Software that relies on random numbers early will not be reliable. Entropy sources are available early but not early enough for some use cases which means that moving the software random number generation earlier is not an option. As an alternate solution, implement the functions associated with CONFIG_ARCH_RANDOM. These functions currently make a call into trustzone to get reliable random numbers. The functions are disabled once the regular random number generator is sufficiently reliable. Change-Id: If40cfcb96b091fa26a28047c10a902287b26f6c1 Signed-off-by:Laura Abbott <lauraa@codeaurora.org> [ohaugan@codeaurora.org: Fix trivial merge issue] Signed-off-by:
Olav Haugan <ohaugan@codeaurora.org>