1# Generated by the protocol buffer compiler. DO NOT EDIT! 2# source: sec1.proto 3 4import sys 5 6_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) 7from google.protobuf import descriptor as _descriptor 8from google.protobuf import descriptor_pb2 9from google.protobuf import message as _message 10from google.protobuf import reflection as _reflection 11from google.protobuf import symbol_database as _symbol_database 12from google.protobuf.internal import enum_type_wrapper 13 14# @@protoc_insertion_point(imports) 15 16_sym_db = _symbol_database.Default() 17 18 19import constants_pb2 as constants__pb2 20 21DESCRIPTOR = _descriptor.FileDescriptor( 22 name='sec1.proto', 23 package='', 24 syntax='proto3', 25 serialized_pb=_b('\n\nsec1.proto\x1a\x0f\x63onstants.proto\")\n\x0bSessionCmd1\x12\x1a\n\x12\x63lient_verify_data\x18\x02 \x01(\x0c\"C\n\x0cSessionResp1\x12\x17\n\x06status\x18\x01 \x01(\x0e\x32\x07.Status\x12\x1a\n\x12\x64\x65vice_verify_data\x18\x03 \x01(\x0c\"$\n\x0bSessionCmd0\x12\x15\n\rclient_pubkey\x18\x01 \x01(\x0c\"U\n\x0cSessionResp0\x12\x17\n\x06status\x18\x01 \x01(\x0e\x32\x07.Status\x12\x15\n\rdevice_pubkey\x18\x02 \x01(\x0c\x12\x15\n\rdevice_random\x18\x03 \x01(\x0c\"\xa9\x01\n\x0bSec1Payload\x12\x19\n\x03msg\x18\x01 \x01(\x0e\x32\x0c.Sec1MsgType\x12\x1b\n\x03sc0\x18\x14 \x01(\x0b\x32\x0c.SessionCmd0H\x00\x12\x1c\n\x03sr0\x18\x15 \x01(\x0b\x32\r.SessionResp0H\x00\x12\x1b\n\x03sc1\x18\x16 \x01(\x0b\x32\x0c.SessionCmd1H\x00\x12\x1c\n\x03sr1\x18\x17 \x01(\x0b\x32\r.SessionResp1H\x00\x42\t\n\x07payload*g\n\x0bSec1MsgType\x12\x14\n\x10Session_Command0\x10\x00\x12\x15\n\x11Session_Response0\x10\x01\x12\x14\n\x10Session_Command1\x10\x02\x12\x15\n\x11Session_Response1\x10\x03\x62\x06proto3') 26 , 27 dependencies=[constants__pb2.DESCRIPTOR,]) 28 29_SEC1MSGTYPE = _descriptor.EnumDescriptor( 30 name='Sec1MsgType', 31 full_name='Sec1MsgType', 32 filename=None, 33 file=DESCRIPTOR, 34 values=[ 35 _descriptor.EnumValueDescriptor( 36 name='Session_Command0', index=0, number=0, 37 options=None, 38 type=None), 39 _descriptor.EnumValueDescriptor( 40 name='Session_Response0', index=1, number=1, 41 options=None, 42 type=None), 43 _descriptor.EnumValueDescriptor( 44 name='Session_Command1', index=2, number=2, 45 options=None, 46 type=None), 47 _descriptor.EnumValueDescriptor( 48 name='Session_Response1', index=3, number=3, 49 options=None, 50 type=None), 51 ], 52 containing_type=None, 53 options=None, 54 serialized_start=440, 55 serialized_end=543, 56) 57_sym_db.RegisterEnumDescriptor(_SEC1MSGTYPE) 58 59Sec1MsgType = enum_type_wrapper.EnumTypeWrapper(_SEC1MSGTYPE) 60Session_Command0 = 0 61Session_Response0 = 1 62Session_Command1 = 2 63Session_Response1 = 3 64 65 66 67_SESSIONCMD1 = _descriptor.Descriptor( 68 name='SessionCmd1', 69 full_name='SessionCmd1', 70 filename=None, 71 file=DESCRIPTOR, 72 containing_type=None, 73 fields=[ 74 _descriptor.FieldDescriptor( 75 name='client_verify_data', full_name='SessionCmd1.client_verify_data', index=0, 76 number=2, type=12, cpp_type=9, label=1, 77 has_default_value=False, default_value=_b(''), 78 message_type=None, enum_type=None, containing_type=None, 79 is_extension=False, extension_scope=None, 80 options=None, file=DESCRIPTOR), 81 ], 82 extensions=[ 83 ], 84 nested_types=[], 85 enum_types=[ 86 ], 87 options=None, 88 is_extendable=False, 89 syntax='proto3', 90 extension_ranges=[], 91 oneofs=[ 92 ], 93 serialized_start=31, 94 serialized_end=72, 95) 96 97 98_SESSIONRESP1 = _descriptor.Descriptor( 99 name='SessionResp1', 100 full_name='SessionResp1', 101 filename=None, 102 file=DESCRIPTOR, 103 containing_type=None, 104 fields=[ 105 _descriptor.FieldDescriptor( 106 name='status', full_name='SessionResp1.status', index=0, 107 number=1, type=14, cpp_type=8, label=1, 108 has_default_value=False, default_value=0, 109 message_type=None, enum_type=None, containing_type=None, 110 is_extension=False, extension_scope=None, 111 options=None, file=DESCRIPTOR), 112 _descriptor.FieldDescriptor( 113 name='device_verify_data', full_name='SessionResp1.device_verify_data', index=1, 114 number=3, type=12, cpp_type=9, label=1, 115 has_default_value=False, default_value=_b(''), 116 message_type=None, enum_type=None, containing_type=None, 117 is_extension=False, extension_scope=None, 118 options=None, file=DESCRIPTOR), 119 ], 120 extensions=[ 121 ], 122 nested_types=[], 123 enum_types=[ 124 ], 125 options=None, 126 is_extendable=False, 127 syntax='proto3', 128 extension_ranges=[], 129 oneofs=[ 130 ], 131 serialized_start=74, 132 serialized_end=141, 133) 134 135 136_SESSIONCMD0 = _descriptor.Descriptor( 137 name='SessionCmd0', 138 full_name='SessionCmd0', 139 filename=None, 140 file=DESCRIPTOR, 141 containing_type=None, 142 fields=[ 143 _descriptor.FieldDescriptor( 144 name='client_pubkey', full_name='SessionCmd0.client_pubkey', index=0, 145 number=1, type=12, cpp_type=9, label=1, 146 has_default_value=False, default_value=_b(''), 147 message_type=None, enum_type=None, containing_type=None, 148 is_extension=False, extension_scope=None, 149 options=None, file=DESCRIPTOR), 150 ], 151 extensions=[ 152 ], 153 nested_types=[], 154 enum_types=[ 155 ], 156 options=None, 157 is_extendable=False, 158 syntax='proto3', 159 extension_ranges=[], 160 oneofs=[ 161 ], 162 serialized_start=143, 163 serialized_end=179, 164) 165 166 167_SESSIONRESP0 = _descriptor.Descriptor( 168 name='SessionResp0', 169 full_name='SessionResp0', 170 filename=None, 171 file=DESCRIPTOR, 172 containing_type=None, 173 fields=[ 174 _descriptor.FieldDescriptor( 175 name='status', full_name='SessionResp0.status', index=0, 176 number=1, type=14, cpp_type=8, label=1, 177 has_default_value=False, default_value=0, 178 message_type=None, enum_type=None, containing_type=None, 179 is_extension=False, extension_scope=None, 180 options=None, file=DESCRIPTOR), 181 _descriptor.FieldDescriptor( 182 name='device_pubkey', full_name='SessionResp0.device_pubkey', index=1, 183 number=2, type=12, cpp_type=9, label=1, 184 has_default_value=False, default_value=_b(''), 185 message_type=None, enum_type=None, containing_type=None, 186 is_extension=False, extension_scope=None, 187 options=None, file=DESCRIPTOR), 188 _descriptor.FieldDescriptor( 189 name='device_random', full_name='SessionResp0.device_random', index=2, 190 number=3, type=12, cpp_type=9, label=1, 191 has_default_value=False, default_value=_b(''), 192 message_type=None, enum_type=None, containing_type=None, 193 is_extension=False, extension_scope=None, 194 options=None, file=DESCRIPTOR), 195 ], 196 extensions=[ 197 ], 198 nested_types=[], 199 enum_types=[ 200 ], 201 options=None, 202 is_extendable=False, 203 syntax='proto3', 204 extension_ranges=[], 205 oneofs=[ 206 ], 207 serialized_start=181, 208 serialized_end=266, 209) 210 211 212_SEC1PAYLOAD = _descriptor.Descriptor( 213 name='Sec1Payload', 214 full_name='Sec1Payload', 215 filename=None, 216 file=DESCRIPTOR, 217 containing_type=None, 218 fields=[ 219 _descriptor.FieldDescriptor( 220 name='msg', full_name='Sec1Payload.msg', index=0, 221 number=1, type=14, cpp_type=8, label=1, 222 has_default_value=False, default_value=0, 223 message_type=None, enum_type=None, containing_type=None, 224 is_extension=False, extension_scope=None, 225 options=None, file=DESCRIPTOR), 226 _descriptor.FieldDescriptor( 227 name='sc0', full_name='Sec1Payload.sc0', index=1, 228 number=20, type=11, cpp_type=10, label=1, 229 has_default_value=False, default_value=None, 230 message_type=None, enum_type=None, containing_type=None, 231 is_extension=False, extension_scope=None, 232 options=None, file=DESCRIPTOR), 233 _descriptor.FieldDescriptor( 234 name='sr0', full_name='Sec1Payload.sr0', index=2, 235 number=21, type=11, cpp_type=10, label=1, 236 has_default_value=False, default_value=None, 237 message_type=None, enum_type=None, containing_type=None, 238 is_extension=False, extension_scope=None, 239 options=None, file=DESCRIPTOR), 240 _descriptor.FieldDescriptor( 241 name='sc1', full_name='Sec1Payload.sc1', index=3, 242 number=22, type=11, cpp_type=10, label=1, 243 has_default_value=False, default_value=None, 244 message_type=None, enum_type=None, containing_type=None, 245 is_extension=False, extension_scope=None, 246 options=None, file=DESCRIPTOR), 247 _descriptor.FieldDescriptor( 248 name='sr1', full_name='Sec1Payload.sr1', index=4, 249 number=23, type=11, cpp_type=10, label=1, 250 has_default_value=False, default_value=None, 251 message_type=None, enum_type=None, containing_type=None, 252 is_extension=False, extension_scope=None, 253 options=None, file=DESCRIPTOR), 254 ], 255 extensions=[ 256 ], 257 nested_types=[], 258 enum_types=[ 259 ], 260 options=None, 261 is_extendable=False, 262 syntax='proto3', 263 extension_ranges=[], 264 oneofs=[ 265 _descriptor.OneofDescriptor( 266 name='payload', full_name='Sec1Payload.payload', 267 index=0, containing_type=None, fields=[]), 268 ], 269 serialized_start=269, 270 serialized_end=438, 271) 272 273_SESSIONRESP1.fields_by_name['status'].enum_type = constants__pb2._STATUS 274_SESSIONRESP0.fields_by_name['status'].enum_type = constants__pb2._STATUS 275_SEC1PAYLOAD.fields_by_name['msg'].enum_type = _SEC1MSGTYPE 276_SEC1PAYLOAD.fields_by_name['sc0'].message_type = _SESSIONCMD0 277_SEC1PAYLOAD.fields_by_name['sr0'].message_type = _SESSIONRESP0 278_SEC1PAYLOAD.fields_by_name['sc1'].message_type = _SESSIONCMD1 279_SEC1PAYLOAD.fields_by_name['sr1'].message_type = _SESSIONRESP1 280_SEC1PAYLOAD.oneofs_by_name['payload'].fields.append( 281 _SEC1PAYLOAD.fields_by_name['sc0']) 282_SEC1PAYLOAD.fields_by_name['sc0'].containing_oneof = _SEC1PAYLOAD.oneofs_by_name['payload'] 283_SEC1PAYLOAD.oneofs_by_name['payload'].fields.append( 284 _SEC1PAYLOAD.fields_by_name['sr0']) 285_SEC1PAYLOAD.fields_by_name['sr0'].containing_oneof = _SEC1PAYLOAD.oneofs_by_name['payload'] 286_SEC1PAYLOAD.oneofs_by_name['payload'].fields.append( 287 _SEC1PAYLOAD.fields_by_name['sc1']) 288_SEC1PAYLOAD.fields_by_name['sc1'].containing_oneof = _SEC1PAYLOAD.oneofs_by_name['payload'] 289_SEC1PAYLOAD.oneofs_by_name['payload'].fields.append( 290 _SEC1PAYLOAD.fields_by_name['sr1']) 291_SEC1PAYLOAD.fields_by_name['sr1'].containing_oneof = _SEC1PAYLOAD.oneofs_by_name['payload'] 292DESCRIPTOR.message_types_by_name['SessionCmd1'] = _SESSIONCMD1 293DESCRIPTOR.message_types_by_name['SessionResp1'] = _SESSIONRESP1 294DESCRIPTOR.message_types_by_name['SessionCmd0'] = _SESSIONCMD0 295DESCRIPTOR.message_types_by_name['SessionResp0'] = _SESSIONRESP0 296DESCRIPTOR.message_types_by_name['Sec1Payload'] = _SEC1PAYLOAD 297DESCRIPTOR.enum_types_by_name['Sec1MsgType'] = _SEC1MSGTYPE 298_sym_db.RegisterFileDescriptor(DESCRIPTOR) 299 300SessionCmd1 = _reflection.GeneratedProtocolMessageType('SessionCmd1', (_message.Message,), dict( 301 DESCRIPTOR = _SESSIONCMD1, 302 __module__ = 'sec1_pb2' 303 # @@protoc_insertion_point(class_scope:SessionCmd1) 304 )) 305_sym_db.RegisterMessage(SessionCmd1) 306 307SessionResp1 = _reflection.GeneratedProtocolMessageType('SessionResp1', (_message.Message,), dict( 308 DESCRIPTOR = _SESSIONRESP1, 309 __module__ = 'sec1_pb2' 310 # @@protoc_insertion_point(class_scope:SessionResp1) 311 )) 312_sym_db.RegisterMessage(SessionResp1) 313 314SessionCmd0 = _reflection.GeneratedProtocolMessageType('SessionCmd0', (_message.Message,), dict( 315 DESCRIPTOR = _SESSIONCMD0, 316 __module__ = 'sec1_pb2' 317 # @@protoc_insertion_point(class_scope:SessionCmd0) 318 )) 319_sym_db.RegisterMessage(SessionCmd0) 320 321SessionResp0 = _reflection.GeneratedProtocolMessageType('SessionResp0', (_message.Message,), dict( 322 DESCRIPTOR = _SESSIONRESP0, 323 __module__ = 'sec1_pb2' 324 # @@protoc_insertion_point(class_scope:SessionResp0) 325 )) 326_sym_db.RegisterMessage(SessionResp0) 327 328Sec1Payload = _reflection.GeneratedProtocolMessageType('Sec1Payload', (_message.Message,), dict( 329 DESCRIPTOR = _SEC1PAYLOAD, 330 __module__ = 'sec1_pb2' 331 # @@protoc_insertion_point(class_scope:Sec1Payload) 332 )) 333_sym_db.RegisterMessage(Sec1Payload) 334 335 336# @@protoc_insertion_point(module_scope) 337