xref: /aosp_15_r20/external/tink/go/proto/prf_based_deriver_go_proto/prf_based_deriver.pb.go (revision e7b1675dde1b92d52ec075b0a92829627f2c52a5)
1// Copyright 2019 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/prf_based_deriver.proto
22
23package prf_based_deriver_go_proto
24
25import (
26	tink_go_proto "github.com/google/tink/go/proto/tink_go_proto"
27	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29	reflect "reflect"
30	sync "sync"
31)
32
33const (
34	// Verify that this generated code is sufficiently up-to-date.
35	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
36	// Verify that runtime/protoimpl is sufficiently up-to-date.
37	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
38)
39
40type PrfBasedDeriverParams struct {
41	state         protoimpl.MessageState
42	sizeCache     protoimpl.SizeCache
43	unknownFields protoimpl.UnknownFields
44
45	DerivedKeyTemplate *tink_go_proto.KeyTemplate `protobuf:"bytes,1,opt,name=derived_key_template,json=derivedKeyTemplate,proto3" json:"derived_key_template,omitempty"`
46}
47
48func (x *PrfBasedDeriverParams) Reset() {
49	*x = PrfBasedDeriverParams{}
50	if protoimpl.UnsafeEnabled {
51		mi := &file_third_party_tink_proto_prf_based_deriver_proto_msgTypes[0]
52		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
53		ms.StoreMessageInfo(mi)
54	}
55}
56
57func (x *PrfBasedDeriverParams) String() string {
58	return protoimpl.X.MessageStringOf(x)
59}
60
61func (*PrfBasedDeriverParams) ProtoMessage() {}
62
63func (x *PrfBasedDeriverParams) ProtoReflect() protoreflect.Message {
64	mi := &file_third_party_tink_proto_prf_based_deriver_proto_msgTypes[0]
65	if protoimpl.UnsafeEnabled && x != nil {
66		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
67		if ms.LoadMessageInfo() == nil {
68			ms.StoreMessageInfo(mi)
69		}
70		return ms
71	}
72	return mi.MessageOf(x)
73}
74
75// Deprecated: Use PrfBasedDeriverParams.ProtoReflect.Descriptor instead.
76func (*PrfBasedDeriverParams) Descriptor() ([]byte, []int) {
77	return file_third_party_tink_proto_prf_based_deriver_proto_rawDescGZIP(), []int{0}
78}
79
80func (x *PrfBasedDeriverParams) GetDerivedKeyTemplate() *tink_go_proto.KeyTemplate {
81	if x != nil {
82		return x.DerivedKeyTemplate
83	}
84	return nil
85}
86
87type PrfBasedDeriverKeyFormat struct {
88	state         protoimpl.MessageState
89	sizeCache     protoimpl.SizeCache
90	unknownFields protoimpl.UnknownFields
91
92	PrfKeyTemplate *tink_go_proto.KeyTemplate `protobuf:"bytes,1,opt,name=prf_key_template,json=prfKeyTemplate,proto3" json:"prf_key_template,omitempty"`
93	Params         *PrfBasedDeriverParams     `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
94}
95
96func (x *PrfBasedDeriverKeyFormat) Reset() {
97	*x = PrfBasedDeriverKeyFormat{}
98	if protoimpl.UnsafeEnabled {
99		mi := &file_third_party_tink_proto_prf_based_deriver_proto_msgTypes[1]
100		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
101		ms.StoreMessageInfo(mi)
102	}
103}
104
105func (x *PrfBasedDeriverKeyFormat) String() string {
106	return protoimpl.X.MessageStringOf(x)
107}
108
109func (*PrfBasedDeriverKeyFormat) ProtoMessage() {}
110
111func (x *PrfBasedDeriverKeyFormat) ProtoReflect() protoreflect.Message {
112	mi := &file_third_party_tink_proto_prf_based_deriver_proto_msgTypes[1]
113	if protoimpl.UnsafeEnabled && x != nil {
114		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
115		if ms.LoadMessageInfo() == nil {
116			ms.StoreMessageInfo(mi)
117		}
118		return ms
119	}
120	return mi.MessageOf(x)
121}
122
123// Deprecated: Use PrfBasedDeriverKeyFormat.ProtoReflect.Descriptor instead.
124func (*PrfBasedDeriverKeyFormat) Descriptor() ([]byte, []int) {
125	return file_third_party_tink_proto_prf_based_deriver_proto_rawDescGZIP(), []int{1}
126}
127
128func (x *PrfBasedDeriverKeyFormat) GetPrfKeyTemplate() *tink_go_proto.KeyTemplate {
129	if x != nil {
130		return x.PrfKeyTemplate
131	}
132	return nil
133}
134
135func (x *PrfBasedDeriverKeyFormat) GetParams() *PrfBasedDeriverParams {
136	if x != nil {
137		return x.Params
138	}
139	return nil
140}
141
142// key_type: type.googleapis.com/google.crypto.tink.PrfBasedDeriverKey
143type PrfBasedDeriverKey struct {
144	state         protoimpl.MessageState
145	sizeCache     protoimpl.SizeCache
146	unknownFields protoimpl.UnknownFields
147
148	Version uint32                 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
149	PrfKey  *tink_go_proto.KeyData `protobuf:"bytes,2,opt,name=prf_key,json=prfKey,proto3" json:"prf_key,omitempty"`
150	Params  *PrfBasedDeriverParams `protobuf:"bytes,3,opt,name=params,proto3" json:"params,omitempty"`
151}
152
153func (x *PrfBasedDeriverKey) Reset() {
154	*x = PrfBasedDeriverKey{}
155	if protoimpl.UnsafeEnabled {
156		mi := &file_third_party_tink_proto_prf_based_deriver_proto_msgTypes[2]
157		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
158		ms.StoreMessageInfo(mi)
159	}
160}
161
162func (x *PrfBasedDeriverKey) String() string {
163	return protoimpl.X.MessageStringOf(x)
164}
165
166func (*PrfBasedDeriverKey) ProtoMessage() {}
167
168func (x *PrfBasedDeriverKey) ProtoReflect() protoreflect.Message {
169	mi := &file_third_party_tink_proto_prf_based_deriver_proto_msgTypes[2]
170	if protoimpl.UnsafeEnabled && x != nil {
171		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
172		if ms.LoadMessageInfo() == nil {
173			ms.StoreMessageInfo(mi)
174		}
175		return ms
176	}
177	return mi.MessageOf(x)
178}
179
180// Deprecated: Use PrfBasedDeriverKey.ProtoReflect.Descriptor instead.
181func (*PrfBasedDeriverKey) Descriptor() ([]byte, []int) {
182	return file_third_party_tink_proto_prf_based_deriver_proto_rawDescGZIP(), []int{2}
183}
184
185func (x *PrfBasedDeriverKey) GetVersion() uint32 {
186	if x != nil {
187		return x.Version
188	}
189	return 0
190}
191
192func (x *PrfBasedDeriverKey) GetPrfKey() *tink_go_proto.KeyData {
193	if x != nil {
194		return x.PrfKey
195	}
196	return nil
197}
198
199func (x *PrfBasedDeriverKey) GetParams() *PrfBasedDeriverParams {
200	if x != nil {
201		return x.Params
202	}
203	return nil
204}
205
206var File_third_party_tink_proto_prf_based_deriver_proto protoreflect.FileDescriptor
207
208var file_third_party_tink_proto_prf_based_deriver_proto_rawDesc = []byte{
209	0x0a, 0x2e, 0x74, 0x68, 0x69, 0x72, 0x64, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2f, 0x74, 0x69,
210	0x6e, 0x6b, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x72, 0x66, 0x5f, 0x62, 0x61, 0x73,
211	0x65, 0x64, 0x5f, 0x64, 0x65, 0x72, 0x69, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
212	0x12, 0x12, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e,
213	0x74, 0x69, 0x6e, 0x6b, 0x1a, 0x21, 0x74, 0x68, 0x69, 0x72, 0x64, 0x5f, 0x70, 0x61, 0x72, 0x74,
214	0x79, 0x2f, 0x74, 0x69, 0x6e, 0x6b, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x69, 0x6e,
215	0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6a, 0x0a, 0x15, 0x50, 0x72, 0x66, 0x42, 0x61,
216	0x73, 0x65, 0x64, 0x44, 0x65, 0x72, 0x69, 0x76, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
217	0x12, 0x51, 0x0a, 0x14, 0x64, 0x65, 0x72, 0x69, 0x76, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f,
218	0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f,
219	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74,
220	0x69, 0x6e, 0x6b, 0x2e, 0x4b, 0x65, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52,
221	0x12, 0x64, 0x65, 0x72, 0x69, 0x76, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c,
222	0x61, 0x74, 0x65, 0x22, 0xa8, 0x01, 0x0a, 0x18, 0x50, 0x72, 0x66, 0x42, 0x61, 0x73, 0x65, 0x64,
223	0x44, 0x65, 0x72, 0x69, 0x76, 0x65, 0x72, 0x4b, 0x65, 0x79, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74,
224	0x12, 0x49, 0x0a, 0x10, 0x70, 0x72, 0x66, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x74, 0x65, 0x6d, 0x70,
225	0x6c, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f,
226	0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e,
227	0x4b, 0x65, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x0e, 0x70, 0x72, 0x66,
228	0x4b, 0x65, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x41, 0x0a, 0x06, 0x70,
229	0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f,
230	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b,
231	0x2e, 0x50, 0x72, 0x66, 0x42, 0x61, 0x73, 0x65, 0x64, 0x44, 0x65, 0x72, 0x69, 0x76, 0x65, 0x72,
232	0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0xa7,
233	0x01, 0x0a, 0x12, 0x50, 0x72, 0x66, 0x42, 0x61, 0x73, 0x65, 0x64, 0x44, 0x65, 0x72, 0x69, 0x76,
234	0x65, 0x72, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
235	0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12,
236	0x34, 0x0a, 0x07, 0x70, 0x72, 0x66, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
237	0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f,
238	0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x4b, 0x65, 0x79, 0x44, 0x61, 0x74, 0x61, 0x52, 0x06, 0x70,
239	0x72, 0x66, 0x4b, 0x65, 0x79, 0x12, 0x41, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18,
240	0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
241	0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x50, 0x72, 0x66, 0x42, 0x61,
242	0x73, 0x65, 0x64, 0x44, 0x65, 0x72, 0x69, 0x76, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
243	0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x5c, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e,
244	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69,
245	0x6e, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68,
246	0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x69,
247	0x6e, 0x6b, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x72, 0x66, 0x5f,
248	0x62, 0x61, 0x73, 0x65, 0x64, 0x5f, 0x64, 0x65, 0x72, 0x69, 0x76, 0x65, 0x72, 0x5f, 0x67, 0x6f,
249	0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
250}
251
252var (
253	file_third_party_tink_proto_prf_based_deriver_proto_rawDescOnce sync.Once
254	file_third_party_tink_proto_prf_based_deriver_proto_rawDescData = file_third_party_tink_proto_prf_based_deriver_proto_rawDesc
255)
256
257func file_third_party_tink_proto_prf_based_deriver_proto_rawDescGZIP() []byte {
258	file_third_party_tink_proto_prf_based_deriver_proto_rawDescOnce.Do(func() {
259		file_third_party_tink_proto_prf_based_deriver_proto_rawDescData = protoimpl.X.CompressGZIP(file_third_party_tink_proto_prf_based_deriver_proto_rawDescData)
260	})
261	return file_third_party_tink_proto_prf_based_deriver_proto_rawDescData
262}
263
264var file_third_party_tink_proto_prf_based_deriver_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
265var file_third_party_tink_proto_prf_based_deriver_proto_goTypes = []interface{}{
266	(*PrfBasedDeriverParams)(nil),     // 0: google.crypto.tink.PrfBasedDeriverParams
267	(*PrfBasedDeriverKeyFormat)(nil),  // 1: google.crypto.tink.PrfBasedDeriverKeyFormat
268	(*PrfBasedDeriverKey)(nil),        // 2: google.crypto.tink.PrfBasedDeriverKey
269	(*tink_go_proto.KeyTemplate)(nil), // 3: google.crypto.tink.KeyTemplate
270	(*tink_go_proto.KeyData)(nil),     // 4: google.crypto.tink.KeyData
271}
272var file_third_party_tink_proto_prf_based_deriver_proto_depIdxs = []int32{
273	3, // 0: google.crypto.tink.PrfBasedDeriverParams.derived_key_template:type_name -> google.crypto.tink.KeyTemplate
274	3, // 1: google.crypto.tink.PrfBasedDeriverKeyFormat.prf_key_template:type_name -> google.crypto.tink.KeyTemplate
275	0, // 2: google.crypto.tink.PrfBasedDeriverKeyFormat.params:type_name -> google.crypto.tink.PrfBasedDeriverParams
276	4, // 3: google.crypto.tink.PrfBasedDeriverKey.prf_key:type_name -> google.crypto.tink.KeyData
277	0, // 4: google.crypto.tink.PrfBasedDeriverKey.params:type_name -> google.crypto.tink.PrfBasedDeriverParams
278	5, // [5:5] is the sub-list for method output_type
279	5, // [5:5] is the sub-list for method input_type
280	5, // [5:5] is the sub-list for extension type_name
281	5, // [5:5] is the sub-list for extension extendee
282	0, // [0:5] is the sub-list for field type_name
283}
284
285func init() { file_third_party_tink_proto_prf_based_deriver_proto_init() }
286func file_third_party_tink_proto_prf_based_deriver_proto_init() {
287	if File_third_party_tink_proto_prf_based_deriver_proto != nil {
288		return
289	}
290	if !protoimpl.UnsafeEnabled {
291		file_third_party_tink_proto_prf_based_deriver_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
292			switch v := v.(*PrfBasedDeriverParams); i {
293			case 0:
294				return &v.state
295			case 1:
296				return &v.sizeCache
297			case 2:
298				return &v.unknownFields
299			default:
300				return nil
301			}
302		}
303		file_third_party_tink_proto_prf_based_deriver_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
304			switch v := v.(*PrfBasedDeriverKeyFormat); i {
305			case 0:
306				return &v.state
307			case 1:
308				return &v.sizeCache
309			case 2:
310				return &v.unknownFields
311			default:
312				return nil
313			}
314		}
315		file_third_party_tink_proto_prf_based_deriver_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
316			switch v := v.(*PrfBasedDeriverKey); i {
317			case 0:
318				return &v.state
319			case 1:
320				return &v.sizeCache
321			case 2:
322				return &v.unknownFields
323			default:
324				return nil
325			}
326		}
327	}
328	type x struct{}
329	out := protoimpl.TypeBuilder{
330		File: protoimpl.DescBuilder{
331			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
332			RawDescriptor: file_third_party_tink_proto_prf_based_deriver_proto_rawDesc,
333			NumEnums:      0,
334			NumMessages:   3,
335			NumExtensions: 0,
336			NumServices:   0,
337		},
338		GoTypes:           file_third_party_tink_proto_prf_based_deriver_proto_goTypes,
339		DependencyIndexes: file_third_party_tink_proto_prf_based_deriver_proto_depIdxs,
340		MessageInfos:      file_third_party_tink_proto_prf_based_deriver_proto_msgTypes,
341	}.Build()
342	File_third_party_tink_proto_prf_based_deriver_proto = out.File
343	file_third_party_tink_proto_prf_based_deriver_proto_rawDesc = nil
344	file_third_party_tink_proto_prf_based_deriver_proto_goTypes = nil
345	file_third_party_tink_proto_prf_based_deriver_proto_depIdxs = nil
346}
347