ZTWHHH commited on
Commit
fb4b178
·
verified ·
1 Parent(s): 7eb9c3c

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/__pycache__/rfc3058.cpython-310.pyc +0 -0
  2. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/__pycache__/rfc3281.cpython-310.pyc +0 -0
  3. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/__pycache__/rfc5649.cpython-310.pyc +0 -0
  4. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc3280.py +1543 -0
  5. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc3281.py +331 -0
  6. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc3370.py +146 -0
  7. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc4043.py +43 -0
  8. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc4985.py +49 -0
  9. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc5755.py +398 -0
  10. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc5924.py +19 -0
  11. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc6032.py +68 -0
  12. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc6955.py +108 -0
  13. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc7229.py +29 -0
  14. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc7585.py +50 -0
  15. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc7894.py +92 -0
  16. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc8017.py +153 -0
  17. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc8103.py +36 -0
  18. janus/share/zoneinfo/America/Anchorage +0 -0
  19. janus/share/zoneinfo/America/Antigua +0 -0
  20. janus/share/zoneinfo/America/Araguaina +0 -0
  21. janus/share/zoneinfo/America/Atka +0 -0
  22. janus/share/zoneinfo/America/Bahia +0 -0
  23. janus/share/zoneinfo/America/Bahia_Banderas +0 -0
  24. janus/share/zoneinfo/America/Belize +0 -0
  25. janus/share/zoneinfo/America/Bogota +0 -0
  26. janus/share/zoneinfo/America/Boise +0 -0
  27. janus/share/zoneinfo/America/Cayenne +0 -0
  28. janus/share/zoneinfo/America/Cayman +0 -0
  29. janus/share/zoneinfo/America/Chicago +0 -0
  30. janus/share/zoneinfo/America/Ciudad_Juarez +0 -0
  31. janus/share/zoneinfo/America/Cordoba +0 -0
  32. janus/share/zoneinfo/America/Danmarkshavn +0 -0
  33. janus/share/zoneinfo/America/Denver +0 -0
  34. janus/share/zoneinfo/America/Dominica +0 -0
  35. janus/share/zoneinfo/America/Ensenada +0 -0
  36. janus/share/zoneinfo/America/Fort_Nelson +0 -0
  37. janus/share/zoneinfo/America/Fort_Wayne +0 -0
  38. janus/share/zoneinfo/America/Fortaleza +0 -0
  39. janus/share/zoneinfo/America/Godthab +0 -0
  40. janus/share/zoneinfo/America/Goose_Bay +0 -0
  41. janus/share/zoneinfo/America/Grand_Turk +0 -0
  42. janus/share/zoneinfo/America/Guadeloupe +0 -0
  43. janus/share/zoneinfo/America/Inuvik +0 -0
  44. janus/share/zoneinfo/America/Iqaluit +0 -0
  45. janus/share/zoneinfo/America/Jujuy +0 -0
  46. janus/share/zoneinfo/America/Knox_IN +0 -0
  47. janus/share/zoneinfo/America/Managua +0 -0
  48. janus/share/zoneinfo/America/Marigot +0 -0
  49. janus/share/zoneinfo/America/Martinique +0 -0
  50. janus/share/zoneinfo/America/Matamoros +0 -0
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/__pycache__/rfc3058.cpython-310.pyc ADDED
Binary file (802 Bytes). View file
 
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/__pycache__/rfc3281.cpython-310.pyc ADDED
Binary file (7.03 kB). View file
 
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/__pycache__/rfc5649.cpython-310.pyc ADDED
Binary file (779 Bytes). View file
 
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc3280.py ADDED
@@ -0,0 +1,1543 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+ #
3
+ # This file is part of pyasn1-modules software.
4
+ #
5
+ # Created by Stanisław Pitucha with asn1ate tool.
6
+ # Copyright (c) 2005-2020, Ilya Etingof <etingof@gmail.com>
7
+ # License: http://snmplabs.com/pyasn1/license.html
8
+ #
9
+ # Internet X.509 Public Key Infrastructure Certificate and Certificate
10
+ # Revocation List (CRL) Profile
11
+ #
12
+ # ASN.1 source from:
13
+ # http://www.ietf.org/rfc/rfc3280.txt
14
+ #
15
+ from pyasn1.type import char
16
+ from pyasn1.type import constraint
17
+ from pyasn1.type import namedtype
18
+ from pyasn1.type import namedval
19
+ from pyasn1.type import tag
20
+ from pyasn1.type import univ
21
+ from pyasn1.type import useful
22
+
23
+ MAX = float('inf')
24
+
25
+
26
+ def _OID(*components):
27
+ output = []
28
+ for x in tuple(components):
29
+ if isinstance(x, univ.ObjectIdentifier):
30
+ output.extend(list(x))
31
+ else:
32
+ output.append(int(x))
33
+
34
+ return univ.ObjectIdentifier(output)
35
+
36
+
37
+ unformatted_postal_address = univ.Integer(16)
38
+
39
+ ub_organizational_units = univ.Integer(4)
40
+
41
+ ub_organizational_unit_name_length = univ.Integer(32)
42
+
43
+
44
+ class OrganizationalUnitName(char.PrintableString):
45
+ pass
46
+
47
+
48
+ OrganizationalUnitName.subtypeSpec = constraint.ValueSizeConstraint(1, ub_organizational_unit_name_length)
49
+
50
+
51
+ class OrganizationalUnitNames(univ.SequenceOf):
52
+ pass
53
+
54
+
55
+ OrganizationalUnitNames.componentType = OrganizationalUnitName()
56
+ OrganizationalUnitNames.sizeSpec = constraint.ValueSizeConstraint(1, ub_organizational_units)
57
+
58
+
59
+ class AttributeType(univ.ObjectIdentifier):
60
+ pass
61
+
62
+
63
+ id_at = _OID(2, 5, 4)
64
+
65
+ id_at_name = _OID(id_at, 41)
66
+
67
+ ub_pds_parameter_length = univ.Integer(30)
68
+
69
+
70
+ class PDSParameter(univ.Set):
71
+ pass
72
+
73
+
74
+ PDSParameter.componentType = namedtype.NamedTypes(
75
+ namedtype.OptionalNamedType('printable-string', char.PrintableString().subtype(
76
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_pds_parameter_length))),
77
+ namedtype.OptionalNamedType('teletex-string', char.TeletexString().subtype(
78
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_pds_parameter_length)))
79
+ )
80
+
81
+
82
+ class PhysicalDeliveryOrganizationName(PDSParameter):
83
+ pass
84
+
85
+
86
+ ub_organization_name_length = univ.Integer(64)
87
+
88
+ ub_domain_defined_attribute_type_length = univ.Integer(8)
89
+
90
+ ub_domain_defined_attribute_value_length = univ.Integer(128)
91
+
92
+
93
+ class TeletexDomainDefinedAttribute(univ.Sequence):
94
+ pass
95
+
96
+
97
+ TeletexDomainDefinedAttribute.componentType = namedtype.NamedTypes(
98
+ namedtype.NamedType('type', char.TeletexString().subtype(
99
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_domain_defined_attribute_type_length))),
100
+ namedtype.NamedType('value', char.TeletexString().subtype(
101
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_domain_defined_attribute_value_length)))
102
+ )
103
+
104
+ id_pkix = _OID(1, 3, 6, 1, 5, 5, 7)
105
+
106
+ id_qt = _OID(id_pkix, 2)
107
+
108
+
109
+ class PresentationAddress(univ.Sequence):
110
+ pass
111
+
112
+
113
+ PresentationAddress.componentType = namedtype.NamedTypes(
114
+ namedtype.OptionalNamedType('pSelector', univ.OctetString().subtype(
115
+ explicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
116
+ namedtype.OptionalNamedType('sSelector', univ.OctetString().subtype(
117
+ explicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1))),
118
+ namedtype.OptionalNamedType('tSelector', univ.OctetString().subtype(
119
+ explicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 2))),
120
+ namedtype.NamedType('nAddresses', univ.SetOf(componentType=univ.OctetString()).subtype(
121
+ explicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 3)))
122
+ )
123
+
124
+
125
+ class AlgorithmIdentifier(univ.Sequence):
126
+ pass
127
+
128
+
129
+ AlgorithmIdentifier.componentType = namedtype.NamedTypes(
130
+ namedtype.NamedType('algorithm', univ.ObjectIdentifier()),
131
+ namedtype.OptionalNamedType('parameters', univ.Any())
132
+ )
133
+
134
+
135
+ class UniqueIdentifier(univ.BitString):
136
+ pass
137
+
138
+
139
+ class Extension(univ.Sequence):
140
+ pass
141
+
142
+
143
+ Extension.componentType = namedtype.NamedTypes(
144
+ namedtype.NamedType('extnID', univ.ObjectIdentifier()),
145
+ namedtype.DefaultedNamedType('critical', univ.Boolean().subtype(value=0)),
146
+ namedtype.NamedType('extnValue', univ.OctetString())
147
+ )
148
+
149
+
150
+ class Extensions(univ.SequenceOf):
151
+ pass
152
+
153
+
154
+ Extensions.componentType = Extension()
155
+ Extensions.sizeSpec = constraint.ValueSizeConstraint(1, MAX)
156
+
157
+
158
+ class CertificateSerialNumber(univ.Integer):
159
+ pass
160
+
161
+
162
+ class SubjectPublicKeyInfo(univ.Sequence):
163
+ pass
164
+
165
+
166
+ SubjectPublicKeyInfo.componentType = namedtype.NamedTypes(
167
+ namedtype.NamedType('algorithm', AlgorithmIdentifier()),
168
+ namedtype.NamedType('subjectPublicKey', univ.BitString())
169
+ )
170
+
171
+
172
+ class Time(univ.Choice):
173
+ pass
174
+
175
+
176
+ Time.componentType = namedtype.NamedTypes(
177
+ namedtype.NamedType('utcTime', useful.UTCTime()),
178
+ namedtype.NamedType('generalTime', useful.GeneralizedTime())
179
+ )
180
+
181
+
182
+ class Validity(univ.Sequence):
183
+ pass
184
+
185
+
186
+ Validity.componentType = namedtype.NamedTypes(
187
+ namedtype.NamedType('notBefore', Time()),
188
+ namedtype.NamedType('notAfter', Time())
189
+ )
190
+
191
+
192
+ class Version(univ.Integer):
193
+ pass
194
+
195
+
196
+ Version.namedValues = namedval.NamedValues(
197
+ ('v1', 0),
198
+ ('v2', 1),
199
+ ('v3', 2)
200
+ )
201
+
202
+
203
+ class AttributeValue(univ.Any):
204
+ pass
205
+
206
+
207
+ class AttributeTypeAndValue(univ.Sequence):
208
+ pass
209
+
210
+
211
+ AttributeTypeAndValue.componentType = namedtype.NamedTypes(
212
+ namedtype.NamedType('type', AttributeType()),
213
+ namedtype.NamedType('value', AttributeValue())
214
+ )
215
+
216
+
217
+ class RelativeDistinguishedName(univ.SetOf):
218
+ pass
219
+
220
+
221
+ RelativeDistinguishedName.componentType = AttributeTypeAndValue()
222
+ RelativeDistinguishedName.sizeSpec = constraint.ValueSizeConstraint(1, MAX)
223
+
224
+
225
+ class RDNSequence(univ.SequenceOf):
226
+ pass
227
+
228
+
229
+ RDNSequence.componentType = RelativeDistinguishedName()
230
+
231
+
232
+ class Name(univ.Choice):
233
+ pass
234
+
235
+
236
+ Name.componentType = namedtype.NamedTypes(
237
+ namedtype.NamedType('rdnSequence', RDNSequence())
238
+ )
239
+
240
+
241
+ class TBSCertificate(univ.Sequence):
242
+ pass
243
+
244
+
245
+ TBSCertificate.componentType = namedtype.NamedTypes(
246
+ namedtype.DefaultedNamedType('version',
247
+ Version().subtype(explicitTag=tag.Tag(tag.tagClassContext,
248
+ tag.tagFormatSimple, 0)).subtype(value="v1")),
249
+ namedtype.NamedType('serialNumber', CertificateSerialNumber()),
250
+ namedtype.NamedType('signature', AlgorithmIdentifier()),
251
+ namedtype.NamedType('issuer', Name()),
252
+ namedtype.NamedType('validity', Validity()),
253
+ namedtype.NamedType('subject', Name()),
254
+ namedtype.NamedType('subjectPublicKeyInfo', SubjectPublicKeyInfo()),
255
+ namedtype.OptionalNamedType('issuerUniqueID', UniqueIdentifier().subtype(
256
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1))),
257
+ namedtype.OptionalNamedType('subjectUniqueID', UniqueIdentifier().subtype(
258
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 2))),
259
+ namedtype.OptionalNamedType('extensions',
260
+ Extensions().subtype(explicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 3)))
261
+ )
262
+
263
+
264
+ class Certificate(univ.Sequence):
265
+ pass
266
+
267
+
268
+ Certificate.componentType = namedtype.NamedTypes(
269
+ namedtype.NamedType('tbsCertificate', TBSCertificate()),
270
+ namedtype.NamedType('signatureAlgorithm', AlgorithmIdentifier()),
271
+ namedtype.NamedType('signature', univ.BitString())
272
+ )
273
+
274
+ ub_surname_length = univ.Integer(40)
275
+
276
+
277
+ class TeletexOrganizationName(char.TeletexString):
278
+ pass
279
+
280
+
281
+ TeletexOrganizationName.subtypeSpec = constraint.ValueSizeConstraint(1, ub_organization_name_length)
282
+
283
+ ub_e163_4_sub_address_length = univ.Integer(40)
284
+
285
+ teletex_common_name = univ.Integer(2)
286
+
287
+ ub_country_name_alpha_length = univ.Integer(2)
288
+
289
+ ub_country_name_numeric_length = univ.Integer(3)
290
+
291
+
292
+ class CountryName(univ.Choice):
293
+ pass
294
+
295
+
296
+ CountryName.tagSet = univ.Choice.tagSet.tagExplicitly(tag.Tag(tag.tagClassApplication, tag.tagFormatConstructed, 1))
297
+ CountryName.componentType = namedtype.NamedTypes(
298
+ namedtype.NamedType('x121-dcc-code', char.NumericString().subtype(
299
+ subtypeSpec=constraint.ValueSizeConstraint(ub_country_name_numeric_length, ub_country_name_numeric_length))),
300
+ namedtype.NamedType('iso-3166-alpha2-code', char.PrintableString().subtype(
301
+ subtypeSpec=constraint.ValueSizeConstraint(ub_country_name_alpha_length, ub_country_name_alpha_length)))
302
+ )
303
+
304
+ extension_OR_address_components = univ.Integer(12)
305
+
306
+ id_at_dnQualifier = _OID(id_at, 46)
307
+
308
+ ub_e163_4_number_length = univ.Integer(15)
309
+
310
+
311
+ class ExtendedNetworkAddress(univ.Choice):
312
+ pass
313
+
314
+
315
+ ExtendedNetworkAddress.componentType = namedtype.NamedTypes(
316
+ namedtype.NamedType('e163-4-address', univ.Sequence(componentType=namedtype.NamedTypes(
317
+ namedtype.NamedType('number', char.NumericString().subtype(
318
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_e163_4_number_length)).subtype(
319
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
320
+ namedtype.OptionalNamedType('sub-address', char.NumericString().subtype(
321
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_e163_4_sub_address_length)).subtype(
322
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1)))
323
+ ))
324
+ ),
325
+ namedtype.NamedType('psap-address', PresentationAddress().subtype(
326
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatConstructed, 0)))
327
+ )
328
+
329
+ terminal_type = univ.Integer(23)
330
+
331
+ id_domainComponent = _OID(0, 9, 2342, 19200300, 100, 1, 25)
332
+
333
+ ub_state_name = univ.Integer(128)
334
+
335
+
336
+ class X520StateOrProvinceName(univ.Choice):
337
+ pass
338
+
339
+
340
+ X520StateOrProvinceName.componentType = namedtype.NamedTypes(
341
+ namedtype.NamedType('teletexString',
342
+ char.TeletexString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_state_name))),
343
+ namedtype.NamedType('printableString',
344
+ char.PrintableString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_state_name))),
345
+ namedtype.NamedType('universalString',
346
+ char.UniversalString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_state_name))),
347
+ namedtype.NamedType('utf8String',
348
+ char.UTF8String().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_state_name))),
349
+ namedtype.NamedType('bmpString',
350
+ char.BMPString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_state_name)))
351
+ )
352
+
353
+ ub_organization_name = univ.Integer(64)
354
+
355
+
356
+ class X520OrganizationName(univ.Choice):
357
+ pass
358
+
359
+
360
+ X520OrganizationName.componentType = namedtype.NamedTypes(
361
+ namedtype.NamedType('teletexString', char.TeletexString().subtype(
362
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_organization_name))),
363
+ namedtype.NamedType('printableString', char.PrintableString().subtype(
364
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_organization_name))),
365
+ namedtype.NamedType('universalString', char.UniversalString().subtype(
366
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_organization_name))),
367
+ namedtype.NamedType('utf8String',
368
+ char.UTF8String().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_organization_name))),
369
+ namedtype.NamedType('bmpString',
370
+ char.BMPString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_organization_name)))
371
+ )
372
+
373
+ ub_emailaddress_length = univ.Integer(128)
374
+
375
+
376
+ class ExtensionPhysicalDeliveryAddressComponents(PDSParameter):
377
+ pass
378
+
379
+
380
+ id_at_surname = _OID(id_at, 4)
381
+
382
+ ub_common_name_length = univ.Integer(64)
383
+
384
+ id_ad = _OID(id_pkix, 48)
385
+
386
+ ub_numeric_user_id_length = univ.Integer(32)
387
+
388
+
389
+ class NumericUserIdentifier(char.NumericString):
390
+ pass
391
+
392
+
393
+ NumericUserIdentifier.subtypeSpec = constraint.ValueSizeConstraint(1, ub_numeric_user_id_length)
394
+
395
+
396
+ class OrganizationName(char.PrintableString):
397
+ pass
398
+
399
+
400
+ OrganizationName.subtypeSpec = constraint.ValueSizeConstraint(1, ub_organization_name_length)
401
+
402
+ ub_domain_name_length = univ.Integer(16)
403
+
404
+
405
+ class AdministrationDomainName(univ.Choice):
406
+ pass
407
+
408
+
409
+ AdministrationDomainName.tagSet = univ.Choice.tagSet.tagExplicitly(
410
+ tag.Tag(tag.tagClassApplication, tag.tagFormatConstructed, 2))
411
+ AdministrationDomainName.componentType = namedtype.NamedTypes(
412
+ namedtype.NamedType('numeric', char.NumericString().subtype(
413
+ subtypeSpec=constraint.ValueSizeConstraint(0, ub_domain_name_length))),
414
+ namedtype.NamedType('printable', char.PrintableString().subtype(
415
+ subtypeSpec=constraint.ValueSizeConstraint(0, ub_domain_name_length)))
416
+ )
417
+
418
+
419
+ class PrivateDomainName(univ.Choice):
420
+ pass
421
+
422
+
423
+ PrivateDomainName.componentType = namedtype.NamedTypes(
424
+ namedtype.NamedType('numeric', char.NumericString().subtype(
425
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_domain_name_length))),
426
+ namedtype.NamedType('printable', char.PrintableString().subtype(
427
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_domain_name_length)))
428
+ )
429
+
430
+ ub_generation_qualifier_length = univ.Integer(3)
431
+
432
+ ub_given_name_length = univ.Integer(16)
433
+
434
+ ub_initials_length = univ.Integer(5)
435
+
436
+
437
+ class PersonalName(univ.Set):
438
+ pass
439
+
440
+
441
+ PersonalName.componentType = namedtype.NamedTypes(
442
+ namedtype.NamedType('surname', char.PrintableString().subtype(
443
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_surname_length)).subtype(
444
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
445
+ namedtype.OptionalNamedType('given-name', char.PrintableString().subtype(
446
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_given_name_length)).subtype(
447
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1))),
448
+ namedtype.OptionalNamedType('initials', char.PrintableString().subtype(
449
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_initials_length)).subtype(
450
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 2))),
451
+ namedtype.OptionalNamedType('generation-qualifier', char.PrintableString().subtype(
452
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_generation_qualifier_length)).subtype(
453
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 3)))
454
+ )
455
+
456
+ ub_terminal_id_length = univ.Integer(24)
457
+
458
+
459
+ class TerminalIdentifier(char.PrintableString):
460
+ pass
461
+
462
+
463
+ TerminalIdentifier.subtypeSpec = constraint.ValueSizeConstraint(1, ub_terminal_id_length)
464
+
465
+ ub_x121_address_length = univ.Integer(16)
466
+
467
+
468
+ class X121Address(char.NumericString):
469
+ pass
470
+
471
+
472
+ X121Address.subtypeSpec = constraint.ValueSizeConstraint(1, ub_x121_address_length)
473
+
474
+
475
+ class NetworkAddress(X121Address):
476
+ pass
477
+
478
+
479
+ class BuiltInStandardAttributes(univ.Sequence):
480
+ pass
481
+
482
+
483
+ BuiltInStandardAttributes.componentType = namedtype.NamedTypes(
484
+ namedtype.OptionalNamedType('country-name', CountryName()),
485
+ namedtype.OptionalNamedType('administration-domain-name', AdministrationDomainName()),
486
+ namedtype.OptionalNamedType('network-address', NetworkAddress().subtype(
487
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
488
+ namedtype.OptionalNamedType('terminal-identifier', TerminalIdentifier().subtype(
489
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1))),
490
+ namedtype.OptionalNamedType('private-domain-name', PrivateDomainName().subtype(
491
+ explicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatConstructed, 2))),
492
+ namedtype.OptionalNamedType('organization-name', OrganizationName().subtype(
493
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 3))),
494
+ namedtype.OptionalNamedType('numeric-user-identifier', NumericUserIdentifier().subtype(
495
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 4))),
496
+ namedtype.OptionalNamedType('personal-name', PersonalName().subtype(
497
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatConstructed, 5))),
498
+ namedtype.OptionalNamedType('organizational-unit-names', OrganizationalUnitNames().subtype(
499
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 6)))
500
+ )
501
+
502
+ ub_domain_defined_attributes = univ.Integer(4)
503
+
504
+
505
+ class BuiltInDomainDefinedAttribute(univ.Sequence):
506
+ pass
507
+
508
+
509
+ BuiltInDomainDefinedAttribute.componentType = namedtype.NamedTypes(
510
+ namedtype.NamedType('type', char.PrintableString().subtype(
511
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_domain_defined_attribute_type_length))),
512
+ namedtype.NamedType('value', char.PrintableString().subtype(
513
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_domain_defined_attribute_value_length)))
514
+ )
515
+
516
+
517
+ class BuiltInDomainDefinedAttributes(univ.SequenceOf):
518
+ pass
519
+
520
+
521
+ BuiltInDomainDefinedAttributes.componentType = BuiltInDomainDefinedAttribute()
522
+ BuiltInDomainDefinedAttributes.sizeSpec = constraint.ValueSizeConstraint(1, ub_domain_defined_attributes)
523
+
524
+ ub_extension_attributes = univ.Integer(256)
525
+
526
+
527
+ class ExtensionAttribute(univ.Sequence):
528
+ pass
529
+
530
+
531
+ ExtensionAttribute.componentType = namedtype.NamedTypes(
532
+ namedtype.NamedType('extension-attribute-type', univ.Integer().subtype(
533
+ subtypeSpec=constraint.ValueRangeConstraint(0, ub_extension_attributes)).subtype(
534
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
535
+ namedtype.NamedType('extension-attribute-value',
536
+ univ.Any().subtype(explicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1)))
537
+ )
538
+
539
+
540
+ class ExtensionAttributes(univ.SetOf):
541
+ pass
542
+
543
+
544
+ ExtensionAttributes.componentType = ExtensionAttribute()
545
+ ExtensionAttributes.sizeSpec = constraint.ValueSizeConstraint(1, ub_extension_attributes)
546
+
547
+
548
+ class ORAddress(univ.Sequence):
549
+ pass
550
+
551
+
552
+ ORAddress.componentType = namedtype.NamedTypes(
553
+ namedtype.NamedType('built-in-standard-attributes', BuiltInStandardAttributes()),
554
+ namedtype.OptionalNamedType('built-in-domain-defined-attributes', BuiltInDomainDefinedAttributes()),
555
+ namedtype.OptionalNamedType('extension-attributes', ExtensionAttributes())
556
+ )
557
+
558
+ id_pe = _OID(id_pkix, 1)
559
+
560
+ ub_title = univ.Integer(64)
561
+
562
+
563
+ class X520Title(univ.Choice):
564
+ pass
565
+
566
+
567
+ X520Title.componentType = namedtype.NamedTypes(
568
+ namedtype.NamedType('teletexString',
569
+ char.TeletexString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_title))),
570
+ namedtype.NamedType('printableString',
571
+ char.PrintableString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_title))),
572
+ namedtype.NamedType('universalString',
573
+ char.UniversalString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_title))),
574
+ namedtype.NamedType('utf8String',
575
+ char.UTF8String().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_title))),
576
+ namedtype.NamedType('bmpString', char.BMPString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_title)))
577
+ )
578
+
579
+ id_at_organizationalUnitName = _OID(id_at, 11)
580
+
581
+
582
+ class EmailAddress(char.IA5String):
583
+ pass
584
+
585
+
586
+ EmailAddress.subtypeSpec = constraint.ValueSizeConstraint(1, ub_emailaddress_length)
587
+
588
+ physical_delivery_country_name = univ.Integer(8)
589
+
590
+ id_at_givenName = _OID(id_at, 42)
591
+
592
+
593
+ class TeletexCommonName(char.TeletexString):
594
+ pass
595
+
596
+
597
+ TeletexCommonName.subtypeSpec = constraint.ValueSizeConstraint(1, ub_common_name_length)
598
+
599
+ id_qt_cps = _OID(id_qt, 1)
600
+
601
+
602
+ class LocalPostalAttributes(PDSParameter):
603
+ pass
604
+
605
+
606
+ class StreetAddress(PDSParameter):
607
+ pass
608
+
609
+
610
+ id_kp = _OID(id_pkix, 3)
611
+
612
+
613
+ class DirectoryString(univ.Choice):
614
+ pass
615
+
616
+
617
+ DirectoryString.componentType = namedtype.NamedTypes(
618
+ namedtype.NamedType('teletexString',
619
+ char.TeletexString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, MAX))),
620
+ namedtype.NamedType('printableString',
621
+ char.PrintableString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, MAX))),
622
+ namedtype.NamedType('universalString',
623
+ char.UniversalString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, MAX))),
624
+ namedtype.NamedType('utf8String', char.UTF8String().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, MAX))),
625
+ namedtype.NamedType('bmpString', char.BMPString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, MAX)))
626
+ )
627
+
628
+
629
+ class DomainComponent(char.IA5String):
630
+ pass
631
+
632
+
633
+ id_at_initials = _OID(id_at, 43)
634
+
635
+ id_qt_unotice = _OID(id_qt, 2)
636
+
637
+ ub_pds_name_length = univ.Integer(16)
638
+
639
+
640
+ class PDSName(char.PrintableString):
641
+ pass
642
+
643
+
644
+ PDSName.subtypeSpec = constraint.ValueSizeConstraint(1, ub_pds_name_length)
645
+
646
+
647
+ class PosteRestanteAddress(PDSParameter):
648
+ pass
649
+
650
+
651
+ class DistinguishedName(RDNSequence):
652
+ pass
653
+
654
+
655
+ class CommonName(char.PrintableString):
656
+ pass
657
+
658
+
659
+ CommonName.subtypeSpec = constraint.ValueSizeConstraint(1, ub_common_name_length)
660
+
661
+ ub_serial_number = univ.Integer(64)
662
+
663
+
664
+ class X520SerialNumber(char.PrintableString):
665
+ pass
666
+
667
+
668
+ X520SerialNumber.subtypeSpec = constraint.ValueSizeConstraint(1, ub_serial_number)
669
+
670
+ id_at_generationQualifier = _OID(id_at, 44)
671
+
672
+ ub_organizational_unit_name = univ.Integer(64)
673
+
674
+ id_ad_ocsp = _OID(id_ad, 1)
675
+
676
+
677
+ class TeletexOrganizationalUnitName(char.TeletexString):
678
+ pass
679
+
680
+
681
+ TeletexOrganizationalUnitName.subtypeSpec = constraint.ValueSizeConstraint(1, ub_organizational_unit_name_length)
682
+
683
+
684
+ class TeletexPersonalName(univ.Set):
685
+ pass
686
+
687
+
688
+ TeletexPersonalName.componentType = namedtype.NamedTypes(
689
+ namedtype.NamedType('surname', char.TeletexString().subtype(
690
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_surname_length)).subtype(
691
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
692
+ namedtype.OptionalNamedType('given-name', char.TeletexString().subtype(
693
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_given_name_length)).subtype(
694
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1))),
695
+ namedtype.OptionalNamedType('initials', char.TeletexString().subtype(
696
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_initials_length)).subtype(
697
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 2))),
698
+ namedtype.OptionalNamedType('generation-qualifier', char.TeletexString().subtype(
699
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_generation_qualifier_length)).subtype(
700
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 3)))
701
+ )
702
+
703
+
704
+ class TeletexDomainDefinedAttributes(univ.SequenceOf):
705
+ pass
706
+
707
+
708
+ TeletexDomainDefinedAttributes.componentType = TeletexDomainDefinedAttribute()
709
+ TeletexDomainDefinedAttributes.sizeSpec = constraint.ValueSizeConstraint(1, ub_domain_defined_attributes)
710
+
711
+
712
+ class TBSCertList(univ.Sequence):
713
+ pass
714
+
715
+
716
+ TBSCertList.componentType = namedtype.NamedTypes(
717
+ namedtype.OptionalNamedType('version', Version()),
718
+ namedtype.NamedType('signature', AlgorithmIdentifier()),
719
+ namedtype.NamedType('issuer', Name()),
720
+ namedtype.NamedType('thisUpdate', Time()),
721
+ namedtype.OptionalNamedType('nextUpdate', Time()),
722
+ namedtype.OptionalNamedType('revokedCertificates',
723
+ univ.SequenceOf(componentType=univ.Sequence(componentType=namedtype.NamedTypes(
724
+ namedtype.NamedType('userCertificate', CertificateSerialNumber()),
725
+ namedtype.NamedType('revocationDate', Time()),
726
+ namedtype.OptionalNamedType('crlEntryExtensions', Extensions())
727
+ ))
728
+ )),
729
+ namedtype.OptionalNamedType('crlExtensions',
730
+ Extensions().subtype(explicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0)))
731
+ )
732
+
733
+ local_postal_attributes = univ.Integer(21)
734
+
735
+ pkcs_9 = _OID(1, 2, 840, 113549, 1, 9)
736
+
737
+
738
+ class PhysicalDeliveryCountryName(univ.Choice):
739
+ pass
740
+
741
+
742
+ PhysicalDeliveryCountryName.componentType = namedtype.NamedTypes(
743
+ namedtype.NamedType('x121-dcc-code', char.NumericString().subtype(
744
+ subtypeSpec=constraint.ValueSizeConstraint(ub_country_name_numeric_length, ub_country_name_numeric_length))),
745
+ namedtype.NamedType('iso-3166-alpha2-code', char.PrintableString().subtype(
746
+ subtypeSpec=constraint.ValueSizeConstraint(ub_country_name_alpha_length, ub_country_name_alpha_length)))
747
+ )
748
+
749
+ ub_name = univ.Integer(32768)
750
+
751
+
752
+ class X520name(univ.Choice):
753
+ pass
754
+
755
+
756
+ X520name.componentType = namedtype.NamedTypes(
757
+ namedtype.NamedType('teletexString',
758
+ char.TeletexString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_name))),
759
+ namedtype.NamedType('printableString',
760
+ char.PrintableString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_name))),
761
+ namedtype.NamedType('universalString',
762
+ char.UniversalString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_name))),
763
+ namedtype.NamedType('utf8String',
764
+ char.UTF8String().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_name))),
765
+ namedtype.NamedType('bmpString', char.BMPString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_name)))
766
+ )
767
+
768
+ id_emailAddress = _OID(pkcs_9, 1)
769
+
770
+
771
+ class TerminalType(univ.Integer):
772
+ pass
773
+
774
+
775
+ TerminalType.namedValues = namedval.NamedValues(
776
+ ('telex', 3),
777
+ ('teletex', 4),
778
+ ('g3-facsimile', 5),
779
+ ('g4-facsimile', 6),
780
+ ('ia5-terminal', 7),
781
+ ('videotex', 8)
782
+ )
783
+
784
+
785
+ class X520OrganizationalUnitName(univ.Choice):
786
+ pass
787
+
788
+
789
+ X520OrganizationalUnitName.componentType = namedtype.NamedTypes(
790
+ namedtype.NamedType('teletexString', char.TeletexString().subtype(
791
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_organizational_unit_name))),
792
+ namedtype.NamedType('printableString', char.PrintableString().subtype(
793
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_organizational_unit_name))),
794
+ namedtype.NamedType('universalString', char.UniversalString().subtype(
795
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_organizational_unit_name))),
796
+ namedtype.NamedType('utf8String', char.UTF8String().subtype(
797
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_organizational_unit_name))),
798
+ namedtype.NamedType('bmpString', char.BMPString().subtype(
799
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_organizational_unit_name)))
800
+ )
801
+
802
+ id_at_commonName = _OID(id_at, 3)
803
+
804
+ pds_name = univ.Integer(7)
805
+
806
+ post_office_box_address = univ.Integer(18)
807
+
808
+ ub_locality_name = univ.Integer(128)
809
+
810
+
811
+ class X520LocalityName(univ.Choice):
812
+ pass
813
+
814
+
815
+ X520LocalityName.componentType = namedtype.NamedTypes(
816
+ namedtype.NamedType('teletexString',
817
+ char.TeletexString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_locality_name))),
818
+ namedtype.NamedType('printableString', char.PrintableString().subtype(
819
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_locality_name))),
820
+ namedtype.NamedType('universalString', char.UniversalString().subtype(
821
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_locality_name))),
822
+ namedtype.NamedType('utf8String',
823
+ char.UTF8String().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_locality_name))),
824
+ namedtype.NamedType('bmpString',
825
+ char.BMPString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_locality_name)))
826
+ )
827
+
828
+ id_ad_timeStamping = _OID(id_ad, 3)
829
+
830
+ id_at_countryName = _OID(id_at, 6)
831
+
832
+ physical_delivery_personal_name = univ.Integer(13)
833
+
834
+ teletex_personal_name = univ.Integer(4)
835
+
836
+ teletex_organizational_unit_names = univ.Integer(5)
837
+
838
+
839
+ class PhysicalDeliveryPersonalName(PDSParameter):
840
+ pass
841
+
842
+
843
+ ub_postal_code_length = univ.Integer(16)
844
+
845
+
846
+ class PostalCode(univ.Choice):
847
+ pass
848
+
849
+
850
+ PostalCode.componentType = namedtype.NamedTypes(
851
+ namedtype.NamedType('numeric-code', char.NumericString().subtype(
852
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_postal_code_length))),
853
+ namedtype.NamedType('printable-code', char.PrintableString().subtype(
854
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_postal_code_length)))
855
+ )
856
+
857
+
858
+ class X520countryName(char.PrintableString):
859
+ pass
860
+
861
+
862
+ X520countryName.subtypeSpec = constraint.ValueSizeConstraint(2, 2)
863
+
864
+ postal_code = univ.Integer(9)
865
+
866
+ id_ad_caRepository = _OID(id_ad, 5)
867
+
868
+ extension_physical_delivery_address_components = univ.Integer(15)
869
+
870
+
871
+ class PostOfficeBoxAddress(PDSParameter):
872
+ pass
873
+
874
+
875
+ class PhysicalDeliveryOfficeName(PDSParameter):
876
+ pass
877
+
878
+
879
+ id_at_title = _OID(id_at, 12)
880
+
881
+ id_at_serialNumber = _OID(id_at, 5)
882
+
883
+ id_ad_caIssuers = _OID(id_ad, 2)
884
+
885
+ ub_integer_options = univ.Integer(256)
886
+
887
+
888
+ class CertificateList(univ.Sequence):
889
+ pass
890
+
891
+
892
+ CertificateList.componentType = namedtype.NamedTypes(
893
+ namedtype.NamedType('tbsCertList', TBSCertList()),
894
+ namedtype.NamedType('signatureAlgorithm', AlgorithmIdentifier()),
895
+ namedtype.NamedType('signature', univ.BitString())
896
+ )
897
+
898
+
899
+ class PhysicalDeliveryOfficeNumber(PDSParameter):
900
+ pass
901
+
902
+
903
+ class TeletexOrganizationalUnitNames(univ.SequenceOf):
904
+ pass
905
+
906
+
907
+ TeletexOrganizationalUnitNames.componentType = TeletexOrganizationalUnitName()
908
+ TeletexOrganizationalUnitNames.sizeSpec = constraint.ValueSizeConstraint(1, ub_organizational_units)
909
+
910
+ physical_delivery_office_name = univ.Integer(10)
911
+
912
+ ub_common_name = univ.Integer(64)
913
+
914
+
915
+ class ExtensionORAddressComponents(PDSParameter):
916
+ pass
917
+
918
+
919
+ ub_pseudonym = univ.Integer(128)
920
+
921
+ poste_restante_address = univ.Integer(19)
922
+
923
+ id_at_organizationName = _OID(id_at, 10)
924
+
925
+ physical_delivery_office_number = univ.Integer(11)
926
+
927
+ id_at_pseudonym = _OID(id_at, 65)
928
+
929
+
930
+ class X520CommonName(univ.Choice):
931
+ pass
932
+
933
+
934
+ X520CommonName.componentType = namedtype.NamedTypes(
935
+ namedtype.NamedType('teletexString',
936
+ char.TeletexString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_common_name))),
937
+ namedtype.NamedType('printableString',
938
+ char.PrintableString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_common_name))),
939
+ namedtype.NamedType('universalString',
940
+ char.UniversalString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_common_name))),
941
+ namedtype.NamedType('utf8String',
942
+ char.UTF8String().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_common_name))),
943
+ namedtype.NamedType('bmpString',
944
+ char.BMPString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_common_name)))
945
+ )
946
+
947
+ physical_delivery_organization_name = univ.Integer(14)
948
+
949
+
950
+ class X520dnQualifier(char.PrintableString):
951
+ pass
952
+
953
+
954
+ id_at_stateOrProvinceName = _OID(id_at, 8)
955
+
956
+ common_name = univ.Integer(1)
957
+
958
+ id_at_localityName = _OID(id_at, 7)
959
+
960
+ ub_match = univ.Integer(128)
961
+
962
+ ub_unformatted_address_length = univ.Integer(180)
963
+
964
+
965
+ class Attribute(univ.Sequence):
966
+ pass
967
+
968
+
969
+ Attribute.componentType = namedtype.NamedTypes(
970
+ namedtype.NamedType('type', AttributeType()),
971
+ namedtype.NamedType('values', univ.SetOf(componentType=AttributeValue()))
972
+ )
973
+
974
+ extended_network_address = univ.Integer(22)
975
+
976
+ unique_postal_name = univ.Integer(20)
977
+
978
+ ub_pds_physical_address_lines = univ.Integer(6)
979
+
980
+
981
+ class UnformattedPostalAddress(univ.Set):
982
+ pass
983
+
984
+
985
+ UnformattedPostalAddress.componentType = namedtype.NamedTypes(
986
+ namedtype.OptionalNamedType('printable-address', univ.SequenceOf(componentType=char.PrintableString().subtype(
987
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_pds_parameter_length)))),
988
+ namedtype.OptionalNamedType('teletex-string', char.TeletexString().subtype(
989
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_unformatted_address_length)))
990
+ )
991
+
992
+
993
+ class UniquePostalName(PDSParameter):
994
+ pass
995
+
996
+
997
+ class X520Pseudonym(univ.Choice):
998
+ pass
999
+
1000
+
1001
+ X520Pseudonym.componentType = namedtype.NamedTypes(
1002
+ namedtype.NamedType('teletexString',
1003
+ char.TeletexString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_pseudonym))),
1004
+ namedtype.NamedType('printableString',
1005
+ char.PrintableString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_pseudonym))),
1006
+ namedtype.NamedType('universalString',
1007
+ char.UniversalString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_pseudonym))),
1008
+ namedtype.NamedType('utf8String',
1009
+ char.UTF8String().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_pseudonym))),
1010
+ namedtype.NamedType('bmpString',
1011
+ char.BMPString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, ub_pseudonym)))
1012
+ )
1013
+
1014
+ teletex_organization_name = univ.Integer(3)
1015
+
1016
+ teletex_domain_defined_attributes = univ.Integer(6)
1017
+
1018
+ street_address = univ.Integer(17)
1019
+
1020
+ id_kp_OCSPSigning = _OID(id_kp, 9)
1021
+
1022
+ id_ce = _OID(2, 5, 29)
1023
+
1024
+ id_ce_certificatePolicies = _OID(id_ce, 32)
1025
+
1026
+
1027
+ class EDIPartyName(univ.Sequence):
1028
+ pass
1029
+
1030
+
1031
+ EDIPartyName.componentType = namedtype.NamedTypes(
1032
+ namedtype.OptionalNamedType('nameAssigner', DirectoryString().subtype(
1033
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
1034
+ namedtype.NamedType('partyName',
1035
+ DirectoryString().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1)))
1036
+ )
1037
+
1038
+
1039
+ class AnotherName(univ.Sequence):
1040
+ pass
1041
+
1042
+
1043
+ AnotherName.componentType = namedtype.NamedTypes(
1044
+ namedtype.NamedType('type-id', univ.ObjectIdentifier()),
1045
+ namedtype.NamedType('value', univ.Any().subtype(explicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0)))
1046
+ )
1047
+
1048
+
1049
+ class GeneralName(univ.Choice):
1050
+ pass
1051
+
1052
+
1053
+ GeneralName.componentType = namedtype.NamedTypes(
1054
+ namedtype.NamedType('otherName',
1055
+ AnotherName().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatConstructed, 0))),
1056
+ namedtype.NamedType('rfc822Name',
1057
+ char.IA5String().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1))),
1058
+ namedtype.NamedType('dNSName',
1059
+ char.IA5String().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 2))),
1060
+ namedtype.NamedType('x400Address',
1061
+ ORAddress().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 3))),
1062
+ namedtype.NamedType('directoryName',
1063
+ Name().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatConstructed, 4))),
1064
+ namedtype.NamedType('ediPartyName',
1065
+ EDIPartyName().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatConstructed, 5))),
1066
+ namedtype.NamedType('uniformResourceIdentifier',
1067
+ char.IA5String().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 6))),
1068
+ namedtype.NamedType('iPAddress',
1069
+ univ.OctetString().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 7))),
1070
+ namedtype.NamedType('registeredID', univ.ObjectIdentifier().subtype(
1071
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 8)))
1072
+ )
1073
+
1074
+
1075
+ class GeneralNames(univ.SequenceOf):
1076
+ pass
1077
+
1078
+
1079
+ GeneralNames.componentType = GeneralName()
1080
+ GeneralNames.sizeSpec = constraint.ValueSizeConstraint(1, MAX)
1081
+
1082
+
1083
+ class IssuerAltName(GeneralNames):
1084
+ pass
1085
+
1086
+
1087
+ id_ce_cRLDistributionPoints = _OID(id_ce, 31)
1088
+
1089
+
1090
+ class CertPolicyId(univ.ObjectIdentifier):
1091
+ pass
1092
+
1093
+
1094
+ class PolicyMappings(univ.SequenceOf):
1095
+ pass
1096
+
1097
+
1098
+ PolicyMappings.componentType = univ.Sequence(componentType=namedtype.NamedTypes(
1099
+ namedtype.NamedType('issuerDomainPolicy', CertPolicyId()),
1100
+ namedtype.NamedType('subjectDomainPolicy', CertPolicyId())
1101
+ ))
1102
+
1103
+ PolicyMappings.sizeSpec = constraint.ValueSizeConstraint(1, MAX)
1104
+
1105
+
1106
+ class PolicyQualifierId(univ.ObjectIdentifier):
1107
+ pass
1108
+
1109
+
1110
+ holdInstruction = _OID(2, 2, 840, 10040, 2)
1111
+
1112
+ id_ce_subjectDirectoryAttributes = _OID(id_ce, 9)
1113
+
1114
+ id_holdinstruction_callissuer = _OID(holdInstruction, 2)
1115
+
1116
+
1117
+ class SubjectDirectoryAttributes(univ.SequenceOf):
1118
+ pass
1119
+
1120
+
1121
+ SubjectDirectoryAttributes.componentType = Attribute()
1122
+ SubjectDirectoryAttributes.sizeSpec = constraint.ValueSizeConstraint(1, MAX)
1123
+
1124
+ anyPolicy = _OID(id_ce_certificatePolicies, 0)
1125
+
1126
+ id_ce_subjectAltName = _OID(id_ce, 17)
1127
+
1128
+ id_kp_emailProtection = _OID(id_kp, 4)
1129
+
1130
+
1131
+ class ReasonFlags(univ.BitString):
1132
+ pass
1133
+
1134
+
1135
+ ReasonFlags.namedValues = namedval.NamedValues(
1136
+ ('unused', 0),
1137
+ ('keyCompromise', 1),
1138
+ ('cACompromise', 2),
1139
+ ('affiliationChanged', 3),
1140
+ ('superseded', 4),
1141
+ ('cessationOfOperation', 5),
1142
+ ('certificateHold', 6),
1143
+ ('privilegeWithdrawn', 7),
1144
+ ('aACompromise', 8)
1145
+ )
1146
+
1147
+
1148
+ class DistributionPointName(univ.Choice):
1149
+ pass
1150
+
1151
+
1152
+ DistributionPointName.componentType = namedtype.NamedTypes(
1153
+ namedtype.NamedType('fullName',
1154
+ GeneralNames().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
1155
+ namedtype.NamedType('nameRelativeToCRLIssuer', RelativeDistinguishedName().subtype(
1156
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1)))
1157
+ )
1158
+
1159
+
1160
+ class DistributionPoint(univ.Sequence):
1161
+ pass
1162
+
1163
+
1164
+ DistributionPoint.componentType = namedtype.NamedTypes(
1165
+ namedtype.OptionalNamedType('distributionPoint', DistributionPointName().subtype(
1166
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatConstructed, 0))),
1167
+ namedtype.OptionalNamedType('reasons', ReasonFlags().subtype(
1168
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1))),
1169
+ namedtype.OptionalNamedType('cRLIssuer', GeneralNames().subtype(
1170
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 2)))
1171
+ )
1172
+
1173
+ id_ce_keyUsage = _OID(id_ce, 15)
1174
+
1175
+
1176
+ class PolicyQualifierInfo(univ.Sequence):
1177
+ pass
1178
+
1179
+
1180
+ PolicyQualifierInfo.componentType = namedtype.NamedTypes(
1181
+ namedtype.NamedType('policyQualifierId', PolicyQualifierId()),
1182
+ namedtype.NamedType('qualifier', univ.Any())
1183
+ )
1184
+
1185
+
1186
+ class PolicyInformation(univ.Sequence):
1187
+ pass
1188
+
1189
+
1190
+ PolicyInformation.componentType = namedtype.NamedTypes(
1191
+ namedtype.NamedType('policyIdentifier', CertPolicyId()),
1192
+ namedtype.OptionalNamedType('policyQualifiers', univ.SequenceOf(componentType=PolicyQualifierInfo()))
1193
+ )
1194
+
1195
+
1196
+ class CertificatePolicies(univ.SequenceOf):
1197
+ pass
1198
+
1199
+
1200
+ CertificatePolicies.componentType = PolicyInformation()
1201
+ CertificatePolicies.sizeSpec = constraint.ValueSizeConstraint(1, MAX)
1202
+
1203
+ id_ce_basicConstraints = _OID(id_ce, 19)
1204
+
1205
+
1206
+ class HoldInstructionCode(univ.ObjectIdentifier):
1207
+ pass
1208
+
1209
+
1210
+ class KeyPurposeId(univ.ObjectIdentifier):
1211
+ pass
1212
+
1213
+
1214
+ class ExtKeyUsageSyntax(univ.SequenceOf):
1215
+ pass
1216
+
1217
+
1218
+ ExtKeyUsageSyntax.componentType = KeyPurposeId()
1219
+ ExtKeyUsageSyntax.sizeSpec = constraint.ValueSizeConstraint(1, MAX)
1220
+
1221
+
1222
+ class SubjectAltName(GeneralNames):
1223
+ pass
1224
+
1225
+
1226
+ class BasicConstraints(univ.Sequence):
1227
+ pass
1228
+
1229
+
1230
+ BasicConstraints.componentType = namedtype.NamedTypes(
1231
+ namedtype.DefaultedNamedType('cA', univ.Boolean().subtype(value=0)),
1232
+ namedtype.OptionalNamedType('pathLenConstraint',
1233
+ univ.Integer().subtype(subtypeSpec=constraint.ValueRangeConstraint(0, MAX)))
1234
+ )
1235
+
1236
+
1237
+ class SkipCerts(univ.Integer):
1238
+ pass
1239
+
1240
+
1241
+ SkipCerts.subtypeSpec = constraint.ValueRangeConstraint(0, MAX)
1242
+
1243
+
1244
+ class InhibitAnyPolicy(SkipCerts):
1245
+ pass
1246
+
1247
+
1248
+ class CRLNumber(univ.Integer):
1249
+ pass
1250
+
1251
+
1252
+ CRLNumber.subtypeSpec = constraint.ValueRangeConstraint(0, MAX)
1253
+
1254
+
1255
+ class BaseCRLNumber(CRLNumber):
1256
+ pass
1257
+
1258
+
1259
+ class KeyIdentifier(univ.OctetString):
1260
+ pass
1261
+
1262
+
1263
+ class AuthorityKeyIdentifier(univ.Sequence):
1264
+ pass
1265
+
1266
+
1267
+ AuthorityKeyIdentifier.componentType = namedtype.NamedTypes(
1268
+ namedtype.OptionalNamedType('keyIdentifier', KeyIdentifier().subtype(
1269
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
1270
+ namedtype.OptionalNamedType('authorityCertIssuer', GeneralNames().subtype(
1271
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1))),
1272
+ namedtype.OptionalNamedType('authorityCertSerialNumber', CertificateSerialNumber().subtype(
1273
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 2)))
1274
+ )
1275
+
1276
+ id_ce_nameConstraints = _OID(id_ce, 30)
1277
+
1278
+ id_kp_serverAuth = _OID(id_kp, 1)
1279
+
1280
+ id_ce_freshestCRL = _OID(id_ce, 46)
1281
+
1282
+ id_ce_cRLReasons = _OID(id_ce, 21)
1283
+
1284
+
1285
+ class CRLDistributionPoints(univ.SequenceOf):
1286
+ pass
1287
+
1288
+
1289
+ CRLDistributionPoints.componentType = DistributionPoint()
1290
+ CRLDistributionPoints.sizeSpec = constraint.ValueSizeConstraint(1, MAX)
1291
+
1292
+
1293
+ class FreshestCRL(CRLDistributionPoints):
1294
+ pass
1295
+
1296
+
1297
+ id_ce_inhibitAnyPolicy = _OID(id_ce, 54)
1298
+
1299
+
1300
+ class CRLReason(univ.Enumerated):
1301
+ pass
1302
+
1303
+
1304
+ CRLReason.namedValues = namedval.NamedValues(
1305
+ ('unspecified', 0),
1306
+ ('keyCompromise', 1),
1307
+ ('cACompromise', 2),
1308
+ ('affiliationChanged', 3),
1309
+ ('superseded', 4),
1310
+ ('cessationOfOperation', 5),
1311
+ ('certificateHold', 6),
1312
+ ('removeFromCRL', 8),
1313
+ ('privilegeWithdrawn', 9),
1314
+ ('aACompromise', 10)
1315
+ )
1316
+
1317
+
1318
+ class BaseDistance(univ.Integer):
1319
+ pass
1320
+
1321
+
1322
+ BaseDistance.subtypeSpec = constraint.ValueRangeConstraint(0, MAX)
1323
+
1324
+
1325
+ class GeneralSubtree(univ.Sequence):
1326
+ pass
1327
+
1328
+
1329
+ GeneralSubtree.componentType = namedtype.NamedTypes(
1330
+ namedtype.NamedType('base', GeneralName()),
1331
+ namedtype.DefaultedNamedType('minimum', BaseDistance().subtype(
1332
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0)).subtype(value=0)),
1333
+ namedtype.OptionalNamedType('maximum', BaseDistance().subtype(
1334
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1)))
1335
+ )
1336
+
1337
+
1338
+ class GeneralSubtrees(univ.SequenceOf):
1339
+ pass
1340
+
1341
+
1342
+ GeneralSubtrees.componentType = GeneralSubtree()
1343
+ GeneralSubtrees.sizeSpec = constraint.ValueSizeConstraint(1, MAX)
1344
+
1345
+
1346
+ class NameConstraints(univ.Sequence):
1347
+ pass
1348
+
1349
+
1350
+ NameConstraints.componentType = namedtype.NamedTypes(
1351
+ namedtype.OptionalNamedType('permittedSubtrees', GeneralSubtrees().subtype(
1352
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
1353
+ namedtype.OptionalNamedType('excludedSubtrees', GeneralSubtrees().subtype(
1354
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1)))
1355
+ )
1356
+
1357
+ id_pe_authorityInfoAccess = _OID(id_pe, 1)
1358
+
1359
+ id_pe_subjectInfoAccess = _OID(id_pe, 11)
1360
+
1361
+ id_ce_certificateIssuer = _OID(id_ce, 29)
1362
+
1363
+ id_ce_invalidityDate = _OID(id_ce, 24)
1364
+
1365
+
1366
+ class DirectoryString(univ.Choice):
1367
+ pass
1368
+
1369
+
1370
+ DirectoryString.componentType = namedtype.NamedTypes(
1371
+ namedtype.NamedType('any', univ.Any())
1372
+ )
1373
+
1374
+ id_ce_authorityKeyIdentifier = _OID(id_ce, 35)
1375
+
1376
+
1377
+ class AccessDescription(univ.Sequence):
1378
+ pass
1379
+
1380
+
1381
+ AccessDescription.componentType = namedtype.NamedTypes(
1382
+ namedtype.NamedType('accessMethod', univ.ObjectIdentifier()),
1383
+ namedtype.NamedType('accessLocation', GeneralName())
1384
+ )
1385
+
1386
+
1387
+ class AuthorityInfoAccessSyntax(univ.SequenceOf):
1388
+ pass
1389
+
1390
+
1391
+ AuthorityInfoAccessSyntax.componentType = AccessDescription()
1392
+ AuthorityInfoAccessSyntax.sizeSpec = constraint.ValueSizeConstraint(1, MAX)
1393
+
1394
+ id_ce_issuingDistributionPoint = _OID(id_ce, 28)
1395
+
1396
+
1397
+ class CPSuri(char.IA5String):
1398
+ pass
1399
+
1400
+
1401
+ class DisplayText(univ.Choice):
1402
+ pass
1403
+
1404
+
1405
+ DisplayText.componentType = namedtype.NamedTypes(
1406
+ namedtype.NamedType('ia5String', char.IA5String().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, 200))),
1407
+ namedtype.NamedType('visibleString',
1408
+ char.VisibleString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, 200))),
1409
+ namedtype.NamedType('bmpString', char.BMPString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, 200))),
1410
+ namedtype.NamedType('utf8String', char.UTF8String().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, 200)))
1411
+ )
1412
+
1413
+
1414
+ class NoticeReference(univ.Sequence):
1415
+ pass
1416
+
1417
+
1418
+ NoticeReference.componentType = namedtype.NamedTypes(
1419
+ namedtype.NamedType('organization', DisplayText()),
1420
+ namedtype.NamedType('noticeNumbers', univ.SequenceOf(componentType=univ.Integer()))
1421
+ )
1422
+
1423
+
1424
+ class UserNotice(univ.Sequence):
1425
+ pass
1426
+
1427
+
1428
+ UserNotice.componentType = namedtype.NamedTypes(
1429
+ namedtype.OptionalNamedType('noticeRef', NoticeReference()),
1430
+ namedtype.OptionalNamedType('explicitText', DisplayText())
1431
+ )
1432
+
1433
+
1434
+ class PrivateKeyUsagePeriod(univ.Sequence):
1435
+ pass
1436
+
1437
+
1438
+ PrivateKeyUsagePeriod.componentType = namedtype.NamedTypes(
1439
+ namedtype.OptionalNamedType('notBefore', useful.GeneralizedTime().subtype(
1440
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
1441
+ namedtype.OptionalNamedType('notAfter', useful.GeneralizedTime().subtype(
1442
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1)))
1443
+ )
1444
+
1445
+ id_ce_subjectKeyIdentifier = _OID(id_ce, 14)
1446
+
1447
+
1448
+ class CertificateIssuer(GeneralNames):
1449
+ pass
1450
+
1451
+
1452
+ class InvalidityDate(useful.GeneralizedTime):
1453
+ pass
1454
+
1455
+
1456
+ class SubjectInfoAccessSyntax(univ.SequenceOf):
1457
+ pass
1458
+
1459
+
1460
+ SubjectInfoAccessSyntax.componentType = AccessDescription()
1461
+ SubjectInfoAccessSyntax.sizeSpec = constraint.ValueSizeConstraint(1, MAX)
1462
+
1463
+
1464
+ class KeyUsage(univ.BitString):
1465
+ pass
1466
+
1467
+
1468
+ KeyUsage.namedValues = namedval.NamedValues(
1469
+ ('digitalSignature', 0),
1470
+ ('nonRepudiation', 1),
1471
+ ('keyEncipherment', 2),
1472
+ ('dataEncipherment', 3),
1473
+ ('keyAgreement', 4),
1474
+ ('keyCertSign', 5),
1475
+ ('cRLSign', 6),
1476
+ ('encipherOnly', 7),
1477
+ ('decipherOnly', 8)
1478
+ )
1479
+
1480
+ id_ce_extKeyUsage = _OID(id_ce, 37)
1481
+
1482
+ anyExtendedKeyUsage = _OID(id_ce_extKeyUsage, 0)
1483
+
1484
+ id_ce_privateKeyUsagePeriod = _OID(id_ce, 16)
1485
+
1486
+ id_ce_policyMappings = _OID(id_ce, 33)
1487
+
1488
+ id_ce_cRLNumber = _OID(id_ce, 20)
1489
+
1490
+ id_ce_policyConstraints = _OID(id_ce, 36)
1491
+
1492
+ id_holdinstruction_none = _OID(holdInstruction, 1)
1493
+
1494
+ id_holdinstruction_reject = _OID(holdInstruction, 3)
1495
+
1496
+ id_kp_timeStamping = _OID(id_kp, 8)
1497
+
1498
+
1499
+ class PolicyConstraints(univ.Sequence):
1500
+ pass
1501
+
1502
+
1503
+ PolicyConstraints.componentType = namedtype.NamedTypes(
1504
+ namedtype.OptionalNamedType('requireExplicitPolicy',
1505
+ SkipCerts().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
1506
+ namedtype.OptionalNamedType('inhibitPolicyMapping',
1507
+ SkipCerts().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1)))
1508
+ )
1509
+
1510
+
1511
+ class SubjectKeyIdentifier(KeyIdentifier):
1512
+ pass
1513
+
1514
+
1515
+ id_kp_clientAuth = _OID(id_kp, 2)
1516
+
1517
+ id_ce_deltaCRLIndicator = _OID(id_ce, 27)
1518
+
1519
+ id_ce_issuerAltName = _OID(id_ce, 18)
1520
+
1521
+ id_kp_codeSigning = _OID(id_kp, 3)
1522
+
1523
+ id_ce_holdInstructionCode = _OID(id_ce, 23)
1524
+
1525
+
1526
+ class IssuingDistributionPoint(univ.Sequence):
1527
+ pass
1528
+
1529
+
1530
+ IssuingDistributionPoint.componentType = namedtype.NamedTypes(
1531
+ namedtype.OptionalNamedType('distributionPoint', DistributionPointName().subtype(
1532
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatConstructed, 0))),
1533
+ namedtype.DefaultedNamedType('onlyContainsUserCerts', univ.Boolean().subtype(
1534
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1)).subtype(value=0)),
1535
+ namedtype.DefaultedNamedType('onlyContainsCACerts', univ.Boolean().subtype(
1536
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 2)).subtype(value=0)),
1537
+ namedtype.OptionalNamedType('onlySomeReasons', ReasonFlags().subtype(
1538
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 3))),
1539
+ namedtype.DefaultedNamedType('indirectCRL', univ.Boolean().subtype(
1540
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 4)).subtype(value=0)),
1541
+ namedtype.DefaultedNamedType('onlyContainsAttributeCerts', univ.Boolean().subtype(
1542
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 5)).subtype(value=0))
1543
+ )
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc3281.py ADDED
@@ -0,0 +1,331 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding: utf-8
2
+ #
3
+ # This file is part of pyasn1-modules software.
4
+ #
5
+ # Created by Stanisław Pitucha with asn1ate tool.
6
+ # Copyright (c) 2005-2020, Ilya Etingof <etingof@gmail.com>
7
+ # License: http://snmplabs.com/pyasn1/license.html
8
+ #
9
+ # An Internet Attribute Certificate Profile for Authorization
10
+ #
11
+ # ASN.1 source from:
12
+ # http://www.ietf.org/rfc/rfc3281.txt
13
+ #
14
+ from pyasn1.type import char
15
+ from pyasn1.type import constraint
16
+ from pyasn1.type import namedtype
17
+ from pyasn1.type import namedval
18
+ from pyasn1.type import tag
19
+ from pyasn1.type import univ
20
+ from pyasn1.type import useful
21
+
22
+ from pyasn1_modules import rfc3280
23
+
24
+ MAX = float('inf')
25
+
26
+
27
+ def _buildOid(*components):
28
+ output = []
29
+ for x in tuple(components):
30
+ if isinstance(x, univ.ObjectIdentifier):
31
+ output.extend(list(x))
32
+ else:
33
+ output.append(int(x))
34
+
35
+ return univ.ObjectIdentifier(output)
36
+
37
+
38
+ class ObjectDigestInfo(univ.Sequence):
39
+ pass
40
+
41
+
42
+ ObjectDigestInfo.componentType = namedtype.NamedTypes(
43
+ namedtype.NamedType('digestedObjectType', univ.Enumerated(
44
+ namedValues=namedval.NamedValues(('publicKey', 0), ('publicKeyCert', 1), ('otherObjectTypes', 2)))),
45
+ namedtype.OptionalNamedType('otherObjectTypeID', univ.ObjectIdentifier()),
46
+ namedtype.NamedType('digestAlgorithm', rfc3280.AlgorithmIdentifier()),
47
+ namedtype.NamedType('objectDigest', univ.BitString())
48
+ )
49
+
50
+
51
+ class IssuerSerial(univ.Sequence):
52
+ pass
53
+
54
+
55
+ IssuerSerial.componentType = namedtype.NamedTypes(
56
+ namedtype.NamedType('issuer', rfc3280.GeneralNames()),
57
+ namedtype.NamedType('serial', rfc3280.CertificateSerialNumber()),
58
+ namedtype.OptionalNamedType('issuerUID', rfc3280.UniqueIdentifier())
59
+ )
60
+
61
+
62
+ class TargetCert(univ.Sequence):
63
+ pass
64
+
65
+
66
+ TargetCert.componentType = namedtype.NamedTypes(
67
+ namedtype.NamedType('targetCertificate', IssuerSerial()),
68
+ namedtype.OptionalNamedType('targetName', rfc3280.GeneralName()),
69
+ namedtype.OptionalNamedType('certDigestInfo', ObjectDigestInfo())
70
+ )
71
+
72
+
73
+ class Target(univ.Choice):
74
+ pass
75
+
76
+
77
+ Target.componentType = namedtype.NamedTypes(
78
+ namedtype.NamedType('targetName', rfc3280.GeneralName().subtype(
79
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
80
+ namedtype.NamedType('targetGroup', rfc3280.GeneralName().subtype(
81
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1))),
82
+ namedtype.NamedType('targetCert',
83
+ TargetCert().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatConstructed, 2)))
84
+ )
85
+
86
+
87
+ class Targets(univ.SequenceOf):
88
+ pass
89
+
90
+
91
+ Targets.componentType = Target()
92
+
93
+
94
+ class ProxyInfo(univ.SequenceOf):
95
+ pass
96
+
97
+
98
+ ProxyInfo.componentType = Targets()
99
+
100
+ id_at_role = _buildOid(rfc3280.id_at, 72)
101
+
102
+ id_pe_aaControls = _buildOid(rfc3280.id_pe, 6)
103
+
104
+ id_ce_targetInformation = _buildOid(rfc3280.id_ce, 55)
105
+
106
+ id_pe_ac_auditIdentity = _buildOid(rfc3280.id_pe, 4)
107
+
108
+
109
+ class ClassList(univ.BitString):
110
+ pass
111
+
112
+
113
+ ClassList.namedValues = namedval.NamedValues(
114
+ ('unmarked', 0),
115
+ ('unclassified', 1),
116
+ ('restricted', 2),
117
+ ('confidential', 3),
118
+ ('secret', 4),
119
+ ('topSecret', 5)
120
+ )
121
+
122
+
123
+ class SecurityCategory(univ.Sequence):
124
+ pass
125
+
126
+
127
+ SecurityCategory.componentType = namedtype.NamedTypes(
128
+ namedtype.NamedType('type', univ.ObjectIdentifier().subtype(
129
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
130
+ namedtype.NamedType('value', univ.Any().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1)))
131
+ )
132
+
133
+
134
+ class Clearance(univ.Sequence):
135
+ pass
136
+
137
+
138
+ Clearance.componentType = namedtype.NamedTypes(
139
+ namedtype.NamedType('policyId', univ.ObjectIdentifier().subtype(
140
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
141
+ namedtype.DefaultedNamedType('classList',
142
+ ClassList().subtype(implicitTag=tag.Tag(tag.tagClassContext,
143
+ tag.tagFormatSimple, 1)).subtype(
144
+ value="unclassified")),
145
+ namedtype.OptionalNamedType('securityCategories', univ.SetOf(componentType=SecurityCategory()).subtype(
146
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 2)))
147
+ )
148
+
149
+
150
+ class AttCertVersion(univ.Integer):
151
+ pass
152
+
153
+
154
+ AttCertVersion.namedValues = namedval.NamedValues(
155
+ ('v2', 1)
156
+ )
157
+
158
+ id_aca = _buildOid(rfc3280.id_pkix, 10)
159
+
160
+ id_at_clearance = _buildOid(2, 5, 1, 5, 55)
161
+
162
+
163
+ class AttrSpec(univ.SequenceOf):
164
+ pass
165
+
166
+
167
+ AttrSpec.componentType = univ.ObjectIdentifier()
168
+
169
+
170
+ class AAControls(univ.Sequence):
171
+ pass
172
+
173
+
174
+ AAControls.componentType = namedtype.NamedTypes(
175
+ namedtype.OptionalNamedType('pathLenConstraint',
176
+ univ.Integer().subtype(subtypeSpec=constraint.ValueRangeConstraint(0, MAX))),
177
+ namedtype.OptionalNamedType('permittedAttrs',
178
+ AttrSpec().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
179
+ namedtype.OptionalNamedType('excludedAttrs',
180
+ AttrSpec().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1))),
181
+ namedtype.DefaultedNamedType('permitUnSpecified', univ.Boolean().subtype(value=1))
182
+ )
183
+
184
+
185
+ class AttCertValidityPeriod(univ.Sequence):
186
+ pass
187
+
188
+
189
+ AttCertValidityPeriod.componentType = namedtype.NamedTypes(
190
+ namedtype.NamedType('notBeforeTime', useful.GeneralizedTime()),
191
+ namedtype.NamedType('notAfterTime', useful.GeneralizedTime())
192
+ )
193
+
194
+
195
+ id_aca_authenticationInfo = _buildOid(id_aca, 1)
196
+
197
+
198
+ class V2Form(univ.Sequence):
199
+ pass
200
+
201
+
202
+ V2Form.componentType = namedtype.NamedTypes(
203
+ namedtype.OptionalNamedType('issuerName', rfc3280.GeneralNames()),
204
+ namedtype.OptionalNamedType('baseCertificateID', IssuerSerial().subtype(
205
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatConstructed, 0))),
206
+ namedtype.OptionalNamedType('objectDigestInfo', ObjectDigestInfo().subtype(
207
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatConstructed, 1)))
208
+ )
209
+
210
+
211
+ class AttCertIssuer(univ.Choice):
212
+ pass
213
+
214
+
215
+ AttCertIssuer.componentType = namedtype.NamedTypes(
216
+ namedtype.NamedType('v1Form', rfc3280.GeneralNames()),
217
+ namedtype.NamedType('v2Form',
218
+ V2Form().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatConstructed, 0)))
219
+ )
220
+
221
+
222
+ class Holder(univ.Sequence):
223
+ pass
224
+
225
+
226
+ Holder.componentType = namedtype.NamedTypes(
227
+ namedtype.OptionalNamedType('baseCertificateID', IssuerSerial().subtype(
228
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatConstructed, 0))),
229
+ namedtype.OptionalNamedType('entityName', rfc3280.GeneralNames().subtype(
230
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1))),
231
+ namedtype.OptionalNamedType('objectDigestInfo', ObjectDigestInfo().subtype(
232
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatConstructed, 2)))
233
+ )
234
+
235
+
236
+ class AttributeCertificateInfo(univ.Sequence):
237
+ pass
238
+
239
+
240
+ AttributeCertificateInfo.componentType = namedtype.NamedTypes(
241
+ namedtype.NamedType('version', AttCertVersion()),
242
+ namedtype.NamedType('holder', Holder()),
243
+ namedtype.NamedType('issuer', AttCertIssuer()),
244
+ namedtype.NamedType('signature', rfc3280.AlgorithmIdentifier()),
245
+ namedtype.NamedType('serialNumber', rfc3280.CertificateSerialNumber()),
246
+ namedtype.NamedType('attrCertValidityPeriod', AttCertValidityPeriod()),
247
+ namedtype.NamedType('attributes', univ.SequenceOf(componentType=rfc3280.Attribute())),
248
+ namedtype.OptionalNamedType('issuerUniqueID', rfc3280.UniqueIdentifier()),
249
+ namedtype.OptionalNamedType('extensions', rfc3280.Extensions())
250
+ )
251
+
252
+
253
+ class AttributeCertificate(univ.Sequence):
254
+ pass
255
+
256
+
257
+ AttributeCertificate.componentType = namedtype.NamedTypes(
258
+ namedtype.NamedType('acinfo', AttributeCertificateInfo()),
259
+ namedtype.NamedType('signatureAlgorithm', rfc3280.AlgorithmIdentifier()),
260
+ namedtype.NamedType('signatureValue', univ.BitString())
261
+ )
262
+
263
+ id_mod = _buildOid(rfc3280.id_pkix, 0)
264
+
265
+ id_mod_attribute_cert = _buildOid(id_mod, 12)
266
+
267
+ id_aca_accessIdentity = _buildOid(id_aca, 2)
268
+
269
+
270
+ class RoleSyntax(univ.Sequence):
271
+ pass
272
+
273
+
274
+ RoleSyntax.componentType = namedtype.NamedTypes(
275
+ namedtype.OptionalNamedType('roleAuthority', rfc3280.GeneralNames().subtype(
276
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
277
+ namedtype.NamedType('roleName',
278
+ rfc3280.GeneralName().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1)))
279
+ )
280
+
281
+ id_aca_chargingIdentity = _buildOid(id_aca, 3)
282
+
283
+
284
+ class ACClearAttrs(univ.Sequence):
285
+ pass
286
+
287
+
288
+ ACClearAttrs.componentType = namedtype.NamedTypes(
289
+ namedtype.NamedType('acIssuer', rfc3280.GeneralName()),
290
+ namedtype.NamedType('acSerial', univ.Integer()),
291
+ namedtype.NamedType('attrs', univ.SequenceOf(componentType=rfc3280.Attribute()))
292
+ )
293
+
294
+ id_aca_group = _buildOid(id_aca, 4)
295
+
296
+ id_pe_ac_proxying = _buildOid(rfc3280.id_pe, 10)
297
+
298
+
299
+ class SvceAuthInfo(univ.Sequence):
300
+ pass
301
+
302
+
303
+ SvceAuthInfo.componentType = namedtype.NamedTypes(
304
+ namedtype.NamedType('service', rfc3280.GeneralName()),
305
+ namedtype.NamedType('ident', rfc3280.GeneralName()),
306
+ namedtype.OptionalNamedType('authInfo', univ.OctetString())
307
+ )
308
+
309
+
310
+ class IetfAttrSyntax(univ.Sequence):
311
+ pass
312
+
313
+
314
+ IetfAttrSyntax.componentType = namedtype.NamedTypes(
315
+ namedtype.OptionalNamedType(
316
+ 'policyAuthority', rfc3280.GeneralNames().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))
317
+ ),
318
+ namedtype.NamedType(
319
+ 'values', univ.SequenceOf(
320
+ componentType=univ.Choice(
321
+ componentType=namedtype.NamedTypes(
322
+ namedtype.NamedType('octets', univ.OctetString()),
323
+ namedtype.NamedType('oid', univ.ObjectIdentifier()),
324
+ namedtype.NamedType('string', char.UTF8String())
325
+ )
326
+ )
327
+ )
328
+ )
329
+ )
330
+
331
+ id_aca_encAttrs = _buildOid(id_aca, 6)
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc3370.py ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # This file is part of pyasn1-modules software.
3
+ #
4
+ # Created by Russ Housley.
5
+ #
6
+ # Copyright (c) 2019, Vigil Security, LLC
7
+ # License: http://snmplabs.com/pyasn1/license.html
8
+ #
9
+ # Cryptographic Message Syntax (CMS) Algorithms
10
+ #
11
+ # ASN.1 source from:
12
+ # https://www.rfc-editor.org/rfc/rfc3370.txt
13
+ #
14
+
15
+ from pyasn1.type import univ
16
+
17
+ from pyasn1_modules import rfc3279
18
+ from pyasn1_modules import rfc5280
19
+ from pyasn1_modules import rfc5751
20
+ from pyasn1_modules import rfc5753
21
+ from pyasn1_modules import rfc5990
22
+ from pyasn1_modules import rfc8018
23
+
24
+
25
+ # Imports from RFC 5280
26
+
27
+ AlgorithmIdentifier = rfc5280.AlgorithmIdentifier
28
+
29
+
30
+ # Imports from RFC 3279
31
+
32
+ dhpublicnumber = rfc3279.dhpublicnumber
33
+
34
+ dh_public_number = dhpublicnumber
35
+
36
+ DHPublicKey = rfc3279.DHPublicKey
37
+
38
+ DomainParameters = rfc3279.DomainParameters
39
+
40
+ DHDomainParameters = DomainParameters
41
+
42
+ Dss_Parms = rfc3279.Dss_Parms
43
+
44
+ Dss_Sig_Value = rfc3279.Dss_Sig_Value
45
+
46
+ md5 = rfc3279.md5
47
+
48
+ md5WithRSAEncryption = rfc3279.md5WithRSAEncryption
49
+
50
+ RSAPublicKey = rfc3279.RSAPublicKey
51
+
52
+ rsaEncryption = rfc3279.rsaEncryption
53
+
54
+ ValidationParms = rfc3279.ValidationParms
55
+
56
+ id_dsa = rfc3279.id_dsa
57
+
58
+ id_dsa_with_sha1 = rfc3279.id_dsa_with_sha1
59
+
60
+ id_sha1 = rfc3279.id_sha1
61
+
62
+ sha_1 = id_sha1
63
+
64
+ sha1WithRSAEncryption = rfc3279.sha1WithRSAEncryption
65
+
66
+
67
+ # Imports from RFC 5753
68
+
69
+ CBCParameter = rfc5753.CBCParameter
70
+
71
+ CBCParameter = rfc5753.IV
72
+
73
+ KeyWrapAlgorithm = rfc5753.KeyWrapAlgorithm
74
+
75
+
76
+ # Imports from RFC 5990
77
+
78
+ id_alg_CMS3DESwrap = rfc5990.id_alg_CMS3DESwrap
79
+
80
+
81
+ # Imports from RFC 8018
82
+
83
+ des_EDE3_CBC = rfc8018.des_EDE3_CBC
84
+
85
+ des_ede3_cbc = des_EDE3_CBC
86
+
87
+ rc2CBC = rfc8018.rc2CBC
88
+
89
+ rc2_cbc = rc2CBC
90
+
91
+ RC2_CBC_Parameter = rfc8018.RC2_CBC_Parameter
92
+
93
+ RC2CBCParameter = RC2_CBC_Parameter
94
+
95
+ PBKDF2_params = rfc8018.PBKDF2_params
96
+
97
+ id_PBKDF2 = rfc8018.id_PBKDF2
98
+
99
+
100
+ # The few things that are not already defined elsewhere
101
+
102
+ hMAC_SHA1 = univ.ObjectIdentifier('1.3.6.1.5.5.8.1.2')
103
+
104
+
105
+ id_alg_ESDH = univ.ObjectIdentifier('1.2.840.113549.1.9.16.3.5')
106
+
107
+
108
+ id_alg_SSDH = univ.ObjectIdentifier('1.2.840.113549.1.9.16.3.10')
109
+
110
+
111
+ id_alg_CMSRC2wrap = univ.ObjectIdentifier('1.2.840.113549.1.9.16.3.7')
112
+
113
+
114
+ class RC2ParameterVersion(univ.Integer):
115
+ pass
116
+
117
+
118
+ class RC2wrapParameter(RC2ParameterVersion):
119
+ pass
120
+
121
+
122
+ class Dss_Pub_Key(univ.Integer):
123
+ pass
124
+
125
+
126
+ # Update the Algorithm Identifier map in rfc5280.py.
127
+
128
+ _algorithmIdentifierMapUpdate = {
129
+ hMAC_SHA1: univ.Null(""),
130
+ id_alg_CMSRC2wrap: RC2wrapParameter(),
131
+ id_alg_ESDH: KeyWrapAlgorithm(),
132
+ id_alg_SSDH: KeyWrapAlgorithm(),
133
+ }
134
+
135
+ rfc5280.algorithmIdentifierMap.update(_algorithmIdentifierMapUpdate)
136
+
137
+
138
+ # Update the S/MIME Capabilities map in rfc5751.py.
139
+
140
+ _smimeCapabilityMapUpdate = {
141
+ id_alg_CMSRC2wrap: RC2wrapParameter(),
142
+ id_alg_ESDH: KeyWrapAlgorithm(),
143
+ id_alg_SSDH: KeyWrapAlgorithm(),
144
+ }
145
+
146
+ rfc5751.smimeCapabilityMap.update(_smimeCapabilityMapUpdate)
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc4043.py ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # This file is part of pyasn1-modules software.
3
+ #
4
+ # Created by Russ Housley with assistance from asn1ate v.0.6.0.
5
+ #
6
+ # Copyright (c) 2019, Vigil Security, LLC
7
+ # License: http://snmplabs.com/pyasn1/license.html
8
+ #
9
+ # Internet X.509 Public Key Infrastructure Permanent Identifier
10
+ #
11
+ # ASN.1 source from:
12
+ # https://www.rfc-editor.org/rfc/rfc4043.txt
13
+ #
14
+
15
+ from pyasn1.type import char
16
+ from pyasn1.type import namedtype
17
+ from pyasn1.type import univ
18
+
19
+ from pyasn1_modules import rfc5280
20
+
21
+
22
+ id_pkix = univ.ObjectIdentifier((1, 3, 6, 1, 5, 5, 7, ))
23
+
24
+ id_on = id_pkix + (8, )
25
+
26
+ id_on_permanentIdentifier = id_on + (3, )
27
+
28
+
29
+ class PermanentIdentifier(univ.Sequence):
30
+ componentType = namedtype.NamedTypes(
31
+ namedtype.OptionalNamedType('identifierValue', char.UTF8String()),
32
+ namedtype.OptionalNamedType('assigner', univ.ObjectIdentifier())
33
+ )
34
+
35
+
36
+ # Map of Other Name OIDs to Other Name is added to the
37
+ # ones that are in rfc5280.py
38
+
39
+ _anotherNameMapUpdate = {
40
+ id_on_permanentIdentifier: PermanentIdentifier(),
41
+ }
42
+
43
+ rfc5280.anotherNameMap.update(_anotherNameMapUpdate)
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc4985.py ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # This file is part of pyasn1-modules software.
3
+ #
4
+ # Created by Russ Housley.
5
+ #
6
+ # Copyright (c) 2019, Vigil Security, LLC
7
+ # License: http://snmplabs.com/pyasn1/license.html
8
+ #
9
+ # Expression of Service Names in X.509 Certificates
10
+ #
11
+ # ASN.1 source from:
12
+ # https://www.rfc-editor.org/rfc/rfc4985.txt
13
+ #
14
+
15
+ from pyasn1.type import char
16
+ from pyasn1.type import constraint
17
+ from pyasn1.type import univ
18
+
19
+ from pyasn1_modules import rfc5280
20
+
21
+ MAX = float('inf')
22
+
23
+
24
+ # As specified in Appendix A.2 of RFC 4985
25
+
26
+ id_pkix = rfc5280.id_pkix
27
+
28
+ id_on = id_pkix + (8, )
29
+
30
+ id_on_dnsSRV = id_on + (7, )
31
+
32
+
33
+ class SRVName(char.IA5String):
34
+ subtypeSpec = constraint.ValueSizeConstraint(1, MAX)
35
+
36
+
37
+ srvName = rfc5280.AnotherName()
38
+ srvName['type-id'] = id_on_dnsSRV
39
+ srvName['value'] = SRVName()
40
+
41
+
42
+ # Map of Other Name OIDs to Other Name is added to the
43
+ # ones that are in rfc5280.py
44
+
45
+ _anotherNameMapUpdate = {
46
+ id_on_dnsSRV: SRVName(),
47
+ }
48
+
49
+ rfc5280.anotherNameMap.update(_anotherNameMapUpdate)
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc5755.py ADDED
@@ -0,0 +1,398 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # This file is part of pyasn1-modules software.
3
+ #
4
+ # Created by Russ Housley with assistance from asn1ate v.0.6.0.
5
+ #
6
+ # Copyright (c) 2019, Vigil Security, LLC
7
+ # License: http://snmplabs.com/pyasn1/license.html
8
+ #
9
+ # An Internet Attribute Certificate Profile for Authorization
10
+ #
11
+ # ASN.1 source from:
12
+ # https://www.rfc-editor.org/rfc/rfc5755.txt
13
+ # https://www.rfc-editor.org/rfc/rfc5912.txt (see Section 13)
14
+ #
15
+
16
+ from pyasn1.type import char
17
+ from pyasn1.type import constraint
18
+ from pyasn1.type import namedtype
19
+ from pyasn1.type import namedval
20
+ from pyasn1.type import opentype
21
+ from pyasn1.type import tag
22
+ from pyasn1.type import univ
23
+ from pyasn1.type import useful
24
+
25
+ from pyasn1_modules import rfc5280
26
+ from pyasn1_modules import rfc5652
27
+
28
+ MAX = float('inf')
29
+
30
+ # Map for Security Category type to value
31
+
32
+ securityCategoryMap = { }
33
+
34
+
35
+ # Imports from RFC 5652
36
+
37
+ ContentInfo = rfc5652.ContentInfo
38
+
39
+
40
+ # Imports from RFC 5280
41
+
42
+ AlgorithmIdentifier = rfc5280.AlgorithmIdentifier
43
+
44
+ Attribute = rfc5280.Attribute
45
+
46
+ AuthorityInfoAccessSyntax = rfc5280.AuthorityInfoAccessSyntax
47
+
48
+ AuthorityKeyIdentifier = rfc5280.AuthorityKeyIdentifier
49
+
50
+ CertificateSerialNumber = rfc5280.CertificateSerialNumber
51
+
52
+ CRLDistributionPoints = rfc5280.CRLDistributionPoints
53
+
54
+ Extensions = rfc5280.Extensions
55
+
56
+ Extension = rfc5280.Extension
57
+
58
+ GeneralNames = rfc5280.GeneralNames
59
+
60
+ GeneralName = rfc5280.GeneralName
61
+
62
+ UniqueIdentifier = rfc5280.UniqueIdentifier
63
+
64
+
65
+ # Object Identifier arcs
66
+
67
+ id_pkix = univ.ObjectIdentifier((1, 3, 6, 1, 5, 5, 7, ))
68
+
69
+ id_pe = id_pkix + (1, )
70
+
71
+ id_kp = id_pkix + (3, )
72
+
73
+ id_aca = id_pkix + (10, )
74
+
75
+ id_ad = id_pkix + (48, )
76
+
77
+ id_at = univ.ObjectIdentifier((2, 5, 4, ))
78
+
79
+ id_ce = univ.ObjectIdentifier((2, 5, 29, ))
80
+
81
+
82
+ # Attribute Certificate
83
+
84
+ class AttCertVersion(univ.Integer):
85
+ namedValues = namedval.NamedValues(
86
+ ('v2', 1)
87
+ )
88
+
89
+
90
+ class IssuerSerial(univ.Sequence):
91
+ componentType = namedtype.NamedTypes(
92
+ namedtype.NamedType('issuer', GeneralNames()),
93
+ namedtype.NamedType('serial', CertificateSerialNumber()),
94
+ namedtype.OptionalNamedType('issuerUID', UniqueIdentifier())
95
+ )
96
+
97
+
98
+ class ObjectDigestInfo(univ.Sequence):
99
+ componentType = namedtype.NamedTypes(
100
+ namedtype.NamedType('digestedObjectType',
101
+ univ.Enumerated(namedValues=namedval.NamedValues(
102
+ ('publicKey', 0),
103
+ ('publicKeyCert', 1),
104
+ ('otherObjectTypes', 2)))),
105
+ namedtype.OptionalNamedType('otherObjectTypeID',
106
+ univ.ObjectIdentifier()),
107
+ namedtype.NamedType('digestAlgorithm',
108
+ AlgorithmIdentifier()),
109
+ namedtype.NamedType('objectDigest',
110
+ univ.BitString())
111
+ )
112
+
113
+
114
+ class Holder(univ.Sequence):
115
+ componentType = namedtype.NamedTypes(
116
+ namedtype.OptionalNamedType('baseCertificateID',
117
+ IssuerSerial().subtype(implicitTag=tag.Tag(
118
+ tag.tagClassContext, tag.tagFormatConstructed, 0))),
119
+ namedtype.OptionalNamedType('entityName',
120
+ GeneralNames().subtype(implicitTag=tag.Tag(
121
+ tag.tagClassContext, tag.tagFormatSimple, 1))),
122
+ namedtype.OptionalNamedType('objectDigestInfo',
123
+ ObjectDigestInfo().subtype(implicitTag=tag.Tag(
124
+ tag.tagClassContext, tag.tagFormatConstructed, 2)))
125
+ )
126
+
127
+
128
+ class V2Form(univ.Sequence):
129
+ componentType = namedtype.NamedTypes(
130
+ namedtype.OptionalNamedType('issuerName',
131
+ GeneralNames()),
132
+ namedtype.OptionalNamedType('baseCertificateID',
133
+ IssuerSerial().subtype(implicitTag=tag.Tag(
134
+ tag.tagClassContext, tag.tagFormatConstructed, 0))),
135
+ namedtype.OptionalNamedType('objectDigestInfo',
136
+ ObjectDigestInfo().subtype(implicitTag=tag.Tag(
137
+ tag.tagClassContext, tag.tagFormatConstructed, 1)))
138
+ )
139
+
140
+
141
+ class AttCertIssuer(univ.Choice):
142
+ componentType = namedtype.NamedTypes(
143
+ namedtype.NamedType('v1Form', GeneralNames()),
144
+ namedtype.NamedType('v2Form', V2Form().subtype(implicitTag=tag.Tag(
145
+ tag.tagClassContext, tag.tagFormatConstructed, 0)))
146
+ )
147
+
148
+
149
+ class AttCertValidityPeriod(univ.Sequence):
150
+ componentType = namedtype.NamedTypes(
151
+ namedtype.NamedType('notBeforeTime', useful.GeneralizedTime()),
152
+ namedtype.NamedType('notAfterTime', useful.GeneralizedTime())
153
+ )
154
+
155
+
156
+ class AttributeCertificateInfo(univ.Sequence):
157
+ componentType = namedtype.NamedTypes(
158
+ namedtype.NamedType('version',
159
+ AttCertVersion()),
160
+ namedtype.NamedType('holder',
161
+ Holder()),
162
+ namedtype.NamedType('issuer',
163
+ AttCertIssuer()),
164
+ namedtype.NamedType('signature',
165
+ AlgorithmIdentifier()),
166
+ namedtype.NamedType('serialNumber',
167
+ CertificateSerialNumber()),
168
+ namedtype.NamedType('attrCertValidityPeriod',
169
+ AttCertValidityPeriod()),
170
+ namedtype.NamedType('attributes',
171
+ univ.SequenceOf(componentType=Attribute())),
172
+ namedtype.OptionalNamedType('issuerUniqueID',
173
+ UniqueIdentifier()),
174
+ namedtype.OptionalNamedType('extensions',
175
+ Extensions())
176
+ )
177
+
178
+
179
+ class AttributeCertificate(univ.Sequence):
180
+ componentType = namedtype.NamedTypes(
181
+ namedtype.NamedType('acinfo', AttributeCertificateInfo()),
182
+ namedtype.NamedType('signatureAlgorithm', AlgorithmIdentifier()),
183
+ namedtype.NamedType('signatureValue', univ.BitString())
184
+ )
185
+
186
+
187
+ # Attribute Certificate Extensions
188
+
189
+ id_pe_ac_auditIdentity = id_pe + (4, )
190
+
191
+ id_ce_noRevAvail = id_ce + (56, )
192
+
193
+ id_ce_targetInformation = id_ce + (55, )
194
+
195
+
196
+ class TargetCert(univ.Sequence):
197
+ componentType = namedtype.NamedTypes(
198
+ namedtype.NamedType('targetCertificate', IssuerSerial()),
199
+ namedtype.OptionalNamedType('targetName', GeneralName()),
200
+ namedtype.OptionalNamedType('certDigestInfo', ObjectDigestInfo())
201
+ )
202
+
203
+
204
+ class Target(univ.Choice):
205
+ componentType = namedtype.NamedTypes(
206
+ namedtype.NamedType('targetName',
207
+ GeneralName().subtype(implicitTag=tag.Tag(
208
+ tag.tagClassContext, tag.tagFormatSimple, 0))),
209
+ namedtype.NamedType('targetGroup',
210
+ GeneralName().subtype(implicitTag=tag.Tag(
211
+ tag.tagClassContext, tag.tagFormatSimple, 1))),
212
+ namedtype.NamedType('targetCert',
213
+ TargetCert().subtype(implicitTag=tag.Tag(
214
+ tag.tagClassContext, tag.tagFormatConstructed, 2)))
215
+ )
216
+
217
+
218
+ class Targets(univ.SequenceOf):
219
+ componentType = Target()
220
+
221
+
222
+ id_pe_ac_proxying = id_pe + (10, )
223
+
224
+
225
+ class ProxyInfo(univ.SequenceOf):
226
+ componentType = Targets()
227
+
228
+
229
+ id_pe_aaControls = id_pe + (6, )
230
+
231
+
232
+ class AttrSpec(univ.SequenceOf):
233
+ componentType = univ.ObjectIdentifier()
234
+
235
+
236
+ class AAControls(univ.Sequence):
237
+ componentType = namedtype.NamedTypes(
238
+ namedtype.OptionalNamedType('pathLenConstraint',
239
+ univ.Integer().subtype(
240
+ subtypeSpec=constraint.ValueRangeConstraint(0, MAX))),
241
+ namedtype.OptionalNamedType('permittedAttrs',
242
+ AttrSpec().subtype(implicitTag=tag.Tag(
243
+ tag.tagClassContext, tag.tagFormatSimple, 0))),
244
+ namedtype.OptionalNamedType('excludedAttrs',
245
+ AttrSpec().subtype(implicitTag=tag.Tag(
246
+ tag.tagClassContext, tag.tagFormatSimple, 1))),
247
+ namedtype.DefaultedNamedType('permitUnSpecified',
248
+ univ.Boolean().subtype(value=1))
249
+ )
250
+
251
+
252
+ # Attribute Certificate Attributes
253
+
254
+ id_aca_authenticationInfo = id_aca + (1, )
255
+
256
+
257
+ id_aca_accessIdentity = id_aca + (2, )
258
+
259
+
260
+ class SvceAuthInfo(univ.Sequence):
261
+ componentType = namedtype.NamedTypes(
262
+ namedtype.NamedType('service', GeneralName()),
263
+ namedtype.NamedType('ident', GeneralName()),
264
+ namedtype.OptionalNamedType('authInfo', univ.OctetString())
265
+ )
266
+
267
+
268
+ id_aca_chargingIdentity = id_aca + (3, )
269
+
270
+
271
+ id_aca_group = id_aca + (4, )
272
+
273
+
274
+ class IetfAttrSyntax(univ.Sequence):
275
+ componentType = namedtype.NamedTypes(
276
+ namedtype.OptionalNamedType('policyAuthority',
277
+ GeneralNames().subtype(implicitTag=tag.Tag(
278
+ tag.tagClassContext, tag.tagFormatSimple, 0))),
279
+ namedtype.NamedType('values', univ.SequenceOf(
280
+ componentType=univ.Choice(componentType=namedtype.NamedTypes(
281
+ namedtype.NamedType('octets', univ.OctetString()),
282
+ namedtype.NamedType('oid', univ.ObjectIdentifier()),
283
+ namedtype.NamedType('string', char.UTF8String())
284
+ ))
285
+ ))
286
+ )
287
+
288
+
289
+ id_at_role = id_at + (72,)
290
+
291
+
292
+ class RoleSyntax(univ.Sequence):
293
+ componentType = namedtype.NamedTypes(
294
+ namedtype.OptionalNamedType('roleAuthority',
295
+ GeneralNames().subtype(implicitTag=tag.Tag(
296
+ tag.tagClassContext, tag.tagFormatSimple, 0))),
297
+ namedtype.NamedType('roleName',
298
+ GeneralName().subtype(implicitTag=tag.Tag(
299
+ tag.tagClassContext, tag.tagFormatSimple, 1)))
300
+ )
301
+
302
+
303
+ class ClassList(univ.BitString):
304
+ namedValues = namedval.NamedValues(
305
+ ('unmarked', 0),
306
+ ('unclassified', 1),
307
+ ('restricted', 2),
308
+ ('confidential', 3),
309
+ ('secret', 4),
310
+ ('topSecret', 5)
311
+ )
312
+
313
+
314
+ class SecurityCategory(univ.Sequence):
315
+ componentType = namedtype.NamedTypes(
316
+ namedtype.NamedType('type',
317
+ univ.ObjectIdentifier().subtype(implicitTag=tag.Tag(
318
+ tag.tagClassContext, tag.tagFormatSimple, 0))),
319
+ namedtype.NamedType('value',
320
+ univ.Any().subtype(implicitTag=tag.Tag(
321
+ tag.tagClassContext, tag.tagFormatSimple, 1)),
322
+ openType=opentype.OpenType('type', securityCategoryMap))
323
+ )
324
+
325
+
326
+ id_at_clearance = univ.ObjectIdentifier((2, 5, 4, 55, ))
327
+
328
+
329
+ class Clearance(univ.Sequence):
330
+ componentType = namedtype.NamedTypes(
331
+ namedtype.NamedType('policyId',
332
+ univ.ObjectIdentifier()),
333
+ namedtype.DefaultedNamedType('classList',
334
+ ClassList().subtype(value='unclassified')),
335
+ namedtype.OptionalNamedType('securityCategories',
336
+ univ.SetOf(componentType=SecurityCategory()))
337
+ )
338
+
339
+
340
+ id_at_clearance_rfc3281 = univ.ObjectIdentifier((2, 5, 1, 5, 55, ))
341
+
342
+
343
+ class Clearance_rfc3281(univ.Sequence):
344
+ componentType = namedtype.NamedTypes(
345
+ namedtype.NamedType('policyId',
346
+ univ.ObjectIdentifier().subtype(implicitTag=tag.Tag(
347
+ tag.tagClassContext, tag.tagFormatSimple, 0))),
348
+ namedtype.DefaultedNamedType('classList',
349
+ ClassList().subtype(implicitTag=tag.Tag(
350
+ tag.tagClassContext, tag.tagFormatSimple, 1)).subtype(
351
+ value='unclassified')),
352
+ namedtype.OptionalNamedType('securityCategories',
353
+ univ.SetOf(componentType=SecurityCategory()).subtype(
354
+ implicitTag=tag.Tag(
355
+ tag.tagClassContext, tag.tagFormatSimple, 2)))
356
+ )
357
+
358
+
359
+ id_aca_encAttrs = id_aca + (6, )
360
+
361
+
362
+ class ACClearAttrs(univ.Sequence):
363
+ componentType = namedtype.NamedTypes(
364
+ namedtype.NamedType('acIssuer', GeneralName()),
365
+ namedtype.NamedType('acSerial', univ.Integer()),
366
+ namedtype.NamedType('attrs', univ.SequenceOf(componentType=Attribute()))
367
+ )
368
+
369
+
370
+ # Map of Certificate Extension OIDs to Extensions added to the
371
+ # ones that are in rfc5280.py
372
+
373
+ _certificateExtensionsMapUpdate = {
374
+ id_pe_ac_auditIdentity: univ.OctetString(),
375
+ id_ce_noRevAvail: univ.Null(),
376
+ id_ce_targetInformation: Targets(),
377
+ id_pe_ac_proxying: ProxyInfo(),
378
+ id_pe_aaControls: AAControls(),
379
+ }
380
+
381
+ rfc5280.certificateExtensionsMap.update(_certificateExtensionsMapUpdate)
382
+
383
+
384
+ # Map of AttributeType OIDs to AttributeValue added to the
385
+ # ones that are in rfc5280.py
386
+
387
+ _certificateAttributesMapUpdate = {
388
+ id_aca_authenticationInfo: SvceAuthInfo(),
389
+ id_aca_accessIdentity: SvceAuthInfo(),
390
+ id_aca_chargingIdentity: IetfAttrSyntax(),
391
+ id_aca_group: IetfAttrSyntax(),
392
+ id_at_role: RoleSyntax(),
393
+ id_at_clearance: Clearance(),
394
+ id_at_clearance_rfc3281: Clearance_rfc3281(),
395
+ id_aca_encAttrs: ContentInfo(),
396
+ }
397
+
398
+ rfc5280.certificateAttributesMap.update(_certificateAttributesMapUpdate)
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc5924.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # This file is part of pyasn1-modules software.
3
+ #
4
+ # Created by Russ Housley.
5
+ #
6
+ # Copyright (c) 2019, Vigil Security, LLC
7
+ # License: http://snmplabs.com/pyasn1/license.html
8
+ #
9
+ # Extended Key Usage (EKU) for Session Initiation Protocol (SIP)
10
+ #
11
+ # ASN.1 source from:
12
+ # https://www.rfc-editor.org/rfc/rfc5924.txt
13
+ #
14
+
15
+ from pyasn1.type import univ
16
+
17
+ id_kp = univ.ObjectIdentifier('1.3.6.1.5.5.7.3')
18
+
19
+ id_kp_sipDomain = id_kp + (20, )
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc6032.py ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # This file is part of pyasn1-modules software.
3
+ #
4
+ # Created by Russ Housley with assistance from asn1ate v.0.6.0.
5
+ #
6
+ # Copyright (c) 2019, Vigil Security, LLC
7
+ # License: http://snmplabs.com/pyasn1/license.html
8
+ #
9
+ # CMS Encrypted Key Package Content Type
10
+ #
11
+ # ASN.1 source from:
12
+ # https://www.rfc-editor.org/rfc/rfc6032.txt
13
+ #
14
+
15
+ from pyasn1.type import namedtype
16
+ from pyasn1.type import tag
17
+ from pyasn1.type import univ
18
+
19
+ from pyasn1_modules import rfc5652
20
+ from pyasn1_modules import rfc5083
21
+
22
+
23
+ # Content Decryption Key Identifier attribute
24
+
25
+ id_aa_KP_contentDecryptKeyID = univ.ObjectIdentifier('2.16.840.1.101.2.1.5.66')
26
+
27
+ class ContentDecryptKeyID(univ.OctetString):
28
+ pass
29
+
30
+ aa_content_decrypt_key_identifier = rfc5652.Attribute()
31
+ aa_content_decrypt_key_identifier['attrType'] = id_aa_KP_contentDecryptKeyID
32
+ aa_content_decrypt_key_identifier['attrValues'][0] = ContentDecryptKeyID()
33
+
34
+
35
+ # Encrypted Key Package Content Type
36
+
37
+ id_ct_KP_encryptedKeyPkg = univ.ObjectIdentifier('2.16.840.1.101.2.1.2.78.2')
38
+
39
+ class EncryptedKeyPackage(univ.Choice):
40
+ pass
41
+
42
+ EncryptedKeyPackage.componentType = namedtype.NamedTypes(
43
+ namedtype.NamedType('encrypted', rfc5652.EncryptedData()),
44
+ namedtype.NamedType('enveloped', rfc5652.EnvelopedData().subtype(
45
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
46
+ namedtype.NamedType('authEnveloped', rfc5083.AuthEnvelopedData().subtype(
47
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1)))
48
+ )
49
+
50
+
51
+ # Map of Attribute Type OIDs to Attributes are
52
+ # added to the ones that are in rfc5652.py
53
+
54
+ _cmsAttributesMapUpdate = {
55
+ id_aa_KP_contentDecryptKeyID: ContentDecryptKeyID(),
56
+ }
57
+
58
+ rfc5652.cmsAttributesMap.update(_cmsAttributesMapUpdate)
59
+
60
+
61
+ # Map of Content Type OIDs to Content Types are
62
+ # added to the ones that are in rfc5652.py
63
+
64
+ _cmsContentTypesMapUpdate = {
65
+ id_ct_KP_encryptedKeyPkg: EncryptedKeyPackage(),
66
+ }
67
+
68
+ rfc5652.cmsContentTypesMap.update(_cmsContentTypesMapUpdate)
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc6955.py ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # This file is part of pyasn1-modules software.
3
+ #
4
+ # Created by Russ Housley.
5
+ #
6
+ # Copyright (c) 2019, Vigil Security, LLC
7
+ # License: http://snmplabs.com/pyasn1/license.html
8
+ #
9
+ # Diffie-Hellman Proof-of-Possession Algorithms
10
+ #
11
+ # ASN.1 source from:
12
+ # https://www.rfc-editor.org/rfc/rfc6955.txt
13
+ #
14
+
15
+ from pyasn1.type import namedtype
16
+ from pyasn1.type import univ
17
+
18
+ from pyasn1_modules import rfc3279
19
+ from pyasn1_modules import rfc5280
20
+ from pyasn1_modules import rfc5652
21
+
22
+
23
+ # Imports from RFC 5652
24
+
25
+ MessageDigest = rfc5652.MessageDigest
26
+
27
+ IssuerAndSerialNumber = rfc5652.IssuerAndSerialNumber
28
+
29
+
30
+ # Imports from RFC 5280
31
+
32
+ id_pkix = rfc5280.id_pkix
33
+
34
+
35
+ # Imports from RFC 3279
36
+
37
+ Dss_Sig_Value = rfc3279.Dss_Sig_Value
38
+
39
+ DomainParameters = rfc3279.DomainParameters
40
+
41
+
42
+ # Static DH Proof-of-Possession
43
+
44
+ class DhSigStatic(univ.Sequence):
45
+ componentType = namedtype.NamedTypes(
46
+ namedtype.OptionalNamedType('issuerAndSerial', IssuerAndSerialNumber()),
47
+ namedtype.NamedType('hashValue', MessageDigest())
48
+ )
49
+
50
+
51
+ # Object Identifiers
52
+
53
+ id_dh_sig_hmac_sha1 = id_pkix + (6, 3, )
54
+
55
+ id_dhPop_static_sha1_hmac_sha1 = univ.ObjectIdentifier(id_dh_sig_hmac_sha1)
56
+
57
+
58
+ id_alg_dh_pop = id_pkix + (6, 4, )
59
+
60
+ id_alg_dhPop_sha1 = univ.ObjectIdentifier(id_alg_dh_pop)
61
+
62
+ id_alg_dhPop_sha224 = id_pkix + (6, 5, )
63
+
64
+ id_alg_dhPop_sha256 = id_pkix + (6, 6, )
65
+
66
+ id_alg_dhPop_sha384 = id_pkix + (6, 7, )
67
+
68
+ id_alg_dhPop_sha512 = id_pkix + (6, 8, )
69
+
70
+
71
+ id_alg_dhPop_static_sha224_hmac_sha224 = id_pkix + (6, 15, )
72
+
73
+ id_alg_dhPop_static_sha256_hmac_sha256 = id_pkix + (6, 16, )
74
+
75
+ id_alg_dhPop_static_sha384_hmac_sha384 = id_pkix + (6, 17, )
76
+
77
+ id_alg_dhPop_static_sha512_hmac_sha512 = id_pkix + (6, 18, )
78
+
79
+
80
+ id_alg_ecdhPop_static_sha224_hmac_sha224 = id_pkix + (6, 25, )
81
+
82
+ id_alg_ecdhPop_static_sha256_hmac_sha256 = id_pkix + (6, 26, )
83
+
84
+ id_alg_ecdhPop_static_sha384_hmac_sha384 = id_pkix + (6, 27, )
85
+
86
+ id_alg_ecdhPop_static_sha512_hmac_sha512 = id_pkix + (6, 28, )
87
+
88
+
89
+ # Update the Algorithm Identifier map in rfc5280.py
90
+
91
+ _algorithmIdentifierMapUpdate = {
92
+ id_alg_dh_pop: DomainParameters(),
93
+ id_alg_dhPop_sha224: DomainParameters(),
94
+ id_alg_dhPop_sha256: DomainParameters(),
95
+ id_alg_dhPop_sha384: DomainParameters(),
96
+ id_alg_dhPop_sha512: DomainParameters(),
97
+ id_dh_sig_hmac_sha1: univ.Null(""),
98
+ id_alg_dhPop_static_sha224_hmac_sha224: univ.Null(""),
99
+ id_alg_dhPop_static_sha256_hmac_sha256: univ.Null(""),
100
+ id_alg_dhPop_static_sha384_hmac_sha384: univ.Null(""),
101
+ id_alg_dhPop_static_sha512_hmac_sha512: univ.Null(""),
102
+ id_alg_ecdhPop_static_sha224_hmac_sha224: univ.Null(""),
103
+ id_alg_ecdhPop_static_sha256_hmac_sha256: univ.Null(""),
104
+ id_alg_ecdhPop_static_sha384_hmac_sha384: univ.Null(""),
105
+ id_alg_ecdhPop_static_sha512_hmac_sha512: univ.Null(""),
106
+ }
107
+
108
+ rfc5280.algorithmIdentifierMap.update(_algorithmIdentifierMapUpdate)
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc7229.py ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # This file is part of pyasn1-modules software.
3
+ #
4
+ # Created by Russ Housley.
5
+ #
6
+ # Copyright (c) 2019, Vigil Security, LLC
7
+ # License: http://snmplabs.com/pyasn1/license.html
8
+ #
9
+ # Object Identifiers for Test Certificate Policies
10
+ #
11
+ # ASN.1 source from:
12
+ # https://www.rfc-editor.org/rfc/rfc7229.txt
13
+ #
14
+
15
+ from pyasn1.type import univ
16
+
17
+
18
+ id_pkix = univ.ObjectIdentifier('1.3.6.1.5.5.7')
19
+
20
+ id_TEST = id_pkix + (13, )
21
+
22
+ id_TEST_certPolicyOne = id_TEST + (1, )
23
+ id_TEST_certPolicyTwo = id_TEST + (2, )
24
+ id_TEST_certPolicyThree = id_TEST + (3, )
25
+ id_TEST_certPolicyFour = id_TEST + (4, )
26
+ id_TEST_certPolicyFive = id_TEST + (5, )
27
+ id_TEST_certPolicySix = id_TEST + (6, )
28
+ id_TEST_certPolicySeven = id_TEST + (7, )
29
+ id_TEST_certPolicyEight = id_TEST + (8, )
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc7585.py ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # This file is part of pyasn1-modules software.
3
+ #
4
+ # Created by Russ Housley with some assistance from asn1ate v.0.6.0.
5
+ #
6
+ # Copyright (c) 2019, Vigil Security, LLC
7
+ # License: http://snmplabs.com/pyasn1/license.html
8
+ #
9
+ # Network Access Identifier (NAI) Realm Name for Certificates
10
+ #
11
+ # ASN.1 source from:
12
+ # https://www.rfc-editor.org/rfc/rfc7585.txt
13
+ #
14
+
15
+ from pyasn1.type import char
16
+ from pyasn1.type import constraint
17
+ from pyasn1.type import univ
18
+
19
+ from pyasn1_modules import rfc5280
20
+
21
+
22
+ # NAI Realm Name for Certificates
23
+
24
+ id_pkix = univ.ObjectIdentifier('1.3.6.1.5.5.7')
25
+
26
+ id_on = id_pkix + (8, )
27
+
28
+ id_on_naiRealm = id_on + (8, )
29
+
30
+
31
+ ub_naiRealm_length = univ.Integer(255)
32
+
33
+
34
+ class NAIRealm(char.UTF8String):
35
+ subtypeSpec = constraint.ValueSizeConstraint(1, ub_naiRealm_length)
36
+
37
+
38
+ naiRealm = rfc5280.AnotherName()
39
+ naiRealm['type-id'] = id_on_naiRealm
40
+ naiRealm['value'] = NAIRealm()
41
+
42
+
43
+ # Map of Other Name OIDs to Other Name is added to the
44
+ # ones that are in rfc5280.py
45
+
46
+ _anotherNameMapUpdate = {
47
+ id_on_naiRealm: NAIRealm(),
48
+ }
49
+
50
+ rfc5280.anotherNameMap.update(_anotherNameMapUpdate)
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc7894.py ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # This file is part of pyasn1-modules software.
3
+ #
4
+ # Created by Russ Housley.
5
+ #
6
+ # Copyright (c) 2019, Vigil Security, LLC
7
+ # License: http://snmplabs.com/pyasn1/license.html
8
+ #
9
+ # Alternative Challenge Password Attributes for EST
10
+ #
11
+ # ASN.1 source from:
12
+ # https://www.rfc-editor.org/rfc/rfc7894.txt
13
+ #
14
+
15
+ from pyasn1.type import char
16
+ from pyasn1.type import constraint
17
+ from pyasn1.type import namedtype
18
+ from pyasn1.type import univ
19
+
20
+ from pyasn1_modules import rfc5652
21
+ from pyasn1_modules import rfc6402
22
+ from pyasn1_modules import rfc7191
23
+
24
+
25
+ # SingleAttribute is the same as Attribute in RFC 5652, except that the
26
+ # attrValues SET must have one and only one member
27
+
28
+ Attribute = rfc7191.SingleAttribute
29
+
30
+
31
+ # DirectoryString is the same as RFC 5280, except the length is limited to 255
32
+
33
+ class DirectoryString(univ.Choice):
34
+ pass
35
+
36
+ DirectoryString.componentType = namedtype.NamedTypes(
37
+ namedtype.NamedType('teletexString', char.TeletexString().subtype(
38
+ subtypeSpec=constraint.ValueSizeConstraint(1, 255))),
39
+ namedtype.NamedType('printableString', char.PrintableString().subtype(
40
+ subtypeSpec=constraint.ValueSizeConstraint(1, 255))),
41
+ namedtype.NamedType('universalString', char.UniversalString().subtype(
42
+ subtypeSpec=constraint.ValueSizeConstraint(1, 255))),
43
+ namedtype.NamedType('utf8String', char.UTF8String().subtype(
44
+ subtypeSpec=constraint.ValueSizeConstraint(1, 255))),
45
+ namedtype.NamedType('bmpString', char.BMPString().subtype(
46
+ subtypeSpec=constraint.ValueSizeConstraint(1, 255)))
47
+ )
48
+
49
+
50
+ # OTP Challenge Attribute
51
+
52
+ id_aa_otpChallenge = univ.ObjectIdentifier('1.2.840.113549.1.9.16.2.56')
53
+
54
+ ub_aa_otpChallenge = univ.Integer(255)
55
+
56
+ otpChallenge = Attribute()
57
+ otpChallenge['attrType'] = id_aa_otpChallenge
58
+ otpChallenge['attrValues'][0] = DirectoryString()
59
+
60
+
61
+ # Revocation Challenge Attribute
62
+
63
+ id_aa_revocationChallenge = univ.ObjectIdentifier('1.2.840.113549.1.9.16.2.57')
64
+
65
+ ub_aa_revocationChallenge = univ.Integer(255)
66
+
67
+ revocationChallenge = Attribute()
68
+ revocationChallenge['attrType'] = id_aa_revocationChallenge
69
+ revocationChallenge['attrValues'][0] = DirectoryString()
70
+
71
+
72
+ # EST Identity Linking Attribute
73
+
74
+ id_aa_estIdentityLinking = univ.ObjectIdentifier('1.2.840.113549.1.9.16.2.58')
75
+
76
+ ub_aa_est_identity_linking = univ.Integer(255)
77
+
78
+ estIdentityLinking = Attribute()
79
+ estIdentityLinking['attrType'] = id_aa_estIdentityLinking
80
+ estIdentityLinking['attrValues'][0] = DirectoryString()
81
+
82
+
83
+ # Map of Attribute Type OIDs to Attributes added to the
84
+ # ones that are in rfc6402.py
85
+
86
+ _cmcControlAttributesMapUpdate = {
87
+ id_aa_otpChallenge: DirectoryString(),
88
+ id_aa_revocationChallenge: DirectoryString(),
89
+ id_aa_estIdentityLinking: DirectoryString(),
90
+ }
91
+
92
+ rfc6402.cmcControlAttributesMap.update(_cmcControlAttributesMapUpdate)
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc8017.py ADDED
@@ -0,0 +1,153 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # This file is part of pyasn1-modules software.
3
+ #
4
+ # Created by Russ Housley.
5
+ #
6
+ # Copyright (c) 2019, Vigil Security, LLC
7
+ # License: http://snmplabs.com/pyasn1/license.html
8
+ #
9
+ # PKCS #1: RSA Cryptography Specifications Version 2.2
10
+ #
11
+ # ASN.1 source from:
12
+ # https://www.rfc-editor.org/rfc/rfc8017.txt
13
+ #
14
+
15
+ from pyasn1.type import constraint
16
+ from pyasn1.type import namedtype
17
+ from pyasn1.type import namedval
18
+ from pyasn1.type import univ
19
+
20
+ from pyasn1_modules import rfc2437
21
+ from pyasn1_modules import rfc3447
22
+ from pyasn1_modules import rfc4055
23
+ from pyasn1_modules import rfc5280
24
+
25
+ MAX = float('inf')
26
+
27
+
28
+ # Import Algorithm Identifier from RFC 5280
29
+
30
+ AlgorithmIdentifier = rfc5280.AlgorithmIdentifier
31
+
32
+ class DigestAlgorithm(AlgorithmIdentifier):
33
+ pass
34
+
35
+ class HashAlgorithm(AlgorithmIdentifier):
36
+ pass
37
+
38
+ class MaskGenAlgorithm(AlgorithmIdentifier):
39
+ pass
40
+
41
+ class PSourceAlgorithm(AlgorithmIdentifier):
42
+ pass
43
+
44
+
45
+ # Object identifiers from NIST SHA2
46
+
47
+ hashAlgs = univ.ObjectIdentifier('2.16.840.1.101.3.4.2')
48
+ id_sha256 = rfc4055.id_sha256
49
+ id_sha384 = rfc4055.id_sha384
50
+ id_sha512 = rfc4055.id_sha512
51
+ id_sha224 = rfc4055.id_sha224
52
+ id_sha512_224 = hashAlgs + (5, )
53
+ id_sha512_256 = hashAlgs + (6, )
54
+
55
+
56
+ # Basic object identifiers
57
+
58
+ pkcs_1 = univ.ObjectIdentifier('1.2.840.113549.1.1')
59
+ rsaEncryption = rfc2437.rsaEncryption
60
+ id_RSAES_OAEP = rfc2437.id_RSAES_OAEP
61
+ id_pSpecified = rfc2437.id_pSpecified
62
+ id_RSASSA_PSS = rfc4055.id_RSASSA_PSS
63
+ md2WithRSAEncryption = rfc2437.md2WithRSAEncryption
64
+ md5WithRSAEncryption = rfc2437.md5WithRSAEncryption
65
+ sha1WithRSAEncryption = rfc2437.sha1WithRSAEncryption
66
+ sha224WithRSAEncryption = rfc4055.sha224WithRSAEncryption
67
+ sha256WithRSAEncryption = rfc4055.sha256WithRSAEncryption
68
+ sha384WithRSAEncryption = rfc4055.sha384WithRSAEncryption
69
+ sha512WithRSAEncryption = rfc4055.sha512WithRSAEncryption
70
+ sha512_224WithRSAEncryption = pkcs_1 + (15, )
71
+ sha512_256WithRSAEncryption = pkcs_1 + (16, )
72
+ id_sha1 = rfc2437.id_sha1
73
+ id_md2 = univ.ObjectIdentifier('1.2.840.113549.2.2')
74
+ id_md5 = univ.ObjectIdentifier('1.2.840.113549.2.5')
75
+ id_mgf1 = rfc2437.id_mgf1
76
+
77
+
78
+ # Default parameter values
79
+
80
+ sha1 = rfc4055.sha1Identifier
81
+ SHA1Parameters = univ.Null("")
82
+
83
+ mgf1SHA1 = rfc4055.mgf1SHA1Identifier
84
+
85
+ class EncodingParameters(univ.OctetString):
86
+ subtypeSpec = constraint.ValueSizeConstraint(0, MAX)
87
+
88
+ pSpecifiedEmpty = rfc4055.pSpecifiedEmptyIdentifier
89
+
90
+ emptyString = EncodingParameters(value='')
91
+
92
+
93
+ # Main structures
94
+
95
+ class Version(univ.Integer):
96
+ namedValues = namedval.NamedValues(
97
+ ('two-prime', 0),
98
+ ('multi', 1)
99
+ )
100
+
101
+ class TrailerField(univ.Integer):
102
+ namedValues = namedval.NamedValues(
103
+ ('trailerFieldBC', 1)
104
+ )
105
+
106
+ RSAPublicKey = rfc2437.RSAPublicKey
107
+
108
+ OtherPrimeInfo = rfc3447.OtherPrimeInfo
109
+ OtherPrimeInfos = rfc3447.OtherPrimeInfos
110
+ RSAPrivateKey = rfc3447.RSAPrivateKey
111
+
112
+ RSAES_OAEP_params = rfc4055.RSAES_OAEP_params
113
+ rSAES_OAEP_Default_Identifier = rfc4055.rSAES_OAEP_Default_Identifier
114
+
115
+ RSASSA_PSS_params = rfc4055.RSASSA_PSS_params
116
+ rSASSA_PSS_Default_Identifier = rfc4055.rSASSA_PSS_Default_Identifier
117
+
118
+
119
+ # Syntax for the EMSA-PKCS1-v1_5 hash identifier
120
+
121
+ class DigestInfo(univ.Sequence):
122
+ componentType = namedtype.NamedTypes(
123
+ namedtype.NamedType('digestAlgorithm', DigestAlgorithm()),
124
+ namedtype.NamedType('digest', univ.OctetString())
125
+ )
126
+
127
+
128
+ # Update the Algorithm Identifier map
129
+
130
+ _algorithmIdentifierMapUpdate = {
131
+ id_sha1: univ.Null(),
132
+ id_sha224: univ.Null(),
133
+ id_sha256: univ.Null(),
134
+ id_sha384: univ.Null(),
135
+ id_sha512: univ.Null(),
136
+ id_sha512_224: univ.Null(),
137
+ id_sha512_256: univ.Null(),
138
+ id_mgf1: AlgorithmIdentifier(),
139
+ id_pSpecified: univ.OctetString(),
140
+ id_RSAES_OAEP: RSAES_OAEP_params(),
141
+ id_RSASSA_PSS: RSASSA_PSS_params(),
142
+ md2WithRSAEncryption: univ.Null(),
143
+ md5WithRSAEncryption: univ.Null(),
144
+ sha1WithRSAEncryption: univ.Null(),
145
+ sha224WithRSAEncryption: univ.Null(),
146
+ sha256WithRSAEncryption: univ.Null(),
147
+ sha384WithRSAEncryption: univ.Null(),
148
+ sha512WithRSAEncryption: univ.Null(),
149
+ sha512_224WithRSAEncryption: univ.Null(),
150
+ sha512_256WithRSAEncryption: univ.Null(),
151
+ }
152
+
153
+ rfc5280.algorithmIdentifierMap.update(_algorithmIdentifierMapUpdate)
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc8103.py ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file is being contributed to pyasn1-modules software.
2
+ #
3
+ # Created by Russ Housley with assistance from the asn1ate tool.
4
+ # Auto-generated by asn1ate v.0.6.0 from rfc8103.asn.
5
+ #
6
+ # Copyright (c) 2019, Vigil Security, LLC
7
+ # License: http://snmplabs.com/pyasn1/license.html
8
+ #
9
+ # ChaCha20Poly1305 algorithm fo use with the Authenticated-Enveloped-Data
10
+ # protecting content type for the Cryptographic Message Syntax (CMS)
11
+ #
12
+ # ASN.1 source from:
13
+ # https://www.rfc-editor.org/rfc/rfc8103.txt
14
+
15
+ from pyasn1.type import constraint
16
+ from pyasn1.type import univ
17
+
18
+
19
+ def _OID(*components):
20
+ output = []
21
+ for x in tuple(components):
22
+ if isinstance(x, univ.ObjectIdentifier):
23
+ output.extend(list(x))
24
+ else:
25
+ output.append(int(x))
26
+
27
+ return univ.ObjectIdentifier(output)
28
+
29
+
30
+ class AEADChaCha20Poly1305Nonce(univ.OctetString):
31
+ pass
32
+
33
+
34
+ AEADChaCha20Poly1305Nonce.subtypeSpec = constraint.ValueSizeConstraint(12, 12)
35
+
36
+ id_alg_AEADChaCha20Poly1305 = _OID(1, 2, 840, 113549, 1, 9, 16, 3, 18)
janus/share/zoneinfo/America/Anchorage ADDED
Binary file (977 Bytes). View file
 
janus/share/zoneinfo/America/Antigua ADDED
Binary file (177 Bytes). View file
 
janus/share/zoneinfo/America/Araguaina ADDED
Binary file (592 Bytes). View file
 
janus/share/zoneinfo/America/Atka ADDED
Binary file (969 Bytes). View file
 
janus/share/zoneinfo/America/Bahia ADDED
Binary file (682 Bytes). View file
 
janus/share/zoneinfo/America/Bahia_Banderas ADDED
Binary file (700 Bytes). View file
 
janus/share/zoneinfo/America/Belize ADDED
Binary file (1.05 kB). View file
 
janus/share/zoneinfo/America/Bogota ADDED
Binary file (179 Bytes). View file
 
janus/share/zoneinfo/America/Boise ADDED
Binary file (999 Bytes). View file
 
janus/share/zoneinfo/America/Cayenne ADDED
Binary file (151 Bytes). View file
 
janus/share/zoneinfo/America/Cayman ADDED
Binary file (149 Bytes). View file
 
janus/share/zoneinfo/America/Chicago ADDED
Binary file (1.75 kB). View file
 
janus/share/zoneinfo/America/Ciudad_Juarez ADDED
Binary file (718 Bytes). View file
 
janus/share/zoneinfo/America/Cordoba ADDED
Binary file (708 Bytes). View file
 
janus/share/zoneinfo/America/Danmarkshavn ADDED
Binary file (447 Bytes). View file
 
janus/share/zoneinfo/America/Denver ADDED
Binary file (1.04 kB). View file
 
janus/share/zoneinfo/America/Dominica ADDED
Binary file (177 Bytes). View file
 
janus/share/zoneinfo/America/Ensenada ADDED
Binary file (1.08 kB). View file
 
janus/share/zoneinfo/America/Fort_Nelson ADDED
Binary file (1.45 kB). View file
 
janus/share/zoneinfo/America/Fort_Wayne ADDED
Binary file (531 Bytes). View file
 
janus/share/zoneinfo/America/Fortaleza ADDED
Binary file (484 Bytes). View file
 
janus/share/zoneinfo/America/Godthab ADDED
Binary file (965 Bytes). View file
 
janus/share/zoneinfo/America/Goose_Bay ADDED
Binary file (1.58 kB). View file
 
janus/share/zoneinfo/America/Grand_Turk ADDED
Binary file (853 Bytes). View file
 
janus/share/zoneinfo/America/Guadeloupe ADDED
Binary file (177 Bytes). View file
 
janus/share/zoneinfo/America/Inuvik ADDED
Binary file (817 Bytes). View file
 
janus/share/zoneinfo/America/Iqaluit ADDED
Binary file (855 Bytes). View file
 
janus/share/zoneinfo/America/Jujuy ADDED
Binary file (690 Bytes). View file
 
janus/share/zoneinfo/America/Knox_IN ADDED
Binary file (1.02 kB). View file
 
janus/share/zoneinfo/America/Managua ADDED
Binary file (295 Bytes). View file
 
janus/share/zoneinfo/America/Marigot ADDED
Binary file (177 Bytes). View file
 
janus/share/zoneinfo/America/Martinique ADDED
Binary file (178 Bytes). View file
 
janus/share/zoneinfo/America/Matamoros ADDED
Binary file (437 Bytes). View file