Skip to content

Basic trusted keys support for TPM 2.0

Jarkko Sakkinen lkml 2 versions – In review

Get series with b4
b4 am 1444723889-11650-1-git-send-email-jarkko.sakkinen@linux.intel.com

Versions newest first · linked by author and title

  1. v2 Latest4 patches 5 repliesIn review
  2. v14 patches 24 repliesSuperseded

Changes in v2 from the cover letter

* Removed all the changes that modify the existing functions to use the new struct tpm_buf. These changes should be done separately from this patch set as they require separate QA + review.
* 'keyhandle=' is now required for TPM2. Makes sense to always state the sealing key because there's no any fixed keys on the chip (thanks to Andreas Fuchs for this comment).
* I updated tpm_buf to a be heap based structure. Now there's one full page of memory for variable sized messages. Also the stack is greatly reduced.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tpm: introduce tpm_bufdrivers/char/tpm/tpm.h+97 -00 replies
2/4keys, trusted: move struct trusted_key_options to trusted-type.hinclude/keys/trusted-type.h security/keys/trusted.h+12 -110 replies
3/4tpm: seal/unseal for TPM 2.0drivers/char/tpm/tpm-interface.c drivers/char/tpm/tpm.h drivers/char/tpm/tpm2-cmd.c +2 more+366 -30 replies
4/4keys, trusted: seal/unseal with TPM 2.0 chipssecurity/keys/trusted.c+33 -30 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchAndreas Fuchs
1/4
2/4
3/4
4/4R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/4] Basic trusted keys support for TPM 2.0

Basic trusted keys support: auth value and SHA256.

v2:

* Removed all the changes that modify the existing functions to use the new struct tpm_buf. These changes should be done separately from this patch set as they require separate QA + review.
* 'keyhandle=' is now required for TPM2. Makes sense to always state the sealing key because there's no any fixed keys on the chip (thanks to Andreas Fuchs for this comment).
* I updated tpm_buf to a be heap based structure. Now there's one full page of memory for variable sized messages. Also the stack is greatly reduced.

Jarkko Sakkinen (4):
tpm: introduce tpm_buf
keys, trusted: move struct trusted_key_options to trusted-type.h
tpm: seal/unseal for TPM 2.0
keys, trusted: seal/unseal with TPM 2.0 chips

 drivers/char/tpm/tpm-interface.c |  76 ++++++++++++
 drivers/char/tpm/tpm.h           | 110 +++++++++++++++++
 drivers/char/tpm/tpm2-cmd.c      | 250 ++++++++++++++++++++++++++++++++++++++-
 include/keys/trusted-type.h      |  14 ++-
 include/linux/tpm.h              |  26 ++++
 security/keys/trusted.c          |  36 +++++-
 security/keys/trusted.h          |  11 --
 7 files changed, 507 insertions(+), 16 deletions(-)
Signature · 1 line
2.5.0