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