Debian Codegraph @

proto/tpm/tpm.pb.go

raw
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // versions:
3 // protoc-gen-go v1.31.0
4 // protoc v3.21.12
5 // source: tpm.proto
6
7 package tpm
8
9 import (
10 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 reflect "reflect"
13 sync "sync"
14 )
15
16 const (
17 // Verify that this generated code is sufficiently up-to-date.
18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
19 // Verify that runtime/protoimpl is sufficiently up-to-date.
20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
21 )
22
23 // Enum values come from TCG Algorithm Registry - v1.27 - Table 3
24 type ObjectType int32
25
26 const (
27 ObjectType_OBJECT_INVALID ObjectType = 0
28 ObjectType_RSA ObjectType = 1
29 ObjectType_ECC ObjectType = 35
30 )
31
32 // Enum value maps for ObjectType.
33 var (
34 ObjectType_name = map[int32]string{
35 0: "OBJECT_INVALID",
36 1: "RSA",
37 35: "ECC",
38 }
39 ObjectType_value = map[string]int32{
40 "OBJECT_INVALID": 0,
41 "RSA": 1,
42 "ECC": 35,
43 }
44 )
45
46 func (x ObjectType) Enum() *ObjectType {
47 p := new(ObjectType)
48 *p = x
49 return p
50 }
51
52 func (x ObjectType) String() string {
53 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
54 }
55
56 func (ObjectType) Descriptor() protoreflect.EnumDescriptor {
57 return file_tpm_proto_enumTypes[0].Descriptor()
58 }
59
60 func (ObjectType) Type() protoreflect.EnumType {
61 return &file_tpm_proto_enumTypes[0]
62 }
63
64 func (x ObjectType) Number() protoreflect.EnumNumber {
65 return protoreflect.EnumNumber(x)
66 }
67
68 // Deprecated: Use ObjectType.Descriptor instead.
69 func (ObjectType) EnumDescriptor() ([]byte, []int) {
70 return file_tpm_proto_rawDescGZIP(), []int{0}
71 }
72
73 type HashAlgo int32
74
75 const (
76 HashAlgo_HASH_INVALID HashAlgo = 0
77 HashAlgo_SHA1 HashAlgo = 4
78 HashAlgo_SHA256 HashAlgo = 11
79 HashAlgo_SHA384 HashAlgo = 12
80 HashAlgo_SHA512 HashAlgo = 13
81 )
82
83 // Enum value maps for HashAlgo.
84 var (
85 HashAlgo_name = map[int32]string{
86 0: "HASH_INVALID",
87 4: "SHA1",
88 11: "SHA256",
89 12: "SHA384",
90 13: "SHA512",
91 }
92 HashAlgo_value = map[string]int32{
93 "HASH_INVALID": 0,
94 "SHA1": 4,
95 "SHA256": 11,
96 "SHA384": 12,
97 "SHA512": 13,
98 }
99 )
100
101 func (x HashAlgo) Enum() *HashAlgo {
102 p := new(HashAlgo)
103 *p = x
104 return p
105 }
106
107 func (x HashAlgo) String() string {
108 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
109 }
110
111 func (HashAlgo) Descriptor() protoreflect.EnumDescriptor {
112 return file_tpm_proto_enumTypes[1].Descriptor()
113 }
114
115 func (HashAlgo) Type() protoreflect.EnumType {
116 return &file_tpm_proto_enumTypes[1]
117 }
118
119 func (x HashAlgo) Number() protoreflect.EnumNumber {
120 return protoreflect.EnumNumber(x)
121 }
122
123 // Deprecated: Use HashAlgo.Descriptor instead.
124 func (HashAlgo) EnumDescriptor() ([]byte, []int) {
125 return file_tpm_proto_rawDescGZIP(), []int{1}
126 }
127
128 // SealedBytes stores the result of a TPM2_Seal. The private portion (priv) has
129 // already been encrypted and is no longer sensitive. The hash algorithm is
130 // assumed to be SHA256.
131 type SealedBytes struct {
132 state protoimpl.MessageState
133 sizeCache protoimpl.SizeCache
134 unknownFields protoimpl.UnknownFields
135
136 Priv []byte `protobuf:"bytes,1,opt,name=priv,proto3" json:"priv,omitempty"`
137 Pub []byte `protobuf:"bytes,2,opt,name=pub,proto3" json:"pub,omitempty"`
138 Pcrs []uint32 `protobuf:"varint,3,rep,packed,name=pcrs,proto3" json:"pcrs,omitempty"`
139 Hash HashAlgo `protobuf:"varint,4,opt,name=hash,proto3,enum=tpm.HashAlgo" json:"hash,omitempty"`
140 Srk ObjectType `protobuf:"varint,5,opt,name=srk,proto3,enum=tpm.ObjectType" json:"srk,omitempty"`
141 CertifiedPcrs *PCRs `protobuf:"bytes,6,opt,name=certified_pcrs,json=certifiedPcrs,proto3" json:"certified_pcrs,omitempty"`
142 CreationData []byte `protobuf:"bytes,7,opt,name=creation_data,json=creationData,proto3" json:"creation_data,omitempty"`
143 Ticket []byte `protobuf:"bytes,8,opt,name=ticket,proto3" json:"ticket,omitempty"`
144 }
145
146 func (x *SealedBytes) Reset() {
147 *x = SealedBytes{}
148 if protoimpl.UnsafeEnabled {
149 mi := &file_tpm_proto_msgTypes[0]
150 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
151 ms.StoreMessageInfo(mi)
152 }
153 }
154
155 func (x *SealedBytes) String() string {
156 return protoimpl.X.MessageStringOf(x)
157 }
158
159 func (*SealedBytes) ProtoMessage() {}
160
161 func (x *SealedBytes) ProtoReflect() protoreflect.Message {
162 mi := &file_tpm_proto_msgTypes[0]
163 if protoimpl.UnsafeEnabled && x != nil {
164 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
165 if ms.LoadMessageInfo() == nil {
166 ms.StoreMessageInfo(mi)
167 }
168 return ms
169 }
170 return mi.MessageOf(x)
171 }
172
173 // Deprecated: Use SealedBytes.ProtoReflect.Descriptor instead.
174 func (*SealedBytes) Descriptor() ([]byte, []int) {
175 return file_tpm_proto_rawDescGZIP(), []int{0}
176 }
177
178 func (x *SealedBytes) GetPriv() []byte {
179 if x != nil {
180 return x.Priv
181 }
182 return nil
183 }
184
185 func (x *SealedBytes) GetPub() []byte {
186 if x != nil {
187 return x.Pub
188 }
189 return nil
190 }
191
192 func (x *SealedBytes) GetPcrs() []uint32 {
193 if x != nil {
194 return x.Pcrs
195 }
196 return nil
197 }
198
199 func (x *SealedBytes) GetHash() HashAlgo {
200 if x != nil {
201 return x.Hash
202 }
203 return HashAlgo_HASH_INVALID
204 }
205
206 func (x *SealedBytes) GetSrk() ObjectType {
207 if x != nil {
208 return x.Srk
209 }
210 return ObjectType_OBJECT_INVALID
211 }
212
213 func (x *SealedBytes) GetCertifiedPcrs() *PCRs {
214 if x != nil {
215 return x.CertifiedPcrs
216 }
217 return nil
218 }
219
220 func (x *SealedBytes) GetCreationData() []byte {
221 if x != nil {
222 return x.CreationData
223 }
224 return nil
225 }
226
227 func (x *SealedBytes) GetTicket() []byte {
228 if x != nil {
229 return x.Ticket
230 }
231 return nil
232 }
233
234 type ImportBlob struct {
235 state protoimpl.MessageState
236 sizeCache protoimpl.SizeCache
237 unknownFields protoimpl.UnknownFields
238
239 Duplicate []byte `protobuf:"bytes,1,opt,name=duplicate,proto3" json:"duplicate,omitempty"`
240 EncryptedSeed []byte `protobuf:"bytes,2,opt,name=encrypted_seed,json=encryptedSeed,proto3" json:"encrypted_seed,omitempty"`
241 PublicArea []byte `protobuf:"bytes,3,opt,name=public_area,json=publicArea,proto3" json:"public_area,omitempty"`
242 Pcrs *PCRs `protobuf:"bytes,4,opt,name=pcrs,proto3" json:"pcrs,omitempty"`
243 }
244
245 func (x *ImportBlob) Reset() {
246 *x = ImportBlob{}
247 if protoimpl.UnsafeEnabled {
248 mi := &file_tpm_proto_msgTypes[1]
249 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
250 ms.StoreMessageInfo(mi)
251 }
252 }
253
254 func (x *ImportBlob) String() string {
255 return protoimpl.X.MessageStringOf(x)
256 }
257
258 func (*ImportBlob) ProtoMessage() {}
259
260 func (x *ImportBlob) ProtoReflect() protoreflect.Message {
261 mi := &file_tpm_proto_msgTypes[1]
262 if protoimpl.UnsafeEnabled && x != nil {
263 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
264 if ms.LoadMessageInfo() == nil {
265 ms.StoreMessageInfo(mi)
266 }
267 return ms
268 }
269 return mi.MessageOf(x)
270 }
271
272 // Deprecated: Use ImportBlob.ProtoReflect.Descriptor instead.
273 func (*ImportBlob) Descriptor() ([]byte, []int) {
274 return file_tpm_proto_rawDescGZIP(), []int{1}
275 }
276
277 func (x *ImportBlob) GetDuplicate() []byte {
278 if x != nil {
279 return x.Duplicate
280 }
281 return nil
282 }
283
284 func (x *ImportBlob) GetEncryptedSeed() []byte {
285 if x != nil {
286 return x.EncryptedSeed
287 }
288 return nil
289 }
290
291 func (x *ImportBlob) GetPublicArea() []byte {
292 if x != nil {
293 return x.PublicArea
294 }
295 return nil
296 }
297
298 func (x *ImportBlob) GetPcrs() *PCRs {
299 if x != nil {
300 return x.Pcrs
301 }
302 return nil
303 }
304
305 type Quote struct {
306 state protoimpl.MessageState
307 sizeCache protoimpl.SizeCache
308 unknownFields protoimpl.UnknownFields
309
310 // TPM2 quote, encoded as a TPMS_ATTEST
311 Quote []byte `protobuf:"bytes,1,opt,name=quote,proto3" json:"quote,omitempty"`
312 // TPM2 signature, encoded as a TPMT_SIGNATURE
313 RawSig []byte `protobuf:"bytes,2,opt,name=raw_sig,json=rawSig,proto3" json:"raw_sig,omitempty"`
314 // PCR values of the bank being quoted
315 Pcrs *PCRs `protobuf:"bytes,3,opt,name=pcrs,proto3" json:"pcrs,omitempty"`
316 }
317
318 func (x *Quote) Reset() {
319 *x = Quote{}
320 if protoimpl.UnsafeEnabled {
321 mi := &file_tpm_proto_msgTypes[2]
322 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
323 ms.StoreMessageInfo(mi)
324 }
325 }
326
327 func (x *Quote) String() string {
328 return protoimpl.X.MessageStringOf(x)
329 }
330
331 func (*Quote) ProtoMessage() {}
332
333 func (x *Quote) ProtoReflect() protoreflect.Message {
334 mi := &file_tpm_proto_msgTypes[2]
335 if protoimpl.UnsafeEnabled && x != nil {
336 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
337 if ms.LoadMessageInfo() == nil {
338 ms.StoreMessageInfo(mi)
339 }
340 return ms
341 }
342 return mi.MessageOf(x)
343 }
344
345 // Deprecated: Use Quote.ProtoReflect.Descriptor instead.
346 func (*Quote) Descriptor() ([]byte, []int) {
347 return file_tpm_proto_rawDescGZIP(), []int{2}
348 }
349
350 func (x *Quote) GetQuote() []byte {
351 if x != nil {
352 return x.Quote
353 }
354 return nil
355 }
356
357 func (x *Quote) GetRawSig() []byte {
358 if x != nil {
359 return x.RawSig
360 }
361 return nil
362 }
363
364 func (x *Quote) GetPcrs() *PCRs {
365 if x != nil {
366 return x.Pcrs
367 }
368 return nil
369 }
370
371 type PCRs struct {
372 state protoimpl.MessageState
373 sizeCache protoimpl.SizeCache
374 unknownFields protoimpl.UnknownFields
375
376 Hash HashAlgo `protobuf:"varint,1,opt,name=hash,proto3,enum=tpm.HashAlgo" json:"hash,omitempty"`
377 Pcrs map[uint32][]byte `protobuf:"bytes,2,rep,name=pcrs,proto3" json:"pcrs,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
378 }
379
380 func (x *PCRs) Reset() {
381 *x = PCRs{}
382 if protoimpl.UnsafeEnabled {
383 mi := &file_tpm_proto_msgTypes[3]
384 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
385 ms.StoreMessageInfo(mi)
386 }
387 }
388
389 func (x *PCRs) String() string {
390 return protoimpl.X.MessageStringOf(x)
391 }
392
393 func (*PCRs) ProtoMessage() {}
394
395 func (x *PCRs) ProtoReflect() protoreflect.Message {
396 mi := &file_tpm_proto_msgTypes[3]
397 if protoimpl.UnsafeEnabled && x != nil {
398 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
399 if ms.LoadMessageInfo() == nil {
400 ms.StoreMessageInfo(mi)
401 }
402 return ms
403 }
404 return mi.MessageOf(x)
405 }
406
407 // Deprecated: Use PCRs.ProtoReflect.Descriptor instead.
408 func (*PCRs) Descriptor() ([]byte, []int) {
409 return file_tpm_proto_rawDescGZIP(), []int{3}
410 }
411
412 func (x *PCRs) GetHash() HashAlgo {
413 if x != nil {
414 return x.Hash
415 }
416 return HashAlgo_HASH_INVALID
417 }
418
419 func (x *PCRs) GetPcrs() map[uint32][]byte {
420 if x != nil {
421 return x.Pcrs
422 }
423 return nil
424 }
425
426 // Contains information corresponding an object certified with TPM2_Certify.
427 type CertifiedBlob struct {
428 state protoimpl.MessageState
429 sizeCache protoimpl.SizeCache
430 unknownFields protoimpl.UnknownFields
431
432 // Public area of certified object, encoded as a TPMT_PUBLIC
433 PubArea []byte `protobuf:"bytes,1,opt,name=pub_area,json=pubArea,proto3" json:"pub_area,omitempty"`
434 // TPM2 certification, encoded as a TPMS_ATTEST
435 CertifyInfo []byte `protobuf:"bytes,2,opt,name=certify_info,json=certifyInfo,proto3" json:"certify_info,omitempty"`
436 // TPM2 signature, encoded as a TPMT_Signature
437 RawSig []byte `protobuf:"bytes,3,opt,name=raw_sig,json=rawSig,proto3" json:"raw_sig,omitempty"`
438 }
439
440 func (x *CertifiedBlob) Reset() {
441 *x = CertifiedBlob{}
442 if protoimpl.UnsafeEnabled {
443 mi := &file_tpm_proto_msgTypes[4]
444 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
445 ms.StoreMessageInfo(mi)
446 }
447 }
448
449 func (x *CertifiedBlob) String() string {
450 return protoimpl.X.MessageStringOf(x)
451 }
452
453 func (*CertifiedBlob) ProtoMessage() {}
454
455 func (x *CertifiedBlob) ProtoReflect() protoreflect.Message {
456 mi := &file_tpm_proto_msgTypes[4]
457 if protoimpl.UnsafeEnabled && x != nil {
458 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
459 if ms.LoadMessageInfo() == nil {
460 ms.StoreMessageInfo(mi)
461 }
462 return ms
463 }
464 return mi.MessageOf(x)
465 }
466
467 // Deprecated: Use CertifiedBlob.ProtoReflect.Descriptor instead.
468 func (*CertifiedBlob) Descriptor() ([]byte, []int) {
469 return file_tpm_proto_rawDescGZIP(), []int{4}
470 }
471
472 func (x *CertifiedBlob) GetPubArea() []byte {
473 if x != nil {
474 return x.PubArea
475 }
476 return nil
477 }
478
479 func (x *CertifiedBlob) GetCertifyInfo() []byte {
480 if x != nil {
481 return x.CertifyInfo
482 }
483 return nil
484 }
485
486 func (x *CertifiedBlob) GetRawSig() []byte {
487 if x != nil {
488 return x.RawSig
489 }
490 return nil
491 }
492
493 var File_tpm_proto protoreflect.FileDescriptor
494
495 var file_tpm_proto_rawDesc = []byte{
496 0x0a, 0x09, 0x74, 0x70, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x74, 0x70, 0x6d,
497 0x22, 0xfc, 0x01, 0x0a, 0x0b, 0x53, 0x65, 0x61, 0x6c, 0x65, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73,
498 0x12, 0x12, 0x0a, 0x04, 0x70, 0x72, 0x69, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04,
499 0x70, 0x72, 0x69, 0x76, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x75, 0x62, 0x18, 0x02, 0x20, 0x01, 0x28,
500 0x0c, 0x52, 0x03, 0x70, 0x75, 0x62, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x63, 0x72, 0x73, 0x18, 0x03,
501 0x20, 0x03, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x63, 0x72, 0x73, 0x12, 0x21, 0x0a, 0x04, 0x68, 0x61,
502 0x73, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x74, 0x70, 0x6d, 0x2e, 0x48,
503 0x61, 0x73, 0x68, 0x41, 0x6c, 0x67, 0x6f, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x21, 0x0a,
504 0x03, 0x73, 0x72, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0f, 0x2e, 0x74, 0x70, 0x6d,
505 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x03, 0x73, 0x72, 0x6b,
506 0x12, 0x30, 0x0a, 0x0e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x70, 0x63,
507 0x72, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x74, 0x70, 0x6d, 0x2e, 0x50,
508 0x43, 0x52, 0x73, 0x52, 0x0d, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x65, 0x64, 0x50, 0x63,
509 0x72, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64,
510 0x61, 0x74, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74,
511 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65,
512 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x22,
513 0x91, 0x01, 0x0a, 0x0a, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x12, 0x1c,
514 0x0a, 0x09, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
515 0x0c, 0x52, 0x09, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x25, 0x0a, 0x0e,
516 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x65, 0x65, 0x64, 0x18, 0x02,
517 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x53,
518 0x65, 0x65, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x61, 0x72,
519 0x65, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63,
520 0x41, 0x72, 0x65, 0x61, 0x12, 0x1d, 0x0a, 0x04, 0x70, 0x63, 0x72, 0x73, 0x18, 0x04, 0x20, 0x01,
521 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x74, 0x70, 0x6d, 0x2e, 0x50, 0x43, 0x52, 0x73, 0x52, 0x04, 0x70,
522 0x63, 0x72, 0x73, 0x22, 0x55, 0x0a, 0x05, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05,
523 0x71, 0x75, 0x6f, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x71, 0x75, 0x6f,
524 0x74, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x61, 0x77, 0x5f, 0x73, 0x69, 0x67, 0x18, 0x02, 0x20,
525 0x01, 0x28, 0x0c, 0x52, 0x06, 0x72, 0x61, 0x77, 0x53, 0x69, 0x67, 0x12, 0x1d, 0x0a, 0x04, 0x70,
526 0x63, 0x72, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x74, 0x70, 0x6d, 0x2e,
527 0x50, 0x43, 0x52, 0x73, 0x52, 0x04, 0x70, 0x63, 0x72, 0x73, 0x22, 0x8b, 0x01, 0x0a, 0x04, 0x50,
528 0x43, 0x52, 0x73, 0x12, 0x21, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28,
529 0x0e, 0x32, 0x0d, 0x2e, 0x74, 0x70, 0x6d, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x41, 0x6c, 0x67, 0x6f,
530 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x27, 0x0a, 0x04, 0x70, 0x63, 0x72, 0x73, 0x18, 0x02,
531 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x70, 0x6d, 0x2e, 0x50, 0x43, 0x52, 0x73, 0x2e,
532 0x50, 0x63, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x70, 0x63, 0x72, 0x73, 0x1a,
533 0x37, 0x0a, 0x09, 0x50, 0x63, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
534 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14,
535 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76,
536 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x66, 0x0a, 0x0d, 0x43, 0x65, 0x72, 0x74,
537 0x69, 0x66, 0x69, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x75, 0x62,
538 0x5f, 0x61, 0x72, 0x65, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x75, 0x62,
539 0x41, 0x72, 0x65, 0x61, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x79, 0x5f,
540 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74,
541 0x69, 0x66, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x61, 0x77, 0x5f, 0x73,
542 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x72, 0x61, 0x77, 0x53, 0x69, 0x67,
543 0x2a, 0x32, 0x0a, 0x0a, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12,
544 0x0a, 0x0e, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44,
545 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x52, 0x53, 0x41, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x45,
546 0x43, 0x43, 0x10, 0x23, 0x2a, 0x4a, 0x0a, 0x08, 0x48, 0x61, 0x73, 0x68, 0x41, 0x6c, 0x67, 0x6f,
547 0x12, 0x10, 0x0a, 0x0c, 0x48, 0x41, 0x53, 0x48, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44,
548 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x53, 0x48, 0x41, 0x31, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06,
549 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x10, 0x0b, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x48, 0x41, 0x33,
550 0x38, 0x34, 0x10, 0x0c, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x48, 0x41, 0x35, 0x31, 0x32, 0x10, 0x0d,
551 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67,
552 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x67, 0x6f, 0x2d, 0x74, 0x70, 0x6d, 0x2d, 0x74, 0x6f, 0x6f,
553 0x6c, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x70, 0x6d, 0x62, 0x06, 0x70, 0x72,
554 0x6f, 0x74, 0x6f, 0x33,
555 }
556
557 var (
558 file_tpm_proto_rawDescOnce sync.Once
559 file_tpm_proto_rawDescData = file_tpm_proto_rawDesc
560 )
561
562 func file_tpm_proto_rawDescGZIP() []byte {
563 file_tpm_proto_rawDescOnce.Do(func() {
564 file_tpm_proto_rawDescData = protoimpl.X.CompressGZIP(file_tpm_proto_rawDescData)
565 })
566 return file_tpm_proto_rawDescData
567 }
568
569 var file_tpm_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
570 var file_tpm_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
571 var file_tpm_proto_goTypes = []interface{}{
572 (ObjectType)(0), // 0: tpm.ObjectType
573 (HashAlgo)(0), // 1: tpm.HashAlgo
574 (*SealedBytes)(nil), // 2: tpm.SealedBytes
575 (*ImportBlob)(nil), // 3: tpm.ImportBlob
576 (*Quote)(nil), // 4: tpm.Quote
577 (*PCRs)(nil), // 5: tpm.PCRs
578 (*CertifiedBlob)(nil), // 6: tpm.CertifiedBlob
579 nil, // 7: tpm.PCRs.PcrsEntry
580 }
581 var file_tpm_proto_depIdxs = []int32{
582 1, // 0: tpm.SealedBytes.hash:type_name -> tpm.HashAlgo
583 0, // 1: tpm.SealedBytes.srk:type_name -> tpm.ObjectType
584 5, // 2: tpm.SealedBytes.certified_pcrs:type_name -> tpm.PCRs
585 5, // 3: tpm.ImportBlob.pcrs:type_name -> tpm.PCRs
586 5, // 4: tpm.Quote.pcrs:type_name -> tpm.PCRs
587 1, // 5: tpm.PCRs.hash:type_name -> tpm.HashAlgo
588 7, // 6: tpm.PCRs.pcrs:type_name -> tpm.PCRs.PcrsEntry
589 7, // [7:7] is the sub-list for method output_type
590 7, // [7:7] is the sub-list for method input_type
591 7, // [7:7] is the sub-list for extension type_name
592 7, // [7:7] is the sub-list for extension extendee
593 0, // [0:7] is the sub-list for field type_name
594 }
595
596 func init() { file_tpm_proto_init() }
597 func file_tpm_proto_init() {
598 if File_tpm_proto != nil {
599 return
600 }
601 if !protoimpl.UnsafeEnabled {
602 file_tpm_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
603 switch v := v.(*SealedBytes); i {
604 case 0:
605 return &v.state
606 case 1:
607 return &v.sizeCache
608 case 2:
609 return &v.unknownFields
610 default:
611 return nil
612 }
613 }
614 file_tpm_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
615 switch v := v.(*ImportBlob); i {
616 case 0:
617 return &v.state
618 case 1:
619 return &v.sizeCache
620 case 2:
621 return &v.unknownFields
622 default:
623 return nil
624 }
625 }
626 file_tpm_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
627 switch v := v.(*Quote); i {
628 case 0:
629 return &v.state
630 case 1:
631 return &v.sizeCache
632 case 2:
633 return &v.unknownFields
634 default:
635 return nil
636 }
637 }
638 file_tpm_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
639 switch v := v.(*PCRs); i {
640 case 0:
641 return &v.state
642 case 1:
643 return &v.sizeCache
644 case 2:
645 return &v.unknownFields
646 default:
647 return nil
648 }
649 }
650 file_tpm_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
651 switch v := v.(*CertifiedBlob); i {
652 case 0:
653 return &v.state
654 case 1:
655 return &v.sizeCache
656 case 2:
657 return &v.unknownFields
658 default:
659 return nil
660 }
661 }
662 }
663 type x struct{}
664 out := protoimpl.TypeBuilder{
665 File: protoimpl.DescBuilder{
666 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
667 RawDescriptor: file_tpm_proto_rawDesc,
668 NumEnums: 2,
669 NumMessages: 6,
670 NumExtensions: 0,
671 NumServices: 0,
672 },
673 GoTypes: file_tpm_proto_goTypes,
674 DependencyIndexes: file_tpm_proto_depIdxs,
675 EnumInfos: file_tpm_proto_enumTypes,
676 MessageInfos: file_tpm_proto_msgTypes,
677 }.Build()
678 File_tpm_proto = out.File
679 file_tpm_proto_rawDesc = nil
680 file_tpm_proto_goTypes = nil
681 file_tpm_proto_depIdxs = nil
682 }