mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
crypto: sun8i-ce - Add support for the TRNG
This patch had support for the TRNG present in the CE. Note that according to the algorithm ID, 2 version of the TRNG exists, the first present in H3/H5/R40/A64 and the second present in H6. This patch adds support for both, but only the second is working reliabily according to rngtest. Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
committed by
Herbert Xu
parent
5eb7e94688
commit
4a07eab32f
@@ -77,6 +77,14 @@ config CRYPTO_DEV_SUN8I_CE_PRNG
|
||||
Select this option if you want to provide kernel-side support for
|
||||
the Pseudo-Random Number Generator found in the Crypto Engine.
|
||||
|
||||
config CRYPTO_DEV_SUN8I_CE_TRNG
|
||||
bool "Support for Allwinner Crypto Engine TRNG"
|
||||
depends on CRYPTO_DEV_SUN8I_CE
|
||||
select HW_RANDOM
|
||||
help
|
||||
Select this option if you want to provide kernel-side support for
|
||||
the True Random Number Generator found in the Crypto Engine.
|
||||
|
||||
config CRYPTO_DEV_SUN8I_SS
|
||||
tristate "Support for Allwinner Security System cryptographic offloader"
|
||||
select CRYPTO_SKCIPHER
|
||||
|
||||
Reference in New Issue
Block a user