TPM 2.0 trusted key rework
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v11 Latest5 patches 9 repliesIn review
- v10 posting 2/20 of 8 patches 0 repliesSuperseded
- v10 posting 1/28 patches 12 repliesSuperseded
Earlier versions · 8
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v9 | 8 patches | 24 replies | Superseded | |
| v8 posting 2/2 | 0 of 8 patches | 0 replies | Superseded | |
| v8 posting 1/2 | 8 patches | 9 replies | Superseded | |
| v7 | 6 patches | 7 replies | Superseded | |
| v6 | 6 patches | 13 replies | Superseded | |
| v5 | 6 patches | 20 replies | Superseded | |
| v4 | 9 patches | 9 replies | Superseded | |
| v3 | 9 patches | 0 replies | Superseded |
Patches in v11 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | lib: add ASN.1 encoderinclude/ lib/ lib/ +1 more | +490 | 0 replies | |
| 2/5 | oid_registry: Add TCG defined OIDS for TPM keysinclude/ | +5 | 0 replies | |
| 3/5 | security: keys: trusted: fix TPM2 authorizationsinclude/ security/ security/ | +33 | 3 replies | |
| 4/5 | security: keys: trusted: use ASN.1 TPM2 key format for the blobsDocumentation/ include/ security/ +4 more | +273 | 6 replies | |
| 5/5 | security: keys: trusted: Make sealed key properly interoperableinclude/ security/ | +40 | 0 replies |
Reviews trailers per patch
4 of 5 patches have a Reviewed-by or Acked-by.
| Patch | Jarkko Sakkinen | David Howells |
|---|---|---|
| 1/5 | R-b | |
| 2/5 | A-b | R-b |
| 3/5 | R-b | |
| 4/5 | ||
| 5/5 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v11 0/5] TPM 2.0 trusted key rework
As requested this is the patch set to make the TPM 2.0 trusted key infrastructure use the same ASN.1 format as the external key tools. The addition of the policy use cases has been broken out into a separate patch. The new code here is adding a description of the ASN.1 key format to trusted-encrypted.rst.
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
Signature · 1 line
2.26.2