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// Definitions for Ed25519 Digital Signature Algorithm. 18// See https://ed25519.cr.yp.to/ed25519-20110926.pdf and 19// https://tools.ietf.org/html/rfc8032. 20 21// Code generated by protoc-gen-go. DO NOT EDIT. 22// versions: 23// protoc-gen-go v1.28.1 24// protoc v3.21.12 25// source: third_party/tink/proto/ed25519.proto 26 27package ed25519_go_proto 28 29import ( 30 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 31 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 32 reflect "reflect" 33 sync "sync" 34) 35 36const ( 37 // Verify that this generated code is sufficiently up-to-date. 38 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 39 // Verify that runtime/protoimpl is sufficiently up-to-date. 40 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 41) 42 43type Ed25519KeyFormat struct { 44 state protoimpl.MessageState 45 sizeCache protoimpl.SizeCache 46 unknownFields protoimpl.UnknownFields 47 48 Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` 49} 50 51func (x *Ed25519KeyFormat) Reset() { 52 *x = Ed25519KeyFormat{} 53 if protoimpl.UnsafeEnabled { 54 mi := &file_third_party_tink_proto_ed25519_proto_msgTypes[0] 55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 56 ms.StoreMessageInfo(mi) 57 } 58} 59 60func (x *Ed25519KeyFormat) String() string { 61 return protoimpl.X.MessageStringOf(x) 62} 63 64func (*Ed25519KeyFormat) ProtoMessage() {} 65 66func (x *Ed25519KeyFormat) ProtoReflect() protoreflect.Message { 67 mi := &file_third_party_tink_proto_ed25519_proto_msgTypes[0] 68 if protoimpl.UnsafeEnabled && x != nil { 69 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 70 if ms.LoadMessageInfo() == nil { 71 ms.StoreMessageInfo(mi) 72 } 73 return ms 74 } 75 return mi.MessageOf(x) 76} 77 78// Deprecated: Use Ed25519KeyFormat.ProtoReflect.Descriptor instead. 79func (*Ed25519KeyFormat) Descriptor() ([]byte, []int) { 80 return file_third_party_tink_proto_ed25519_proto_rawDescGZIP(), []int{0} 81} 82 83func (x *Ed25519KeyFormat) GetVersion() uint32 { 84 if x != nil { 85 return x.Version 86 } 87 return 0 88} 89 90// key_type: type.googleapis.com/google.crypto.tink.Ed25519PublicKey 91type Ed25519PublicKey struct { 92 state protoimpl.MessageState 93 sizeCache protoimpl.SizeCache 94 unknownFields protoimpl.UnknownFields 95 96 // Required. 97 Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` 98 // The public key is 32 bytes, encoded according to 99 // https://tools.ietf.org/html/rfc8032#section-5.1.2. 100 // Required. 101 KeyValue []byte `protobuf:"bytes,2,opt,name=key_value,json=keyValue,proto3" json:"key_value,omitempty"` 102} 103 104func (x *Ed25519PublicKey) Reset() { 105 *x = Ed25519PublicKey{} 106 if protoimpl.UnsafeEnabled { 107 mi := &file_third_party_tink_proto_ed25519_proto_msgTypes[1] 108 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 109 ms.StoreMessageInfo(mi) 110 } 111} 112 113func (x *Ed25519PublicKey) String() string { 114 return protoimpl.X.MessageStringOf(x) 115} 116 117func (*Ed25519PublicKey) ProtoMessage() {} 118 119func (x *Ed25519PublicKey) ProtoReflect() protoreflect.Message { 120 mi := &file_third_party_tink_proto_ed25519_proto_msgTypes[1] 121 if protoimpl.UnsafeEnabled && x != nil { 122 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 123 if ms.LoadMessageInfo() == nil { 124 ms.StoreMessageInfo(mi) 125 } 126 return ms 127 } 128 return mi.MessageOf(x) 129} 130 131// Deprecated: Use Ed25519PublicKey.ProtoReflect.Descriptor instead. 132func (*Ed25519PublicKey) Descriptor() ([]byte, []int) { 133 return file_third_party_tink_proto_ed25519_proto_rawDescGZIP(), []int{1} 134} 135 136func (x *Ed25519PublicKey) GetVersion() uint32 { 137 if x != nil { 138 return x.Version 139 } 140 return 0 141} 142 143func (x *Ed25519PublicKey) GetKeyValue() []byte { 144 if x != nil { 145 return x.KeyValue 146 } 147 return nil 148} 149 150// key_type: type.googleapis.com/google.crypto.tink.Ed25519PrivateKey 151type Ed25519PrivateKey struct { 152 state protoimpl.MessageState 153 sizeCache protoimpl.SizeCache 154 unknownFields protoimpl.UnknownFields 155 156 // Required. 157 Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` 158 // The private key is 32 bytes of cryptographically secure random data. 159 // See https://tools.ietf.org/html/rfc8032#section-5.1.5. 160 // Required. 161 KeyValue []byte `protobuf:"bytes,2,opt,name=key_value,json=keyValue,proto3" json:"key_value,omitempty"` 162 // The corresponding public key. 163 PublicKey *Ed25519PublicKey `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` 164} 165 166func (x *Ed25519PrivateKey) Reset() { 167 *x = Ed25519PrivateKey{} 168 if protoimpl.UnsafeEnabled { 169 mi := &file_third_party_tink_proto_ed25519_proto_msgTypes[2] 170 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 171 ms.StoreMessageInfo(mi) 172 } 173} 174 175func (x *Ed25519PrivateKey) String() string { 176 return protoimpl.X.MessageStringOf(x) 177} 178 179func (*Ed25519PrivateKey) ProtoMessage() {} 180 181func (x *Ed25519PrivateKey) ProtoReflect() protoreflect.Message { 182 mi := &file_third_party_tink_proto_ed25519_proto_msgTypes[2] 183 if protoimpl.UnsafeEnabled && x != nil { 184 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 185 if ms.LoadMessageInfo() == nil { 186 ms.StoreMessageInfo(mi) 187 } 188 return ms 189 } 190 return mi.MessageOf(x) 191} 192 193// Deprecated: Use Ed25519PrivateKey.ProtoReflect.Descriptor instead. 194func (*Ed25519PrivateKey) Descriptor() ([]byte, []int) { 195 return file_third_party_tink_proto_ed25519_proto_rawDescGZIP(), []int{2} 196} 197 198func (x *Ed25519PrivateKey) GetVersion() uint32 { 199 if x != nil { 200 return x.Version 201 } 202 return 0 203} 204 205func (x *Ed25519PrivateKey) GetKeyValue() []byte { 206 if x != nil { 207 return x.KeyValue 208 } 209 return nil 210} 211 212func (x *Ed25519PrivateKey) GetPublicKey() *Ed25519PublicKey { 213 if x != nil { 214 return x.PublicKey 215 } 216 return nil 217} 218 219var File_third_party_tink_proto_ed25519_proto protoreflect.FileDescriptor 220 221var file_third_party_tink_proto_ed25519_proto_rawDesc = []byte{ 222 0x0a, 0x24, 0x74, 0x68, 0x69, 0x72, 0x64, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2f, 0x74, 0x69, 223 0x6e, 0x6b, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x64, 0x32, 0x35, 0x35, 0x31, 0x39, 224 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 225 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x22, 0x2c, 0x0a, 0x10, 0x45, 0x64, 226 0x32, 0x35, 0x35, 0x31, 0x39, 0x4b, 0x65, 0x79, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x18, 227 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 228 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x49, 0x0a, 0x10, 0x45, 0x64, 0x32, 0x35, 229 0x35, 0x31, 0x39, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 230 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 231 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, 0x76, 0x61, 232 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x56, 0x61, 233 0x6c, 0x75, 0x65, 0x22, 0x8f, 0x01, 0x0a, 0x11, 0x45, 0x64, 0x32, 0x35, 0x35, 0x31, 0x39, 0x50, 234 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 235 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 236 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 237 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 238 0x12, 0x43, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 239 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 240 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x45, 0x64, 0x32, 0x35, 0x35, 0x31, 241 0x39, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 242 0x69, 0x63, 0x4b, 0x65, 0x79, 0x42, 0x52, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 243 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 244 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 245 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x69, 0x6e, 0x6b, 0x2f, 246 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x64, 0x32, 0x35, 0x35, 0x31, 0x39, 247 0x5f, 0x67, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 248 0x33, 249} 250 251var ( 252 file_third_party_tink_proto_ed25519_proto_rawDescOnce sync.Once 253 file_third_party_tink_proto_ed25519_proto_rawDescData = file_third_party_tink_proto_ed25519_proto_rawDesc 254) 255 256func file_third_party_tink_proto_ed25519_proto_rawDescGZIP() []byte { 257 file_third_party_tink_proto_ed25519_proto_rawDescOnce.Do(func() { 258 file_third_party_tink_proto_ed25519_proto_rawDescData = protoimpl.X.CompressGZIP(file_third_party_tink_proto_ed25519_proto_rawDescData) 259 }) 260 return file_third_party_tink_proto_ed25519_proto_rawDescData 261} 262 263var file_third_party_tink_proto_ed25519_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 264var file_third_party_tink_proto_ed25519_proto_goTypes = []interface{}{ 265 (*Ed25519KeyFormat)(nil), // 0: google.crypto.tink.Ed25519KeyFormat 266 (*Ed25519PublicKey)(nil), // 1: google.crypto.tink.Ed25519PublicKey 267 (*Ed25519PrivateKey)(nil), // 2: google.crypto.tink.Ed25519PrivateKey 268} 269var file_third_party_tink_proto_ed25519_proto_depIdxs = []int32{ 270 1, // 0: google.crypto.tink.Ed25519PrivateKey.public_key:type_name -> google.crypto.tink.Ed25519PublicKey 271 1, // [1:1] is the sub-list for method output_type 272 1, // [1:1] is the sub-list for method input_type 273 1, // [1:1] is the sub-list for extension type_name 274 1, // [1:1] is the sub-list for extension extendee 275 0, // [0:1] is the sub-list for field type_name 276} 277 278func init() { file_third_party_tink_proto_ed25519_proto_init() } 279func file_third_party_tink_proto_ed25519_proto_init() { 280 if File_third_party_tink_proto_ed25519_proto != nil { 281 return 282 } 283 if !protoimpl.UnsafeEnabled { 284 file_third_party_tink_proto_ed25519_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 285 switch v := v.(*Ed25519KeyFormat); i { 286 case 0: 287 return &v.state 288 case 1: 289 return &v.sizeCache 290 case 2: 291 return &v.unknownFields 292 default: 293 return nil 294 } 295 } 296 file_third_party_tink_proto_ed25519_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 297 switch v := v.(*Ed25519PublicKey); i { 298 case 0: 299 return &v.state 300 case 1: 301 return &v.sizeCache 302 case 2: 303 return &v.unknownFields 304 default: 305 return nil 306 } 307 } 308 file_third_party_tink_proto_ed25519_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 309 switch v := v.(*Ed25519PrivateKey); i { 310 case 0: 311 return &v.state 312 case 1: 313 return &v.sizeCache 314 case 2: 315 return &v.unknownFields 316 default: 317 return nil 318 } 319 } 320 } 321 type x struct{} 322 out := protoimpl.TypeBuilder{ 323 File: protoimpl.DescBuilder{ 324 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 325 RawDescriptor: file_third_party_tink_proto_ed25519_proto_rawDesc, 326 NumEnums: 0, 327 NumMessages: 3, 328 NumExtensions: 0, 329 NumServices: 0, 330 }, 331 GoTypes: file_third_party_tink_proto_ed25519_proto_goTypes, 332 DependencyIndexes: file_third_party_tink_proto_ed25519_proto_depIdxs, 333 MessageInfos: file_third_party_tink_proto_ed25519_proto_msgTypes, 334 }.Build() 335 File_third_party_tink_proto_ed25519_proto = out.File 336 file_third_party_tink_proto_ed25519_proto_rawDesc = nil 337 file_third_party_tink_proto_ed25519_proto_goTypes = nil 338 file_third_party_tink_proto_ed25519_proto_depIdxs = nil 339} 340