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_gcm.proto 22 23package aes_gcm_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 AesGcmKeyFormat struct { 40 state protoimpl.MessageState 41 sizeCache protoimpl.SizeCache 42 unknownFields protoimpl.UnknownFields 43 44 KeySize uint32 `protobuf:"varint,2,opt,name=key_size,json=keySize,proto3" json:"key_size,omitempty"` 45 Version uint32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` 46} 47 48func (x *AesGcmKeyFormat) Reset() { 49 *x = AesGcmKeyFormat{} 50 if protoimpl.UnsafeEnabled { 51 mi := &file_third_party_tink_proto_aes_gcm_proto_msgTypes[0] 52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 53 ms.StoreMessageInfo(mi) 54 } 55} 56 57func (x *AesGcmKeyFormat) String() string { 58 return protoimpl.X.MessageStringOf(x) 59} 60 61func (*AesGcmKeyFormat) ProtoMessage() {} 62 63func (x *AesGcmKeyFormat) ProtoReflect() protoreflect.Message { 64 mi := &file_third_party_tink_proto_aes_gcm_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 AesGcmKeyFormat.ProtoReflect.Descriptor instead. 76func (*AesGcmKeyFormat) Descriptor() ([]byte, []int) { 77 return file_third_party_tink_proto_aes_gcm_proto_rawDescGZIP(), []int{0} 78} 79 80func (x *AesGcmKeyFormat) GetKeySize() uint32 { 81 if x != nil { 82 return x.KeySize 83 } 84 return 0 85} 86 87func (x *AesGcmKeyFormat) GetVersion() uint32 { 88 if x != nil { 89 return x.Version 90 } 91 return 0 92} 93 94type AesGcmKey struct { 95 state protoimpl.MessageState 96 sizeCache protoimpl.SizeCache 97 unknownFields protoimpl.UnknownFields 98 99 Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` 100 KeyValue []byte `protobuf:"bytes,3,opt,name=key_value,json=keyValue,proto3" json:"key_value,omitempty"` 101} 102 103func (x *AesGcmKey) Reset() { 104 *x = AesGcmKey{} 105 if protoimpl.UnsafeEnabled { 106 mi := &file_third_party_tink_proto_aes_gcm_proto_msgTypes[1] 107 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 108 ms.StoreMessageInfo(mi) 109 } 110} 111 112func (x *AesGcmKey) String() string { 113 return protoimpl.X.MessageStringOf(x) 114} 115 116func (*AesGcmKey) ProtoMessage() {} 117 118func (x *AesGcmKey) ProtoReflect() protoreflect.Message { 119 mi := &file_third_party_tink_proto_aes_gcm_proto_msgTypes[1] 120 if protoimpl.UnsafeEnabled && x != nil { 121 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 122 if ms.LoadMessageInfo() == nil { 123 ms.StoreMessageInfo(mi) 124 } 125 return ms 126 } 127 return mi.MessageOf(x) 128} 129 130// Deprecated: Use AesGcmKey.ProtoReflect.Descriptor instead. 131func (*AesGcmKey) Descriptor() ([]byte, []int) { 132 return file_third_party_tink_proto_aes_gcm_proto_rawDescGZIP(), []int{1} 133} 134 135func (x *AesGcmKey) GetVersion() uint32 { 136 if x != nil { 137 return x.Version 138 } 139 return 0 140} 141 142func (x *AesGcmKey) GetKeyValue() []byte { 143 if x != nil { 144 return x.KeyValue 145 } 146 return nil 147} 148 149var File_third_party_tink_proto_aes_gcm_proto protoreflect.FileDescriptor 150 151var file_third_party_tink_proto_aes_gcm_proto_rawDesc = []byte{ 152 0x0a, 0x24, 0x74, 0x68, 0x69, 0x72, 0x64, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2f, 0x74, 0x69, 153 0x6e, 0x6b, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x65, 0x73, 0x5f, 0x67, 0x63, 0x6d, 154 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 155 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x22, 0x46, 0x0a, 0x0f, 0x41, 0x65, 156 0x73, 0x47, 0x63, 0x6d, 0x4b, 0x65, 0x79, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x19, 0x0a, 157 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 158 0x07, 0x6b, 0x65, 0x79, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 159 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 160 0x6f, 0x6e, 0x22, 0x42, 0x0a, 0x09, 0x41, 0x65, 0x73, 0x47, 0x63, 0x6d, 0x4b, 0x65, 0x79, 0x12, 161 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 162 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6b, 0x65, 0x79, 163 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x6b, 0x65, 164 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x5b, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 165 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 166 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 167 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x69, 0x6e, 0x6b, 168 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x65, 0x73, 0x5f, 0x67, 0x63, 169 0x6d, 0x5f, 0x67, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0xa2, 0x02, 0x06, 0x54, 0x49, 0x4e, 170 0x4b, 0x50, 0x42, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 171} 172 173var ( 174 file_third_party_tink_proto_aes_gcm_proto_rawDescOnce sync.Once 175 file_third_party_tink_proto_aes_gcm_proto_rawDescData = file_third_party_tink_proto_aes_gcm_proto_rawDesc 176) 177 178func file_third_party_tink_proto_aes_gcm_proto_rawDescGZIP() []byte { 179 file_third_party_tink_proto_aes_gcm_proto_rawDescOnce.Do(func() { 180 file_third_party_tink_proto_aes_gcm_proto_rawDescData = protoimpl.X.CompressGZIP(file_third_party_tink_proto_aes_gcm_proto_rawDescData) 181 }) 182 return file_third_party_tink_proto_aes_gcm_proto_rawDescData 183} 184 185var file_third_party_tink_proto_aes_gcm_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 186var file_third_party_tink_proto_aes_gcm_proto_goTypes = []interface{}{ 187 (*AesGcmKeyFormat)(nil), // 0: google.crypto.tink.AesGcmKeyFormat 188 (*AesGcmKey)(nil), // 1: google.crypto.tink.AesGcmKey 189} 190var file_third_party_tink_proto_aes_gcm_proto_depIdxs = []int32{ 191 0, // [0:0] is the sub-list for method output_type 192 0, // [0:0] is the sub-list for method input_type 193 0, // [0:0] is the sub-list for extension type_name 194 0, // [0:0] is the sub-list for extension extendee 195 0, // [0:0] is the sub-list for field type_name 196} 197 198func init() { file_third_party_tink_proto_aes_gcm_proto_init() } 199func file_third_party_tink_proto_aes_gcm_proto_init() { 200 if File_third_party_tink_proto_aes_gcm_proto != nil { 201 return 202 } 203 if !protoimpl.UnsafeEnabled { 204 file_third_party_tink_proto_aes_gcm_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 205 switch v := v.(*AesGcmKeyFormat); i { 206 case 0: 207 return &v.state 208 case 1: 209 return &v.sizeCache 210 case 2: 211 return &v.unknownFields 212 default: 213 return nil 214 } 215 } 216 file_third_party_tink_proto_aes_gcm_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 217 switch v := v.(*AesGcmKey); i { 218 case 0: 219 return &v.state 220 case 1: 221 return &v.sizeCache 222 case 2: 223 return &v.unknownFields 224 default: 225 return nil 226 } 227 } 228 } 229 type x struct{} 230 out := protoimpl.TypeBuilder{ 231 File: protoimpl.DescBuilder{ 232 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 233 RawDescriptor: file_third_party_tink_proto_aes_gcm_proto_rawDesc, 234 NumEnums: 0, 235 NumMessages: 2, 236 NumExtensions: 0, 237 NumServices: 0, 238 }, 239 GoTypes: file_third_party_tink_proto_aes_gcm_proto_goTypes, 240 DependencyIndexes: file_third_party_tink_proto_aes_gcm_proto_depIdxs, 241 MessageInfos: file_third_party_tink_proto_aes_gcm_proto_msgTypes, 242 }.Build() 243 File_third_party_tink_proto_aes_gcm_proto = out.File 244 file_third_party_tink_proto_aes_gcm_proto_rawDesc = nil 245 file_third_party_tink_proto_aes_gcm_proto_goTypes = nil 246 file_third_party_tink_proto_aes_gcm_proto_depIdxs = nil 247} 248