github.com/slackhq/nebula@v1.9.0/cert/cert.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.30.0 4 // protoc v3.21.5 5 // source: cert.proto 6 7 package cert 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 type Curve int32 24 25 const ( 26 Curve_CURVE25519 Curve = 0 27 Curve_P256 Curve = 1 28 ) 29 30 // Enum value maps for Curve. 31 var ( 32 Curve_name = map[int32]string{ 33 0: "CURVE25519", 34 1: "P256", 35 } 36 Curve_value = map[string]int32{ 37 "CURVE25519": 0, 38 "P256": 1, 39 } 40 ) 41 42 func (x Curve) Enum() *Curve { 43 p := new(Curve) 44 *p = x 45 return p 46 } 47 48 func (x Curve) String() string { 49 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 50 } 51 52 func (Curve) Descriptor() protoreflect.EnumDescriptor { 53 return file_cert_proto_enumTypes[0].Descriptor() 54 } 55 56 func (Curve) Type() protoreflect.EnumType { 57 return &file_cert_proto_enumTypes[0] 58 } 59 60 func (x Curve) Number() protoreflect.EnumNumber { 61 return protoreflect.EnumNumber(x) 62 } 63 64 // Deprecated: Use Curve.Descriptor instead. 65 func (Curve) EnumDescriptor() ([]byte, []int) { 66 return file_cert_proto_rawDescGZIP(), []int{0} 67 } 68 69 type RawNebulaCertificate struct { 70 state protoimpl.MessageState 71 sizeCache protoimpl.SizeCache 72 unknownFields protoimpl.UnknownFields 73 74 Details *RawNebulaCertificateDetails `protobuf:"bytes,1,opt,name=Details,proto3" json:"Details,omitempty"` 75 Signature []byte `protobuf:"bytes,2,opt,name=Signature,proto3" json:"Signature,omitempty"` 76 } 77 78 func (x *RawNebulaCertificate) Reset() { 79 *x = RawNebulaCertificate{} 80 if protoimpl.UnsafeEnabled { 81 mi := &file_cert_proto_msgTypes[0] 82 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 83 ms.StoreMessageInfo(mi) 84 } 85 } 86 87 func (x *RawNebulaCertificate) String() string { 88 return protoimpl.X.MessageStringOf(x) 89 } 90 91 func (*RawNebulaCertificate) ProtoMessage() {} 92 93 func (x *RawNebulaCertificate) ProtoReflect() protoreflect.Message { 94 mi := &file_cert_proto_msgTypes[0] 95 if protoimpl.UnsafeEnabled && x != nil { 96 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 97 if ms.LoadMessageInfo() == nil { 98 ms.StoreMessageInfo(mi) 99 } 100 return ms 101 } 102 return mi.MessageOf(x) 103 } 104 105 // Deprecated: Use RawNebulaCertificate.ProtoReflect.Descriptor instead. 106 func (*RawNebulaCertificate) Descriptor() ([]byte, []int) { 107 return file_cert_proto_rawDescGZIP(), []int{0} 108 } 109 110 func (x *RawNebulaCertificate) GetDetails() *RawNebulaCertificateDetails { 111 if x != nil { 112 return x.Details 113 } 114 return nil 115 } 116 117 func (x *RawNebulaCertificate) GetSignature() []byte { 118 if x != nil { 119 return x.Signature 120 } 121 return nil 122 } 123 124 type RawNebulaCertificateDetails struct { 125 state protoimpl.MessageState 126 sizeCache protoimpl.SizeCache 127 unknownFields protoimpl.UnknownFields 128 129 Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` 130 // Ips and Subnets are in big endian 32 bit pairs, 1st the ip, 2nd the mask 131 Ips []uint32 `protobuf:"varint,2,rep,packed,name=Ips,proto3" json:"Ips,omitempty"` 132 Subnets []uint32 `protobuf:"varint,3,rep,packed,name=Subnets,proto3" json:"Subnets,omitempty"` 133 Groups []string `protobuf:"bytes,4,rep,name=Groups,proto3" json:"Groups,omitempty"` 134 NotBefore int64 `protobuf:"varint,5,opt,name=NotBefore,proto3" json:"NotBefore,omitempty"` 135 NotAfter int64 `protobuf:"varint,6,opt,name=NotAfter,proto3" json:"NotAfter,omitempty"` 136 PublicKey []byte `protobuf:"bytes,7,opt,name=PublicKey,proto3" json:"PublicKey,omitempty"` 137 IsCA bool `protobuf:"varint,8,opt,name=IsCA,proto3" json:"IsCA,omitempty"` 138 // sha-256 of the issuer certificate, if this field is blank the cert is self-signed 139 Issuer []byte `protobuf:"bytes,9,opt,name=Issuer,proto3" json:"Issuer,omitempty"` 140 Curve Curve `protobuf:"varint,100,opt,name=curve,proto3,enum=cert.Curve" json:"curve,omitempty"` 141 } 142 143 func (x *RawNebulaCertificateDetails) Reset() { 144 *x = RawNebulaCertificateDetails{} 145 if protoimpl.UnsafeEnabled { 146 mi := &file_cert_proto_msgTypes[1] 147 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 148 ms.StoreMessageInfo(mi) 149 } 150 } 151 152 func (x *RawNebulaCertificateDetails) String() string { 153 return protoimpl.X.MessageStringOf(x) 154 } 155 156 func (*RawNebulaCertificateDetails) ProtoMessage() {} 157 158 func (x *RawNebulaCertificateDetails) ProtoReflect() protoreflect.Message { 159 mi := &file_cert_proto_msgTypes[1] 160 if protoimpl.UnsafeEnabled && x != nil { 161 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 162 if ms.LoadMessageInfo() == nil { 163 ms.StoreMessageInfo(mi) 164 } 165 return ms 166 } 167 return mi.MessageOf(x) 168 } 169 170 // Deprecated: Use RawNebulaCertificateDetails.ProtoReflect.Descriptor instead. 171 func (*RawNebulaCertificateDetails) Descriptor() ([]byte, []int) { 172 return file_cert_proto_rawDescGZIP(), []int{1} 173 } 174 175 func (x *RawNebulaCertificateDetails) GetName() string { 176 if x != nil { 177 return x.Name 178 } 179 return "" 180 } 181 182 func (x *RawNebulaCertificateDetails) GetIps() []uint32 { 183 if x != nil { 184 return x.Ips 185 } 186 return nil 187 } 188 189 func (x *RawNebulaCertificateDetails) GetSubnets() []uint32 { 190 if x != nil { 191 return x.Subnets 192 } 193 return nil 194 } 195 196 func (x *RawNebulaCertificateDetails) GetGroups() []string { 197 if x != nil { 198 return x.Groups 199 } 200 return nil 201 } 202 203 func (x *RawNebulaCertificateDetails) GetNotBefore() int64 { 204 if x != nil { 205 return x.NotBefore 206 } 207 return 0 208 } 209 210 func (x *RawNebulaCertificateDetails) GetNotAfter() int64 { 211 if x != nil { 212 return x.NotAfter 213 } 214 return 0 215 } 216 217 func (x *RawNebulaCertificateDetails) GetPublicKey() []byte { 218 if x != nil { 219 return x.PublicKey 220 } 221 return nil 222 } 223 224 func (x *RawNebulaCertificateDetails) GetIsCA() bool { 225 if x != nil { 226 return x.IsCA 227 } 228 return false 229 } 230 231 func (x *RawNebulaCertificateDetails) GetIssuer() []byte { 232 if x != nil { 233 return x.Issuer 234 } 235 return nil 236 } 237 238 func (x *RawNebulaCertificateDetails) GetCurve() Curve { 239 if x != nil { 240 return x.Curve 241 } 242 return Curve_CURVE25519 243 } 244 245 type RawNebulaEncryptedData struct { 246 state protoimpl.MessageState 247 sizeCache protoimpl.SizeCache 248 unknownFields protoimpl.UnknownFields 249 250 EncryptionMetadata *RawNebulaEncryptionMetadata `protobuf:"bytes,1,opt,name=EncryptionMetadata,proto3" json:"EncryptionMetadata,omitempty"` 251 Ciphertext []byte `protobuf:"bytes,2,opt,name=Ciphertext,proto3" json:"Ciphertext,omitempty"` 252 } 253 254 func (x *RawNebulaEncryptedData) Reset() { 255 *x = RawNebulaEncryptedData{} 256 if protoimpl.UnsafeEnabled { 257 mi := &file_cert_proto_msgTypes[2] 258 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 259 ms.StoreMessageInfo(mi) 260 } 261 } 262 263 func (x *RawNebulaEncryptedData) String() string { 264 return protoimpl.X.MessageStringOf(x) 265 } 266 267 func (*RawNebulaEncryptedData) ProtoMessage() {} 268 269 func (x *RawNebulaEncryptedData) ProtoReflect() protoreflect.Message { 270 mi := &file_cert_proto_msgTypes[2] 271 if protoimpl.UnsafeEnabled && x != nil { 272 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 273 if ms.LoadMessageInfo() == nil { 274 ms.StoreMessageInfo(mi) 275 } 276 return ms 277 } 278 return mi.MessageOf(x) 279 } 280 281 // Deprecated: Use RawNebulaEncryptedData.ProtoReflect.Descriptor instead. 282 func (*RawNebulaEncryptedData) Descriptor() ([]byte, []int) { 283 return file_cert_proto_rawDescGZIP(), []int{2} 284 } 285 286 func (x *RawNebulaEncryptedData) GetEncryptionMetadata() *RawNebulaEncryptionMetadata { 287 if x != nil { 288 return x.EncryptionMetadata 289 } 290 return nil 291 } 292 293 func (x *RawNebulaEncryptedData) GetCiphertext() []byte { 294 if x != nil { 295 return x.Ciphertext 296 } 297 return nil 298 } 299 300 type RawNebulaEncryptionMetadata struct { 301 state protoimpl.MessageState 302 sizeCache protoimpl.SizeCache 303 unknownFields protoimpl.UnknownFields 304 305 EncryptionAlgorithm string `protobuf:"bytes,1,opt,name=EncryptionAlgorithm,proto3" json:"EncryptionAlgorithm,omitempty"` 306 Argon2Parameters *RawNebulaArgon2Parameters `protobuf:"bytes,2,opt,name=Argon2Parameters,proto3" json:"Argon2Parameters,omitempty"` 307 } 308 309 func (x *RawNebulaEncryptionMetadata) Reset() { 310 *x = RawNebulaEncryptionMetadata{} 311 if protoimpl.UnsafeEnabled { 312 mi := &file_cert_proto_msgTypes[3] 313 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 314 ms.StoreMessageInfo(mi) 315 } 316 } 317 318 func (x *RawNebulaEncryptionMetadata) String() string { 319 return protoimpl.X.MessageStringOf(x) 320 } 321 322 func (*RawNebulaEncryptionMetadata) ProtoMessage() {} 323 324 func (x *RawNebulaEncryptionMetadata) ProtoReflect() protoreflect.Message { 325 mi := &file_cert_proto_msgTypes[3] 326 if protoimpl.UnsafeEnabled && x != nil { 327 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 328 if ms.LoadMessageInfo() == nil { 329 ms.StoreMessageInfo(mi) 330 } 331 return ms 332 } 333 return mi.MessageOf(x) 334 } 335 336 // Deprecated: Use RawNebulaEncryptionMetadata.ProtoReflect.Descriptor instead. 337 func (*RawNebulaEncryptionMetadata) Descriptor() ([]byte, []int) { 338 return file_cert_proto_rawDescGZIP(), []int{3} 339 } 340 341 func (x *RawNebulaEncryptionMetadata) GetEncryptionAlgorithm() string { 342 if x != nil { 343 return x.EncryptionAlgorithm 344 } 345 return "" 346 } 347 348 func (x *RawNebulaEncryptionMetadata) GetArgon2Parameters() *RawNebulaArgon2Parameters { 349 if x != nil { 350 return x.Argon2Parameters 351 } 352 return nil 353 } 354 355 type RawNebulaArgon2Parameters struct { 356 state protoimpl.MessageState 357 sizeCache protoimpl.SizeCache 358 unknownFields protoimpl.UnknownFields 359 360 Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // rune in Go 361 Memory uint32 `protobuf:"varint,2,opt,name=memory,proto3" json:"memory,omitempty"` 362 Parallelism uint32 `protobuf:"varint,4,opt,name=parallelism,proto3" json:"parallelism,omitempty"` // uint8 in Go 363 Iterations uint32 `protobuf:"varint,3,opt,name=iterations,proto3" json:"iterations,omitempty"` 364 Salt []byte `protobuf:"bytes,5,opt,name=salt,proto3" json:"salt,omitempty"` 365 } 366 367 func (x *RawNebulaArgon2Parameters) Reset() { 368 *x = RawNebulaArgon2Parameters{} 369 if protoimpl.UnsafeEnabled { 370 mi := &file_cert_proto_msgTypes[4] 371 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 372 ms.StoreMessageInfo(mi) 373 } 374 } 375 376 func (x *RawNebulaArgon2Parameters) String() string { 377 return protoimpl.X.MessageStringOf(x) 378 } 379 380 func (*RawNebulaArgon2Parameters) ProtoMessage() {} 381 382 func (x *RawNebulaArgon2Parameters) ProtoReflect() protoreflect.Message { 383 mi := &file_cert_proto_msgTypes[4] 384 if protoimpl.UnsafeEnabled && x != nil { 385 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 386 if ms.LoadMessageInfo() == nil { 387 ms.StoreMessageInfo(mi) 388 } 389 return ms 390 } 391 return mi.MessageOf(x) 392 } 393 394 // Deprecated: Use RawNebulaArgon2Parameters.ProtoReflect.Descriptor instead. 395 func (*RawNebulaArgon2Parameters) Descriptor() ([]byte, []int) { 396 return file_cert_proto_rawDescGZIP(), []int{4} 397 } 398 399 func (x *RawNebulaArgon2Parameters) GetVersion() int32 { 400 if x != nil { 401 return x.Version 402 } 403 return 0 404 } 405 406 func (x *RawNebulaArgon2Parameters) GetMemory() uint32 { 407 if x != nil { 408 return x.Memory 409 } 410 return 0 411 } 412 413 func (x *RawNebulaArgon2Parameters) GetParallelism() uint32 { 414 if x != nil { 415 return x.Parallelism 416 } 417 return 0 418 } 419 420 func (x *RawNebulaArgon2Parameters) GetIterations() uint32 { 421 if x != nil { 422 return x.Iterations 423 } 424 return 0 425 } 426 427 func (x *RawNebulaArgon2Parameters) GetSalt() []byte { 428 if x != nil { 429 return x.Salt 430 } 431 return nil 432 } 433 434 var File_cert_proto protoreflect.FileDescriptor 435 436 var file_cert_proto_rawDesc = []byte{ 437 0x0a, 0x0a, 0x63, 0x65, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x63, 0x65, 438 0x72, 0x74, 0x22, 0x71, 0x0a, 0x14, 0x52, 0x61, 0x77, 0x4e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x43, 439 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x07, 0x44, 0x65, 440 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x65, 441 0x72, 0x74, 0x2e, 0x52, 0x61, 0x77, 0x4e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x43, 0x65, 0x72, 0x74, 442 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x07, 443 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x53, 0x69, 0x67, 0x6e, 0x61, 444 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x53, 0x69, 0x67, 0x6e, 445 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x9c, 0x02, 0x0a, 0x1b, 0x52, 0x61, 0x77, 0x4e, 0x65, 0x62, 446 0x75, 0x6c, 0x61, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x44, 0x65, 447 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 448 0x01, 0x28, 0x09, 0x52, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x49, 0x70, 0x73, 449 0x18, 0x02, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x03, 0x49, 0x70, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x53, 450 0x75, 0x62, 0x6e, 0x65, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x07, 0x53, 0x75, 451 0x62, 0x6e, 0x65, 0x74, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 452 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x1c, 0x0a, 453 0x09, 0x4e, 0x6f, 0x74, 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 454 0x52, 0x09, 0x4e, 0x6f, 0x74, 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x4e, 455 0x6f, 0x74, 0x41, 0x66, 0x74, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x4e, 456 0x6f, 0x74, 0x41, 0x66, 0x74, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x50, 0x75, 0x62, 0x6c, 0x69, 457 0x63, 0x4b, 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x50, 0x75, 0x62, 0x6c, 458 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x49, 0x73, 0x43, 0x41, 0x18, 0x08, 0x20, 459 0x01, 0x28, 0x08, 0x52, 0x04, 0x49, 0x73, 0x43, 0x41, 0x12, 0x16, 0x0a, 0x06, 0x49, 0x73, 0x73, 460 0x75, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x49, 0x73, 0x73, 0x75, 0x65, 461 0x72, 0x12, 0x21, 0x0a, 0x05, 0x63, 0x75, 0x72, 0x76, 0x65, 0x18, 0x64, 0x20, 0x01, 0x28, 0x0e, 462 0x32, 0x0b, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x2e, 0x43, 0x75, 0x72, 0x76, 0x65, 0x52, 0x05, 0x63, 463 0x75, 0x72, 0x76, 0x65, 0x22, 0x8b, 0x01, 0x0a, 0x16, 0x52, 0x61, 0x77, 0x4e, 0x65, 0x62, 0x75, 464 0x6c, 0x61, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x12, 465 0x51, 0x0a, 0x12, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 466 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x65, 467 0x72, 0x74, 0x2e, 0x52, 0x61, 0x77, 0x4e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x45, 0x6e, 0x63, 0x72, 468 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x12, 469 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 470 0x74, 0x61, 0x12, 0x1e, 0x0a, 0x0a, 0x43, 0x69, 0x70, 0x68, 0x65, 0x72, 0x74, 0x65, 0x78, 0x74, 471 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x43, 0x69, 0x70, 0x68, 0x65, 0x72, 0x74, 0x65, 472 0x78, 0x74, 0x22, 0x9c, 0x01, 0x0a, 0x1b, 0x52, 0x61, 0x77, 0x4e, 0x65, 0x62, 0x75, 0x6c, 0x61, 473 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 474 0x74, 0x61, 0x12, 0x30, 0x0a, 0x13, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 475 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 476 0x13, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 477 0x69, 0x74, 0x68, 0x6d, 0x12, 0x4b, 0x0a, 0x10, 0x41, 0x72, 0x67, 0x6f, 0x6e, 0x32, 0x50, 0x61, 478 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 479 0x2e, 0x63, 0x65, 0x72, 0x74, 0x2e, 0x52, 0x61, 0x77, 0x4e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x41, 480 0x72, 0x67, 0x6f, 0x6e, 0x32, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 481 0x10, 0x41, 0x72, 0x67, 0x6f, 0x6e, 0x32, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 482 0x73, 0x22, 0xa3, 0x01, 0x0a, 0x19, 0x52, 0x61, 0x77, 0x4e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x41, 483 0x72, 0x67, 0x6f, 0x6e, 0x32, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 484 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 485 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 486 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 487 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x6c, 0x65, 0x6c, 0x69, 0x73, 0x6d, 488 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x6c, 0x65, 0x6c, 489 0x69, 0x73, 0x6d, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 490 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x69, 491 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x61, 0x6c, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 492 0x0c, 0x52, 0x04, 0x73, 0x61, 0x6c, 0x74, 0x2a, 0x21, 0x0a, 0x05, 0x43, 0x75, 0x72, 0x76, 0x65, 493 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x55, 0x52, 0x56, 0x45, 0x32, 0x35, 0x35, 0x31, 0x39, 0x10, 0x00, 494 0x12, 0x08, 0x0a, 0x04, 0x50, 0x32, 0x35, 0x36, 0x10, 0x01, 0x42, 0x20, 0x5a, 0x1e, 0x67, 0x69, 495 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6c, 0x61, 0x63, 0x6b, 0x68, 0x71, 496 0x2f, 0x6e, 0x65, 0x62, 0x75, 0x6c, 0x61, 0x2f, 0x63, 0x65, 0x72, 0x74, 0x62, 0x06, 0x70, 0x72, 497 0x6f, 0x74, 0x6f, 0x33, 498 } 499 500 var ( 501 file_cert_proto_rawDescOnce sync.Once 502 file_cert_proto_rawDescData = file_cert_proto_rawDesc 503 ) 504 505 func file_cert_proto_rawDescGZIP() []byte { 506 file_cert_proto_rawDescOnce.Do(func() { 507 file_cert_proto_rawDescData = protoimpl.X.CompressGZIP(file_cert_proto_rawDescData) 508 }) 509 return file_cert_proto_rawDescData 510 } 511 512 var file_cert_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 513 var file_cert_proto_msgTypes = make([]protoimpl.MessageInfo, 5) 514 var file_cert_proto_goTypes = []interface{}{ 515 (Curve)(0), // 0: cert.Curve 516 (*RawNebulaCertificate)(nil), // 1: cert.RawNebulaCertificate 517 (*RawNebulaCertificateDetails)(nil), // 2: cert.RawNebulaCertificateDetails 518 (*RawNebulaEncryptedData)(nil), // 3: cert.RawNebulaEncryptedData 519 (*RawNebulaEncryptionMetadata)(nil), // 4: cert.RawNebulaEncryptionMetadata 520 (*RawNebulaArgon2Parameters)(nil), // 5: cert.RawNebulaArgon2Parameters 521 } 522 var file_cert_proto_depIdxs = []int32{ 523 2, // 0: cert.RawNebulaCertificate.Details:type_name -> cert.RawNebulaCertificateDetails 524 0, // 1: cert.RawNebulaCertificateDetails.curve:type_name -> cert.Curve 525 4, // 2: cert.RawNebulaEncryptedData.EncryptionMetadata:type_name -> cert.RawNebulaEncryptionMetadata 526 5, // 3: cert.RawNebulaEncryptionMetadata.Argon2Parameters:type_name -> cert.RawNebulaArgon2Parameters 527 4, // [4:4] is the sub-list for method output_type 528 4, // [4:4] is the sub-list for method input_type 529 4, // [4:4] is the sub-list for extension type_name 530 4, // [4:4] is the sub-list for extension extendee 531 0, // [0:4] is the sub-list for field type_name 532 } 533 534 func init() { file_cert_proto_init() } 535 func file_cert_proto_init() { 536 if File_cert_proto != nil { 537 return 538 } 539 if !protoimpl.UnsafeEnabled { 540 file_cert_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 541 switch v := v.(*RawNebulaCertificate); i { 542 case 0: 543 return &v.state 544 case 1: 545 return &v.sizeCache 546 case 2: 547 return &v.unknownFields 548 default: 549 return nil 550 } 551 } 552 file_cert_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 553 switch v := v.(*RawNebulaCertificateDetails); i { 554 case 0: 555 return &v.state 556 case 1: 557 return &v.sizeCache 558 case 2: 559 return &v.unknownFields 560 default: 561 return nil 562 } 563 } 564 file_cert_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 565 switch v := v.(*RawNebulaEncryptedData); i { 566 case 0: 567 return &v.state 568 case 1: 569 return &v.sizeCache 570 case 2: 571 return &v.unknownFields 572 default: 573 return nil 574 } 575 } 576 file_cert_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 577 switch v := v.(*RawNebulaEncryptionMetadata); i { 578 case 0: 579 return &v.state 580 case 1: 581 return &v.sizeCache 582 case 2: 583 return &v.unknownFields 584 default: 585 return nil 586 } 587 } 588 file_cert_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 589 switch v := v.(*RawNebulaArgon2Parameters); i { 590 case 0: 591 return &v.state 592 case 1: 593 return &v.sizeCache 594 case 2: 595 return &v.unknownFields 596 default: 597 return nil 598 } 599 } 600 } 601 type x struct{} 602 out := protoimpl.TypeBuilder{ 603 File: protoimpl.DescBuilder{ 604 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 605 RawDescriptor: file_cert_proto_rawDesc, 606 NumEnums: 1, 607 NumMessages: 5, 608 NumExtensions: 0, 609 NumServices: 0, 610 }, 611 GoTypes: file_cert_proto_goTypes, 612 DependencyIndexes: file_cert_proto_depIdxs, 613 EnumInfos: file_cert_proto_enumTypes, 614 MessageInfos: file_cert_proto_msgTypes, 615 }.Build() 616 File_cert_proto = out.File 617 file_cert_proto_rawDesc = nil 618 file_cert_proto_goTypes = nil 619 file_cert_proto_depIdxs = nil 620 }