Debian Codegraph @

keymanager/km_common/proto/payload.pb.go

raw
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // versions:
3 // protoc-gen-go v1.36.11
4 // protoc v3.21.12
5 // source: keymanager/km_common/proto/payload.proto
6
7 package keymanager
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 unsafe "unsafe"
15 )
16
17 const (
18 // Verify that this generated code is sufficiently up-to-date.
19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
20 // Verify that runtime/protoimpl is sufficiently up-to-date.
21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
22 )
23
24 // The results of an Encaps operation.
25 type KemCiphertext struct {
26 state protoimpl.MessageState `protogen:"open.v1"`
27 Algorithm KemAlgorithm `protobuf:"varint,1,opt,name=algorithm,proto3,enum=keymanager.KemAlgorithm" json:"algorithm,omitempty"`
28 Ciphertext []byte `protobuf:"bytes,2,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"` // `Nenc` bytes long.
29 unknownFields protoimpl.UnknownFields
30 sizeCache protoimpl.SizeCache
31 }
32
33 func (x *KemCiphertext) Reset() {
34 *x = KemCiphertext{}
35 mi := &file_keymanager_km_common_proto_payload_proto_msgTypes[0]
36 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
37 ms.StoreMessageInfo(mi)
38 }
39
40 func (x *KemCiphertext) String() string {
41 return protoimpl.X.MessageStringOf(x)
42 }
43
44 func (*KemCiphertext) ProtoMessage() {}
45
46 func (x *KemCiphertext) ProtoReflect() protoreflect.Message {
47 mi := &file_keymanager_km_common_proto_payload_proto_msgTypes[0]
48 if x != nil {
49 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
50 if ms.LoadMessageInfo() == nil {
51 ms.StoreMessageInfo(mi)
52 }
53 return ms
54 }
55 return mi.MessageOf(x)
56 }
57
58 // Deprecated: Use KemCiphertext.ProtoReflect.Descriptor instead.
59 func (*KemCiphertext) Descriptor() ([]byte, []int) {
60 return file_keymanager_km_common_proto_payload_proto_rawDescGZIP(), []int{0}
61 }
62
63 func (x *KemCiphertext) GetAlgorithm() KemAlgorithm {
64 if x != nil {
65 return x.Algorithm
66 }
67 return KemAlgorithm_KEM_ALGORITHM_UNSPECIFIED
68 }
69
70 func (x *KemCiphertext) GetCiphertext() []byte {
71 if x != nil {
72 return x.Ciphertext
73 }
74 return nil
75 }
76
77 // The results of a Decaps operation.
78 type KemSharedSecret struct {
79 state protoimpl.MessageState `protogen:"open.v1"`
80 Algorithm KemAlgorithm `protobuf:"varint,1,opt,name=algorithm,proto3,enum=keymanager.KemAlgorithm" json:"algorithm,omitempty"`
81 Secret []byte `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"` // `Nsecret` bytes long.
82 unknownFields protoimpl.UnknownFields
83 sizeCache protoimpl.SizeCache
84 }
85
86 func (x *KemSharedSecret) Reset() {
87 *x = KemSharedSecret{}
88 mi := &file_keymanager_km_common_proto_payload_proto_msgTypes[1]
89 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
90 ms.StoreMessageInfo(mi)
91 }
92
93 func (x *KemSharedSecret) String() string {
94 return protoimpl.X.MessageStringOf(x)
95 }
96
97 func (*KemSharedSecret) ProtoMessage() {}
98
99 func (x *KemSharedSecret) ProtoReflect() protoreflect.Message {
100 mi := &file_keymanager_km_common_proto_payload_proto_msgTypes[1]
101 if x != nil {
102 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
103 if ms.LoadMessageInfo() == nil {
104 ms.StoreMessageInfo(mi)
105 }
106 return ms
107 }
108 return mi.MessageOf(x)
109 }
110
111 // Deprecated: Use KemSharedSecret.ProtoReflect.Descriptor instead.
112 func (*KemSharedSecret) Descriptor() ([]byte, []int) {
113 return file_keymanager_km_common_proto_payload_proto_rawDescGZIP(), []int{1}
114 }
115
116 func (x *KemSharedSecret) GetAlgorithm() KemAlgorithm {
117 if x != nil {
118 return x.Algorithm
119 }
120 return KemAlgorithm_KEM_ALGORITHM_UNSPECIFIED
121 }
122
123 func (x *KemSharedSecret) GetSecret() []byte {
124 if x != nil {
125 return x.Secret
126 }
127 return nil
128 }
129
130 type HpkePayload struct {
131 state protoimpl.MessageState `protogen:"open.v1"`
132 Algorithm *HpkeAlgorithm `protobuf:"bytes,1,opt,name=algorithm,proto3" json:"algorithm,omitempty"`
133 KemCiphertext []byte `protobuf:"bytes,2,opt,name=kem_ciphertext,json=kemCiphertext,proto3" json:"kem_ciphertext,omitempty"` // `Nenc` bytes long.
134 PayloadCiphertext []byte `protobuf:"bytes,3,opt,name=payload_ciphertext,json=payloadCiphertext,proto3" json:"payload_ciphertext,omitempty"` // Encrypted data.
135 AuthenticationTag []byte `protobuf:"bytes,4,opt,name=authentication_tag,json=authenticationTag,proto3" json:"authentication_tag,omitempty"` // `Nt` bytes long.
136 unknownFields protoimpl.UnknownFields
137 sizeCache protoimpl.SizeCache
138 }
139
140 func (x *HpkePayload) Reset() {
141 *x = HpkePayload{}
142 mi := &file_keymanager_km_common_proto_payload_proto_msgTypes[2]
143 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
144 ms.StoreMessageInfo(mi)
145 }
146
147 func (x *HpkePayload) String() string {
148 return protoimpl.X.MessageStringOf(x)
149 }
150
151 func (*HpkePayload) ProtoMessage() {}
152
153 func (x *HpkePayload) ProtoReflect() protoreflect.Message {
154 mi := &file_keymanager_km_common_proto_payload_proto_msgTypes[2]
155 if x != nil {
156 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
157 if ms.LoadMessageInfo() == nil {
158 ms.StoreMessageInfo(mi)
159 }
160 return ms
161 }
162 return mi.MessageOf(x)
163 }
164
165 // Deprecated: Use HpkePayload.ProtoReflect.Descriptor instead.
166 func (*HpkePayload) Descriptor() ([]byte, []int) {
167 return file_keymanager_km_common_proto_payload_proto_rawDescGZIP(), []int{2}
168 }
169
170 func (x *HpkePayload) GetAlgorithm() *HpkeAlgorithm {
171 if x != nil {
172 return x.Algorithm
173 }
174 return nil
175 }
176
177 func (x *HpkePayload) GetKemCiphertext() []byte {
178 if x != nil {
179 return x.KemCiphertext
180 }
181 return nil
182 }
183
184 func (x *HpkePayload) GetPayloadCiphertext() []byte {
185 if x != nil {
186 return x.PayloadCiphertext
187 }
188 return nil
189 }
190
191 func (x *HpkePayload) GetAuthenticationTag() []byte {
192 if x != nil {
193 return x.AuthenticationTag
194 }
195 return nil
196 }
197
198 var File_keymanager_km_common_proto_payload_proto protoreflect.FileDescriptor
199
200 const file_keymanager_km_common_proto_payload_proto_rawDesc = "" +
201 "\n" +
202 "(keymanager/km_common/proto/payload.proto\x12\n" +
203 "keymanager\x1a+keymanager/km_common/proto/algorithms.proto\"g\n" +
204 "\rKemCiphertext\x126\n" +
205 "\talgorithm\x18\x01 \x01(\x0e2\x18.keymanager.KemAlgorithmR\talgorithm\x12\x1e\n" +
206 "\n" +
207 "ciphertext\x18\x02 \x01(\fR\n" +
208 "ciphertext\"a\n" +
209 "\x0fKemSharedSecret\x126\n" +
210 "\talgorithm\x18\x01 \x01(\x0e2\x18.keymanager.KemAlgorithmR\talgorithm\x12\x16\n" +
211 "\x06secret\x18\x02 \x01(\fR\x06secret\"\xcb\x01\n" +
212 "\vHpkePayload\x127\n" +
213 "\talgorithm\x18\x01 \x01(\v2\x19.keymanager.HpkeAlgorithmR\talgorithm\x12%\n" +
214 "\x0ekem_ciphertext\x18\x02 \x01(\fR\rkemCiphertext\x12-\n" +
215 "\x12payload_ciphertext\x18\x03 \x01(\fR\x11payloadCiphertext\x12-\n" +
216 "\x12authentication_tag\x18\x04 \x01(\fR\x11authenticationTagBFZDgithub.com/google/go-tpm-tools/keymanager/km_common/proto;keymanagerb\x06proto3"
217
218 var (
219 file_keymanager_km_common_proto_payload_proto_rawDescOnce sync.Once
220 file_keymanager_km_common_proto_payload_proto_rawDescData []byte
221 )
222
223 func file_keymanager_km_common_proto_payload_proto_rawDescGZIP() []byte {
224 file_keymanager_km_common_proto_payload_proto_rawDescOnce.Do(func() {
225 file_keymanager_km_common_proto_payload_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_keymanager_km_common_proto_payload_proto_rawDesc), len(file_keymanager_km_common_proto_payload_proto_rawDesc)))
226 })
227 return file_keymanager_km_common_proto_payload_proto_rawDescData
228 }
229
230 var file_keymanager_km_common_proto_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
231 var file_keymanager_km_common_proto_payload_proto_goTypes = []any{
232 (*KemCiphertext)(nil), // 0: keymanager.KemCiphertext
233 (*KemSharedSecret)(nil), // 1: keymanager.KemSharedSecret
234 (*HpkePayload)(nil), // 2: keymanager.HpkePayload
235 (KemAlgorithm)(0), // 3: keymanager.KemAlgorithm
236 (*HpkeAlgorithm)(nil), // 4: keymanager.HpkeAlgorithm
237 }
238 var file_keymanager_km_common_proto_payload_proto_depIdxs = []int32{
239 3, // 0: keymanager.KemCiphertext.algorithm:type_name -> keymanager.KemAlgorithm
240 3, // 1: keymanager.KemSharedSecret.algorithm:type_name -> keymanager.KemAlgorithm
241 4, // 2: keymanager.HpkePayload.algorithm:type_name -> keymanager.HpkeAlgorithm
242 3, // [3:3] is the sub-list for method output_type
243 3, // [3:3] is the sub-list for method input_type
244 3, // [3:3] is the sub-list for extension type_name
245 3, // [3:3] is the sub-list for extension extendee
246 0, // [0:3] is the sub-list for field type_name
247 }
248
249 func init() { file_keymanager_km_common_proto_payload_proto_init() }
250 func file_keymanager_km_common_proto_payload_proto_init() {
251 if File_keymanager_km_common_proto_payload_proto != nil {
252 return
253 }
254 file_keymanager_km_common_proto_algorithms_proto_init()
255 type x struct{}
256 out := protoimpl.TypeBuilder{
257 File: protoimpl.DescBuilder{
258 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
259 RawDescriptor: unsafe.Slice(unsafe.StringData(file_keymanager_km_common_proto_payload_proto_rawDesc), len(file_keymanager_km_common_proto_payload_proto_rawDesc)),
260 NumEnums: 0,
261 NumMessages: 3,
262 NumExtensions: 0,
263 NumServices: 0,
264 },
265 GoTypes: file_keymanager_km_common_proto_payload_proto_goTypes,
266 DependencyIndexes: file_keymanager_km_common_proto_payload_proto_depIdxs,
267 MessageInfos: file_keymanager_km_common_proto_payload_proto_msgTypes,
268 }.Build()
269 File_keymanager_km_common_proto_payload_proto = out.File
270 file_keymanager_km_common_proto_payload_proto_goTypes = nil
271 file_keymanager_km_common_proto_payload_proto_depIdxs = nil
272 }