]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allow using TPM as entropy source.
authormw <mw@FreeBSD.org>
Sat, 23 Mar 2019 05:13:51 +0000 (05:13 +0000)
committermw <mw@FreeBSD.org>
Sat, 23 Mar 2019 05:13:51 +0000 (05:13 +0000)
commit63050415037a45771764433eeca5ce2f36da6622
tree76ff4faf8bd8dca4afbb96293762c865afcb070a
parentd1995a3d0dd287a31919498f3ef4c6a81d57ca4a
Allow using TPM as entropy source.

TPM has a built-in RNG, with its own entropy source.
The driver was extended to harvest 16 random bytes from TPM every 10 seconds.
A new build option "TPM_HARVEST" was introduced - for now, however, it
is not enabled by default in the GENERIC config.

Submitted by: Kornel Duleba <mindal@semihalf.com>
Reviewed by: markm, delphij
Approved by: secteam
Obtained from: Semihalf
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D19620
sys/conf/options
sys/dev/random/random_harvestq.c
sys/dev/tpm/tpm20.c
sys/dev/tpm/tpm20.h
sys/dev/tpm/tpm_crb.c
sys/dev/tpm/tpm_tis.c
sys/sys/random.h