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.proto 22 23package aes_ctr_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 AesCtrParams struct { 40 state protoimpl.MessageState 41 sizeCache protoimpl.SizeCache 42 unknownFields protoimpl.UnknownFields 43 44 IvSize uint32 `protobuf:"varint,1,opt,name=iv_size,json=ivSize,proto3" json:"iv_size,omitempty"` 45} 46 47func (x *AesCtrParams) Reset() { 48 *x = AesCtrParams{} 49 if protoimpl.UnsafeEnabled { 50 mi := &file_third_party_tink_proto_aes_ctr_proto_msgTypes[0] 51 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 52 ms.StoreMessageInfo(mi) 53 } 54} 55 56func (x *AesCtrParams) String() string { 57 return protoimpl.X.MessageStringOf(x) 58} 59 60func (*AesCtrParams) ProtoMessage() {} 61 62func (x *AesCtrParams) ProtoReflect() protoreflect.Message { 63 mi := &file_third_party_tink_proto_aes_ctr_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 AesCtrParams.ProtoReflect.Descriptor instead. 75func (*AesCtrParams) Descriptor() ([]byte, []int) { 76 return file_third_party_tink_proto_aes_ctr_proto_rawDescGZIP(), []int{0} 77} 78 79func (x *AesCtrParams) GetIvSize() uint32 { 80 if x != nil { 81 return x.IvSize 82 } 83 return 0 84} 85 86type AesCtrKeyFormat struct { 87 state protoimpl.MessageState 88 sizeCache protoimpl.SizeCache 89 unknownFields protoimpl.UnknownFields 90 91 Params *AesCtrParams `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` 92 KeySize uint32 `protobuf:"varint,2,opt,name=key_size,json=keySize,proto3" json:"key_size,omitempty"` 93} 94 95func (x *AesCtrKeyFormat) Reset() { 96 *x = AesCtrKeyFormat{} 97 if protoimpl.UnsafeEnabled { 98 mi := &file_third_party_tink_proto_aes_ctr_proto_msgTypes[1] 99 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 100 ms.StoreMessageInfo(mi) 101 } 102} 103 104func (x *AesCtrKeyFormat) String() string { 105 return protoimpl.X.MessageStringOf(x) 106} 107 108func (*AesCtrKeyFormat) ProtoMessage() {} 109 110func (x *AesCtrKeyFormat) ProtoReflect() protoreflect.Message { 111 mi := &file_third_party_tink_proto_aes_ctr_proto_msgTypes[1] 112 if protoimpl.UnsafeEnabled && x != nil { 113 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 114 if ms.LoadMessageInfo() == nil { 115 ms.StoreMessageInfo(mi) 116 } 117 return ms 118 } 119 return mi.MessageOf(x) 120} 121 122// Deprecated: Use AesCtrKeyFormat.ProtoReflect.Descriptor instead. 123func (*AesCtrKeyFormat) Descriptor() ([]byte, []int) { 124 return file_third_party_tink_proto_aes_ctr_proto_rawDescGZIP(), []int{1} 125} 126 127func (x *AesCtrKeyFormat) GetParams() *AesCtrParams { 128 if x != nil { 129 return x.Params 130 } 131 return nil 132} 133 134func (x *AesCtrKeyFormat) GetKeySize() uint32 { 135 if x != nil { 136 return x.KeySize 137 } 138 return 0 139} 140 141// key_type: type.googleapis.com/google.crypto.tink.AesCtrKey 142type AesCtrKey struct { 143 state protoimpl.MessageState 144 sizeCache protoimpl.SizeCache 145 unknownFields protoimpl.UnknownFields 146 147 Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` 148 Params *AesCtrParams `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` 149 KeyValue []byte `protobuf:"bytes,3,opt,name=key_value,json=keyValue,proto3" json:"key_value,omitempty"` 150} 151 152func (x *AesCtrKey) Reset() { 153 *x = AesCtrKey{} 154 if protoimpl.UnsafeEnabled { 155 mi := &file_third_party_tink_proto_aes_ctr_proto_msgTypes[2] 156 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 157 ms.StoreMessageInfo(mi) 158 } 159} 160 161func (x *AesCtrKey) String() string { 162 return protoimpl.X.MessageStringOf(x) 163} 164 165func (*AesCtrKey) ProtoMessage() {} 166 167func (x *AesCtrKey) ProtoReflect() protoreflect.Message { 168 mi := &file_third_party_tink_proto_aes_ctr_proto_msgTypes[2] 169 if protoimpl.UnsafeEnabled && x != nil { 170 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 171 if ms.LoadMessageInfo() == nil { 172 ms.StoreMessageInfo(mi) 173 } 174 return ms 175 } 176 return mi.MessageOf(x) 177} 178 179// Deprecated: Use AesCtrKey.ProtoReflect.Descriptor instead. 180func (*AesCtrKey) Descriptor() ([]byte, []int) { 181 return file_third_party_tink_proto_aes_ctr_proto_rawDescGZIP(), []int{2} 182} 183 184func (x *AesCtrKey) GetVersion() uint32 { 185 if x != nil { 186 return x.Version 187 } 188 return 0 189} 190 191func (x *AesCtrKey) GetParams() *AesCtrParams { 192 if x != nil { 193 return x.Params 194 } 195 return nil 196} 197 198func (x *AesCtrKey) GetKeyValue() []byte { 199 if x != nil { 200 return x.KeyValue 201 } 202 return nil 203} 204 205var File_third_party_tink_proto_aes_ctr_proto protoreflect.FileDescriptor 206 207var file_third_party_tink_proto_aes_ctr_proto_rawDesc = []byte{ 208 0x0a, 0x24, 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, 0x74, 0x72, 210 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 211 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x22, 0x27, 0x0a, 0x0c, 0x41, 0x65, 212 0x73, 0x43, 0x74, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x76, 213 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x69, 0x76, 0x53, 214 0x69, 0x7a, 0x65, 0x22, 0x66, 0x0a, 0x0f, 0x41, 0x65, 0x73, 0x43, 0x74, 0x72, 0x4b, 0x65, 0x79, 215 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x38, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 216 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 217 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x41, 0x65, 0x73, 0x43, 218 0x74, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 219 0x12, 0x19, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 220 0x28, 0x0d, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x7c, 0x0a, 0x09, 0x41, 221 0x65, 0x73, 0x43, 0x74, 0x72, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 222 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 223 0x6f, 0x6e, 0x12, 0x38, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 224 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 225 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x41, 0x65, 0x73, 0x43, 0x74, 0x72, 0x50, 0x61, 226 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1b, 0x0a, 0x09, 227 0x6b, 0x65, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 228 0x08, 0x6b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x52, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 229 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 230 0x69, 0x6e, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 231 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 232 0x69, 0x6e, 0x6b, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x65, 0x73, 233 0x5f, 0x63, 0x74, 0x72, 0x5f, 0x67, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 234 0x72, 0x6f, 0x74, 0x6f, 0x33, 235} 236 237var ( 238 file_third_party_tink_proto_aes_ctr_proto_rawDescOnce sync.Once 239 file_third_party_tink_proto_aes_ctr_proto_rawDescData = file_third_party_tink_proto_aes_ctr_proto_rawDesc 240) 241 242func file_third_party_tink_proto_aes_ctr_proto_rawDescGZIP() []byte { 243 file_third_party_tink_proto_aes_ctr_proto_rawDescOnce.Do(func() { 244 file_third_party_tink_proto_aes_ctr_proto_rawDescData = protoimpl.X.CompressGZIP(file_third_party_tink_proto_aes_ctr_proto_rawDescData) 245 }) 246 return file_third_party_tink_proto_aes_ctr_proto_rawDescData 247} 248 249var file_third_party_tink_proto_aes_ctr_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 250var file_third_party_tink_proto_aes_ctr_proto_goTypes = []interface{}{ 251 (*AesCtrParams)(nil), // 0: google.crypto.tink.AesCtrParams 252 (*AesCtrKeyFormat)(nil), // 1: google.crypto.tink.AesCtrKeyFormat 253 (*AesCtrKey)(nil), // 2: google.crypto.tink.AesCtrKey 254} 255var file_third_party_tink_proto_aes_ctr_proto_depIdxs = []int32{ 256 0, // 0: google.crypto.tink.AesCtrKeyFormat.params:type_name -> google.crypto.tink.AesCtrParams 257 0, // 1: google.crypto.tink.AesCtrKey.params:type_name -> google.crypto.tink.AesCtrParams 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_ctr_proto_init() } 266func file_third_party_tink_proto_aes_ctr_proto_init() { 267 if File_third_party_tink_proto_aes_ctr_proto != nil { 268 return 269 } 270 if !protoimpl.UnsafeEnabled { 271 file_third_party_tink_proto_aes_ctr_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 272 switch v := v.(*AesCtrParams); 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_ctr_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 284 switch v := v.(*AesCtrKeyFormat); 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_ctr_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 296 switch v := v.(*AesCtrKey); 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_ctr_proto_rawDesc, 313 NumEnums: 0, 314 NumMessages: 3, 315 NumExtensions: 0, 316 NumServices: 0, 317 }, 318 GoTypes: file_third_party_tink_proto_aes_ctr_proto_goTypes, 319 DependencyIndexes: file_third_party_tink_proto_aes_ctr_proto_depIdxs, 320 MessageInfos: file_third_party_tink_proto_aes_ctr_proto_msgTypes, 321 }.Build() 322 File_third_party_tink_proto_aes_ctr_proto = out.File 323 file_third_party_tink_proto_aes_ctr_proto_rawDesc = nil 324 file_third_party_tink_proto_aes_ctr_proto_goTypes = nil 325 file_third_party_tink_proto_aes_ctr_proto_depIdxs = nil 326} 327