xref: /aosp_15_r20/external/tink/go/proto/hpke_go_proto/hpke.pb.go (revision e7b1675dde1b92d52ec075b0a92829627f2c52a5)
1// Copyright 2021 Google LLC
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// Code generated by protoc-gen-go. DO NOT EDIT.
18// versions:
19// 	protoc-gen-go v1.28.1
20// 	protoc        v3.21.12
21// source: third_party/tink/proto/hpke.proto
22
23package hpke_proto
24
25import (
26	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
27	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
28	reflect "reflect"
29	sync "sync"
30)
31
32const (
33	// Verify that this generated code is sufficiently up-to-date.
34	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35	// Verify that runtime/protoimpl is sufficiently up-to-date.
36	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37)
38
39type HpkeKem int32
40
41const (
42	HpkeKem_KEM_UNKNOWN              HpkeKem = 0
43	HpkeKem_DHKEM_X25519_HKDF_SHA256 HpkeKem = 1
44	HpkeKem_DHKEM_P256_HKDF_SHA256   HpkeKem = 2
45	HpkeKem_DHKEM_P384_HKDF_SHA384   HpkeKem = 3
46	HpkeKem_DHKEM_P521_HKDF_SHA512   HpkeKem = 4
47)
48
49// Enum value maps for HpkeKem.
50var (
51	HpkeKem_name = map[int32]string{
52		0: "KEM_UNKNOWN",
53		1: "DHKEM_X25519_HKDF_SHA256",
54		2: "DHKEM_P256_HKDF_SHA256",
55		3: "DHKEM_P384_HKDF_SHA384",
56		4: "DHKEM_P521_HKDF_SHA512",
57	}
58	HpkeKem_value = map[string]int32{
59		"KEM_UNKNOWN":              0,
60		"DHKEM_X25519_HKDF_SHA256": 1,
61		"DHKEM_P256_HKDF_SHA256":   2,
62		"DHKEM_P384_HKDF_SHA384":   3,
63		"DHKEM_P521_HKDF_SHA512":   4,
64	}
65)
66
67func (x HpkeKem) Enum() *HpkeKem {
68	p := new(HpkeKem)
69	*p = x
70	return p
71}
72
73func (x HpkeKem) String() string {
74	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
75}
76
77func (HpkeKem) Descriptor() protoreflect.EnumDescriptor {
78	return file_third_party_tink_proto_hpke_proto_enumTypes[0].Descriptor()
79}
80
81func (HpkeKem) Type() protoreflect.EnumType {
82	return &file_third_party_tink_proto_hpke_proto_enumTypes[0]
83}
84
85func (x HpkeKem) Number() protoreflect.EnumNumber {
86	return protoreflect.EnumNumber(x)
87}
88
89// Deprecated: Use HpkeKem.Descriptor instead.
90func (HpkeKem) EnumDescriptor() ([]byte, []int) {
91	return file_third_party_tink_proto_hpke_proto_rawDescGZIP(), []int{0}
92}
93
94type HpkeKdf int32
95
96const (
97	HpkeKdf_KDF_UNKNOWN HpkeKdf = 0
98	HpkeKdf_HKDF_SHA256 HpkeKdf = 1
99	HpkeKdf_HKDF_SHA384 HpkeKdf = 2
100	HpkeKdf_HKDF_SHA512 HpkeKdf = 3
101)
102
103// Enum value maps for HpkeKdf.
104var (
105	HpkeKdf_name = map[int32]string{
106		0: "KDF_UNKNOWN",
107		1: "HKDF_SHA256",
108		2: "HKDF_SHA384",
109		3: "HKDF_SHA512",
110	}
111	HpkeKdf_value = map[string]int32{
112		"KDF_UNKNOWN": 0,
113		"HKDF_SHA256": 1,
114		"HKDF_SHA384": 2,
115		"HKDF_SHA512": 3,
116	}
117)
118
119func (x HpkeKdf) Enum() *HpkeKdf {
120	p := new(HpkeKdf)
121	*p = x
122	return p
123}
124
125func (x HpkeKdf) String() string {
126	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
127}
128
129func (HpkeKdf) Descriptor() protoreflect.EnumDescriptor {
130	return file_third_party_tink_proto_hpke_proto_enumTypes[1].Descriptor()
131}
132
133func (HpkeKdf) Type() protoreflect.EnumType {
134	return &file_third_party_tink_proto_hpke_proto_enumTypes[1]
135}
136
137func (x HpkeKdf) Number() protoreflect.EnumNumber {
138	return protoreflect.EnumNumber(x)
139}
140
141// Deprecated: Use HpkeKdf.Descriptor instead.
142func (HpkeKdf) EnumDescriptor() ([]byte, []int) {
143	return file_third_party_tink_proto_hpke_proto_rawDescGZIP(), []int{1}
144}
145
146type HpkeAead int32
147
148const (
149	HpkeAead_AEAD_UNKNOWN      HpkeAead = 0
150	HpkeAead_AES_128_GCM       HpkeAead = 1
151	HpkeAead_AES_256_GCM       HpkeAead = 2
152	HpkeAead_CHACHA20_POLY1305 HpkeAead = 3
153)
154
155// Enum value maps for HpkeAead.
156var (
157	HpkeAead_name = map[int32]string{
158		0: "AEAD_UNKNOWN",
159		1: "AES_128_GCM",
160		2: "AES_256_GCM",
161		3: "CHACHA20_POLY1305",
162	}
163	HpkeAead_value = map[string]int32{
164		"AEAD_UNKNOWN":      0,
165		"AES_128_GCM":       1,
166		"AES_256_GCM":       2,
167		"CHACHA20_POLY1305": 3,
168	}
169)
170
171func (x HpkeAead) Enum() *HpkeAead {
172	p := new(HpkeAead)
173	*p = x
174	return p
175}
176
177func (x HpkeAead) String() string {
178	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
179}
180
181func (HpkeAead) Descriptor() protoreflect.EnumDescriptor {
182	return file_third_party_tink_proto_hpke_proto_enumTypes[2].Descriptor()
183}
184
185func (HpkeAead) Type() protoreflect.EnumType {
186	return &file_third_party_tink_proto_hpke_proto_enumTypes[2]
187}
188
189func (x HpkeAead) Number() protoreflect.EnumNumber {
190	return protoreflect.EnumNumber(x)
191}
192
193// Deprecated: Use HpkeAead.Descriptor instead.
194func (HpkeAead) EnumDescriptor() ([]byte, []int) {
195	return file_third_party_tink_proto_hpke_proto_rawDescGZIP(), []int{2}
196}
197
198type HpkeParams struct {
199	state         protoimpl.MessageState
200	sizeCache     protoimpl.SizeCache
201	unknownFields protoimpl.UnknownFields
202
203	Kem  HpkeKem  `protobuf:"varint,1,opt,name=kem,proto3,enum=google.crypto.tink.HpkeKem" json:"kem,omitempty"`
204	Kdf  HpkeKdf  `protobuf:"varint,2,opt,name=kdf,proto3,enum=google.crypto.tink.HpkeKdf" json:"kdf,omitempty"`
205	Aead HpkeAead `protobuf:"varint,3,opt,name=aead,proto3,enum=google.crypto.tink.HpkeAead" json:"aead,omitempty"`
206}
207
208func (x *HpkeParams) Reset() {
209	*x = HpkeParams{}
210	if protoimpl.UnsafeEnabled {
211		mi := &file_third_party_tink_proto_hpke_proto_msgTypes[0]
212		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
213		ms.StoreMessageInfo(mi)
214	}
215}
216
217func (x *HpkeParams) String() string {
218	return protoimpl.X.MessageStringOf(x)
219}
220
221func (*HpkeParams) ProtoMessage() {}
222
223func (x *HpkeParams) ProtoReflect() protoreflect.Message {
224	mi := &file_third_party_tink_proto_hpke_proto_msgTypes[0]
225	if protoimpl.UnsafeEnabled && x != nil {
226		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
227		if ms.LoadMessageInfo() == nil {
228			ms.StoreMessageInfo(mi)
229		}
230		return ms
231	}
232	return mi.MessageOf(x)
233}
234
235// Deprecated: Use HpkeParams.ProtoReflect.Descriptor instead.
236func (*HpkeParams) Descriptor() ([]byte, []int) {
237	return file_third_party_tink_proto_hpke_proto_rawDescGZIP(), []int{0}
238}
239
240func (x *HpkeParams) GetKem() HpkeKem {
241	if x != nil {
242		return x.Kem
243	}
244	return HpkeKem_KEM_UNKNOWN
245}
246
247func (x *HpkeParams) GetKdf() HpkeKdf {
248	if x != nil {
249		return x.Kdf
250	}
251	return HpkeKdf_KDF_UNKNOWN
252}
253
254func (x *HpkeParams) GetAead() HpkeAead {
255	if x != nil {
256		return x.Aead
257	}
258	return HpkeAead_AEAD_UNKNOWN
259}
260
261type HpkePublicKey struct {
262	state         protoimpl.MessageState
263	sizeCache     protoimpl.SizeCache
264	unknownFields protoimpl.UnknownFields
265
266	Version uint32      `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
267	Params  *HpkeParams `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
268	// KEM-encoding of public key (i.e., SerializePublicKey() ) as described in
269	// https://www.rfc-editor.org/rfc/rfc9180.html#name-cryptographic-dependencies.
270	PublicKey []byte `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
271}
272
273func (x *HpkePublicKey) Reset() {
274	*x = HpkePublicKey{}
275	if protoimpl.UnsafeEnabled {
276		mi := &file_third_party_tink_proto_hpke_proto_msgTypes[1]
277		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
278		ms.StoreMessageInfo(mi)
279	}
280}
281
282func (x *HpkePublicKey) String() string {
283	return protoimpl.X.MessageStringOf(x)
284}
285
286func (*HpkePublicKey) ProtoMessage() {}
287
288func (x *HpkePublicKey) ProtoReflect() protoreflect.Message {
289	mi := &file_third_party_tink_proto_hpke_proto_msgTypes[1]
290	if protoimpl.UnsafeEnabled && x != nil {
291		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
292		if ms.LoadMessageInfo() == nil {
293			ms.StoreMessageInfo(mi)
294		}
295		return ms
296	}
297	return mi.MessageOf(x)
298}
299
300// Deprecated: Use HpkePublicKey.ProtoReflect.Descriptor instead.
301func (*HpkePublicKey) Descriptor() ([]byte, []int) {
302	return file_third_party_tink_proto_hpke_proto_rawDescGZIP(), []int{1}
303}
304
305func (x *HpkePublicKey) GetVersion() uint32 {
306	if x != nil {
307		return x.Version
308	}
309	return 0
310}
311
312func (x *HpkePublicKey) GetParams() *HpkeParams {
313	if x != nil {
314		return x.Params
315	}
316	return nil
317}
318
319func (x *HpkePublicKey) GetPublicKey() []byte {
320	if x != nil {
321		return x.PublicKey
322	}
323	return nil
324}
325
326type HpkePrivateKey struct {
327	state         protoimpl.MessageState
328	sizeCache     protoimpl.SizeCache
329	unknownFields protoimpl.UnknownFields
330
331	Version   uint32         `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
332	PublicKey *HpkePublicKey `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
333	// KEM-encoding of private key (i.e., SerializePrivateKey() ) as described in
334	// https://www.rfc-editor.org/rfc/rfc9180.html#name-cryptographic-dependencies.
335	PrivateKey []byte `protobuf:"bytes,3,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
336}
337
338func (x *HpkePrivateKey) Reset() {
339	*x = HpkePrivateKey{}
340	if protoimpl.UnsafeEnabled {
341		mi := &file_third_party_tink_proto_hpke_proto_msgTypes[2]
342		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
343		ms.StoreMessageInfo(mi)
344	}
345}
346
347func (x *HpkePrivateKey) String() string {
348	return protoimpl.X.MessageStringOf(x)
349}
350
351func (*HpkePrivateKey) ProtoMessage() {}
352
353func (x *HpkePrivateKey) ProtoReflect() protoreflect.Message {
354	mi := &file_third_party_tink_proto_hpke_proto_msgTypes[2]
355	if protoimpl.UnsafeEnabled && x != nil {
356		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
357		if ms.LoadMessageInfo() == nil {
358			ms.StoreMessageInfo(mi)
359		}
360		return ms
361	}
362	return mi.MessageOf(x)
363}
364
365// Deprecated: Use HpkePrivateKey.ProtoReflect.Descriptor instead.
366func (*HpkePrivateKey) Descriptor() ([]byte, []int) {
367	return file_third_party_tink_proto_hpke_proto_rawDescGZIP(), []int{2}
368}
369
370func (x *HpkePrivateKey) GetVersion() uint32 {
371	if x != nil {
372		return x.Version
373	}
374	return 0
375}
376
377func (x *HpkePrivateKey) GetPublicKey() *HpkePublicKey {
378	if x != nil {
379		return x.PublicKey
380	}
381	return nil
382}
383
384func (x *HpkePrivateKey) GetPrivateKey() []byte {
385	if x != nil {
386		return x.PrivateKey
387	}
388	return nil
389}
390
391type HpkeKeyFormat struct {
392	state         protoimpl.MessageState
393	sizeCache     protoimpl.SizeCache
394	unknownFields protoimpl.UnknownFields
395
396	Params *HpkeParams `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
397}
398
399func (x *HpkeKeyFormat) Reset() {
400	*x = HpkeKeyFormat{}
401	if protoimpl.UnsafeEnabled {
402		mi := &file_third_party_tink_proto_hpke_proto_msgTypes[3]
403		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
404		ms.StoreMessageInfo(mi)
405	}
406}
407
408func (x *HpkeKeyFormat) String() string {
409	return protoimpl.X.MessageStringOf(x)
410}
411
412func (*HpkeKeyFormat) ProtoMessage() {}
413
414func (x *HpkeKeyFormat) ProtoReflect() protoreflect.Message {
415	mi := &file_third_party_tink_proto_hpke_proto_msgTypes[3]
416	if protoimpl.UnsafeEnabled && x != nil {
417		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
418		if ms.LoadMessageInfo() == nil {
419			ms.StoreMessageInfo(mi)
420		}
421		return ms
422	}
423	return mi.MessageOf(x)
424}
425
426// Deprecated: Use HpkeKeyFormat.ProtoReflect.Descriptor instead.
427func (*HpkeKeyFormat) Descriptor() ([]byte, []int) {
428	return file_third_party_tink_proto_hpke_proto_rawDescGZIP(), []int{3}
429}
430
431func (x *HpkeKeyFormat) GetParams() *HpkeParams {
432	if x != nil {
433		return x.Params
434	}
435	return nil
436}
437
438var File_third_party_tink_proto_hpke_proto protoreflect.FileDescriptor
439
440var file_third_party_tink_proto_hpke_proto_rawDesc = []byte{
441	0x0a, 0x21, 0x74, 0x68, 0x69, 0x72, 0x64, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2f, 0x74, 0x69,
442	0x6e, 0x6b, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x68, 0x70, 0x6b, 0x65, 0x2e, 0x70, 0x72,
443	0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70,
444	0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x22, 0x9c, 0x01, 0x0a, 0x0a, 0x48, 0x70, 0x6b, 0x65,
445	0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2d, 0x0a, 0x03, 0x6b, 0x65, 0x6d, 0x18, 0x01, 0x20,
446	0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79,
447	0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x48, 0x70, 0x6b, 0x65, 0x4b, 0x65, 0x6d,
448	0x52, 0x03, 0x6b, 0x65, 0x6d, 0x12, 0x2d, 0x0a, 0x03, 0x6b, 0x64, 0x66, 0x18, 0x02, 0x20, 0x01,
449	0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70,
450	0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x48, 0x70, 0x6b, 0x65, 0x4b, 0x64, 0x66, 0x52,
451	0x03, 0x6b, 0x64, 0x66, 0x12, 0x30, 0x0a, 0x04, 0x61, 0x65, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01,
452	0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70,
453	0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x48, 0x70, 0x6b, 0x65, 0x41, 0x65, 0x61, 0x64,
454	0x52, 0x04, 0x61, 0x65, 0x61, 0x64, 0x22, 0x80, 0x01, 0x0a, 0x0d, 0x48, 0x70, 0x6b, 0x65, 0x50,
455	0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73,
456	0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,
457	0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01,
458	0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70,
459	0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x48, 0x70, 0x6b, 0x65, 0x50, 0x61, 0x72, 0x61,
460	0x6d, 0x73, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75,
461	0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09,
462	0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x22, 0x8d, 0x01, 0x0a, 0x0e, 0x48, 0x70,
463	0x6b, 0x65, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07,
464	0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76,
465	0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x40, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63,
466	0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f,
467	0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e,
468	0x48, 0x70, 0x6b, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x52, 0x09, 0x70,
469	0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x76,
470	0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x70,
471	0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x22, 0x47, 0x0a, 0x0d, 0x48, 0x70, 0x6b,
472	0x65, 0x4b, 0x65, 0x79, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x36, 0x0a, 0x06, 0x70, 0x61,
473	0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f,
474	0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e,
475	0x48, 0x70, 0x6b, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61,
476	0x6d, 0x73, 0x2a, 0x8c, 0x01, 0x0a, 0x07, 0x48, 0x70, 0x6b, 0x65, 0x4b, 0x65, 0x6d, 0x12, 0x0f,
477	0x0a, 0x0b, 0x4b, 0x45, 0x4d, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12,
478	0x1c, 0x0a, 0x18, 0x44, 0x48, 0x4b, 0x45, 0x4d, 0x5f, 0x58, 0x32, 0x35, 0x35, 0x31, 0x39, 0x5f,
479	0x48, 0x4b, 0x44, 0x46, 0x5f, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x10, 0x01, 0x12, 0x1a, 0x0a,
480	0x16, 0x44, 0x48, 0x4b, 0x45, 0x4d, 0x5f, 0x50, 0x32, 0x35, 0x36, 0x5f, 0x48, 0x4b, 0x44, 0x46,
481	0x5f, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x48, 0x4b,
482	0x45, 0x4d, 0x5f, 0x50, 0x33, 0x38, 0x34, 0x5f, 0x48, 0x4b, 0x44, 0x46, 0x5f, 0x53, 0x48, 0x41,
483	0x33, 0x38, 0x34, 0x10, 0x03, 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x48, 0x4b, 0x45, 0x4d, 0x5f, 0x50,
484	0x35, 0x32, 0x31, 0x5f, 0x48, 0x4b, 0x44, 0x46, 0x5f, 0x53, 0x48, 0x41, 0x35, 0x31, 0x32, 0x10,
485	0x04, 0x2a, 0x4d, 0x0a, 0x07, 0x48, 0x70, 0x6b, 0x65, 0x4b, 0x64, 0x66, 0x12, 0x0f, 0x0a, 0x0b,
486	0x4b, 0x44, 0x46, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0f, 0x0a,
487	0x0b, 0x48, 0x4b, 0x44, 0x46, 0x5f, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x10, 0x01, 0x12, 0x0f,
488	0x0a, 0x0b, 0x48, 0x4b, 0x44, 0x46, 0x5f, 0x53, 0x48, 0x41, 0x33, 0x38, 0x34, 0x10, 0x02, 0x12,
489	0x0f, 0x0a, 0x0b, 0x48, 0x4b, 0x44, 0x46, 0x5f, 0x53, 0x48, 0x41, 0x35, 0x31, 0x32, 0x10, 0x03,
490	0x2a, 0x55, 0x0a, 0x08, 0x48, 0x70, 0x6b, 0x65, 0x41, 0x65, 0x61, 0x64, 0x12, 0x10, 0x0a, 0x0c,
491	0x41, 0x45, 0x41, 0x44, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0f,
492	0x0a, 0x0b, 0x41, 0x45, 0x53, 0x5f, 0x31, 0x32, 0x38, 0x5f, 0x47, 0x43, 0x4d, 0x10, 0x01, 0x12,
493	0x0f, 0x0a, 0x0b, 0x41, 0x45, 0x53, 0x5f, 0x32, 0x35, 0x36, 0x5f, 0x47, 0x43, 0x4d, 0x10, 0x02,
494	0x12, 0x15, 0x0a, 0x11, 0x43, 0x48, 0x41, 0x43, 0x48, 0x41, 0x32, 0x30, 0x5f, 0x50, 0x4f, 0x4c,
495	0x59, 0x31, 0x33, 0x30, 0x35, 0x10, 0x03, 0x42, 0x4c, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67,
496	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e,
497	0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75,
498	0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x69, 0x6e,
499	0x6b, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x68, 0x70, 0x6b, 0x65, 0x5f,
500	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
501}
502
503var (
504	file_third_party_tink_proto_hpke_proto_rawDescOnce sync.Once
505	file_third_party_tink_proto_hpke_proto_rawDescData = file_third_party_tink_proto_hpke_proto_rawDesc
506)
507
508func file_third_party_tink_proto_hpke_proto_rawDescGZIP() []byte {
509	file_third_party_tink_proto_hpke_proto_rawDescOnce.Do(func() {
510		file_third_party_tink_proto_hpke_proto_rawDescData = protoimpl.X.CompressGZIP(file_third_party_tink_proto_hpke_proto_rawDescData)
511	})
512	return file_third_party_tink_proto_hpke_proto_rawDescData
513}
514
515var file_third_party_tink_proto_hpke_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
516var file_third_party_tink_proto_hpke_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
517var file_third_party_tink_proto_hpke_proto_goTypes = []interface{}{
518	(HpkeKem)(0),           // 0: google.crypto.tink.HpkeKem
519	(HpkeKdf)(0),           // 1: google.crypto.tink.HpkeKdf
520	(HpkeAead)(0),          // 2: google.crypto.tink.HpkeAead
521	(*HpkeParams)(nil),     // 3: google.crypto.tink.HpkeParams
522	(*HpkePublicKey)(nil),  // 4: google.crypto.tink.HpkePublicKey
523	(*HpkePrivateKey)(nil), // 5: google.crypto.tink.HpkePrivateKey
524	(*HpkeKeyFormat)(nil),  // 6: google.crypto.tink.HpkeKeyFormat
525}
526var file_third_party_tink_proto_hpke_proto_depIdxs = []int32{
527	0, // 0: google.crypto.tink.HpkeParams.kem:type_name -> google.crypto.tink.HpkeKem
528	1, // 1: google.crypto.tink.HpkeParams.kdf:type_name -> google.crypto.tink.HpkeKdf
529	2, // 2: google.crypto.tink.HpkeParams.aead:type_name -> google.crypto.tink.HpkeAead
530	3, // 3: google.crypto.tink.HpkePublicKey.params:type_name -> google.crypto.tink.HpkeParams
531	4, // 4: google.crypto.tink.HpkePrivateKey.public_key:type_name -> google.crypto.tink.HpkePublicKey
532	3, // 5: google.crypto.tink.HpkeKeyFormat.params:type_name -> google.crypto.tink.HpkeParams
533	6, // [6:6] is the sub-list for method output_type
534	6, // [6:6] is the sub-list for method input_type
535	6, // [6:6] is the sub-list for extension type_name
536	6, // [6:6] is the sub-list for extension extendee
537	0, // [0:6] is the sub-list for field type_name
538}
539
540func init() { file_third_party_tink_proto_hpke_proto_init() }
541func file_third_party_tink_proto_hpke_proto_init() {
542	if File_third_party_tink_proto_hpke_proto != nil {
543		return
544	}
545	if !protoimpl.UnsafeEnabled {
546		file_third_party_tink_proto_hpke_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
547			switch v := v.(*HpkeParams); i {
548			case 0:
549				return &v.state
550			case 1:
551				return &v.sizeCache
552			case 2:
553				return &v.unknownFields
554			default:
555				return nil
556			}
557		}
558		file_third_party_tink_proto_hpke_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
559			switch v := v.(*HpkePublicKey); i {
560			case 0:
561				return &v.state
562			case 1:
563				return &v.sizeCache
564			case 2:
565				return &v.unknownFields
566			default:
567				return nil
568			}
569		}
570		file_third_party_tink_proto_hpke_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
571			switch v := v.(*HpkePrivateKey); i {
572			case 0:
573				return &v.state
574			case 1:
575				return &v.sizeCache
576			case 2:
577				return &v.unknownFields
578			default:
579				return nil
580			}
581		}
582		file_third_party_tink_proto_hpke_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
583			switch v := v.(*HpkeKeyFormat); i {
584			case 0:
585				return &v.state
586			case 1:
587				return &v.sizeCache
588			case 2:
589				return &v.unknownFields
590			default:
591				return nil
592			}
593		}
594	}
595	type x struct{}
596	out := protoimpl.TypeBuilder{
597		File: protoimpl.DescBuilder{
598			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
599			RawDescriptor: file_third_party_tink_proto_hpke_proto_rawDesc,
600			NumEnums:      3,
601			NumMessages:   4,
602			NumExtensions: 0,
603			NumServices:   0,
604		},
605		GoTypes:           file_third_party_tink_proto_hpke_proto_goTypes,
606		DependencyIndexes: file_third_party_tink_proto_hpke_proto_depIdxs,
607		EnumInfos:         file_third_party_tink_proto_hpke_proto_enumTypes,
608		MessageInfos:      file_third_party_tink_proto_hpke_proto_msgTypes,
609	}.Build()
610	File_third_party_tink_proto_hpke_proto = out.File
611	file_third_party_tink_proto_hpke_proto_rawDesc = nil
612	file_third_party_tink_proto_hpke_proto_goTypes = nil
613	file_third_party_tink_proto_hpke_proto_depIdxs = nil
614}
615