Skip to content

Move the tpm_get_random api and add an hwrng driver for it

Kent Yoder lkml 1 version In review

Get series with b4
b4 am 1339094567.21398.2.camel@key-ThinkPad-W510

Versions newest first

  1. v1 Latest2 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tpm: Move tpm_get_random api into the TPM device driverdrivers/char/tpm/tpm.c drivers/char/tpm/tpm.h include/linux/tpm.h +1 more+84 -436 replies
2/2hw_random: add support for the TPM chip as a hardware RNG sourcedrivers/char/hw_random/Kconfig drivers/char/hw_random/Makefile drivers/char/hw_random/tpm-rng.c+69 -03 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDavid Safford
SeriesA-b
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] Move the tpm_get_random api and add an hwrng driver for it

These patches move the tpm_get_random API out of the trusted keys code and into the tpm device driver itself. Then a hwrng driver is added that makes use of the API to provide a H/W RNG source.

These are based off the latest upstream kernel.

Thanks,
Kent

Kent Yoder (2):
tpm: Move tpm_get_random api into the TPM device driver
hw_random: add support for the TPM chip as a hardware RNG source

 drivers/char/hw_random/Kconfig   |   13 +++++++++
 drivers/char/hw_random/Makefile  |    1 +
 drivers/char/hw_random/tpm-rng.c |   55 ++++++++++++++++++++++++++++++++++++++
 drivers/char/tpm/tpm.c           |   53 ++++++++++++++++++++++++++++++++----
 drivers/char/tpm/tpm.h           |   23 ++++++++++++++++
 include/linux/tpm.h              |    4 +++
 security/keys/trusted.c          |   47 +++++++-------------------------
 7 files changed, 153 insertions(+), 43 deletions(-)
 create mode 100644 drivers/char/hw_random/tpm-rng.c
Signature · 1 line
1.7.5.4