xref: /aosp_15_r20/external/tink/go/proto/hmac_go_proto/hmac.pb.go (revision e7b1675dde1b92d52ec075b0a92829627f2c52a5)
1// Copyright 2017 Google Inc.
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/hmac.proto
22
23package hmac_go_proto
24
25import (
26	common_go_proto "github.com/google/tink/go/proto/common_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 HmacParams struct {
41	state         protoimpl.MessageState
42	sizeCache     protoimpl.SizeCache
43	unknownFields protoimpl.UnknownFields
44
45	Hash    common_go_proto.HashType `protobuf:"varint,1,opt,name=hash,proto3,enum=google.crypto.tink.HashType" json:"hash,omitempty"` // HashType is an enum.
46	TagSize uint32                   `protobuf:"varint,2,opt,name=tag_size,json=tagSize,proto3" json:"tag_size,omitempty"`
47}
48
49func (x *HmacParams) Reset() {
50	*x = HmacParams{}
51	if protoimpl.UnsafeEnabled {
52		mi := &file_third_party_tink_proto_hmac_proto_msgTypes[0]
53		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
54		ms.StoreMessageInfo(mi)
55	}
56}
57
58func (x *HmacParams) String() string {
59	return protoimpl.X.MessageStringOf(x)
60}
61
62func (*HmacParams) ProtoMessage() {}
63
64func (x *HmacParams) ProtoReflect() protoreflect.Message {
65	mi := &file_third_party_tink_proto_hmac_proto_msgTypes[0]
66	if protoimpl.UnsafeEnabled && x != nil {
67		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
68		if ms.LoadMessageInfo() == nil {
69			ms.StoreMessageInfo(mi)
70		}
71		return ms
72	}
73	return mi.MessageOf(x)
74}
75
76// Deprecated: Use HmacParams.ProtoReflect.Descriptor instead.
77func (*HmacParams) Descriptor() ([]byte, []int) {
78	return file_third_party_tink_proto_hmac_proto_rawDescGZIP(), []int{0}
79}
80
81func (x *HmacParams) GetHash() common_go_proto.HashType {
82	if x != nil {
83		return x.Hash
84	}
85	return common_go_proto.HashType(0)
86}
87
88func (x *HmacParams) GetTagSize() uint32 {
89	if x != nil {
90		return x.TagSize
91	}
92	return 0
93}
94
95// key_type: type.googleapis.com/google.crypto.tink.HmacKey
96type HmacKey struct {
97	state         protoimpl.MessageState
98	sizeCache     protoimpl.SizeCache
99	unknownFields protoimpl.UnknownFields
100
101	Version  uint32      `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
102	Params   *HmacParams `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
103	KeyValue []byte      `protobuf:"bytes,3,opt,name=key_value,json=keyValue,proto3" json:"key_value,omitempty"`
104}
105
106func (x *HmacKey) Reset() {
107	*x = HmacKey{}
108	if protoimpl.UnsafeEnabled {
109		mi := &file_third_party_tink_proto_hmac_proto_msgTypes[1]
110		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
111		ms.StoreMessageInfo(mi)
112	}
113}
114
115func (x *HmacKey) String() string {
116	return protoimpl.X.MessageStringOf(x)
117}
118
119func (*HmacKey) ProtoMessage() {}
120
121func (x *HmacKey) ProtoReflect() protoreflect.Message {
122	mi := &file_third_party_tink_proto_hmac_proto_msgTypes[1]
123	if protoimpl.UnsafeEnabled && x != nil {
124		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
125		if ms.LoadMessageInfo() == nil {
126			ms.StoreMessageInfo(mi)
127		}
128		return ms
129	}
130	return mi.MessageOf(x)
131}
132
133// Deprecated: Use HmacKey.ProtoReflect.Descriptor instead.
134func (*HmacKey) Descriptor() ([]byte, []int) {
135	return file_third_party_tink_proto_hmac_proto_rawDescGZIP(), []int{1}
136}
137
138func (x *HmacKey) GetVersion() uint32 {
139	if x != nil {
140		return x.Version
141	}
142	return 0
143}
144
145func (x *HmacKey) GetParams() *HmacParams {
146	if x != nil {
147		return x.Params
148	}
149	return nil
150}
151
152func (x *HmacKey) GetKeyValue() []byte {
153	if x != nil {
154		return x.KeyValue
155	}
156	return nil
157}
158
159type HmacKeyFormat struct {
160	state         protoimpl.MessageState
161	sizeCache     protoimpl.SizeCache
162	unknownFields protoimpl.UnknownFields
163
164	Params  *HmacParams `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
165	KeySize uint32      `protobuf:"varint,2,opt,name=key_size,json=keySize,proto3" json:"key_size,omitempty"`
166	Version uint32      `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
167}
168
169func (x *HmacKeyFormat) Reset() {
170	*x = HmacKeyFormat{}
171	if protoimpl.UnsafeEnabled {
172		mi := &file_third_party_tink_proto_hmac_proto_msgTypes[2]
173		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
174		ms.StoreMessageInfo(mi)
175	}
176}
177
178func (x *HmacKeyFormat) String() string {
179	return protoimpl.X.MessageStringOf(x)
180}
181
182func (*HmacKeyFormat) ProtoMessage() {}
183
184func (x *HmacKeyFormat) ProtoReflect() protoreflect.Message {
185	mi := &file_third_party_tink_proto_hmac_proto_msgTypes[2]
186	if protoimpl.UnsafeEnabled && x != nil {
187		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
188		if ms.LoadMessageInfo() == nil {
189			ms.StoreMessageInfo(mi)
190		}
191		return ms
192	}
193	return mi.MessageOf(x)
194}
195
196// Deprecated: Use HmacKeyFormat.ProtoReflect.Descriptor instead.
197func (*HmacKeyFormat) Descriptor() ([]byte, []int) {
198	return file_third_party_tink_proto_hmac_proto_rawDescGZIP(), []int{2}
199}
200
201func (x *HmacKeyFormat) GetParams() *HmacParams {
202	if x != nil {
203		return x.Params
204	}
205	return nil
206}
207
208func (x *HmacKeyFormat) GetKeySize() uint32 {
209	if x != nil {
210		return x.KeySize
211	}
212	return 0
213}
214
215func (x *HmacKeyFormat) GetVersion() uint32 {
216	if x != nil {
217		return x.Version
218	}
219	return 0
220}
221
222var File_third_party_tink_proto_hmac_proto protoreflect.FileDescriptor
223
224var file_third_party_tink_proto_hmac_proto_rawDesc = []byte{
225	0x0a, 0x21, 0x74, 0x68, 0x69, 0x72, 0x64, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2f, 0x74, 0x69,
226	0x6e, 0x6b, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x68, 0x6d, 0x61, 0x63, 0x2e, 0x70, 0x72,
227	0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70,
228	0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x1a, 0x23, 0x74, 0x68, 0x69, 0x72, 0x64, 0x5f, 0x70,
229	0x61, 0x72, 0x74, 0x79, 0x2f, 0x74, 0x69, 0x6e, 0x6b, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
230	0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x59, 0x0a, 0x0a,
231	0x48, 0x6d, 0x61, 0x63, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x30, 0x0a, 0x04, 0x68, 0x61,
232	0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
233	0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x48, 0x61,
234	0x73, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x19, 0x0a, 0x08,
235	0x74, 0x61, 0x67, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07,
236	0x74, 0x61, 0x67, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x78, 0x0a, 0x07, 0x48, 0x6d, 0x61, 0x63, 0x4b,
237	0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20,
238	0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x06,
239	0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67,
240	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e,
241	0x6b, 0x2e, 0x48, 0x6d, 0x61, 0x63, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x70, 0x61,
242	0x72, 0x61, 0x6d, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75,
243	0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75,
244	0x65, 0x22, 0x7c, 0x0a, 0x0d, 0x48, 0x6d, 0x61, 0x63, 0x4b, 0x65, 0x79, 0x46, 0x6f, 0x72, 0x6d,
245	0x61, 0x74, 0x12, 0x36, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01,
246	0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70,
247	0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x48, 0x6d, 0x61, 0x63, 0x50, 0x61, 0x72, 0x61,
248	0x6d, 0x73, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x6b, 0x65,
249	0x79, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x6b, 0x65,
250	0x79, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
251	0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42,
252	0x4f, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72,
253	0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50,
254	0x01, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f,
255	0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x69, 0x6e, 0x6b, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f,
256	0x74, 0x6f, 0x2f, 0x68, 0x6d, 0x61, 0x63, 0x5f, 0x67, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
257	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
258}
259
260var (
261	file_third_party_tink_proto_hmac_proto_rawDescOnce sync.Once
262	file_third_party_tink_proto_hmac_proto_rawDescData = file_third_party_tink_proto_hmac_proto_rawDesc
263)
264
265func file_third_party_tink_proto_hmac_proto_rawDescGZIP() []byte {
266	file_third_party_tink_proto_hmac_proto_rawDescOnce.Do(func() {
267		file_third_party_tink_proto_hmac_proto_rawDescData = protoimpl.X.CompressGZIP(file_third_party_tink_proto_hmac_proto_rawDescData)
268	})
269	return file_third_party_tink_proto_hmac_proto_rawDescData
270}
271
272var file_third_party_tink_proto_hmac_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
273var file_third_party_tink_proto_hmac_proto_goTypes = []interface{}{
274	(*HmacParams)(nil),            // 0: google.crypto.tink.HmacParams
275	(*HmacKey)(nil),               // 1: google.crypto.tink.HmacKey
276	(*HmacKeyFormat)(nil),         // 2: google.crypto.tink.HmacKeyFormat
277	(common_go_proto.HashType)(0), // 3: google.crypto.tink.HashType
278}
279var file_third_party_tink_proto_hmac_proto_depIdxs = []int32{
280	3, // 0: google.crypto.tink.HmacParams.hash:type_name -> google.crypto.tink.HashType
281	0, // 1: google.crypto.tink.HmacKey.params:type_name -> google.crypto.tink.HmacParams
282	0, // 2: google.crypto.tink.HmacKeyFormat.params:type_name -> google.crypto.tink.HmacParams
283	3, // [3:3] is the sub-list for method output_type
284	3, // [3:3] is the sub-list for method input_type
285	3, // [3:3] is the sub-list for extension type_name
286	3, // [3:3] is the sub-list for extension extendee
287	0, // [0:3] is the sub-list for field type_name
288}
289
290func init() { file_third_party_tink_proto_hmac_proto_init() }
291func file_third_party_tink_proto_hmac_proto_init() {
292	if File_third_party_tink_proto_hmac_proto != nil {
293		return
294	}
295	if !protoimpl.UnsafeEnabled {
296		file_third_party_tink_proto_hmac_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
297			switch v := v.(*HmacParams); i {
298			case 0:
299				return &v.state
300			case 1:
301				return &v.sizeCache
302			case 2:
303				return &v.unknownFields
304			default:
305				return nil
306			}
307		}
308		file_third_party_tink_proto_hmac_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
309			switch v := v.(*HmacKey); i {
310			case 0:
311				return &v.state
312			case 1:
313				return &v.sizeCache
314			case 2:
315				return &v.unknownFields
316			default:
317				return nil
318			}
319		}
320		file_third_party_tink_proto_hmac_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
321			switch v := v.(*HmacKeyFormat); i {
322			case 0:
323				return &v.state
324			case 1:
325				return &v.sizeCache
326			case 2:
327				return &v.unknownFields
328			default:
329				return nil
330			}
331		}
332	}
333	type x struct{}
334	out := protoimpl.TypeBuilder{
335		File: protoimpl.DescBuilder{
336			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
337			RawDescriptor: file_third_party_tink_proto_hmac_proto_rawDesc,
338			NumEnums:      0,
339			NumMessages:   3,
340			NumExtensions: 0,
341			NumServices:   0,
342		},
343		GoTypes:           file_third_party_tink_proto_hmac_proto_goTypes,
344		DependencyIndexes: file_third_party_tink_proto_hmac_proto_depIdxs,
345		MessageInfos:      file_third_party_tink_proto_hmac_proto_msgTypes,
346	}.Build()
347	File_third_party_tink_proto_hmac_proto = out.File
348	file_third_party_tink_proto_hmac_proto_rawDesc = nil
349	file_third_party_tink_proto_hmac_proto_goTypes = nil
350	file_third_party_tink_proto_hmac_proto_depIdxs = nil
351}
352