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