blob: 92188b33e56dd5fc2a9d1528f31be1c0976ed407 [file] [log] [blame]
Christopher Wileyc3699ce2013-03-12 14:44:55 -07001# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5# Generated by the protocol buffer compiler. DO NOT EDIT!
6
7from google.protobuf import descriptor
8from google.protobuf import message
9from google.protobuf import reflection
10from google.protobuf import descriptor_pb2
11# @@protoc_insertion_point(imports)
12
13
Christopher Wileyc3699ce2013-03-12 14:44:55 -070014DESCRIPTOR = descriptor.FileDescriptor(
15 name='shims/protos/crypto_util.proto',
16 package='shill_protos',
17 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')
18
19_RETURNCODE = descriptor.EnumDescriptor(
20 name='ReturnCode',
21 full_name='shill_protos.ReturnCode',
22 filename=None,
23 file=DESCRIPTOR,
24 values=[
25 descriptor.EnumValueDescriptor(
26 name='OK', index=0, number=0,
27 options=None,
28 type=None),
29 descriptor.EnumValueDescriptor(
30 name='ERROR_UNKNOWN', index=1, number=1,
31 options=None,
32 type=None),
33 descriptor.EnumValueDescriptor(
34 name='ERROR_OUT_OF_MEMORY', index=2, number=2,
35 options=None,
36 type=None),
37 descriptor.EnumValueDescriptor(
38 name='ERROR_CRYPTO_OPERATION_FAILED', index=3, number=3,
39 options=None,
40 type=None),
41 descriptor.EnumValueDescriptor(
42 name='ERROR_INVALID_ARGUMENTS', index=4, number=4,
43 options=None,
44 type=None),
45 ],
46 containing_type=None,
47 options=None,
48 serialized_start=373,
49 serialized_end=501,
50)
51
52
53OK = 0
54ERROR_UNKNOWN = 1
55ERROR_OUT_OF_MEMORY = 2
56ERROR_CRYPTO_OPERATION_FAILED = 3
57ERROR_INVALID_ARGUMENTS = 4
58
59
60
61_ENCRYPTDATAMESSAGE = descriptor.Descriptor(
62 name='EncryptDataMessage',
63 full_name='shill_protos.EncryptDataMessage',
64 filename=None,
65 file=DESCRIPTOR,
66 containing_type=None,
67 fields=[
68 descriptor.FieldDescriptor(
69 name='public_key', full_name='shill_protos.EncryptDataMessage.public_key', index=0,
70 number=1, type=12, cpp_type=9, label=1,
71 has_default_value=False, default_value="",
72 message_type=None, enum_type=None, containing_type=None,
73 is_extension=False, extension_scope=None,
74 options=None),
75 descriptor.FieldDescriptor(
76 name='data', full_name='shill_protos.EncryptDataMessage.data', index=1,
77 number=2, type=12, cpp_type=9, label=2,
78 has_default_value=False, default_value="",
79 message_type=None, enum_type=None, containing_type=None,
80 is_extension=False, extension_scope=None,
81 options=None),
82 ],
83 extensions=[
84 ],
85 nested_types=[],
86 enum_types=[
87 ],
88 options=None,
89 is_extendable=False,
90 extension_ranges=[],
91 serialized_start=48,
92 serialized_end=102,
93)
94
95
96_ENCRYPTDATARESPONSE = descriptor.Descriptor(
97 name='EncryptDataResponse',
98 full_name='shill_protos.EncryptDataResponse',
99 filename=None,
100 file=DESCRIPTOR,
101 containing_type=None,
102 fields=[
103 descriptor.FieldDescriptor(
104 name='ret', full_name='shill_protos.EncryptDataResponse.ret', index=0,
105 number=1, type=14, cpp_type=8, label=2,
106 has_default_value=False, default_value=0,
107 message_type=None, enum_type=None, containing_type=None,
108 is_extension=False, extension_scope=None,
109 options=None),
110 descriptor.FieldDescriptor(
111 name='encrypted_data', full_name='shill_protos.EncryptDataResponse.encrypted_data', index=1,
112 number=2, type=12, cpp_type=9, label=1,
113 has_default_value=False, default_value="",
114 message_type=None, enum_type=None, containing_type=None,
115 is_extension=False, extension_scope=None,
116 options=None),
117 ],
118 extensions=[
119 ],
120 nested_types=[],
121 enum_types=[
122 ],
123 options=None,
124 is_extendable=False,
125 extension_ranges=[],
126 serialized_start=104,
127 serialized_end=188,
128)
129
130
131_VERIFYCREDENTIALSMESSAGE = descriptor.Descriptor(
132 name='VerifyCredentialsMessage',
133 full_name='shill_protos.VerifyCredentialsMessage',
134 filename=None,
135 file=DESCRIPTOR,
136 containing_type=None,
137 fields=[
138 descriptor.FieldDescriptor(
139 name='certificate', full_name='shill_protos.VerifyCredentialsMessage.certificate', index=0,
140 number=1, type=12, cpp_type=9, label=1,
141 has_default_value=False, default_value="",
142 message_type=None, enum_type=None, containing_type=None,
143 is_extension=False, extension_scope=None,
144 options=None),
145 descriptor.FieldDescriptor(
146 name='signed_data', full_name='shill_protos.VerifyCredentialsMessage.signed_data', index=1,
147 number=2, type=12, cpp_type=9, label=1,
148 has_default_value=False, default_value="",
149 message_type=None, enum_type=None, containing_type=None,
150 is_extension=False, extension_scope=None,
151 options=None),
152 descriptor.FieldDescriptor(
153 name='unsigned_data', full_name='shill_protos.VerifyCredentialsMessage.unsigned_data', index=2,
154 number=3, type=12, cpp_type=9, label=1,
155 has_default_value=False, default_value="",
156 message_type=None, enum_type=None, containing_type=None,
157 is_extension=False, extension_scope=None,
158 options=None),
159 descriptor.FieldDescriptor(
160 name='mac_address', full_name='shill_protos.VerifyCredentialsMessage.mac_address', index=3,
161 number=4, type=12, cpp_type=9, label=1,
162 has_default_value=False, default_value="",
163 message_type=None, enum_type=None, containing_type=None,
164 is_extension=False, extension_scope=None,
165 options=None),
166 ],
167 extensions=[
168 ],
169 nested_types=[],
170 enum_types=[
171 ],
172 options=None,
173 is_extendable=False,
174 extension_ranges=[],
175 serialized_start=190,
176 serialized_end=302,
177)
178
179
180_VERIFYCREDENTIALSRESPONSE = descriptor.Descriptor(
181 name='VerifyCredentialsResponse',
182 full_name='shill_protos.VerifyCredentialsResponse',
183 filename=None,
184 file=DESCRIPTOR,
185 containing_type=None,
186 fields=[
187 descriptor.FieldDescriptor(
188 name='ret', full_name='shill_protos.VerifyCredentialsResponse.ret', index=0,
189 number=1, type=14, cpp_type=8, label=2,
190 has_default_value=False, default_value=0,
191 message_type=None, enum_type=None, containing_type=None,
192 is_extension=False, extension_scope=None,
193 options=None),
194 ],
195 extensions=[
196 ],
197 nested_types=[],
198 enum_types=[
199 ],
200 options=None,
201 is_extendable=False,
202 extension_ranges=[],
203 serialized_start=304,
204 serialized_end=370,
205)
206
Christopher Wileyba7aba22013-03-14 11:39:06 -0700207
Christopher Wileyc3699ce2013-03-12 14:44:55 -0700208_ENCRYPTDATARESPONSE.fields_by_name['ret'].enum_type = _RETURNCODE
209_VERIFYCREDENTIALSRESPONSE.fields_by_name['ret'].enum_type = _RETURNCODE
Christopher Wileyc3699ce2013-03-12 14:44:55 -0700210
211class EncryptDataMessage(message.Message):
212 __metaclass__ = reflection.GeneratedProtocolMessageType
213 DESCRIPTOR = _ENCRYPTDATAMESSAGE
214
215 # @@protoc_insertion_point(class_scope:shill_protos.EncryptDataMessage)
216
217class EncryptDataResponse(message.Message):
218 __metaclass__ = reflection.GeneratedProtocolMessageType
219 DESCRIPTOR = _ENCRYPTDATARESPONSE
220
221 # @@protoc_insertion_point(class_scope:shill_protos.EncryptDataResponse)
222
223class VerifyCredentialsMessage(message.Message):
224 __metaclass__ = reflection.GeneratedProtocolMessageType
225 DESCRIPTOR = _VERIFYCREDENTIALSMESSAGE
226
227 # @@protoc_insertion_point(class_scope:shill_protos.VerifyCredentialsMessage)
228
229class VerifyCredentialsResponse(message.Message):
230 __metaclass__ = reflection.GeneratedProtocolMessageType
231 DESCRIPTOR = _VERIFYCREDENTIALSRESPONSE
232
233 # @@protoc_insertion_point(class_scope:shill_protos.VerifyCredentialsResponse)
234
235# @@protoc_insertion_point(module_scope)