github.com/trustbloc/kms-go@v1.1.2/crypto/tinkcrypto/primitive/proto/ecdh_aead_go_proto/ecdh_aead.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.14.0 5 // source: proto/ecdh_aead.proto 6 7 package ecdh_aead_go_proto 8 9 import ( 10 reflect "reflect" 11 sync "sync" 12 13 proto "github.com/golang/protobuf/proto" 14 common_go_proto "github.com/google/tink/go/proto/common_go_proto" 15 tink_go_proto "github.com/google/tink/go/proto/tink_go_proto" 16 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 17 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 18 ) 19 20 const ( 21 // Verify that this generated code is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 23 // Verify that runtime/protoimpl is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 25 ) 26 27 // This is a compile-time assertion that a sufficiently up-to-date version 28 // of the legacy proto package is being used. 29 const _ = proto.ProtoPackageIsVersion4 30 31 type KeyType int32 32 33 const ( 34 KeyType_UNKNOWN_KEY_TYPE KeyType = 0 35 KeyType_EC KeyType = 1 36 KeyType_OKP KeyType = 2 37 ) 38 39 // Enum value maps for KeyType. 40 var ( 41 KeyType_name = map[int32]string{ 42 0: "UNKNOWN_KEY_TYPE", 43 1: "EC", 44 2: "OKP", 45 } 46 KeyType_value = map[string]int32{ 47 "UNKNOWN_KEY_TYPE": 0, 48 "EC": 1, 49 "OKP": 2, 50 } 51 ) 52 53 func (x KeyType) Enum() *KeyType { 54 p := new(KeyType) 55 *p = x 56 return p 57 } 58 59 func (x KeyType) String() string { 60 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 61 } 62 63 func (KeyType) Descriptor() protoreflect.EnumDescriptor { 64 return file_proto_ecdh_aead_proto_enumTypes[0].Descriptor() 65 } 66 67 func (KeyType) Type() protoreflect.EnumType { 68 return &file_proto_ecdh_aead_proto_enumTypes[0] 69 } 70 71 func (x KeyType) Number() protoreflect.EnumNumber { 72 return protoreflect.EnumNumber(x) 73 } 74 75 // Deprecated: Use KeyType.Descriptor instead. 76 func (KeyType) EnumDescriptor() ([]byte, []int) { 77 return file_proto_ecdh_aead_proto_rawDescGZIP(), []int{0} 78 } 79 80 type EcdhKwParams struct { 81 state protoimpl.MessageState 82 sizeCache protoimpl.SizeCache 83 unknownFields protoimpl.UnknownFields 84 85 CurveType common_go_proto.EllipticCurveType `protobuf:"varint,1,opt,name=curve_type,json=curveType,proto3,enum=google.crypto.tink.EllipticCurveType" json:"curve_type,omitempty"` 86 KeyType KeyType `protobuf:"varint,2,opt,name=key_type,json=keyType,proto3,enum=google.crypto.tink.KeyType" json:"key_type,omitempty"` 87 } 88 89 func (x *EcdhKwParams) Reset() { 90 *x = EcdhKwParams{} 91 if protoimpl.UnsafeEnabled { 92 mi := &file_proto_ecdh_aead_proto_msgTypes[0] 93 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 94 ms.StoreMessageInfo(mi) 95 } 96 } 97 98 func (x *EcdhKwParams) String() string { 99 return protoimpl.X.MessageStringOf(x) 100 } 101 102 func (*EcdhKwParams) ProtoMessage() {} 103 104 func (x *EcdhKwParams) ProtoReflect() protoreflect.Message { 105 mi := &file_proto_ecdh_aead_proto_msgTypes[0] 106 if protoimpl.UnsafeEnabled && x != nil { 107 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 108 if ms.LoadMessageInfo() == nil { 109 ms.StoreMessageInfo(mi) 110 } 111 return ms 112 } 113 return mi.MessageOf(x) 114 } 115 116 // Deprecated: Use EcdhKwParams.ProtoReflect.Descriptor instead. 117 func (*EcdhKwParams) Descriptor() ([]byte, []int) { 118 return file_proto_ecdh_aead_proto_rawDescGZIP(), []int{0} 119 } 120 121 func (x *EcdhKwParams) GetCurveType() common_go_proto.EllipticCurveType { 122 if x != nil { 123 return x.CurveType 124 } 125 return common_go_proto.EllipticCurveType_UNKNOWN_CURVE 126 } 127 128 func (x *EcdhKwParams) GetKeyType() KeyType { 129 if x != nil { 130 return x.KeyType 131 } 132 return KeyType_UNKNOWN_KEY_TYPE 133 } 134 135 type EcdhAeadEncParams struct { 136 state protoimpl.MessageState 137 sizeCache protoimpl.SizeCache 138 unknownFields protoimpl.UnknownFields 139 140 AeadEnc *tink_go_proto.KeyTemplate `protobuf:"bytes,1,opt,name=aead_enc,json=aeadEnc,proto3" json:"aead_enc,omitempty"` 141 CEK []byte `protobuf:"bytes,2,opt,name=CEK,proto3" json:"CEK,omitempty"` 142 } 143 144 func (x *EcdhAeadEncParams) Reset() { 145 *x = EcdhAeadEncParams{} 146 if protoimpl.UnsafeEnabled { 147 mi := &file_proto_ecdh_aead_proto_msgTypes[1] 148 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 149 ms.StoreMessageInfo(mi) 150 } 151 } 152 153 func (x *EcdhAeadEncParams) String() string { 154 return protoimpl.X.MessageStringOf(x) 155 } 156 157 func (*EcdhAeadEncParams) ProtoMessage() {} 158 159 func (x *EcdhAeadEncParams) ProtoReflect() protoreflect.Message { 160 mi := &file_proto_ecdh_aead_proto_msgTypes[1] 161 if protoimpl.UnsafeEnabled && x != nil { 162 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 163 if ms.LoadMessageInfo() == nil { 164 ms.StoreMessageInfo(mi) 165 } 166 return ms 167 } 168 return mi.MessageOf(x) 169 } 170 171 // Deprecated: Use EcdhAeadEncParams.ProtoReflect.Descriptor instead. 172 func (*EcdhAeadEncParams) Descriptor() ([]byte, []int) { 173 return file_proto_ecdh_aead_proto_rawDescGZIP(), []int{1} 174 } 175 176 func (x *EcdhAeadEncParams) GetAeadEnc() *tink_go_proto.KeyTemplate { 177 if x != nil { 178 return x.AeadEnc 179 } 180 return nil 181 } 182 183 func (x *EcdhAeadEncParams) GetCEK() []byte { 184 if x != nil { 185 return x.CEK 186 } 187 return nil 188 } 189 190 type EcdhAeadParams struct { 191 state protoimpl.MessageState 192 sizeCache protoimpl.SizeCache 193 unknownFields protoimpl.UnknownFields 194 195 KwParams *EcdhKwParams `protobuf:"bytes,1,opt,name=kw_params,json=kwParams,proto3" json:"kw_params,omitempty"` 196 EncParams *EcdhAeadEncParams `protobuf:"bytes,2,opt,name=enc_params,json=encParams,proto3" json:"enc_params,omitempty"` 197 EcPointFormat common_go_proto.EcPointFormat `protobuf:"varint,3,opt,name=ec_point_format,json=ecPointFormat,proto3,enum=google.crypto.tink.EcPointFormat" json:"ec_point_format,omitempty"` 198 } 199 200 func (x *EcdhAeadParams) Reset() { 201 *x = EcdhAeadParams{} 202 if protoimpl.UnsafeEnabled { 203 mi := &file_proto_ecdh_aead_proto_msgTypes[2] 204 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 205 ms.StoreMessageInfo(mi) 206 } 207 } 208 209 func (x *EcdhAeadParams) String() string { 210 return protoimpl.X.MessageStringOf(x) 211 } 212 213 func (*EcdhAeadParams) ProtoMessage() {} 214 215 func (x *EcdhAeadParams) ProtoReflect() protoreflect.Message { 216 mi := &file_proto_ecdh_aead_proto_msgTypes[2] 217 if protoimpl.UnsafeEnabled && x != nil { 218 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 219 if ms.LoadMessageInfo() == nil { 220 ms.StoreMessageInfo(mi) 221 } 222 return ms 223 } 224 return mi.MessageOf(x) 225 } 226 227 // Deprecated: Use EcdhAeadParams.ProtoReflect.Descriptor instead. 228 func (*EcdhAeadParams) Descriptor() ([]byte, []int) { 229 return file_proto_ecdh_aead_proto_rawDescGZIP(), []int{2} 230 } 231 232 func (x *EcdhAeadParams) GetKwParams() *EcdhKwParams { 233 if x != nil { 234 return x.KwParams 235 } 236 return nil 237 } 238 239 func (x *EcdhAeadParams) GetEncParams() *EcdhAeadEncParams { 240 if x != nil { 241 return x.EncParams 242 } 243 return nil 244 } 245 246 func (x *EcdhAeadParams) GetEcPointFormat() common_go_proto.EcPointFormat { 247 if x != nil { 248 return x.EcPointFormat 249 } 250 return common_go_proto.EcPointFormat_UNKNOWN_FORMAT 251 } 252 253 type EcdhAeadPublicKey struct { 254 state protoimpl.MessageState 255 sizeCache protoimpl.SizeCache 256 unknownFields protoimpl.UnknownFields 257 258 Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` 259 Params *EcdhAeadParams `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` 260 KID string `protobuf:"bytes,3,opt,name=KID,proto3" json:"KID,omitempty"` 261 X []byte `protobuf:"bytes,4,opt,name=x,proto3" json:"x,omitempty"` 262 Y []byte `protobuf:"bytes,5,opt,name=y,proto3" json:"y,omitempty"` 263 } 264 265 func (x *EcdhAeadPublicKey) Reset() { 266 *x = EcdhAeadPublicKey{} 267 if protoimpl.UnsafeEnabled { 268 mi := &file_proto_ecdh_aead_proto_msgTypes[3] 269 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 270 ms.StoreMessageInfo(mi) 271 } 272 } 273 274 func (x *EcdhAeadPublicKey) String() string { 275 return protoimpl.X.MessageStringOf(x) 276 } 277 278 func (*EcdhAeadPublicKey) ProtoMessage() {} 279 280 func (x *EcdhAeadPublicKey) ProtoReflect() protoreflect.Message { 281 mi := &file_proto_ecdh_aead_proto_msgTypes[3] 282 if protoimpl.UnsafeEnabled && x != nil { 283 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 284 if ms.LoadMessageInfo() == nil { 285 ms.StoreMessageInfo(mi) 286 } 287 return ms 288 } 289 return mi.MessageOf(x) 290 } 291 292 // Deprecated: Use EcdhAeadPublicKey.ProtoReflect.Descriptor instead. 293 func (*EcdhAeadPublicKey) Descriptor() ([]byte, []int) { 294 return file_proto_ecdh_aead_proto_rawDescGZIP(), []int{3} 295 } 296 297 func (x *EcdhAeadPublicKey) GetVersion() uint32 { 298 if x != nil { 299 return x.Version 300 } 301 return 0 302 } 303 304 func (x *EcdhAeadPublicKey) GetParams() *EcdhAeadParams { 305 if x != nil { 306 return x.Params 307 } 308 return nil 309 } 310 311 func (x *EcdhAeadPublicKey) GetKID() string { 312 if x != nil { 313 return x.KID 314 } 315 return "" 316 } 317 318 func (x *EcdhAeadPublicKey) GetX() []byte { 319 if x != nil { 320 return x.X 321 } 322 return nil 323 } 324 325 func (x *EcdhAeadPublicKey) GetY() []byte { 326 if x != nil { 327 return x.Y 328 } 329 return nil 330 } 331 332 type EcdhAeadPrivateKey struct { 333 state protoimpl.MessageState 334 sizeCache protoimpl.SizeCache 335 unknownFields protoimpl.UnknownFields 336 337 Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` 338 PublicKey *EcdhAeadPublicKey `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` 339 KeyValue []byte `protobuf:"bytes,3,opt,name=key_value,json=keyValue,proto3" json:"key_value,omitempty"` 340 } 341 342 func (x *EcdhAeadPrivateKey) Reset() { 343 *x = EcdhAeadPrivateKey{} 344 if protoimpl.UnsafeEnabled { 345 mi := &file_proto_ecdh_aead_proto_msgTypes[4] 346 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 347 ms.StoreMessageInfo(mi) 348 } 349 } 350 351 func (x *EcdhAeadPrivateKey) String() string { 352 return protoimpl.X.MessageStringOf(x) 353 } 354 355 func (*EcdhAeadPrivateKey) ProtoMessage() {} 356 357 func (x *EcdhAeadPrivateKey) ProtoReflect() protoreflect.Message { 358 mi := &file_proto_ecdh_aead_proto_msgTypes[4] 359 if protoimpl.UnsafeEnabled && x != nil { 360 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 361 if ms.LoadMessageInfo() == nil { 362 ms.StoreMessageInfo(mi) 363 } 364 return ms 365 } 366 return mi.MessageOf(x) 367 } 368 369 // Deprecated: Use EcdhAeadPrivateKey.ProtoReflect.Descriptor instead. 370 func (*EcdhAeadPrivateKey) Descriptor() ([]byte, []int) { 371 return file_proto_ecdh_aead_proto_rawDescGZIP(), []int{4} 372 } 373 374 func (x *EcdhAeadPrivateKey) GetVersion() uint32 { 375 if x != nil { 376 return x.Version 377 } 378 return 0 379 } 380 381 func (x *EcdhAeadPrivateKey) GetPublicKey() *EcdhAeadPublicKey { 382 if x != nil { 383 return x.PublicKey 384 } 385 return nil 386 } 387 388 func (x *EcdhAeadPrivateKey) GetKeyValue() []byte { 389 if x != nil { 390 return x.KeyValue 391 } 392 return nil 393 } 394 395 type EcdhAeadKeyFormat struct { 396 state protoimpl.MessageState 397 sizeCache protoimpl.SizeCache 398 unknownFields protoimpl.UnknownFields 399 400 Params *EcdhAeadParams `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` 401 } 402 403 func (x *EcdhAeadKeyFormat) Reset() { 404 *x = EcdhAeadKeyFormat{} 405 if protoimpl.UnsafeEnabled { 406 mi := &file_proto_ecdh_aead_proto_msgTypes[5] 407 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 408 ms.StoreMessageInfo(mi) 409 } 410 } 411 412 func (x *EcdhAeadKeyFormat) String() string { 413 return protoimpl.X.MessageStringOf(x) 414 } 415 416 func (*EcdhAeadKeyFormat) ProtoMessage() {} 417 418 func (x *EcdhAeadKeyFormat) ProtoReflect() protoreflect.Message { 419 mi := &file_proto_ecdh_aead_proto_msgTypes[5] 420 if protoimpl.UnsafeEnabled && x != nil { 421 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 422 if ms.LoadMessageInfo() == nil { 423 ms.StoreMessageInfo(mi) 424 } 425 return ms 426 } 427 return mi.MessageOf(x) 428 } 429 430 // Deprecated: Use EcdhAeadKeyFormat.ProtoReflect.Descriptor instead. 431 func (*EcdhAeadKeyFormat) Descriptor() ([]byte, []int) { 432 return file_proto_ecdh_aead_proto_rawDescGZIP(), []int{5} 433 } 434 435 func (x *EcdhAeadKeyFormat) GetParams() *EcdhAeadParams { 436 if x != nil { 437 return x.Params 438 } 439 return nil 440 } 441 442 var File_proto_ecdh_aead_proto protoreflect.FileDescriptor 443 444 var file_proto_ecdh_aead_proto_rawDesc = []byte{ 445 0x0a, 0x15, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x63, 0x64, 0x68, 0x5f, 0x61, 0x65, 0x61, 446 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 447 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x1a, 0x12, 0x70, 0x72, 0x6f, 448 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 449 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 450 0x6f, 0x22, 0x8c, 0x01, 0x0a, 0x0c, 0x45, 0x63, 0x64, 0x68, 0x4b, 0x77, 0x50, 0x61, 0x72, 0x61, 451 0x6d, 0x73, 0x12, 0x44, 0x0a, 0x0a, 0x63, 0x75, 0x72, 0x76, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 452 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 453 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x45, 0x6c, 0x6c, 0x69, 454 0x70, 0x74, 0x69, 0x63, 0x43, 0x75, 0x72, 0x76, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x63, 455 0x75, 0x72, 0x76, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x36, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 456 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 457 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 458 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 459 0x22, 0x61, 0x0a, 0x11, 0x45, 0x63, 0x64, 0x68, 0x41, 0x65, 0x61, 0x64, 0x45, 0x6e, 0x63, 0x50, 460 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x3a, 0x0a, 0x08, 0x61, 0x65, 0x61, 0x64, 0x5f, 0x65, 0x6e, 461 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 462 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x4b, 0x65, 0x79, 463 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x07, 0x61, 0x65, 0x61, 0x64, 0x45, 0x6e, 464 0x63, 0x12, 0x10, 0x0a, 0x03, 0x43, 0x45, 0x4b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 465 0x43, 0x45, 0x4b, 0x22, 0xe0, 0x01, 0x0a, 0x0e, 0x45, 0x63, 0x64, 0x68, 0x41, 0x65, 0x61, 0x64, 466 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x3d, 0x0a, 0x09, 0x6b, 0x77, 0x5f, 0x70, 0x61, 0x72, 467 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 468 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x45, 469 0x63, 0x64, 0x68, 0x4b, 0x77, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x08, 0x6b, 0x77, 0x50, 470 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x44, 0x0a, 0x0a, 0x65, 0x6e, 0x63, 0x5f, 0x70, 0x61, 0x72, 471 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 472 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x45, 473 0x63, 0x64, 0x68, 0x41, 0x65, 0x61, 0x64, 0x45, 0x6e, 0x63, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 474 0x52, 0x09, 0x65, 0x6e, 0x63, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x49, 0x0a, 0x0f, 0x65, 475 0x63, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x03, 476 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 477 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x45, 0x63, 0x50, 0x6f, 0x69, 0x6e, 478 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x0d, 0x65, 0x63, 0x50, 0x6f, 0x69, 0x6e, 0x74, 479 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x97, 0x01, 0x0a, 0x11, 0x45, 0x63, 0x64, 0x68, 0x41, 480 0x65, 0x61, 0x64, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 481 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 482 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 483 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 484 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x45, 0x63, 0x64, 0x68, 485 0x41, 0x65, 0x61, 0x64, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 486 0x6d, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x4b, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 487 0x03, 0x4b, 0x49, 0x44, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 488 0x01, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x01, 0x79, 489 0x22, 0x91, 0x01, 0x0a, 0x12, 0x45, 0x63, 0x64, 0x68, 0x41, 0x65, 0x61, 0x64, 0x50, 0x72, 0x69, 490 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 491 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 492 0x6e, 0x12, 0x44, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 493 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 494 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x45, 0x63, 0x64, 0x68, 0x41, 495 0x65, 0x61, 0x64, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x52, 0x09, 0x70, 0x75, 496 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, 0x76, 497 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x56, 498 0x61, 0x6c, 0x75, 0x65, 0x22, 0x4f, 0x0a, 0x11, 0x45, 0x63, 0x64, 0x68, 0x41, 0x65, 0x61, 0x64, 499 0x4b, 0x65, 0x79, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x3a, 0x0a, 0x06, 0x70, 0x61, 0x72, 500 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 501 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x45, 502 0x63, 0x64, 0x68, 0x41, 0x65, 0x61, 0x64, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x70, 503 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2a, 0x30, 0x0a, 0x07, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 504 0x12, 0x14, 0x0a, 0x10, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 505 0x54, 0x59, 0x50, 0x45, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x45, 0x43, 0x10, 0x01, 0x12, 0x07, 506 0x0a, 0x03, 0x4f, 0x4b, 0x50, 0x10, 0x02, 0x42, 0x8d, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 507 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 508 0x6e, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x62, 0x67, 0x69, 0x74, 0x68, 509 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x6c, 0x65, 0x64, 0x67, 510 0x65, 0x72, 0x2f, 0x61, 0x72, 0x69, 0x65, 0x73, 0x2d, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 511 0x72, 0x6b, 0x2d, 0x67, 0x6f, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 512 0x2f, 0x74, 0x69, 0x6e, 0x6b, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2f, 0x70, 0x72, 0x69, 0x6d, 513 0x69, 0x74, 0x69, 0x76, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x63, 0x64, 0x68, 514 0x5f, 0x61, 0x65, 0x61, 0x64, 0x5f, 0x67, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0xa2, 0x02, 515 0x06, 0x54, 0x49, 0x4e, 0x4b, 0x50, 0x42, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 516 } 517 518 var ( 519 file_proto_ecdh_aead_proto_rawDescOnce sync.Once 520 file_proto_ecdh_aead_proto_rawDescData = file_proto_ecdh_aead_proto_rawDesc 521 ) 522 523 func file_proto_ecdh_aead_proto_rawDescGZIP() []byte { 524 file_proto_ecdh_aead_proto_rawDescOnce.Do(func() { 525 file_proto_ecdh_aead_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_ecdh_aead_proto_rawDescData) 526 }) 527 return file_proto_ecdh_aead_proto_rawDescData 528 } 529 530 var file_proto_ecdh_aead_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 531 var file_proto_ecdh_aead_proto_msgTypes = make([]protoimpl.MessageInfo, 6) 532 var file_proto_ecdh_aead_proto_goTypes = []interface{}{ 533 (KeyType)(0), // 0: google.crypto.tink.KeyType 534 (*EcdhKwParams)(nil), // 1: google.crypto.tink.EcdhKwParams 535 (*EcdhAeadEncParams)(nil), // 2: google.crypto.tink.EcdhAeadEncParams 536 (*EcdhAeadParams)(nil), // 3: google.crypto.tink.EcdhAeadParams 537 (*EcdhAeadPublicKey)(nil), // 4: google.crypto.tink.EcdhAeadPublicKey 538 (*EcdhAeadPrivateKey)(nil), // 5: google.crypto.tink.EcdhAeadPrivateKey 539 (*EcdhAeadKeyFormat)(nil), // 6: google.crypto.tink.EcdhAeadKeyFormat 540 (common_go_proto.EllipticCurveType)(0), // 7: google.crypto.tink.EllipticCurveType 541 (*tink_go_proto.KeyTemplate)(nil), // 8: google.crypto.tink.KeyTemplate 542 (common_go_proto.EcPointFormat)(0), // 9: google.crypto.tink.EcPointFormat 543 } 544 var file_proto_ecdh_aead_proto_depIdxs = []int32{ 545 7, // 0: google.crypto.tink.EcdhKwParams.curve_type:type_name -> google.crypto.tink.EllipticCurveType 546 0, // 1: google.crypto.tink.EcdhKwParams.key_type:type_name -> google.crypto.tink.KeyType 547 8, // 2: google.crypto.tink.EcdhAeadEncParams.aead_enc:type_name -> google.crypto.tink.KeyTemplate 548 1, // 3: google.crypto.tink.EcdhAeadParams.kw_params:type_name -> google.crypto.tink.EcdhKwParams 549 2, // 4: google.crypto.tink.EcdhAeadParams.enc_params:type_name -> google.crypto.tink.EcdhAeadEncParams 550 9, // 5: google.crypto.tink.EcdhAeadParams.ec_point_format:type_name -> google.crypto.tink.EcPointFormat 551 3, // 6: google.crypto.tink.EcdhAeadPublicKey.params:type_name -> google.crypto.tink.EcdhAeadParams 552 4, // 7: google.crypto.tink.EcdhAeadPrivateKey.public_key:type_name -> google.crypto.tink.EcdhAeadPublicKey 553 3, // 8: google.crypto.tink.EcdhAeadKeyFormat.params:type_name -> google.crypto.tink.EcdhAeadParams 554 9, // [9:9] is the sub-list for method output_type 555 9, // [9:9] is the sub-list for method input_type 556 9, // [9:9] is the sub-list for extension type_name 557 9, // [9:9] is the sub-list for extension extendee 558 0, // [0:9] is the sub-list for field type_name 559 } 560 561 func init() { file_proto_ecdh_aead_proto_init() } 562 func file_proto_ecdh_aead_proto_init() { 563 if File_proto_ecdh_aead_proto != nil { 564 return 565 } 566 if !protoimpl.UnsafeEnabled { 567 file_proto_ecdh_aead_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 568 switch v := v.(*EcdhKwParams); i { 569 case 0: 570 return &v.state 571 case 1: 572 return &v.sizeCache 573 case 2: 574 return &v.unknownFields 575 default: 576 return nil 577 } 578 } 579 file_proto_ecdh_aead_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 580 switch v := v.(*EcdhAeadEncParams); i { 581 case 0: 582 return &v.state 583 case 1: 584 return &v.sizeCache 585 case 2: 586 return &v.unknownFields 587 default: 588 return nil 589 } 590 } 591 file_proto_ecdh_aead_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 592 switch v := v.(*EcdhAeadParams); i { 593 case 0: 594 return &v.state 595 case 1: 596 return &v.sizeCache 597 case 2: 598 return &v.unknownFields 599 default: 600 return nil 601 } 602 } 603 file_proto_ecdh_aead_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 604 switch v := v.(*EcdhAeadPublicKey); i { 605 case 0: 606 return &v.state 607 case 1: 608 return &v.sizeCache 609 case 2: 610 return &v.unknownFields 611 default: 612 return nil 613 } 614 } 615 file_proto_ecdh_aead_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 616 switch v := v.(*EcdhAeadPrivateKey); i { 617 case 0: 618 return &v.state 619 case 1: 620 return &v.sizeCache 621 case 2: 622 return &v.unknownFields 623 default: 624 return nil 625 } 626 } 627 file_proto_ecdh_aead_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 628 switch v := v.(*EcdhAeadKeyFormat); i { 629 case 0: 630 return &v.state 631 case 1: 632 return &v.sizeCache 633 case 2: 634 return &v.unknownFields 635 default: 636 return nil 637 } 638 } 639 } 640 type x struct{} 641 out := protoimpl.TypeBuilder{ 642 File: protoimpl.DescBuilder{ 643 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 644 RawDescriptor: file_proto_ecdh_aead_proto_rawDesc, 645 NumEnums: 1, 646 NumMessages: 6, 647 NumExtensions: 0, 648 NumServices: 0, 649 }, 650 GoTypes: file_proto_ecdh_aead_proto_goTypes, 651 DependencyIndexes: file_proto_ecdh_aead_proto_depIdxs, 652 EnumInfos: file_proto_ecdh_aead_proto_enumTypes, 653 MessageInfos: file_proto_ecdh_aead_proto_msgTypes, 654 }.Build() 655 File_proto_ecdh_aead_proto = out.File 656 file_proto_ecdh_aead_proto_rawDesc = nil 657 file_proto_ecdh_aead_proto_goTypes = nil 658 file_proto_ecdh_aead_proto_depIdxs = nil 659 }