]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r345438,r345842,r346259,r346261: TPM as possible entropy source
authormw <mw@FreeBSD.org>
Fri, 26 Apr 2019 01:58:36 +0000 (01:58 +0000)
committermw <mw@FreeBSD.org>
Fri, 26 Apr 2019 01:58:36 +0000 (01:58 +0000)
commit4f4eebbb8c74330907f92281655dae9b2a49c359
tree9123718c287d209e0b821741fb9c31c8492e21f1
parent66ecd67d9f4f2861353338e93eeb16ec616680df
MFC r345438,r345842,r346259,r346261: TPM as possible entropy source

r345438:
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.

Reviewed by: markm, delphij
Approved by: secteam

r345842:
Add a cv_wait to the TPM2.0 harvesting function

r346259:
tpm: Prevent session hijack

r346261:
Improve tpm20 style

Submitted by: Kornel Duleba <mindal@semihalf.com>
Obtained from: Semihalf
Sponsored by: Stormshield
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