All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v12 0/5] TPM 2.0 trusted key rework
@ 2020-09-20 16:33 ` James Bottomley
  0 siblings, 0 replies; 25+ messages in thread
From: James Bottomley @ 2020-09-20 16:33 UTC (permalink / raw)
  To: linux-integrity
  Cc: Mimi Zohar, Jarkko Sakkinen, David Woodhouse, keyrings, David Howells

Update to fix blobauth parsing problem.

General cover letter minus policy bit:

This patch updates the trusted key code to export keys in the ASN.1
format used by current TPM key tools (openssl_tpm2_engine and
openconnect).  The current code will try to load keys containing
policy, but being unable to formulate the policy commands necessary to
load them, the unseal will always fail unless the policy is executed
in user space and a pre-formed policy session passed in.

The key format is designed to be compatible with our two openssl
engine implementations as well as with the format used by openconnect.
I've added seal/unseal to my engine so I can use it for
interoperability testing and I'll later use this for sealed symmetric
keys via engine:

https://git.kernel.org/pub/scm/linux/kernel/git/jejb/openssl_tpm2_engine.git/

James

---

James Bottomley (5):
  lib: add ASN.1 encoder
  oid_registry: Add TCG defined OIDS for TPM keys
  security: keys: trusted: fix TPM2 authorizations
  security: keys: trusted: use ASN.1 TPM2 key format for the blobs
  security: keys: trusted: Make sealed key properly interoperable

 .../security/keys/trusted-encrypted.rst       |  58 +++
 include/keys/trusted-type.h                   |   2 +
 include/linux/asn1_encoder.h                  |  32 ++
 include/linux/oid_registry.h                  |   5 +
 include/linux/tpm.h                           |   2 +
 lib/Kconfig                                   |   3 +
 lib/Makefile                                  |   1 +
 lib/asn1_encoder.c                            | 454 ++++++++++++++++++
 security/keys/Kconfig                         |   1 +
 security/keys/trusted-keys/Makefile           |   2 +-
 security/keys/trusted-keys/tpm2key.asn1       |  11 +
 security/keys/trusted-keys/trusted_tpm1.c     |  34 +-
 security/keys/trusted-keys/trusted_tpm2.c     | 266 +++++++++-
 13 files changed, 840 insertions(+), 31 deletions(-)
 create mode 100644 include/linux/asn1_encoder.h
 create mode 100644 lib/asn1_encoder.c
 create mode 100644 security/keys/trusted-keys/tpm2key.asn1

-- 
2.26.2

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2020-09-22 22:46 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-20 16:33 [PATCH v12 0/5] TPM 2.0 trusted key rework James Bottomley
2020-09-20 16:33 ` James Bottomley
2020-09-20 16:33 ` [PATCH v12 1/5] lib: add ASN.1 encoder James Bottomley
2020-09-20 16:33   ` James Bottomley
2020-09-20 16:33 ` [PATCH v12 2/5] oid_registry: Add TCG defined OIDS for TPM keys James Bottomley
2020-09-20 16:33   ` James Bottomley
2020-09-20 16:33 ` [PATCH v12 3/5] security: keys: trusted: fix TPM2 authorizations James Bottomley
2020-09-20 16:33   ` James Bottomley
2020-09-20 16:33 ` [PATCH v12 4/5] security: keys: trusted: use ASN.1 TPM2 key format for the blobs James Bottomley
2020-09-20 16:33   ` James Bottomley
2020-09-20 21:53   ` kernel test robot
2020-09-21  0:07   ` kernel test robot
2020-09-21  0:07     ` kernel test robot
2020-09-21  0:07     ` kernel test robot
2020-09-21 21:31     ` James Bottomley
2020-09-21 21:31       ` James Bottomley
2020-09-22 19:14       ` Nick Desaulniers
2020-09-22 19:14         ` Nick Desaulniers
2020-09-22 19:14         ` Nick Desaulniers
2020-09-22 19:31         ` James Bottomley
2020-09-22 19:31           ` James Bottomley
2020-09-22 22:46           ` Philip Li
2020-09-21  6:55   ` kernel test robot
2020-09-20 16:33 ` [PATCH v12 5/5] security: keys: trusted: Make sealed key properly interoperable James Bottomley
2020-09-20 16:33   ` James Bottomley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.