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