From 497c13e2470d3d2a1c3cae57767b2038b7adc027 Mon Sep 17 00:00:00 2001 From: Jacek Chmielewski Date: Fri, 4 Dec 2026 10:55:10 +0100 Subject: [PATCH 1/2] persistent srk to handle windows-provisioned tmps --- v1/client/client.proto | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/v1/client/client.proto b/v1/client/client.proto index 472bafb..37d87ce 100644 --- a/v1/client/client.proto +++ b/v1/client/client.proto @@ -103,6 +103,15 @@ message TpmIdentityMaterial { bytes srk_template = 2; TpmKeyBlobs ak = 3; TpmKeyBlobs identity_key = 4; + // Existing persistent parent. Mutually exclusive with srk_template. + TpmPersistentSrk persistent_srk = 5; +} + +message TpmPersistentSrk { + // TPM persistent handle, not a local ESAPI or TBS context handle. + uint32 handle = 1; + // Binary TPM Name without its TPM2B size prefix. + bytes name = 2; } message TpmEndorsementKeyMaterial { From d25ed956a36dbe3182eb95cb8293e5f1d03f3ac2 Mon Sep 17 00:00:00 2001 From: Jacek Chmielewski Date: Fri, 4 Dec 2026 11:22:05 +0100 Subject: [PATCH 2/2] oneof srk_template/persistent_srk --- v1/client/client.proto | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/v1/client/client.proto b/v1/client/client.proto index 37d87ce..0a6cfbd 100644 --- a/v1/client/client.proto +++ b/v1/client/client.proto @@ -99,12 +99,14 @@ message DeviceIdentityMaterial { message TpmIdentityMaterial { TpmEndorsementKeyMaterial ek = 1; - // Input TPMT_PUBLIC used to recreate the original parent with CreatePrimary. - bytes srk_template = 2; - TpmKeyBlobs ak = 3; - TpmKeyBlobs identity_key = 4; - // Existing persistent parent. Mutually exclusive with srk_template. - TpmPersistentSrk persistent_srk = 5; + TpmKeyBlobs ak = 2; + TpmKeyBlobs identity_key = 3; + oneof storage_parent { + // Input TPMT_PUBLIC used to recreate the original parent with CreatePrimary. + bytes srk_template = 4; + // Existing persistent parent. + TpmPersistentSrk persistent_srk = 5; + } } message TpmPersistentSrk {