• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# pylint: skip-file
2# -*- coding: utf-8 -*-
3# Generated by the protocol buffer compiler.  DO NOT EDIT!
4# source: crypto/keyspb/keyspb.proto
5
6import sys
7_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
8from google.protobuf import descriptor as _descriptor
9from google.protobuf import message as _message
10from google.protobuf import reflection as _reflection
11from google.protobuf import symbol_database as _symbol_database
12# @@protoc_insertion_point(imports)
13
14_sym_db = _symbol_database.Default()
15
16
17
18
19DESCRIPTOR = _descriptor.FileDescriptor(
20  name='crypto/keyspb/keyspb.proto',
21  package='keyspb',
22  syntax='proto3',
23  serialized_options=_b('Z(github.com/google/trillian/crypto/keyspb'),
24  serialized_pb=_b('\n\x1a\x63rypto/keyspb/keyspb.proto\x12\x06keyspb\"\xcd\x02\n\rSpecification\x12\x33\n\x0c\x65\x63\x64sa_params\x18\x01 \x01(\x0b\x32\x1b.keyspb.Specification.ECDSAH\x00\x12/\n\nrsa_params\x18\x02 \x01(\x0b\x32\x19.keyspb.Specification.RSAH\x00\x12\x37\n\x0e\x65\x64\x32\x35\x35\x31\x39_params\x18\x03 \x01(\x0b\x32\x1d.keyspb.Specification.Ed25519H\x00\x1as\n\x05\x45\x43\x44SA\x12\x30\n\x05\x63urve\x18\x01 \x01(\x0e\x32!.keyspb.Specification.ECDSA.Curve\"8\n\x05\x43urve\x12\x11\n\rDEFAULT_CURVE\x10\x00\x12\x08\n\x04P256\x10\x01\x12\x08\n\x04P384\x10\x02\x12\x08\n\x04P521\x10\x03\x1a\x13\n\x03RSA\x12\x0c\n\x04\x62its\x18\x01 \x01(\x05\x1a\t\n\x07\x45\x64\x32\x35\x35\x31\x39\x42\x08\n\x06params\",\n\nPEMKeyFile\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\"\x19\n\nPrivateKey\x12\x0b\n\x03\x64\x65r\x18\x01 \x01(\x0c\"\x18\n\tPublicKey\x12\x0b\n\x03\x64\x65r\x18\x01 \x01(\x0c\"D\n\x0cPKCS11Config\x12\x13\n\x0btoken_label\x18\x01 \x01(\t\x12\x0b\n\x03pin\x18\x02 \x01(\t\x12\x12\n\npublic_key\x18\x03 \x01(\tB*Z(github.com/google/trillian/crypto/keyspbb\x06proto3')
25)
26
27
28
29_SPECIFICATION_ECDSA_CURVE = _descriptor.EnumDescriptor(
30  name='Curve',
31  full_name='keyspb.Specification.ECDSA.Curve',
32  filename=None,
33  file=DESCRIPTOR,
34  values=[
35    _descriptor.EnumValueDescriptor(
36      name='DEFAULT_CURVE', index=0, number=0,
37      serialized_options=None,
38      type=None),
39    _descriptor.EnumValueDescriptor(
40      name='P256', index=1, number=1,
41      serialized_options=None,
42      type=None),
43    _descriptor.EnumValueDescriptor(
44      name='P384', index=2, number=2,
45      serialized_options=None,
46      type=None),
47    _descriptor.EnumValueDescriptor(
48      name='P521', index=3, number=3,
49      serialized_options=None,
50      type=None),
51  ],
52  containing_type=None,
53  serialized_options=None,
54  serialized_start=274,
55  serialized_end=330,
56)
57_sym_db.RegisterEnumDescriptor(_SPECIFICATION_ECDSA_CURVE)
58
59
60_SPECIFICATION_ECDSA = _descriptor.Descriptor(
61  name='ECDSA',
62  full_name='keyspb.Specification.ECDSA',
63  filename=None,
64  file=DESCRIPTOR,
65  containing_type=None,
66  fields=[
67    _descriptor.FieldDescriptor(
68      name='curve', full_name='keyspb.Specification.ECDSA.curve', index=0,
69      number=1, type=14, cpp_type=8, label=1,
70      has_default_value=False, default_value=0,
71      message_type=None, enum_type=None, containing_type=None,
72      is_extension=False, extension_scope=None,
73      serialized_options=None, file=DESCRIPTOR),
74  ],
75  extensions=[
76  ],
77  nested_types=[],
78  enum_types=[
79    _SPECIFICATION_ECDSA_CURVE,
80  ],
81  serialized_options=None,
82  is_extendable=False,
83  syntax='proto3',
84  extension_ranges=[],
85  oneofs=[
86  ],
87  serialized_start=215,
88  serialized_end=330,
89)
90
91_SPECIFICATION_RSA = _descriptor.Descriptor(
92  name='RSA',
93  full_name='keyspb.Specification.RSA',
94  filename=None,
95  file=DESCRIPTOR,
96  containing_type=None,
97  fields=[
98    _descriptor.FieldDescriptor(
99      name='bits', full_name='keyspb.Specification.RSA.bits', index=0,
100      number=1, type=5, cpp_type=1, label=1,
101      has_default_value=False, default_value=0,
102      message_type=None, enum_type=None, containing_type=None,
103      is_extension=False, extension_scope=None,
104      serialized_options=None, file=DESCRIPTOR),
105  ],
106  extensions=[
107  ],
108  nested_types=[],
109  enum_types=[
110  ],
111  serialized_options=None,
112  is_extendable=False,
113  syntax='proto3',
114  extension_ranges=[],
115  oneofs=[
116  ],
117  serialized_start=332,
118  serialized_end=351,
119)
120
121_SPECIFICATION_ED25519 = _descriptor.Descriptor(
122  name='Ed25519',
123  full_name='keyspb.Specification.Ed25519',
124  filename=None,
125  file=DESCRIPTOR,
126  containing_type=None,
127  fields=[
128  ],
129  extensions=[
130  ],
131  nested_types=[],
132  enum_types=[
133  ],
134  serialized_options=None,
135  is_extendable=False,
136  syntax='proto3',
137  extension_ranges=[],
138  oneofs=[
139  ],
140  serialized_start=353,
141  serialized_end=362,
142)
143
144_SPECIFICATION = _descriptor.Descriptor(
145  name='Specification',
146  full_name='keyspb.Specification',
147  filename=None,
148  file=DESCRIPTOR,
149  containing_type=None,
150  fields=[
151    _descriptor.FieldDescriptor(
152      name='ecdsa_params', full_name='keyspb.Specification.ecdsa_params', index=0,
153      number=1, type=11, cpp_type=10, label=1,
154      has_default_value=False, default_value=None,
155      message_type=None, enum_type=None, containing_type=None,
156      is_extension=False, extension_scope=None,
157      serialized_options=None, file=DESCRIPTOR),
158    _descriptor.FieldDescriptor(
159      name='rsa_params', full_name='keyspb.Specification.rsa_params', index=1,
160      number=2, type=11, cpp_type=10, label=1,
161      has_default_value=False, default_value=None,
162      message_type=None, enum_type=None, containing_type=None,
163      is_extension=False, extension_scope=None,
164      serialized_options=None, file=DESCRIPTOR),
165    _descriptor.FieldDescriptor(
166      name='ed25519_params', full_name='keyspb.Specification.ed25519_params', index=2,
167      number=3, type=11, cpp_type=10, label=1,
168      has_default_value=False, default_value=None,
169      message_type=None, enum_type=None, containing_type=None,
170      is_extension=False, extension_scope=None,
171      serialized_options=None, file=DESCRIPTOR),
172  ],
173  extensions=[
174  ],
175  nested_types=[_SPECIFICATION_ECDSA, _SPECIFICATION_RSA, _SPECIFICATION_ED25519, ],
176  enum_types=[
177  ],
178  serialized_options=None,
179  is_extendable=False,
180  syntax='proto3',
181  extension_ranges=[],
182  oneofs=[
183    _descriptor.OneofDescriptor(
184      name='params', full_name='keyspb.Specification.params',
185      index=0, containing_type=None, fields=[]),
186  ],
187  serialized_start=39,
188  serialized_end=372,
189)
190
191
192_PEMKEYFILE = _descriptor.Descriptor(
193  name='PEMKeyFile',
194  full_name='keyspb.PEMKeyFile',
195  filename=None,
196  file=DESCRIPTOR,
197  containing_type=None,
198  fields=[
199    _descriptor.FieldDescriptor(
200      name='path', full_name='keyspb.PEMKeyFile.path', index=0,
201      number=1, type=9, cpp_type=9, label=1,
202      has_default_value=False, default_value=_b("").decode('utf-8'),
203      message_type=None, enum_type=None, containing_type=None,
204      is_extension=False, extension_scope=None,
205      serialized_options=None, file=DESCRIPTOR),
206    _descriptor.FieldDescriptor(
207      name='password', full_name='keyspb.PEMKeyFile.password', index=1,
208      number=2, type=9, cpp_type=9, label=1,
209      has_default_value=False, default_value=_b("").decode('utf-8'),
210      message_type=None, enum_type=None, containing_type=None,
211      is_extension=False, extension_scope=None,
212      serialized_options=None, file=DESCRIPTOR),
213  ],
214  extensions=[
215  ],
216  nested_types=[],
217  enum_types=[
218  ],
219  serialized_options=None,
220  is_extendable=False,
221  syntax='proto3',
222  extension_ranges=[],
223  oneofs=[
224  ],
225  serialized_start=374,
226  serialized_end=418,
227)
228
229
230_PRIVATEKEY = _descriptor.Descriptor(
231  name='PrivateKey',
232  full_name='keyspb.PrivateKey',
233  filename=None,
234  file=DESCRIPTOR,
235  containing_type=None,
236  fields=[
237    _descriptor.FieldDescriptor(
238      name='der', full_name='keyspb.PrivateKey.der', index=0,
239      number=1, type=12, cpp_type=9, label=1,
240      has_default_value=False, default_value=_b(""),
241      message_type=None, enum_type=None, containing_type=None,
242      is_extension=False, extension_scope=None,
243      serialized_options=None, file=DESCRIPTOR),
244  ],
245  extensions=[
246  ],
247  nested_types=[],
248  enum_types=[
249  ],
250  serialized_options=None,
251  is_extendable=False,
252  syntax='proto3',
253  extension_ranges=[],
254  oneofs=[
255  ],
256  serialized_start=420,
257  serialized_end=445,
258)
259
260
261_PUBLICKEY = _descriptor.Descriptor(
262  name='PublicKey',
263  full_name='keyspb.PublicKey',
264  filename=None,
265  file=DESCRIPTOR,
266  containing_type=None,
267  fields=[
268    _descriptor.FieldDescriptor(
269      name='der', full_name='keyspb.PublicKey.der', index=0,
270      number=1, type=12, cpp_type=9, label=1,
271      has_default_value=False, default_value=_b(""),
272      message_type=None, enum_type=None, containing_type=None,
273      is_extension=False, extension_scope=None,
274      serialized_options=None, file=DESCRIPTOR),
275  ],
276  extensions=[
277  ],
278  nested_types=[],
279  enum_types=[
280  ],
281  serialized_options=None,
282  is_extendable=False,
283  syntax='proto3',
284  extension_ranges=[],
285  oneofs=[
286  ],
287  serialized_start=447,
288  serialized_end=471,
289)
290
291
292_PKCS11CONFIG = _descriptor.Descriptor(
293  name='PKCS11Config',
294  full_name='keyspb.PKCS11Config',
295  filename=None,
296  file=DESCRIPTOR,
297  containing_type=None,
298  fields=[
299    _descriptor.FieldDescriptor(
300      name='token_label', full_name='keyspb.PKCS11Config.token_label', index=0,
301      number=1, type=9, cpp_type=9, label=1,
302      has_default_value=False, default_value=_b("").decode('utf-8'),
303      message_type=None, enum_type=None, containing_type=None,
304      is_extension=False, extension_scope=None,
305      serialized_options=None, file=DESCRIPTOR),
306    _descriptor.FieldDescriptor(
307      name='pin', full_name='keyspb.PKCS11Config.pin', index=1,
308      number=2, type=9, cpp_type=9, label=1,
309      has_default_value=False, default_value=_b("").decode('utf-8'),
310      message_type=None, enum_type=None, containing_type=None,
311      is_extension=False, extension_scope=None,
312      serialized_options=None, file=DESCRIPTOR),
313    _descriptor.FieldDescriptor(
314      name='public_key', full_name='keyspb.PKCS11Config.public_key', index=2,
315      number=3, type=9, cpp_type=9, label=1,
316      has_default_value=False, default_value=_b("").decode('utf-8'),
317      message_type=None, enum_type=None, containing_type=None,
318      is_extension=False, extension_scope=None,
319      serialized_options=None, file=DESCRIPTOR),
320  ],
321  extensions=[
322  ],
323  nested_types=[],
324  enum_types=[
325  ],
326  serialized_options=None,
327  is_extendable=False,
328  syntax='proto3',
329  extension_ranges=[],
330  oneofs=[
331  ],
332  serialized_start=473,
333  serialized_end=541,
334)
335
336_SPECIFICATION_ECDSA.fields_by_name['curve'].enum_type = _SPECIFICATION_ECDSA_CURVE
337_SPECIFICATION_ECDSA.containing_type = _SPECIFICATION
338_SPECIFICATION_ECDSA_CURVE.containing_type = _SPECIFICATION_ECDSA
339_SPECIFICATION_RSA.containing_type = _SPECIFICATION
340_SPECIFICATION_ED25519.containing_type = _SPECIFICATION
341_SPECIFICATION.fields_by_name['ecdsa_params'].message_type = _SPECIFICATION_ECDSA
342_SPECIFICATION.fields_by_name['rsa_params'].message_type = _SPECIFICATION_RSA
343_SPECIFICATION.fields_by_name['ed25519_params'].message_type = _SPECIFICATION_ED25519
344_SPECIFICATION.oneofs_by_name['params'].fields.append(
345  _SPECIFICATION.fields_by_name['ecdsa_params'])
346_SPECIFICATION.fields_by_name['ecdsa_params'].containing_oneof = _SPECIFICATION.oneofs_by_name['params']
347_SPECIFICATION.oneofs_by_name['params'].fields.append(
348  _SPECIFICATION.fields_by_name['rsa_params'])
349_SPECIFICATION.fields_by_name['rsa_params'].containing_oneof = _SPECIFICATION.oneofs_by_name['params']
350_SPECIFICATION.oneofs_by_name['params'].fields.append(
351  _SPECIFICATION.fields_by_name['ed25519_params'])
352_SPECIFICATION.fields_by_name['ed25519_params'].containing_oneof = _SPECIFICATION.oneofs_by_name['params']
353DESCRIPTOR.message_types_by_name['Specification'] = _SPECIFICATION
354DESCRIPTOR.message_types_by_name['PEMKeyFile'] = _PEMKEYFILE
355DESCRIPTOR.message_types_by_name['PrivateKey'] = _PRIVATEKEY
356DESCRIPTOR.message_types_by_name['PublicKey'] = _PUBLICKEY
357DESCRIPTOR.message_types_by_name['PKCS11Config'] = _PKCS11CONFIG
358_sym_db.RegisterFileDescriptor(DESCRIPTOR)
359
360Specification = _reflection.GeneratedProtocolMessageType('Specification', (_message.Message,), {
361
362  'ECDSA' : _reflection.GeneratedProtocolMessageType('ECDSA', (_message.Message,), {
363    'DESCRIPTOR' : _SPECIFICATION_ECDSA,
364    '__module__' : 'crypto.keyspb.keyspb_pb2'
365    # @@protoc_insertion_point(class_scope:keyspb.Specification.ECDSA)
366    })
367  ,
368
369  'RSA' : _reflection.GeneratedProtocolMessageType('RSA', (_message.Message,), {
370    'DESCRIPTOR' : _SPECIFICATION_RSA,
371    '__module__' : 'crypto.keyspb.keyspb_pb2'
372    # @@protoc_insertion_point(class_scope:keyspb.Specification.RSA)
373    })
374  ,
375
376  'Ed25519' : _reflection.GeneratedProtocolMessageType('Ed25519', (_message.Message,), {
377    'DESCRIPTOR' : _SPECIFICATION_ED25519,
378    '__module__' : 'crypto.keyspb.keyspb_pb2'
379    # @@protoc_insertion_point(class_scope:keyspb.Specification.Ed25519)
380    })
381  ,
382  'DESCRIPTOR' : _SPECIFICATION,
383  '__module__' : 'crypto.keyspb.keyspb_pb2'
384  # @@protoc_insertion_point(class_scope:keyspb.Specification)
385  })
386_sym_db.RegisterMessage(Specification)
387_sym_db.RegisterMessage(Specification.ECDSA)
388_sym_db.RegisterMessage(Specification.RSA)
389_sym_db.RegisterMessage(Specification.Ed25519)
390
391PEMKeyFile = _reflection.GeneratedProtocolMessageType('PEMKeyFile', (_message.Message,), {
392  'DESCRIPTOR' : _PEMKEYFILE,
393  '__module__' : 'crypto.keyspb.keyspb_pb2'
394  # @@protoc_insertion_point(class_scope:keyspb.PEMKeyFile)
395  })
396_sym_db.RegisterMessage(PEMKeyFile)
397
398PrivateKey = _reflection.GeneratedProtocolMessageType('PrivateKey', (_message.Message,), {
399  'DESCRIPTOR' : _PRIVATEKEY,
400  '__module__' : 'crypto.keyspb.keyspb_pb2'
401  # @@protoc_insertion_point(class_scope:keyspb.PrivateKey)
402  })
403_sym_db.RegisterMessage(PrivateKey)
404
405PublicKey = _reflection.GeneratedProtocolMessageType('PublicKey', (_message.Message,), {
406  'DESCRIPTOR' : _PUBLICKEY,
407  '__module__' : 'crypto.keyspb.keyspb_pb2'
408  # @@protoc_insertion_point(class_scope:keyspb.PublicKey)
409  })
410_sym_db.RegisterMessage(PublicKey)
411
412PKCS11Config = _reflection.GeneratedProtocolMessageType('PKCS11Config', (_message.Message,), {
413  'DESCRIPTOR' : _PKCS11CONFIG,
414  '__module__' : 'crypto.keyspb.keyspb_pb2'
415  # @@protoc_insertion_point(class_scope:keyspb.PKCS11Config)
416  })
417_sym_db.RegisterMessage(PKCS11Config)
418
419
420DESCRIPTOR._options = None
421# @@protoc_insertion_point(module_scope)
422