• 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_ctr_hmac_aead.proto
22
23package aes_ctr_hmac_aead_go_proto
24
25import (
26	aes_ctr_go_proto "github.com/google/tink/go/proto/aes_ctr_go_proto"
27	hmac_go_proto "github.com/google/tink/go/proto/hmac_go_proto"
28	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
29	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
30	reflect "reflect"
31	sync "sync"
32)
33
34const (
35	// Verify that this generated code is sufficiently up-to-date.
36	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
37	// Verify that runtime/protoimpl is sufficiently up-to-date.
38	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
39)
40
41type AesCtrHmacAeadKeyFormat struct {
42	state         protoimpl.MessageState
43	sizeCache     protoimpl.SizeCache
44	unknownFields protoimpl.UnknownFields
45
46	AesCtrKeyFormat *aes_ctr_go_proto.AesCtrKeyFormat `protobuf:"bytes,1,opt,name=aes_ctr_key_format,json=aesCtrKeyFormat,proto3" json:"aes_ctr_key_format,omitempty"`
47	HmacKeyFormat   *hmac_go_proto.HmacKeyFormat      `protobuf:"bytes,2,opt,name=hmac_key_format,json=hmacKeyFormat,proto3" json:"hmac_key_format,omitempty"`
48}
49
50func (x *AesCtrHmacAeadKeyFormat) Reset() {
51	*x = AesCtrHmacAeadKeyFormat{}
52	if protoimpl.UnsafeEnabled {
53		mi := &file_third_party_tink_proto_aes_ctr_hmac_aead_proto_msgTypes[0]
54		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
55		ms.StoreMessageInfo(mi)
56	}
57}
58
59func (x *AesCtrHmacAeadKeyFormat) String() string {
60	return protoimpl.X.MessageStringOf(x)
61}
62
63func (*AesCtrHmacAeadKeyFormat) ProtoMessage() {}
64
65func (x *AesCtrHmacAeadKeyFormat) ProtoReflect() protoreflect.Message {
66	mi := &file_third_party_tink_proto_aes_ctr_hmac_aead_proto_msgTypes[0]
67	if protoimpl.UnsafeEnabled && x != nil {
68		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
69		if ms.LoadMessageInfo() == nil {
70			ms.StoreMessageInfo(mi)
71		}
72		return ms
73	}
74	return mi.MessageOf(x)
75}
76
77// Deprecated: Use AesCtrHmacAeadKeyFormat.ProtoReflect.Descriptor instead.
78func (*AesCtrHmacAeadKeyFormat) Descriptor() ([]byte, []int) {
79	return file_third_party_tink_proto_aes_ctr_hmac_aead_proto_rawDescGZIP(), []int{0}
80}
81
82func (x *AesCtrHmacAeadKeyFormat) GetAesCtrKeyFormat() *aes_ctr_go_proto.AesCtrKeyFormat {
83	if x != nil {
84		return x.AesCtrKeyFormat
85	}
86	return nil
87}
88
89func (x *AesCtrHmacAeadKeyFormat) GetHmacKeyFormat() *hmac_go_proto.HmacKeyFormat {
90	if x != nil {
91		return x.HmacKeyFormat
92	}
93	return nil
94}
95
96// key_type: type.googleapis.com/google.crypto.tink.AesCtrHmacAeadKey
97type AesCtrHmacAeadKey struct {
98	state         protoimpl.MessageState
99	sizeCache     protoimpl.SizeCache
100	unknownFields protoimpl.UnknownFields
101
102	Version   uint32                      `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
103	AesCtrKey *aes_ctr_go_proto.AesCtrKey `protobuf:"bytes,2,opt,name=aes_ctr_key,json=aesCtrKey,proto3" json:"aes_ctr_key,omitempty"`
104	HmacKey   *hmac_go_proto.HmacKey      `protobuf:"bytes,3,opt,name=hmac_key,json=hmacKey,proto3" json:"hmac_key,omitempty"`
105}
106
107func (x *AesCtrHmacAeadKey) Reset() {
108	*x = AesCtrHmacAeadKey{}
109	if protoimpl.UnsafeEnabled {
110		mi := &file_third_party_tink_proto_aes_ctr_hmac_aead_proto_msgTypes[1]
111		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
112		ms.StoreMessageInfo(mi)
113	}
114}
115
116func (x *AesCtrHmacAeadKey) String() string {
117	return protoimpl.X.MessageStringOf(x)
118}
119
120func (*AesCtrHmacAeadKey) ProtoMessage() {}
121
122func (x *AesCtrHmacAeadKey) ProtoReflect() protoreflect.Message {
123	mi := &file_third_party_tink_proto_aes_ctr_hmac_aead_proto_msgTypes[1]
124	if protoimpl.UnsafeEnabled && x != nil {
125		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
126		if ms.LoadMessageInfo() == nil {
127			ms.StoreMessageInfo(mi)
128		}
129		return ms
130	}
131	return mi.MessageOf(x)
132}
133
134// Deprecated: Use AesCtrHmacAeadKey.ProtoReflect.Descriptor instead.
135func (*AesCtrHmacAeadKey) Descriptor() ([]byte, []int) {
136	return file_third_party_tink_proto_aes_ctr_hmac_aead_proto_rawDescGZIP(), []int{1}
137}
138
139func (x *AesCtrHmacAeadKey) GetVersion() uint32 {
140	if x != nil {
141		return x.Version
142	}
143	return 0
144}
145
146func (x *AesCtrHmacAeadKey) GetAesCtrKey() *aes_ctr_go_proto.AesCtrKey {
147	if x != nil {
148		return x.AesCtrKey
149	}
150	return nil
151}
152
153func (x *AesCtrHmacAeadKey) GetHmacKey() *hmac_go_proto.HmacKey {
154	if x != nil {
155		return x.HmacKey
156	}
157	return nil
158}
159
160var File_third_party_tink_proto_aes_ctr_hmac_aead_proto protoreflect.FileDescriptor
161
162var file_third_party_tink_proto_aes_ctr_hmac_aead_proto_rawDesc = []byte{
163	0x0a, 0x2e, 0x74, 0x68, 0x69, 0x72, 0x64, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2f, 0x74, 0x69,
164	0x6e, 0x6b, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x65, 0x73, 0x5f, 0x63, 0x74, 0x72,
165	0x5f, 0x68, 0x6d, 0x61, 0x63, 0x5f, 0x61, 0x65, 0x61, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
166	0x12, 0x12, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e,
167	0x74, 0x69, 0x6e, 0x6b, 0x1a, 0x24, 0x74, 0x68, 0x69, 0x72, 0x64, 0x5f, 0x70, 0x61, 0x72, 0x74,
168	0x79, 0x2f, 0x74, 0x69, 0x6e, 0x6b, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x65, 0x73,
169	0x5f, 0x63, 0x74, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x74, 0x68, 0x69, 0x72,
170	0x64, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2f, 0x74, 0x69, 0x6e, 0x6b, 0x2f, 0x70, 0x72, 0x6f,
171	0x74, 0x6f, 0x2f, 0x68, 0x6d, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb6, 0x01,
172	0x0a, 0x17, 0x41, 0x65, 0x73, 0x43, 0x74, 0x72, 0x48, 0x6d, 0x61, 0x63, 0x41, 0x65, 0x61, 0x64,
173	0x4b, 0x65, 0x79, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x50, 0x0a, 0x12, 0x61, 0x65, 0x73,
174	0x5f, 0x63, 0x74, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18,
175	0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
176	0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x41, 0x65, 0x73, 0x43, 0x74,
177	0x72, 0x4b, 0x65, 0x79, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x0f, 0x61, 0x65, 0x73, 0x43,
178	0x74, 0x72, 0x4b, 0x65, 0x79, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x49, 0x0a, 0x0f, 0x68,
179	0x6d, 0x61, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x02,
180	0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72,
181	0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x48, 0x6d, 0x61, 0x63, 0x4b, 0x65,
182	0x79, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x0d, 0x68, 0x6d, 0x61, 0x63, 0x4b, 0x65, 0x79,
183	0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0xa4, 0x01, 0x0a, 0x11, 0x41, 0x65, 0x73, 0x43, 0x74,
184	0x72, 0x48, 0x6d, 0x61, 0x63, 0x41, 0x65, 0x61, 0x64, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07,
185	0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76,
186	0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3d, 0x0a, 0x0b, 0x61, 0x65, 0x73, 0x5f, 0x63, 0x74,
187	0x72, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6f,
188	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b,
189	0x2e, 0x41, 0x65, 0x73, 0x43, 0x74, 0x72, 0x4b, 0x65, 0x79, 0x52, 0x09, 0x61, 0x65, 0x73, 0x43,
190	0x74, 0x72, 0x4b, 0x65, 0x79, 0x12, 0x36, 0x0a, 0x08, 0x68, 0x6d, 0x61, 0x63, 0x5f, 0x6b, 0x65,
191	0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
192	0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x48, 0x6d, 0x61,
193	0x63, 0x4b, 0x65, 0x79, 0x52, 0x07, 0x68, 0x6d, 0x61, 0x63, 0x4b, 0x65, 0x79, 0x42, 0x5c, 0x0a,
194	0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70,
195	0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
196	0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67,
197	0x6c, 0x65, 0x2f, 0x74, 0x69, 0x6e, 0x6b, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
198	0x2f, 0x61, 0x65, 0x73, 0x5f, 0x63, 0x74, 0x72, 0x5f, 0x68, 0x6d, 0x61, 0x63, 0x5f, 0x61, 0x65,
199	0x61, 0x64, 0x5f, 0x67, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f,
200	0x74, 0x6f, 0x33,
201}
202
203var (
204	file_third_party_tink_proto_aes_ctr_hmac_aead_proto_rawDescOnce sync.Once
205	file_third_party_tink_proto_aes_ctr_hmac_aead_proto_rawDescData = file_third_party_tink_proto_aes_ctr_hmac_aead_proto_rawDesc
206)
207
208func file_third_party_tink_proto_aes_ctr_hmac_aead_proto_rawDescGZIP() []byte {
209	file_third_party_tink_proto_aes_ctr_hmac_aead_proto_rawDescOnce.Do(func() {
210		file_third_party_tink_proto_aes_ctr_hmac_aead_proto_rawDescData = protoimpl.X.CompressGZIP(file_third_party_tink_proto_aes_ctr_hmac_aead_proto_rawDescData)
211	})
212	return file_third_party_tink_proto_aes_ctr_hmac_aead_proto_rawDescData
213}
214
215var file_third_party_tink_proto_aes_ctr_hmac_aead_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
216var file_third_party_tink_proto_aes_ctr_hmac_aead_proto_goTypes = []interface{}{
217	(*AesCtrHmacAeadKeyFormat)(nil),          // 0: google.crypto.tink.AesCtrHmacAeadKeyFormat
218	(*AesCtrHmacAeadKey)(nil),                // 1: google.crypto.tink.AesCtrHmacAeadKey
219	(*aes_ctr_go_proto.AesCtrKeyFormat)(nil), // 2: google.crypto.tink.AesCtrKeyFormat
220	(*hmac_go_proto.HmacKeyFormat)(nil),      // 3: google.crypto.tink.HmacKeyFormat
221	(*aes_ctr_go_proto.AesCtrKey)(nil),       // 4: google.crypto.tink.AesCtrKey
222	(*hmac_go_proto.HmacKey)(nil),            // 5: google.crypto.tink.HmacKey
223}
224var file_third_party_tink_proto_aes_ctr_hmac_aead_proto_depIdxs = []int32{
225	2, // 0: google.crypto.tink.AesCtrHmacAeadKeyFormat.aes_ctr_key_format:type_name -> google.crypto.tink.AesCtrKeyFormat
226	3, // 1: google.crypto.tink.AesCtrHmacAeadKeyFormat.hmac_key_format:type_name -> google.crypto.tink.HmacKeyFormat
227	4, // 2: google.crypto.tink.AesCtrHmacAeadKey.aes_ctr_key:type_name -> google.crypto.tink.AesCtrKey
228	5, // 3: google.crypto.tink.AesCtrHmacAeadKey.hmac_key:type_name -> google.crypto.tink.HmacKey
229	4, // [4:4] is the sub-list for method output_type
230	4, // [4:4] is the sub-list for method input_type
231	4, // [4:4] is the sub-list for extension type_name
232	4, // [4:4] is the sub-list for extension extendee
233	0, // [0:4] is the sub-list for field type_name
234}
235
236func init() { file_third_party_tink_proto_aes_ctr_hmac_aead_proto_init() }
237func file_third_party_tink_proto_aes_ctr_hmac_aead_proto_init() {
238	if File_third_party_tink_proto_aes_ctr_hmac_aead_proto != nil {
239		return
240	}
241	if !protoimpl.UnsafeEnabled {
242		file_third_party_tink_proto_aes_ctr_hmac_aead_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
243			switch v := v.(*AesCtrHmacAeadKeyFormat); i {
244			case 0:
245				return &v.state
246			case 1:
247				return &v.sizeCache
248			case 2:
249				return &v.unknownFields
250			default:
251				return nil
252			}
253		}
254		file_third_party_tink_proto_aes_ctr_hmac_aead_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
255			switch v := v.(*AesCtrHmacAeadKey); i {
256			case 0:
257				return &v.state
258			case 1:
259				return &v.sizeCache
260			case 2:
261				return &v.unknownFields
262			default:
263				return nil
264			}
265		}
266	}
267	type x struct{}
268	out := protoimpl.TypeBuilder{
269		File: protoimpl.DescBuilder{
270			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
271			RawDescriptor: file_third_party_tink_proto_aes_ctr_hmac_aead_proto_rawDesc,
272			NumEnums:      0,
273			NumMessages:   2,
274			NumExtensions: 0,
275			NumServices:   0,
276		},
277		GoTypes:           file_third_party_tink_proto_aes_ctr_hmac_aead_proto_goTypes,
278		DependencyIndexes: file_third_party_tink_proto_aes_ctr_hmac_aead_proto_depIdxs,
279		MessageInfos:      file_third_party_tink_proto_aes_ctr_hmac_aead_proto_msgTypes,
280	}.Build()
281	File_third_party_tink_proto_aes_ctr_hmac_aead_proto = out.File
282	file_third_party_tink_proto_aes_ctr_hmac_aead_proto_rawDesc = nil
283	file_third_party_tink_proto_aes_ctr_hmac_aead_proto_goTypes = nil
284	file_third_party_tink_proto_aes_ctr_hmac_aead_proto_depIdxs = nil
285}
286