cert_v1.pb.go 21 KB

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