Home | History | Annotate | Download | only in test-scripts
      1 #
      2 # Copyright (C) 2013 The Android Open Source Project
      3 #
      4 # Licensed under the Apache License, Version 2.0 (the "License");
      5 # you may not use this file except in compliance with the License.
      6 # You may obtain a copy of the License at
      7 #
      8 #      http://www.apache.org/licenses/LICENSE-2.0
      9 #
     10 # Unless required by applicable law or agreed to in writing, software
     11 # distributed under the License is distributed on an "AS IS" BASIS,
     12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13 # See the License for the specific language governing permissions and
     14 # limitations under the License.
     15 #
     16 
     17 # Generated by the protocol buffer compiler.  DO NOT EDIT!
     18 
     19 from google.protobuf import descriptor
     20 from google.protobuf import message
     21 from google.protobuf import reflection
     22 from google.protobuf import descriptor_pb2
     23 # @@protoc_insertion_point(imports)
     24 
     25 
     26 DESCRIPTOR = descriptor.FileDescriptor(
     27   name='shims/protos/crypto_util.proto',
     28   package='shill_protos',
     29   serialized_pb='\n\x1eshims/protos/crypto_util.proto\x12\x0cshill_protos\"6\n\x12\x45ncryptDataMessage\x12\x12\n\npublic_key\x18\x01 \x01(\x0c\x12\x0c\n\x04\x64\x61ta\x18\x02 \x02(\x0c\"T\n\x13\x45ncryptDataResponse\x12%\n\x03ret\x18\x01 \x02(\x0e\x32\x18.shill_protos.ReturnCode\x12\x16\n\x0e\x65ncrypted_data\x18\x02 \x01(\x0c\"p\n\x18VerifyCredentialsMessage\x12\x13\n\x0b\x63\x65rtificate\x18\x01 \x01(\x0c\x12\x13\n\x0bsigned_data\x18\x02 \x01(\x0c\x12\x15\n\runsigned_data\x18\x03 \x01(\x0c\x12\x13\n\x0bmac_address\x18\x04 \x01(\x0c\"B\n\x19VerifyCredentialsResponse\x12%\n\x03ret\x18\x01 \x02(\x0e\x32\x18.shill_protos.ReturnCode*\x80\x01\n\nReturnCode\x12\x06\n\x02OK\x10\x00\x12\x11\n\rERROR_UNKNOWN\x10\x01\x12\x17\n\x13\x45RROR_OUT_OF_MEMORY\x10\x02\x12!\n\x1d\x45RROR_CRYPTO_OPERATION_FAILED\x10\x03\x12\x1b\n\x17\x45RROR_INVALID_ARGUMENTS\x10\x04\x42\x02H\x03')
     30 
     31 _RETURNCODE = descriptor.EnumDescriptor(
     32   name='ReturnCode',
     33   full_name='shill_protos.ReturnCode',
     34   filename=None,
     35   file=DESCRIPTOR,
     36   values=[
     37     descriptor.EnumValueDescriptor(
     38       name='OK', index=0, number=0,
     39       options=None,
     40       type=None),
     41     descriptor.EnumValueDescriptor(
     42       name='ERROR_UNKNOWN', index=1, number=1,
     43       options=None,
     44       type=None),
     45     descriptor.EnumValueDescriptor(
     46       name='ERROR_OUT_OF_MEMORY', index=2, number=2,
     47       options=None,
     48       type=None),
     49     descriptor.EnumValueDescriptor(
     50       name='ERROR_CRYPTO_OPERATION_FAILED', index=3, number=3,
     51       options=None,
     52       type=None),
     53     descriptor.EnumValueDescriptor(
     54       name='ERROR_INVALID_ARGUMENTS', index=4, number=4,
     55       options=None,
     56       type=None),
     57   ],
     58   containing_type=None,
     59   options=None,
     60   serialized_start=373,
     61   serialized_end=501,
     62 )
     63 
     64 
     65 OK = 0
     66 ERROR_UNKNOWN = 1
     67 ERROR_OUT_OF_MEMORY = 2
     68 ERROR_CRYPTO_OPERATION_FAILED = 3
     69 ERROR_INVALID_ARGUMENTS = 4
     70 
     71 
     72 
     73 _ENCRYPTDATAMESSAGE = descriptor.Descriptor(
     74   name='EncryptDataMessage',
     75   full_name='shill_protos.EncryptDataMessage',
     76   filename=None,
     77   file=DESCRIPTOR,
     78   containing_type=None,
     79   fields=[
     80     descriptor.FieldDescriptor(
     81       name='public_key', full_name='shill_protos.EncryptDataMessage.public_key', index=0,
     82       number=1, type=12, cpp_type=9, label=1,
     83       has_default_value=False, default_value="",
     84       message_type=None, enum_type=None, containing_type=None,
     85       is_extension=False, extension_scope=None,
     86       options=None),
     87     descriptor.FieldDescriptor(
     88       name='data', full_name='shill_protos.EncryptDataMessage.data', index=1,
     89       number=2, type=12, cpp_type=9, label=2,
     90       has_default_value=False, default_value="",
     91       message_type=None, enum_type=None, containing_type=None,
     92       is_extension=False, extension_scope=None,
     93       options=None),
     94   ],
     95   extensions=[
     96   ],
     97   nested_types=[],
     98   enum_types=[
     99   ],
    100   options=None,
    101   is_extendable=False,
    102   extension_ranges=[],
    103   serialized_start=48,
    104   serialized_end=102,
    105 )
    106 
    107 
    108 _ENCRYPTDATARESPONSE = descriptor.Descriptor(
    109   name='EncryptDataResponse',
    110   full_name='shill_protos.EncryptDataResponse',
    111   filename=None,
    112   file=DESCRIPTOR,
    113   containing_type=None,
    114   fields=[
    115     descriptor.FieldDescriptor(
    116       name='ret', full_name='shill_protos.EncryptDataResponse.ret', index=0,
    117       number=1, type=14, cpp_type=8, label=2,
    118       has_default_value=False, default_value=0,
    119       message_type=None, enum_type=None, containing_type=None,
    120       is_extension=False, extension_scope=None,
    121       options=None),
    122     descriptor.FieldDescriptor(
    123       name='encrypted_data', full_name='shill_protos.EncryptDataResponse.encrypted_data', index=1,
    124       number=2, type=12, cpp_type=9, label=1,
    125       has_default_value=False, default_value="",
    126       message_type=None, enum_type=None, containing_type=None,
    127       is_extension=False, extension_scope=None,
    128       options=None),
    129   ],
    130   extensions=[
    131   ],
    132   nested_types=[],
    133   enum_types=[
    134   ],
    135   options=None,
    136   is_extendable=False,
    137   extension_ranges=[],
    138   serialized_start=104,
    139   serialized_end=188,
    140 )
    141 
    142 
    143 _VERIFYCREDENTIALSMESSAGE = descriptor.Descriptor(
    144   name='VerifyCredentialsMessage',
    145   full_name='shill_protos.VerifyCredentialsMessage',
    146   filename=None,
    147   file=DESCRIPTOR,
    148   containing_type=None,
    149   fields=[
    150     descriptor.FieldDescriptor(
    151       name='certificate', full_name='shill_protos.VerifyCredentialsMessage.certificate', index=0,
    152       number=1, type=12, cpp_type=9, label=1,
    153       has_default_value=False, default_value="",
    154       message_type=None, enum_type=None, containing_type=None,
    155       is_extension=False, extension_scope=None,
    156       options=None),
    157     descriptor.FieldDescriptor(
    158       name='signed_data', full_name='shill_protos.VerifyCredentialsMessage.signed_data', index=1,
    159       number=2, type=12, cpp_type=9, label=1,
    160       has_default_value=False, default_value="",
    161       message_type=None, enum_type=None, containing_type=None,
    162       is_extension=False, extension_scope=None,
    163       options=None),
    164     descriptor.FieldDescriptor(
    165       name='unsigned_data', full_name='shill_protos.VerifyCredentialsMessage.unsigned_data', index=2,
    166       number=3, type=12, cpp_type=9, label=1,
    167       has_default_value=False, default_value="",
    168       message_type=None, enum_type=None, containing_type=None,
    169       is_extension=False, extension_scope=None,
    170       options=None),
    171     descriptor.FieldDescriptor(
    172       name='mac_address', full_name='shill_protos.VerifyCredentialsMessage.mac_address', index=3,
    173       number=4, type=12, cpp_type=9, label=1,
    174       has_default_value=False, default_value="",
    175       message_type=None, enum_type=None, containing_type=None,
    176       is_extension=False, extension_scope=None,
    177       options=None),
    178   ],
    179   extensions=[
    180   ],
    181   nested_types=[],
    182   enum_types=[
    183   ],
    184   options=None,
    185   is_extendable=False,
    186   extension_ranges=[],
    187   serialized_start=190,
    188   serialized_end=302,
    189 )
    190 
    191 
    192 _VERIFYCREDENTIALSRESPONSE = descriptor.Descriptor(
    193   name='VerifyCredentialsResponse',
    194   full_name='shill_protos.VerifyCredentialsResponse',
    195   filename=None,
    196   file=DESCRIPTOR,
    197   containing_type=None,
    198   fields=[
    199     descriptor.FieldDescriptor(
    200       name='ret', full_name='shill_protos.VerifyCredentialsResponse.ret', index=0,
    201       number=1, type=14, cpp_type=8, label=2,
    202       has_default_value=False, default_value=0,
    203       message_type=None, enum_type=None, containing_type=None,
    204       is_extension=False, extension_scope=None,
    205       options=None),
    206   ],
    207   extensions=[
    208   ],
    209   nested_types=[],
    210   enum_types=[
    211   ],
    212   options=None,
    213   is_extendable=False,
    214   extension_ranges=[],
    215   serialized_start=304,
    216   serialized_end=370,
    217 )
    218 
    219 
    220 _ENCRYPTDATARESPONSE.fields_by_name['ret'].enum_type = _RETURNCODE
    221 _VERIFYCREDENTIALSRESPONSE.fields_by_name['ret'].enum_type = _RETURNCODE
    222 
    223 class EncryptDataMessage(message.Message):
    224   __metaclass__ = reflection.GeneratedProtocolMessageType
    225   DESCRIPTOR = _ENCRYPTDATAMESSAGE
    226   
    227   # @@protoc_insertion_point(class_scope:shill_protos.EncryptDataMessage)
    228 
    229 class EncryptDataResponse(message.Message):
    230   __metaclass__ = reflection.GeneratedProtocolMessageType
    231   DESCRIPTOR = _ENCRYPTDATARESPONSE
    232   
    233   # @@protoc_insertion_point(class_scope:shill_protos.EncryptDataResponse)
    234 
    235 class VerifyCredentialsMessage(message.Message):
    236   __metaclass__ = reflection.GeneratedProtocolMessageType
    237   DESCRIPTOR = _VERIFYCREDENTIALSMESSAGE
    238   
    239   # @@protoc_insertion_point(class_scope:shill_protos.VerifyCredentialsMessage)
    240 
    241 class VerifyCredentialsResponse(message.Message):
    242   __metaclass__ = reflection.GeneratedProtocolMessageType
    243   DESCRIPTOR = _VERIFYCREDENTIALSRESPONSE
    244   
    245   # @@protoc_insertion_point(class_scope:shill_protos.VerifyCredentialsResponse)
    246 
    247 # @@protoc_insertion_point(module_scope)
    248