blob: fc70223d73c2960b565f9262ee9cf84f4e7195e3 [file] [log] [blame]
Lorenz Brun662182f2022-03-10 14:06:48 +01001syntax = "proto3";
Tim Windelschmidt9f21f532024-05-07 15:14:20 +02002option go_package = "source.monogon.dev/osbase/tpm/proto";
Tim Windelschmidtc2290c22024-08-15 19:56:00 +02003package osbase.pkg.tpm;
Lorenz Brun662182f2022-03-10 14:06:48 +01004
Lorenz Brund13c1c62022-03-30 19:58:58 +02005import "proto/tpm/tpm.proto";
Lorenz Brun662182f2022-03-10 14:06:48 +01006
7// ExtendedSealedBytes contains data sealed by a TPM2 via an indirection to
8// allow for more than 128 bytes of payload. It seals an ephemeral key for
9// a nacl secretbox in the TPM and stores the encrypted box next to the sealed
10// key.
11message ExtendedSealedBytes {
12 // The secretbox key, as sealed by the TPM.
Lorenz Brund13c1c62022-03-30 19:58:58 +020013 .tpm.SealedBytes sealed_key = 1;
Lorenz Brun662182f2022-03-10 14:06:48 +010014 // The encrypted box contents.
15 bytes encrypted_payload = 2;
16}