aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorSam Protsenko <semen.protsenko@linaro.org>2024-06-20 18:13:38 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2024-06-28 11:35:49 +1000
commit10bb6ac8f86f4b65ef8d227504868a61e0bcb148 (patch)
treee7e402888b9f92bbf32c0028305c15d64b8bc29e /lib/crypto/mpi/mpi-bit.c
parente003d67067043488595f33f3a82230a4281686ca (diff)
downloadlinux-10bb6ac8f86f4b65ef8d227504868a61e0bcb148.tar.gz
linux-10bb6ac8f86f4b65ef8d227504868a61e0bcb148.tar.bz2
linux-10bb6ac8f86f4b65ef8d227504868a61e0bcb148.zip
hwrng: exynos - Add SMC based TRNG operation
On some Exynos chips like Exynos850 the access to Security Sub System (SSS) registers is protected with TrustZone, and therefore only possible from EL3 monitor software. The Linux kernel is running in EL1, so the only way for the driver to obtain TRNG data is via SMC calls to EL3 monitor. Implement such SMC operation and use it when EXYNOS_SMC flag is set in the corresponding chip driver data. Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/crypto/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions