WSL2-Linux-Kernel/Documentation/security
Ahmad Fatoum 20e73ece06 KEYS: trusted: allow use of kernel RNG for key material
[ Upstream commit fcd7c26901 ]

The two existing trusted key sources don't make use of the kernel RNG,
but instead let the hardware doing the sealing/unsealing also
generate the random key material. However, both users and future
backends may want to place less trust into the quality of the trust
source's random number generator and instead reuse the kernel entropy
pool, which can be seeded from multiple entropy sources.

Make this possible by adding a new trusted.rng parameter,
that will force use of the kernel RNG. In its absence, it's up
to the trust source to decide, which random numbers to use,
maintaining the existing behavior.

Suggested-by: Jarkko Sakkinen <jarkko@kernel.org>
Acked-by: Sumit Garg <sumit.garg@linaro.org>
Acked-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Reviewed-by: David Gstir <david@sigma-star.at>
Reviewed-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Tested-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Tested-by: Michael Walle <michael@walle.cc> # on ls1028a (non-E and E)
Tested-by: John Ernberg <john.ernberg@actia.se> # iMX8QXP
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Stable-dep-of: 01bbafc63b ("KEYS: trusted: Remove redundant static calls usage")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-10-19 23:05:33 +02:00
..
keys KEYS: trusted: allow use of kernel RNG for key material 2023-10-19 23:05:33 +02:00
tpm Documentation: drop optional BOMs 2021-05-10 15:17:34 -06:00
IMA-templates.rst doc: Fix warning in Documentation/security/IMA-templates.rst 2021-06-08 16:29:10 -04:00
SCTP.rst Replace HTTP links with HTTPS ones: documentation 2020-06-08 09:30:19 -06:00
credentials.rst Documentation: remove current_security() reference 2020-09-09 11:33:59 -06:00
digsig.rst docs: move digsig docs to the security book 2020-05-15 12:03:48 -06:00
index.rst landlock: Add user and kernel documentation 2021-04-22 12:22:11 -07:00
landlock.rst docs: security: landlock.rst: avoid using ReST :doc:`foo` markup 2021-06-17 13:24:39 -06:00
lsm-development.rst Documentation: Replace lkml.org links with lore 2021-01-11 12:47:38 -07:00
lsm.rst Documentation: LSM: Correct the basic LSM description 2020-05-25 18:59:59 -06:00
sak.rst docs: security: move some books to it and update 2019-07-15 11:03:01 -03:00
self-protection.rst doc: self-protection: Add information about STACKLEAK feature 2018-09-04 10:35:48 -07:00
siphash.rst crypto: lib/sha1 - rename "sha" to "sha1" 2020-05-08 15:32:17 +10:00