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