1// Copyright 2017 Google Inc. 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14// 15//////////////////////////////////////////////////////////////////////////////// 16 17// Definitions for Cloud Crypto SDK (Tink) library. 18 19// Code generated by protoc-gen-go. DO NOT EDIT. 20// versions: 21// protoc-gen-go v1.28.1 22// protoc v3.21.12 23// source: third_party/tink/proto/tink.proto 24 25package tink_go_proto 26 27import ( 28 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 29 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 30 reflect "reflect" 31 sync "sync" 32) 33 34const ( 35 // Verify that this generated code is sufficiently up-to-date. 36 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 37 // Verify that runtime/protoimpl is sufficiently up-to-date. 38 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 39) 40 41type KeyStatusType int32 42 43const ( 44 KeyStatusType_UNKNOWN_STATUS KeyStatusType = 0 45 KeyStatusType_ENABLED KeyStatusType = 1 // Can be used for crypto operations. 46 KeyStatusType_DISABLED KeyStatusType = 2 // Cannot be used, but exists and can become ENABLED. 47 KeyStatusType_DESTROYED KeyStatusType = 3 // Key data does not exist in this Keyset any more. 48) 49 50// Enum value maps for KeyStatusType. 51var ( 52 KeyStatusType_name = map[int32]string{ 53 0: "UNKNOWN_STATUS", 54 1: "ENABLED", 55 2: "DISABLED", 56 3: "DESTROYED", 57 } 58 KeyStatusType_value = map[string]int32{ 59 "UNKNOWN_STATUS": 0, 60 "ENABLED": 1, 61 "DISABLED": 2, 62 "DESTROYED": 3, 63 } 64) 65 66func (x KeyStatusType) Enum() *KeyStatusType { 67 p := new(KeyStatusType) 68 *p = x 69 return p 70} 71 72func (x KeyStatusType) String() string { 73 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 74} 75 76func (KeyStatusType) Descriptor() protoreflect.EnumDescriptor { 77 return file_third_party_tink_proto_tink_proto_enumTypes[0].Descriptor() 78} 79 80func (KeyStatusType) Type() protoreflect.EnumType { 81 return &file_third_party_tink_proto_tink_proto_enumTypes[0] 82} 83 84func (x KeyStatusType) Number() protoreflect.EnumNumber { 85 return protoreflect.EnumNumber(x) 86} 87 88// Deprecated: Use KeyStatusType.Descriptor instead. 89func (KeyStatusType) EnumDescriptor() ([]byte, []int) { 90 return file_third_party_tink_proto_tink_proto_rawDescGZIP(), []int{0} 91} 92 93// Tink produces and accepts ciphertexts or signatures that consist 94// of a prefix and a payload. The payload and its format is determined 95// entirely by the primitive, but the prefix has to be one of the following 96// 4 types: 97// - Legacy: prefix is 5 bytes, starts with \x00 and followed by a 4-byte 98// key id that is computed from the key material. In addition to 99// that, signature schemes and MACs will add a \x00 byte to the 100// end of the data being signed / MACed when operating on keys 101// with this OutputPrefixType. 102// - Crunchy: prefix is 5 bytes, starts with \x00 and followed by a 4-byte 103// key id that is generated randomly. 104// - Tink : prefix is 5 bytes, starts with \x01 and followed by 4-byte 105// key id that is generated randomly. 106// - Raw : prefix is 0 byte, i.e., empty. 107type OutputPrefixType int32 108 109const ( 110 OutputPrefixType_UNKNOWN_PREFIX OutputPrefixType = 0 111 OutputPrefixType_TINK OutputPrefixType = 1 112 OutputPrefixType_LEGACY OutputPrefixType = 2 113 OutputPrefixType_RAW OutputPrefixType = 3 114 OutputPrefixType_CRUNCHY OutputPrefixType = 4 115) 116 117// Enum value maps for OutputPrefixType. 118var ( 119 OutputPrefixType_name = map[int32]string{ 120 0: "UNKNOWN_PREFIX", 121 1: "TINK", 122 2: "LEGACY", 123 3: "RAW", 124 4: "CRUNCHY", 125 } 126 OutputPrefixType_value = map[string]int32{ 127 "UNKNOWN_PREFIX": 0, 128 "TINK": 1, 129 "LEGACY": 2, 130 "RAW": 3, 131 "CRUNCHY": 4, 132 } 133) 134 135func (x OutputPrefixType) Enum() *OutputPrefixType { 136 p := new(OutputPrefixType) 137 *p = x 138 return p 139} 140 141func (x OutputPrefixType) String() string { 142 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 143} 144 145func (OutputPrefixType) Descriptor() protoreflect.EnumDescriptor { 146 return file_third_party_tink_proto_tink_proto_enumTypes[1].Descriptor() 147} 148 149func (OutputPrefixType) Type() protoreflect.EnumType { 150 return &file_third_party_tink_proto_tink_proto_enumTypes[1] 151} 152 153func (x OutputPrefixType) Number() protoreflect.EnumNumber { 154 return protoreflect.EnumNumber(x) 155} 156 157// Deprecated: Use OutputPrefixType.Descriptor instead. 158func (OutputPrefixType) EnumDescriptor() ([]byte, []int) { 159 return file_third_party_tink_proto_tink_proto_rawDescGZIP(), []int{1} 160} 161 162type KeyData_KeyMaterialType int32 163 164const ( 165 KeyData_UNKNOWN_KEYMATERIAL KeyData_KeyMaterialType = 0 166 KeyData_SYMMETRIC KeyData_KeyMaterialType = 1 167 KeyData_ASYMMETRIC_PRIVATE KeyData_KeyMaterialType = 2 168 KeyData_ASYMMETRIC_PUBLIC KeyData_KeyMaterialType = 3 169 KeyData_REMOTE KeyData_KeyMaterialType = 4 // points to a remote key, i.e., in a KMS. 170) 171 172// Enum value maps for KeyData_KeyMaterialType. 173var ( 174 KeyData_KeyMaterialType_name = map[int32]string{ 175 0: "UNKNOWN_KEYMATERIAL", 176 1: "SYMMETRIC", 177 2: "ASYMMETRIC_PRIVATE", 178 3: "ASYMMETRIC_PUBLIC", 179 4: "REMOTE", 180 } 181 KeyData_KeyMaterialType_value = map[string]int32{ 182 "UNKNOWN_KEYMATERIAL": 0, 183 "SYMMETRIC": 1, 184 "ASYMMETRIC_PRIVATE": 2, 185 "ASYMMETRIC_PUBLIC": 3, 186 "REMOTE": 4, 187 } 188) 189 190func (x KeyData_KeyMaterialType) Enum() *KeyData_KeyMaterialType { 191 p := new(KeyData_KeyMaterialType) 192 *p = x 193 return p 194} 195 196func (x KeyData_KeyMaterialType) String() string { 197 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 198} 199 200func (KeyData_KeyMaterialType) Descriptor() protoreflect.EnumDescriptor { 201 return file_third_party_tink_proto_tink_proto_enumTypes[2].Descriptor() 202} 203 204func (KeyData_KeyMaterialType) Type() protoreflect.EnumType { 205 return &file_third_party_tink_proto_tink_proto_enumTypes[2] 206} 207 208func (x KeyData_KeyMaterialType) Number() protoreflect.EnumNumber { 209 return protoreflect.EnumNumber(x) 210} 211 212// Deprecated: Use KeyData_KeyMaterialType.Descriptor instead. 213func (KeyData_KeyMaterialType) EnumDescriptor() ([]byte, []int) { 214 return file_third_party_tink_proto_tink_proto_rawDescGZIP(), []int{1, 0} 215} 216 217type KeyTemplate struct { 218 state protoimpl.MessageState 219 sizeCache protoimpl.SizeCache 220 unknownFields protoimpl.UnknownFields 221 222 // Required. The type_url of the key type in format 223 // type.googleapis.com/packagename.messagename -- see above for details. 224 // This is typically the protobuf type URL of the *Key proto. In particular, 225 // this is different of the protobuf type URL of the *KeyFormat proto. 226 TypeUrl string `protobuf:"bytes,1,opt,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"` 227 // Required. The serialized *KeyFormat proto. 228 Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` 229 // Required. The type of prefix used when computing some primitives to 230 // identify the ciphertext/signature, etc. 231 OutputPrefixType OutputPrefixType `protobuf:"varint,3,opt,name=output_prefix_type,json=outputPrefixType,proto3,enum=google.crypto.tink.OutputPrefixType" json:"output_prefix_type,omitempty"` 232} 233 234func (x *KeyTemplate) Reset() { 235 *x = KeyTemplate{} 236 if protoimpl.UnsafeEnabled { 237 mi := &file_third_party_tink_proto_tink_proto_msgTypes[0] 238 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 239 ms.StoreMessageInfo(mi) 240 } 241} 242 243func (x *KeyTemplate) String() string { 244 return protoimpl.X.MessageStringOf(x) 245} 246 247func (*KeyTemplate) ProtoMessage() {} 248 249func (x *KeyTemplate) ProtoReflect() protoreflect.Message { 250 mi := &file_third_party_tink_proto_tink_proto_msgTypes[0] 251 if protoimpl.UnsafeEnabled && x != nil { 252 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 253 if ms.LoadMessageInfo() == nil { 254 ms.StoreMessageInfo(mi) 255 } 256 return ms 257 } 258 return mi.MessageOf(x) 259} 260 261// Deprecated: Use KeyTemplate.ProtoReflect.Descriptor instead. 262func (*KeyTemplate) Descriptor() ([]byte, []int) { 263 return file_third_party_tink_proto_tink_proto_rawDescGZIP(), []int{0} 264} 265 266func (x *KeyTemplate) GetTypeUrl() string { 267 if x != nil { 268 return x.TypeUrl 269 } 270 return "" 271} 272 273func (x *KeyTemplate) GetValue() []byte { 274 if x != nil { 275 return x.Value 276 } 277 return nil 278} 279 280func (x *KeyTemplate) GetOutputPrefixType() OutputPrefixType { 281 if x != nil { 282 return x.OutputPrefixType 283 } 284 return OutputPrefixType_UNKNOWN_PREFIX 285} 286 287// The actual *Key-proto is wrapped in a KeyData message, which in addition 288// to this serialized proto contains also type_url identifying the 289// definition of *Key-proto (as in KeyFormat-message), and some extra metadata 290// about the type key material. 291type KeyData struct { 292 state protoimpl.MessageState 293 sizeCache protoimpl.SizeCache 294 unknownFields protoimpl.UnknownFields 295 296 // Required. 297 TypeUrl string `protobuf:"bytes,1,opt,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"` // In format type.googleapis.com/packagename.messagename 298 // Required. 299 // Contains specific serialized *Key proto 300 Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` 301 // Required. 302 KeyMaterialType KeyData_KeyMaterialType `protobuf:"varint,3,opt,name=key_material_type,json=keyMaterialType,proto3,enum=google.crypto.tink.KeyData_KeyMaterialType" json:"key_material_type,omitempty"` 303} 304 305func (x *KeyData) Reset() { 306 *x = KeyData{} 307 if protoimpl.UnsafeEnabled { 308 mi := &file_third_party_tink_proto_tink_proto_msgTypes[1] 309 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 310 ms.StoreMessageInfo(mi) 311 } 312} 313 314func (x *KeyData) String() string { 315 return protoimpl.X.MessageStringOf(x) 316} 317 318func (*KeyData) ProtoMessage() {} 319 320func (x *KeyData) ProtoReflect() protoreflect.Message { 321 mi := &file_third_party_tink_proto_tink_proto_msgTypes[1] 322 if protoimpl.UnsafeEnabled && x != nil { 323 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 324 if ms.LoadMessageInfo() == nil { 325 ms.StoreMessageInfo(mi) 326 } 327 return ms 328 } 329 return mi.MessageOf(x) 330} 331 332// Deprecated: Use KeyData.ProtoReflect.Descriptor instead. 333func (*KeyData) Descriptor() ([]byte, []int) { 334 return file_third_party_tink_proto_tink_proto_rawDescGZIP(), []int{1} 335} 336 337func (x *KeyData) GetTypeUrl() string { 338 if x != nil { 339 return x.TypeUrl 340 } 341 return "" 342} 343 344func (x *KeyData) GetValue() []byte { 345 if x != nil { 346 return x.Value 347 } 348 return nil 349} 350 351func (x *KeyData) GetKeyMaterialType() KeyData_KeyMaterialType { 352 if x != nil { 353 return x.KeyMaterialType 354 } 355 return KeyData_UNKNOWN_KEYMATERIAL 356} 357 358// A Tink user works usually not with single keys, but with keysets, 359// to enable key rotation. The keys in a keyset can belong to different 360// implementations/key types, but must all implement the same primitive. 361// Any given keyset (and any given key) can be used for one primitive only. 362type Keyset struct { 363 state protoimpl.MessageState 364 sizeCache protoimpl.SizeCache 365 unknownFields protoimpl.UnknownFields 366 367 // Identifies key used to generate new crypto data (encrypt, sign). 368 // Required. 369 PrimaryKeyId uint32 `protobuf:"varint,1,opt,name=primary_key_id,json=primaryKeyId,proto3" json:"primary_key_id,omitempty"` 370 // Actual keys in the Keyset. 371 // Required. 372 Key []*Keyset_Key `protobuf:"bytes,2,rep,name=key,proto3" json:"key,omitempty"` 373} 374 375func (x *Keyset) Reset() { 376 *x = Keyset{} 377 if protoimpl.UnsafeEnabled { 378 mi := &file_third_party_tink_proto_tink_proto_msgTypes[2] 379 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 380 ms.StoreMessageInfo(mi) 381 } 382} 383 384func (x *Keyset) String() string { 385 return protoimpl.X.MessageStringOf(x) 386} 387 388func (*Keyset) ProtoMessage() {} 389 390func (x *Keyset) ProtoReflect() protoreflect.Message { 391 mi := &file_third_party_tink_proto_tink_proto_msgTypes[2] 392 if protoimpl.UnsafeEnabled && x != nil { 393 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 394 if ms.LoadMessageInfo() == nil { 395 ms.StoreMessageInfo(mi) 396 } 397 return ms 398 } 399 return mi.MessageOf(x) 400} 401 402// Deprecated: Use Keyset.ProtoReflect.Descriptor instead. 403func (*Keyset) Descriptor() ([]byte, []int) { 404 return file_third_party_tink_proto_tink_proto_rawDescGZIP(), []int{2} 405} 406 407func (x *Keyset) GetPrimaryKeyId() uint32 { 408 if x != nil { 409 return x.PrimaryKeyId 410 } 411 return 0 412} 413 414func (x *Keyset) GetKey() []*Keyset_Key { 415 if x != nil { 416 return x.Key 417 } 418 return nil 419} 420 421// Represents a "safe" Keyset that doesn't contain any actual key material, 422// thus can be used for logging or monitoring. Most fields are copied from 423// Keyset. 424type KeysetInfo struct { 425 state protoimpl.MessageState 426 sizeCache protoimpl.SizeCache 427 unknownFields protoimpl.UnknownFields 428 429 // See Keyset.primary_key_id. 430 PrimaryKeyId uint32 `protobuf:"varint,1,opt,name=primary_key_id,json=primaryKeyId,proto3" json:"primary_key_id,omitempty"` 431 // KeyInfos in the KeysetInfo. 432 // Each KeyInfo is corresponding to a Key in the corresponding Keyset. 433 KeyInfo []*KeysetInfo_KeyInfo `protobuf:"bytes,2,rep,name=key_info,json=keyInfo,proto3" json:"key_info,omitempty"` 434} 435 436func (x *KeysetInfo) Reset() { 437 *x = KeysetInfo{} 438 if protoimpl.UnsafeEnabled { 439 mi := &file_third_party_tink_proto_tink_proto_msgTypes[3] 440 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 441 ms.StoreMessageInfo(mi) 442 } 443} 444 445func (x *KeysetInfo) String() string { 446 return protoimpl.X.MessageStringOf(x) 447} 448 449func (*KeysetInfo) ProtoMessage() {} 450 451func (x *KeysetInfo) ProtoReflect() protoreflect.Message { 452 mi := &file_third_party_tink_proto_tink_proto_msgTypes[3] 453 if protoimpl.UnsafeEnabled && x != nil { 454 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 455 if ms.LoadMessageInfo() == nil { 456 ms.StoreMessageInfo(mi) 457 } 458 return ms 459 } 460 return mi.MessageOf(x) 461} 462 463// Deprecated: Use KeysetInfo.ProtoReflect.Descriptor instead. 464func (*KeysetInfo) Descriptor() ([]byte, []int) { 465 return file_third_party_tink_proto_tink_proto_rawDescGZIP(), []int{3} 466} 467 468func (x *KeysetInfo) GetPrimaryKeyId() uint32 { 469 if x != nil { 470 return x.PrimaryKeyId 471 } 472 return 0 473} 474 475func (x *KeysetInfo) GetKeyInfo() []*KeysetInfo_KeyInfo { 476 if x != nil { 477 return x.KeyInfo 478 } 479 return nil 480} 481 482// Represents a keyset that is encrypted with a master key. 483type EncryptedKeyset struct { 484 state protoimpl.MessageState 485 sizeCache protoimpl.SizeCache 486 unknownFields protoimpl.UnknownFields 487 488 // Required. 489 EncryptedKeyset []byte `protobuf:"bytes,2,opt,name=encrypted_keyset,json=encryptedKeyset,proto3" json:"encrypted_keyset,omitempty"` 490 // Optional. 491 KeysetInfo *KeysetInfo `protobuf:"bytes,3,opt,name=keyset_info,json=keysetInfo,proto3" json:"keyset_info,omitempty"` 492} 493 494func (x *EncryptedKeyset) Reset() { 495 *x = EncryptedKeyset{} 496 if protoimpl.UnsafeEnabled { 497 mi := &file_third_party_tink_proto_tink_proto_msgTypes[4] 498 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 499 ms.StoreMessageInfo(mi) 500 } 501} 502 503func (x *EncryptedKeyset) String() string { 504 return protoimpl.X.MessageStringOf(x) 505} 506 507func (*EncryptedKeyset) ProtoMessage() {} 508 509func (x *EncryptedKeyset) ProtoReflect() protoreflect.Message { 510 mi := &file_third_party_tink_proto_tink_proto_msgTypes[4] 511 if protoimpl.UnsafeEnabled && x != nil { 512 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 513 if ms.LoadMessageInfo() == nil { 514 ms.StoreMessageInfo(mi) 515 } 516 return ms 517 } 518 return mi.MessageOf(x) 519} 520 521// Deprecated: Use EncryptedKeyset.ProtoReflect.Descriptor instead. 522func (*EncryptedKeyset) Descriptor() ([]byte, []int) { 523 return file_third_party_tink_proto_tink_proto_rawDescGZIP(), []int{4} 524} 525 526func (x *EncryptedKeyset) GetEncryptedKeyset() []byte { 527 if x != nil { 528 return x.EncryptedKeyset 529 } 530 return nil 531} 532 533func (x *EncryptedKeyset) GetKeysetInfo() *KeysetInfo { 534 if x != nil { 535 return x.KeysetInfo 536 } 537 return nil 538} 539 540type Keyset_Key struct { 541 state protoimpl.MessageState 542 sizeCache protoimpl.SizeCache 543 unknownFields protoimpl.UnknownFields 544 545 // Contains the actual, instantiation specific key proto. 546 // By convention, each key proto contains a version field. 547 KeyData *KeyData `protobuf:"bytes,1,opt,name=key_data,json=keyData,proto3" json:"key_data,omitempty"` 548 Status KeyStatusType `protobuf:"varint,2,opt,name=status,proto3,enum=google.crypto.tink.KeyStatusType" json:"status,omitempty"` 549 // Identifies a key within a keyset, is a part of metadata 550 // of a ciphertext/signature. 551 KeyId uint32 `protobuf:"varint,3,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` 552 // Determines the prefix of the ciphertexts/signatures produced by this key. 553 // This value is copied verbatim from the key template. 554 OutputPrefixType OutputPrefixType `protobuf:"varint,4,opt,name=output_prefix_type,json=outputPrefixType,proto3,enum=google.crypto.tink.OutputPrefixType" json:"output_prefix_type,omitempty"` 555} 556 557func (x *Keyset_Key) Reset() { 558 *x = Keyset_Key{} 559 if protoimpl.UnsafeEnabled { 560 mi := &file_third_party_tink_proto_tink_proto_msgTypes[5] 561 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 562 ms.StoreMessageInfo(mi) 563 } 564} 565 566func (x *Keyset_Key) String() string { 567 return protoimpl.X.MessageStringOf(x) 568} 569 570func (*Keyset_Key) ProtoMessage() {} 571 572func (x *Keyset_Key) ProtoReflect() protoreflect.Message { 573 mi := &file_third_party_tink_proto_tink_proto_msgTypes[5] 574 if protoimpl.UnsafeEnabled && x != nil { 575 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 576 if ms.LoadMessageInfo() == nil { 577 ms.StoreMessageInfo(mi) 578 } 579 return ms 580 } 581 return mi.MessageOf(x) 582} 583 584// Deprecated: Use Keyset_Key.ProtoReflect.Descriptor instead. 585func (*Keyset_Key) Descriptor() ([]byte, []int) { 586 return file_third_party_tink_proto_tink_proto_rawDescGZIP(), []int{2, 0} 587} 588 589func (x *Keyset_Key) GetKeyData() *KeyData { 590 if x != nil { 591 return x.KeyData 592 } 593 return nil 594} 595 596func (x *Keyset_Key) GetStatus() KeyStatusType { 597 if x != nil { 598 return x.Status 599 } 600 return KeyStatusType_UNKNOWN_STATUS 601} 602 603func (x *Keyset_Key) GetKeyId() uint32 { 604 if x != nil { 605 return x.KeyId 606 } 607 return 0 608} 609 610func (x *Keyset_Key) GetOutputPrefixType() OutputPrefixType { 611 if x != nil { 612 return x.OutputPrefixType 613 } 614 return OutputPrefixType_UNKNOWN_PREFIX 615} 616 617type KeysetInfo_KeyInfo struct { 618 state protoimpl.MessageState 619 sizeCache protoimpl.SizeCache 620 unknownFields protoimpl.UnknownFields 621 622 // the type url of this key, 623 // e.g., type.googleapis.com/google.crypto.tink.HmacKey. 624 TypeUrl string `protobuf:"bytes,1,opt,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"` 625 // See Keyset.Key.status. 626 Status KeyStatusType `protobuf:"varint,2,opt,name=status,proto3,enum=google.crypto.tink.KeyStatusType" json:"status,omitempty"` 627 // See Keyset.Key.key_id. 628 KeyId uint32 `protobuf:"varint,3,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` 629 // See Keyset.Key.output_prefix_type. 630 OutputPrefixType OutputPrefixType `protobuf:"varint,4,opt,name=output_prefix_type,json=outputPrefixType,proto3,enum=google.crypto.tink.OutputPrefixType" json:"output_prefix_type,omitempty"` 631} 632 633func (x *KeysetInfo_KeyInfo) Reset() { 634 *x = KeysetInfo_KeyInfo{} 635 if protoimpl.UnsafeEnabled { 636 mi := &file_third_party_tink_proto_tink_proto_msgTypes[6] 637 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 638 ms.StoreMessageInfo(mi) 639 } 640} 641 642func (x *KeysetInfo_KeyInfo) String() string { 643 return protoimpl.X.MessageStringOf(x) 644} 645 646func (*KeysetInfo_KeyInfo) ProtoMessage() {} 647 648func (x *KeysetInfo_KeyInfo) ProtoReflect() protoreflect.Message { 649 mi := &file_third_party_tink_proto_tink_proto_msgTypes[6] 650 if protoimpl.UnsafeEnabled && x != nil { 651 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 652 if ms.LoadMessageInfo() == nil { 653 ms.StoreMessageInfo(mi) 654 } 655 return ms 656 } 657 return mi.MessageOf(x) 658} 659 660// Deprecated: Use KeysetInfo_KeyInfo.ProtoReflect.Descriptor instead. 661func (*KeysetInfo_KeyInfo) Descriptor() ([]byte, []int) { 662 return file_third_party_tink_proto_tink_proto_rawDescGZIP(), []int{3, 0} 663} 664 665func (x *KeysetInfo_KeyInfo) GetTypeUrl() string { 666 if x != nil { 667 return x.TypeUrl 668 } 669 return "" 670} 671 672func (x *KeysetInfo_KeyInfo) GetStatus() KeyStatusType { 673 if x != nil { 674 return x.Status 675 } 676 return KeyStatusType_UNKNOWN_STATUS 677} 678 679func (x *KeysetInfo_KeyInfo) GetKeyId() uint32 { 680 if x != nil { 681 return x.KeyId 682 } 683 return 0 684} 685 686func (x *KeysetInfo_KeyInfo) GetOutputPrefixType() OutputPrefixType { 687 if x != nil { 688 return x.OutputPrefixType 689 } 690 return OutputPrefixType_UNKNOWN_PREFIX 691} 692 693var File_third_party_tink_proto_tink_proto protoreflect.FileDescriptor 694 695var file_third_party_tink_proto_tink_proto_rawDesc = []byte{ 696 0x0a, 0x21, 0x74, 0x68, 0x69, 0x72, 0x64, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2f, 0x74, 0x69, 697 0x6e, 0x6b, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x70, 0x72, 698 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 699 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x22, 0x92, 0x01, 0x0a, 0x0b, 0x4b, 0x65, 0x79, 0x54, 700 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x79, 0x70, 0x65, 0x5f, 701 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x79, 0x70, 0x65, 0x55, 702 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 703 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x52, 0x0a, 0x12, 0x6f, 0x75, 0x74, 0x70, 704 0x75, 0x74, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 705 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 706 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 707 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x54, 0x79, 0x70, 0x65, 0x52, 0x10, 0x6f, 0x75, 0x74, 0x70, 708 0x75, 0x74, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x54, 0x79, 0x70, 0x65, 0x22, 0x8d, 0x02, 0x0a, 709 0x07, 0x4b, 0x65, 0x79, 0x44, 0x61, 0x74, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x79, 0x70, 0x65, 710 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x79, 0x70, 0x65, 711 0x55, 0x72, 0x6c, 0x12, 0x18, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 712 0x28, 0x0c, 0x42, 0x02, 0x08, 0x02, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x57, 0x0a, 713 0x11, 0x6b, 0x65, 0x79, 0x5f, 0x6d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x5f, 0x74, 0x79, 714 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 715 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x4b, 0x65, 716 0x79, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 717 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0f, 0x6b, 0x65, 0x79, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69, 718 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x22, 0x74, 0x0a, 0x0f, 0x4b, 0x65, 0x79, 0x4d, 0x61, 0x74, 719 0x65, 0x72, 0x69, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x55, 0x4e, 0x4b, 720 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x4b, 0x45, 0x59, 0x4d, 0x41, 0x54, 0x45, 0x52, 0x49, 0x41, 0x4c, 721 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x59, 0x4d, 0x4d, 0x45, 0x54, 0x52, 0x49, 0x43, 0x10, 722 0x01, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x53, 0x59, 0x4d, 0x4d, 0x45, 0x54, 0x52, 0x49, 0x43, 0x5f, 723 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x53, 0x59, 724 0x4d, 0x4d, 0x45, 0x54, 0x52, 0x49, 0x43, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x10, 0x03, 725 0x12, 0x0a, 0x0a, 0x06, 0x52, 0x45, 0x4d, 0x4f, 0x54, 0x45, 0x10, 0x04, 0x22, 0xc6, 0x02, 0x0a, 726 0x06, 0x4b, 0x65, 0x79, 0x73, 0x65, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x70, 0x72, 0x69, 0x6d, 0x61, 727 0x72, 0x79, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 728 0x0c, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x30, 0x0a, 729 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 730 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 731 0x4b, 0x65, 0x79, 0x73, 0x65, 0x74, 0x2e, 0x4b, 0x65, 0x79, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x1a, 732 0xe3, 0x01, 0x0a, 0x03, 0x4b, 0x65, 0x79, 0x12, 0x36, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x64, 733 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 734 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x4b, 735 0x65, 0x79, 0x44, 0x61, 0x74, 0x61, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x44, 0x61, 0x74, 0x61, 0x12, 736 0x39, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 737 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 738 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x4b, 0x65, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x54, 0x79, 739 0x70, 0x65, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x6b, 0x65, 740 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6b, 0x65, 0x79, 0x49, 741 0x64, 0x12, 0x52, 0x0a, 0x12, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x70, 0x72, 0x65, 0x66, 742 0x69, 0x78, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 743 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 744 0x6e, 0x6b, 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x54, 745 0x79, 0x70, 0x65, 0x52, 0x10, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x50, 0x72, 0x65, 0x66, 0x69, 746 0x78, 0x54, 0x79, 0x70, 0x65, 0x22, 0xc2, 0x02, 0x0a, 0x0a, 0x4b, 0x65, 0x79, 0x73, 0x65, 0x74, 747 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x24, 0x0a, 0x0e, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 748 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x70, 0x72, 749 0x69, 0x6d, 0x61, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x41, 0x0a, 0x08, 0x6b, 0x65, 750 0x79, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 751 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 752 0x6b, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x4b, 0x65, 0x79, 753 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x1a, 0xca, 0x01, 754 0x0a, 0x07, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x79, 0x70, 755 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x79, 0x70, 756 0x65, 0x55, 0x72, 0x6c, 0x12, 0x39, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 757 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 758 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x4b, 0x65, 0x79, 0x53, 0x74, 0x61, 759 0x74, 0x75, 0x73, 0x54, 0x79, 0x70, 0x65, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 760 0x15, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 761 0x05, 0x6b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x52, 0x0a, 0x12, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 762 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 763 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 764 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x50, 0x72, 765 0x65, 0x66, 0x69, 0x78, 0x54, 0x79, 0x70, 0x65, 0x52, 0x10, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 766 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x54, 0x79, 0x70, 0x65, 0x22, 0x7d, 0x0a, 0x0f, 0x45, 0x6e, 767 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x65, 0x74, 0x12, 0x29, 0x0a, 768 0x10, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x65, 769 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 770 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x65, 0x74, 0x12, 0x3f, 0x0a, 0x0b, 0x6b, 0x65, 0x79, 0x73, 771 0x65, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 772 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 773 0x6e, 0x6b, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x6b, 774 0x65, 0x79, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x2a, 0x4d, 0x0a, 0x0d, 0x4b, 0x65, 0x79, 775 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x55, 0x4e, 776 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x10, 0x00, 0x12, 0x0b, 777 0x0a, 0x07, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x44, 778 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x44, 0x45, 0x53, 779 0x54, 0x52, 0x4f, 0x59, 0x45, 0x44, 0x10, 0x03, 0x2a, 0x52, 0x0a, 0x10, 0x4f, 0x75, 0x74, 0x70, 780 0x75, 0x74, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x0e, 781 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x50, 0x52, 0x45, 0x46, 0x49, 0x58, 0x10, 0x00, 782 0x12, 0x08, 0x0a, 0x04, 0x54, 0x49, 0x4e, 0x4b, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x45, 783 0x47, 0x41, 0x43, 0x59, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x52, 0x41, 0x57, 0x10, 0x03, 0x12, 784 0x0b, 0x0a, 0x07, 0x43, 0x52, 0x55, 0x4e, 0x43, 0x48, 0x59, 0x10, 0x04, 0x42, 0x58, 0x0a, 0x1c, 785 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 786 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2d, 787 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 788 0x65, 0x2f, 0x74, 0x69, 0x6e, 0x6b, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 789 0x74, 0x69, 0x6e, 0x6b, 0x5f, 0x67, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0xa2, 0x02, 0x06, 790 0x54, 0x49, 0x4e, 0x4b, 0x50, 0x42, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 791} 792 793var ( 794 file_third_party_tink_proto_tink_proto_rawDescOnce sync.Once 795 file_third_party_tink_proto_tink_proto_rawDescData = file_third_party_tink_proto_tink_proto_rawDesc 796) 797 798func file_third_party_tink_proto_tink_proto_rawDescGZIP() []byte { 799 file_third_party_tink_proto_tink_proto_rawDescOnce.Do(func() { 800 file_third_party_tink_proto_tink_proto_rawDescData = protoimpl.X.CompressGZIP(file_third_party_tink_proto_tink_proto_rawDescData) 801 }) 802 return file_third_party_tink_proto_tink_proto_rawDescData 803} 804 805var file_third_party_tink_proto_tink_proto_enumTypes = make([]protoimpl.EnumInfo, 3) 806var file_third_party_tink_proto_tink_proto_msgTypes = make([]protoimpl.MessageInfo, 7) 807var file_third_party_tink_proto_tink_proto_goTypes = []interface{}{ 808 (KeyStatusType)(0), // 0: google.crypto.tink.KeyStatusType 809 (OutputPrefixType)(0), // 1: google.crypto.tink.OutputPrefixType 810 (KeyData_KeyMaterialType)(0), // 2: google.crypto.tink.KeyData.KeyMaterialType 811 (*KeyTemplate)(nil), // 3: google.crypto.tink.KeyTemplate 812 (*KeyData)(nil), // 4: google.crypto.tink.KeyData 813 (*Keyset)(nil), // 5: google.crypto.tink.Keyset 814 (*KeysetInfo)(nil), // 6: google.crypto.tink.KeysetInfo 815 (*EncryptedKeyset)(nil), // 7: google.crypto.tink.EncryptedKeyset 816 (*Keyset_Key)(nil), // 8: google.crypto.tink.Keyset.Key 817 (*KeysetInfo_KeyInfo)(nil), // 9: google.crypto.tink.KeysetInfo.KeyInfo 818} 819var file_third_party_tink_proto_tink_proto_depIdxs = []int32{ 820 1, // 0: google.crypto.tink.KeyTemplate.output_prefix_type:type_name -> google.crypto.tink.OutputPrefixType 821 2, // 1: google.crypto.tink.KeyData.key_material_type:type_name -> google.crypto.tink.KeyData.KeyMaterialType 822 8, // 2: google.crypto.tink.Keyset.key:type_name -> google.crypto.tink.Keyset.Key 823 9, // 3: google.crypto.tink.KeysetInfo.key_info:type_name -> google.crypto.tink.KeysetInfo.KeyInfo 824 6, // 4: google.crypto.tink.EncryptedKeyset.keyset_info:type_name -> google.crypto.tink.KeysetInfo 825 4, // 5: google.crypto.tink.Keyset.Key.key_data:type_name -> google.crypto.tink.KeyData 826 0, // 6: google.crypto.tink.Keyset.Key.status:type_name -> google.crypto.tink.KeyStatusType 827 1, // 7: google.crypto.tink.Keyset.Key.output_prefix_type:type_name -> google.crypto.tink.OutputPrefixType 828 0, // 8: google.crypto.tink.KeysetInfo.KeyInfo.status:type_name -> google.crypto.tink.KeyStatusType 829 1, // 9: google.crypto.tink.KeysetInfo.KeyInfo.output_prefix_type:type_name -> google.crypto.tink.OutputPrefixType 830 10, // [10:10] is the sub-list for method output_type 831 10, // [10:10] is the sub-list for method input_type 832 10, // [10:10] is the sub-list for extension type_name 833 10, // [10:10] is the sub-list for extension extendee 834 0, // [0:10] is the sub-list for field type_name 835} 836 837func init() { file_third_party_tink_proto_tink_proto_init() } 838func file_third_party_tink_proto_tink_proto_init() { 839 if File_third_party_tink_proto_tink_proto != nil { 840 return 841 } 842 if !protoimpl.UnsafeEnabled { 843 file_third_party_tink_proto_tink_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 844 switch v := v.(*KeyTemplate); i { 845 case 0: 846 return &v.state 847 case 1: 848 return &v.sizeCache 849 case 2: 850 return &v.unknownFields 851 default: 852 return nil 853 } 854 } 855 file_third_party_tink_proto_tink_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 856 switch v := v.(*KeyData); i { 857 case 0: 858 return &v.state 859 case 1: 860 return &v.sizeCache 861 case 2: 862 return &v.unknownFields 863 default: 864 return nil 865 } 866 } 867 file_third_party_tink_proto_tink_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 868 switch v := v.(*Keyset); i { 869 case 0: 870 return &v.state 871 case 1: 872 return &v.sizeCache 873 case 2: 874 return &v.unknownFields 875 default: 876 return nil 877 } 878 } 879 file_third_party_tink_proto_tink_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 880 switch v := v.(*KeysetInfo); i { 881 case 0: 882 return &v.state 883 case 1: 884 return &v.sizeCache 885 case 2: 886 return &v.unknownFields 887 default: 888 return nil 889 } 890 } 891 file_third_party_tink_proto_tink_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 892 switch v := v.(*EncryptedKeyset); i { 893 case 0: 894 return &v.state 895 case 1: 896 return &v.sizeCache 897 case 2: 898 return &v.unknownFields 899 default: 900 return nil 901 } 902 } 903 file_third_party_tink_proto_tink_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 904 switch v := v.(*Keyset_Key); i { 905 case 0: 906 return &v.state 907 case 1: 908 return &v.sizeCache 909 case 2: 910 return &v.unknownFields 911 default: 912 return nil 913 } 914 } 915 file_third_party_tink_proto_tink_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 916 switch v := v.(*KeysetInfo_KeyInfo); i { 917 case 0: 918 return &v.state 919 case 1: 920 return &v.sizeCache 921 case 2: 922 return &v.unknownFields 923 default: 924 return nil 925 } 926 } 927 } 928 type x struct{} 929 out := protoimpl.TypeBuilder{ 930 File: protoimpl.DescBuilder{ 931 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 932 RawDescriptor: file_third_party_tink_proto_tink_proto_rawDesc, 933 NumEnums: 3, 934 NumMessages: 7, 935 NumExtensions: 0, 936 NumServices: 0, 937 }, 938 GoTypes: file_third_party_tink_proto_tink_proto_goTypes, 939 DependencyIndexes: file_third_party_tink_proto_tink_proto_depIdxs, 940 EnumInfos: file_third_party_tink_proto_tink_proto_enumTypes, 941 MessageInfos: file_third_party_tink_proto_tink_proto_msgTypes, 942 }.Build() 943 File_third_party_tink_proto_tink_proto = out.File 944 file_third_party_tink_proto_tink_proto_rawDesc = nil 945 file_third_party_tink_proto_tink_proto_goTypes = nil 946 file_third_party_tink_proto_tink_proto_depIdxs = nil 947} 948