ZTWHHH commited on
Commit
a80ab82
·
verified ·
1 Parent(s): f4c08e4

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. .gitattributes +4 -0
  2. evalkit_cambrian/lib/python3.10/site-packages/aiohttp/__pycache__/client_exceptions.cpython-310.pyc +0 -0
  3. evalkit_cambrian/lib/python3.10/site-packages/aiohttp/__pycache__/client_proto.cpython-310.pyc +0 -0
  4. evalkit_cambrian/lib/python3.10/site-packages/aiohttp/__pycache__/client_reqrep.cpython-310.pyc +0 -0
  5. evalkit_cambrian/lib/python3.10/site-packages/aiohttp/__pycache__/cookiejar.cpython-310.pyc +0 -0
  6. evalkit_cambrian/lib/python3.10/site-packages/aiohttp/__pycache__/log.cpython-310.pyc +0 -0
  7. evalkit_cambrian/lib/python3.10/site-packages/aiohttp/__pycache__/payload_streamer.cpython-310.pyc +0 -0
  8. evalkit_cambrian/lib/python3.10/site-packages/aiohttp/__pycache__/typedefs.cpython-310.pyc +0 -0
  9. evalkit_cambrian/lib/python3.10/site-packages/aiohttp/__pycache__/web_app.cpython-310.pyc +0 -0
  10. evalkit_cambrian/lib/python3.10/site-packages/aiohttp/__pycache__/web_fileresponse.cpython-310.pyc +0 -0
  11. evalkit_cambrian/lib/python3.10/site-packages/aiohttp/__pycache__/web_protocol.cpython-310.pyc +0 -0
  12. evalkit_cambrian/lib/python3.10/site-packages/aiohttp/__pycache__/web_response.cpython-310.pyc +0 -0
  13. evalkit_cambrian/lib/python3.10/site-packages/aiohttp/__pycache__/web_server.cpython-310.pyc +0 -0
  14. evalkit_cambrian/lib/python3.10/site-packages/aiohttp/_websocket/__pycache__/reader.cpython-310.pyc +0 -0
  15. evalkit_cambrian/lib/python3.10/site-packages/aiohttp/_websocket/models.py +84 -0
  16. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc2631.py +37 -0
  17. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc2634.py +336 -0
  18. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc3058.py +42 -0
  19. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc3161.py +142 -0
  20. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc3279.py +260 -0
  21. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc3565.py +57 -0
  22. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc4108.py +350 -0
  23. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc5940.py +59 -0
  24. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc6120.py +43 -0
  25. evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc8418.py +36 -0
  26. janus/lib/python3.10/__pycache__/__future__.cpython-310.pyc +0 -0
  27. janus/lib/python3.10/__pycache__/_bootsubprocess.cpython-310.pyc +0 -0
  28. janus/lib/python3.10/__pycache__/_collections_abc.cpython-310.pyc +0 -0
  29. janus/lib/python3.10/__pycache__/_compat_pickle.cpython-310.pyc +0 -0
  30. janus/lib/python3.10/__pycache__/_markupbase.cpython-310.pyc +0 -0
  31. janus/lib/python3.10/__pycache__/_pydecimal.cpython-310.pyc +3 -0
  32. janus/lib/python3.10/__pycache__/_pyio.cpython-310.pyc +0 -0
  33. janus/lib/python3.10/__pycache__/_sysconfigdata_x86_64_conda_cos6_linux_gnu.cpython-310.pyc +0 -0
  34. janus/lib/python3.10/__pycache__/_weakrefset.cpython-310.pyc +0 -0
  35. janus/lib/python3.10/__pycache__/abc.cpython-310.pyc +0 -0
  36. janus/lib/python3.10/__pycache__/antigravity.cpython-310.pyc +0 -0
  37. janus/lib/python3.10/__pycache__/asyncore.cpython-310.pyc +0 -0
  38. janus/lib/python3.10/__pycache__/bdb.cpython-310.pyc +0 -0
  39. janus/lib/python3.10/__pycache__/calendar.cpython-310.pyc +0 -0
  40. janus/lib/python3.10/__pycache__/cgitb.cpython-310.pyc +0 -0
  41. janus/lib/python3.10/__pycache__/colorsys.cpython-310.pyc +0 -0
  42. janus/lib/python3.10/__pycache__/decimal.cpython-310.pyc +0 -0
  43. janus/lib/python3.10/__pycache__/difflib.cpython-310.pyc +0 -0
  44. janus/lib/python3.10/__pycache__/dis.cpython-310.pyc +0 -0
  45. janus/lib/python3.10/__pycache__/fnmatch.cpython-310.pyc +0 -0
  46. janus/lib/python3.10/__pycache__/ftplib.cpython-310.pyc +0 -0
  47. janus/lib/python3.10/__pycache__/genericpath.cpython-310.pyc +0 -0
  48. janus/lib/python3.10/__pycache__/getopt.cpython-310.pyc +0 -0
  49. janus/lib/python3.10/__pycache__/gzip.cpython-310.pyc +0 -0
  50. janus/lib/python3.10/__pycache__/heapq.cpython-310.pyc +0 -0
.gitattributes CHANGED
@@ -513,3 +513,7 @@ janus/lib/python3.10/site-packages/numpy/_core/tests/__pycache__/test_regression
513
  janus/lib/python3.10/site-packages/numpy/random/_pcg64.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
514
  janus/lib/python3.10/lib-dynload/_xxsubinterpreters.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
515
  infer_4_33_0/lib/python3.10/site-packages/cmake/data/bin/cpack filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
513
  janus/lib/python3.10/site-packages/numpy/random/_pcg64.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
514
  janus/lib/python3.10/lib-dynload/_xxsubinterpreters.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
515
  infer_4_33_0/lib/python3.10/site-packages/cmake/data/bin/cpack filter=lfs diff=lfs merge=lfs -text
516
+ janus/lib/python3.10/__pycache__/_pydecimal.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
517
+ janus/lib/python3.10/site-packages/numpy/random/_mt19937.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
518
+ janus/lib/python3.10/site-packages/numpy/random/_philox.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
519
+ janus/lib/python3.10/site-packages/numpy/_core/__pycache__/_add_newdocs.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
evalkit_cambrian/lib/python3.10/site-packages/aiohttp/__pycache__/client_exceptions.cpython-310.pyc ADDED
Binary file (13.4 kB). View file
 
evalkit_cambrian/lib/python3.10/site-packages/aiohttp/__pycache__/client_proto.cpython-310.pyc ADDED
Binary file (7.27 kB). View file
 
evalkit_cambrian/lib/python3.10/site-packages/aiohttp/__pycache__/client_reqrep.cpython-310.pyc ADDED
Binary file (32.3 kB). View file
 
evalkit_cambrian/lib/python3.10/site-packages/aiohttp/__pycache__/cookiejar.cpython-310.pyc ADDED
Binary file (12.3 kB). View file
 
evalkit_cambrian/lib/python3.10/site-packages/aiohttp/__pycache__/log.cpython-310.pyc ADDED
Binary file (449 Bytes). View file
 
evalkit_cambrian/lib/python3.10/site-packages/aiohttp/__pycache__/payload_streamer.cpython-310.pyc ADDED
Binary file (3.49 kB). View file
 
evalkit_cambrian/lib/python3.10/site-packages/aiohttp/__pycache__/typedefs.cpython-310.pyc ADDED
Binary file (1.8 kB). View file
 
evalkit_cambrian/lib/python3.10/site-packages/aiohttp/__pycache__/web_app.cpython-310.pyc ADDED
Binary file (17.5 kB). View file
 
evalkit_cambrian/lib/python3.10/site-packages/aiohttp/__pycache__/web_fileresponse.cpython-310.pyc ADDED
Binary file (9.35 kB). View file
 
evalkit_cambrian/lib/python3.10/site-packages/aiohttp/__pycache__/web_protocol.cpython-310.pyc ADDED
Binary file (17.7 kB). View file
 
evalkit_cambrian/lib/python3.10/site-packages/aiohttp/__pycache__/web_response.cpython-310.pyc ADDED
Binary file (22.4 kB). View file
 
evalkit_cambrian/lib/python3.10/site-packages/aiohttp/__pycache__/web_server.cpython-310.pyc ADDED
Binary file (3.53 kB). View file
 
evalkit_cambrian/lib/python3.10/site-packages/aiohttp/_websocket/__pycache__/reader.cpython-310.pyc ADDED
Binary file (657 Bytes). View file
 
evalkit_cambrian/lib/python3.10/site-packages/aiohttp/_websocket/models.py ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Models for WebSocket protocol versions 13 and 8."""
2
+
3
+ import json
4
+ from enum import IntEnum
5
+ from typing import Any, Callable, Final, NamedTuple, Optional, cast
6
+
7
+ WS_DEFLATE_TRAILING: Final[bytes] = bytes([0x00, 0x00, 0xFF, 0xFF])
8
+
9
+
10
+ class WSCloseCode(IntEnum):
11
+ OK = 1000
12
+ GOING_AWAY = 1001
13
+ PROTOCOL_ERROR = 1002
14
+ UNSUPPORTED_DATA = 1003
15
+ ABNORMAL_CLOSURE = 1006
16
+ INVALID_TEXT = 1007
17
+ POLICY_VIOLATION = 1008
18
+ MESSAGE_TOO_BIG = 1009
19
+ MANDATORY_EXTENSION = 1010
20
+ INTERNAL_ERROR = 1011
21
+ SERVICE_RESTART = 1012
22
+ TRY_AGAIN_LATER = 1013
23
+ BAD_GATEWAY = 1014
24
+
25
+
26
+ class WSMsgType(IntEnum):
27
+ # websocket spec types
28
+ CONTINUATION = 0x0
29
+ TEXT = 0x1
30
+ BINARY = 0x2
31
+ PING = 0x9
32
+ PONG = 0xA
33
+ CLOSE = 0x8
34
+
35
+ # aiohttp specific types
36
+ CLOSING = 0x100
37
+ CLOSED = 0x101
38
+ ERROR = 0x102
39
+
40
+ text = TEXT
41
+ binary = BINARY
42
+ ping = PING
43
+ pong = PONG
44
+ close = CLOSE
45
+ closing = CLOSING
46
+ closed = CLOSED
47
+ error = ERROR
48
+
49
+
50
+ class WSMessage(NamedTuple):
51
+ type: WSMsgType
52
+ # To type correctly, this would need some kind of tagged union for each type.
53
+ data: Any
54
+ extra: Optional[str]
55
+
56
+ def json(self, *, loads: Callable[[Any], Any] = json.loads) -> Any:
57
+ """Return parsed JSON data.
58
+
59
+ .. versionadded:: 0.22
60
+ """
61
+ return loads(self.data)
62
+
63
+
64
+ # Constructing the tuple directly to avoid the overhead of
65
+ # the lambda and arg processing since NamedTuples are constructed
66
+ # with a run time built lambda
67
+ # https://github.com/python/cpython/blob/d83fcf8371f2f33c7797bc8f5423a8bca8c46e5c/Lib/collections/__init__.py#L441
68
+ WS_CLOSED_MESSAGE = tuple.__new__(WSMessage, (WSMsgType.CLOSED, None, None))
69
+ WS_CLOSING_MESSAGE = tuple.__new__(WSMessage, (WSMsgType.CLOSING, None, None))
70
+
71
+
72
+ class WebSocketError(Exception):
73
+ """WebSocket protocol parser error."""
74
+
75
+ def __init__(self, code: int, message: str) -> None:
76
+ self.code = code
77
+ super().__init__(code, message)
78
+
79
+ def __str__(self) -> str:
80
+ return cast(str, self.args[1])
81
+
82
+
83
+ class WSHandshakeError(Exception):
84
+ """WebSocket protocol handshake error."""
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc2631.py ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ # Diffie-Hellman Key Agreement
10
+ #
11
+ # ASN.1 source from:
12
+ # https://www.rfc-editor.org/rfc/rfc2631.txt
13
+ # https://www.rfc-editor.org/errata/eid5897
14
+ #
15
+
16
+ from pyasn1.type import constraint
17
+ from pyasn1.type import namedtype
18
+ from pyasn1.type import tag
19
+ from pyasn1.type import univ
20
+
21
+
22
+ class KeySpecificInfo(univ.Sequence):
23
+ componentType = namedtype.NamedTypes(
24
+ namedtype.NamedType('algorithm', univ.ObjectIdentifier()),
25
+ namedtype.NamedType('counter', univ.OctetString().subtype(
26
+ subtypeSpec=constraint.ValueSizeConstraint(4, 4)))
27
+ )
28
+
29
+
30
+ class OtherInfo(univ.Sequence):
31
+ componentType = namedtype.NamedTypes(
32
+ namedtype.NamedType('keyInfo', KeySpecificInfo()),
33
+ namedtype.OptionalNamedType('partyAInfo', univ.OctetString().subtype(
34
+ explicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
35
+ namedtype.NamedType('suppPubInfo', univ.OctetString().subtype(
36
+ explicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 2)))
37
+ )
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc2634.py ADDED
@@ -0,0 +1,336 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ # Modified by Russ Housley to add a map for use with opentypes.
6
+ #
7
+ # Copyright (c) 2019, Vigil Security, LLC
8
+ # License: http://snmplabs.com/pyasn1/license.html
9
+ #
10
+ # Enhanced Security Services for S/MIME
11
+ #
12
+ # ASN.1 source from:
13
+ # https://www.rfc-editor.org/rfc/rfc2634.txt
14
+ #
15
+
16
+ from pyasn1.type import char
17
+ from pyasn1.type import constraint
18
+ from pyasn1.type import namedval
19
+ from pyasn1.type import namedtype
20
+ from pyasn1.type import tag
21
+ from pyasn1.type import univ
22
+ from pyasn1.type import useful
23
+
24
+ from pyasn1_modules import rfc5652
25
+ from pyasn1_modules import rfc5280
26
+
27
+ MAX = float('inf')
28
+
29
+ ContentType = rfc5652.ContentType
30
+
31
+ IssuerAndSerialNumber = rfc5652.IssuerAndSerialNumber
32
+
33
+ SubjectKeyIdentifier = rfc5652.SubjectKeyIdentifier
34
+
35
+ PolicyInformation = rfc5280.PolicyInformation
36
+
37
+ GeneralNames = rfc5280.GeneralNames
38
+
39
+ CertificateSerialNumber = rfc5280.CertificateSerialNumber
40
+
41
+
42
+ # Signing Certificate Attribute
43
+ # Warning: It is better to use SigningCertificateV2 from RFC 5035
44
+
45
+ id_aa_signingCertificate = univ.ObjectIdentifier('1.2.840.113549.1.9.16.2.12')
46
+
47
+ class Hash(univ.OctetString):
48
+ pass # SHA-1 hash of entire certificate; RFC 5035 supports other hash algorithms
49
+
50
+
51
+ class IssuerSerial(univ.Sequence):
52
+ pass
53
+
54
+ IssuerSerial.componentType = namedtype.NamedTypes(
55
+ namedtype.NamedType('issuer', GeneralNames()),
56
+ namedtype.NamedType('serialNumber', CertificateSerialNumber())
57
+ )
58
+
59
+
60
+ class ESSCertID(univ.Sequence):
61
+ pass
62
+
63
+ ESSCertID.componentType = namedtype.NamedTypes(
64
+ namedtype.NamedType('certHash', Hash()),
65
+ namedtype.OptionalNamedType('issuerSerial', IssuerSerial())
66
+ )
67
+
68
+
69
+ class SigningCertificate(univ.Sequence):
70
+ pass
71
+
72
+ SigningCertificate.componentType = namedtype.NamedTypes(
73
+ namedtype.NamedType('certs', univ.SequenceOf(
74
+ componentType=ESSCertID())),
75
+ namedtype.OptionalNamedType('policies', univ.SequenceOf(
76
+ componentType=PolicyInformation()))
77
+ )
78
+
79
+
80
+ # Mail List Expansion History Attribute
81
+
82
+ id_aa_mlExpandHistory = univ.ObjectIdentifier('1.2.840.113549.1.9.16.2.3')
83
+
84
+ ub_ml_expansion_history = univ.Integer(64)
85
+
86
+
87
+ class EntityIdentifier(univ.Choice):
88
+ pass
89
+
90
+ EntityIdentifier.componentType = namedtype.NamedTypes(
91
+ namedtype.NamedType('issuerAndSerialNumber', IssuerAndSerialNumber()),
92
+ namedtype.NamedType('subjectKeyIdentifier', SubjectKeyIdentifier())
93
+ )
94
+
95
+
96
+ class MLReceiptPolicy(univ.Choice):
97
+ pass
98
+
99
+ MLReceiptPolicy.componentType = namedtype.NamedTypes(
100
+ namedtype.NamedType('none', univ.Null().subtype(implicitTag=tag.Tag(
101
+ tag.tagClassContext, tag.tagFormatSimple, 0))),
102
+ namedtype.NamedType('insteadOf', univ.SequenceOf(
103
+ componentType=GeneralNames()).subtype(
104
+ sizeSpec=constraint.ValueSizeConstraint(1, MAX)).subtype(
105
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1))),
106
+ namedtype.NamedType('inAdditionTo', univ.SequenceOf(
107
+ componentType=GeneralNames()).subtype(
108
+ sizeSpec=constraint.ValueSizeConstraint(1, MAX)).subtype(
109
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 2)))
110
+ )
111
+
112
+
113
+ class MLData(univ.Sequence):
114
+ pass
115
+
116
+ MLData.componentType = namedtype.NamedTypes(
117
+ namedtype.NamedType('mailListIdentifier', EntityIdentifier()),
118
+ namedtype.NamedType('expansionTime', useful.GeneralizedTime()),
119
+ namedtype.OptionalNamedType('mlReceiptPolicy', MLReceiptPolicy())
120
+ )
121
+
122
+ class MLExpansionHistory(univ.SequenceOf):
123
+ pass
124
+
125
+ MLExpansionHistory.componentType = MLData()
126
+ MLExpansionHistory.sizeSpec = constraint.ValueSizeConstraint(1, ub_ml_expansion_history)
127
+
128
+
129
+ # ESS Security Label Attribute
130
+
131
+ id_aa_securityLabel = univ.ObjectIdentifier('1.2.840.113549.1.9.16.2.2')
132
+
133
+ ub_privacy_mark_length = univ.Integer(128)
134
+
135
+ ub_security_categories = univ.Integer(64)
136
+
137
+ ub_integer_options = univ.Integer(256)
138
+
139
+
140
+ class ESSPrivacyMark(univ.Choice):
141
+ pass
142
+
143
+ ESSPrivacyMark.componentType = namedtype.NamedTypes(
144
+ namedtype.NamedType('pString', char.PrintableString().subtype(
145
+ subtypeSpec=constraint.ValueSizeConstraint(1, ub_privacy_mark_length))),
146
+ namedtype.NamedType('utf8String', char.UTF8String().subtype(
147
+ subtypeSpec=constraint.ValueSizeConstraint(1, MAX)))
148
+ )
149
+
150
+
151
+ class SecurityClassification(univ.Integer):
152
+ pass
153
+
154
+ SecurityClassification.subtypeSpec=constraint.ValueRangeConstraint(0, ub_integer_options)
155
+
156
+ SecurityClassification.namedValues = namedval.NamedValues(
157
+ ('unmarked', 0),
158
+ ('unclassified', 1),
159
+ ('restricted', 2),
160
+ ('confidential', 3),
161
+ ('secret', 4),
162
+ ('top-secret', 5)
163
+ )
164
+
165
+
166
+ class SecurityPolicyIdentifier(univ.ObjectIdentifier):
167
+ pass
168
+
169
+
170
+ class SecurityCategory(univ.Sequence):
171
+ pass
172
+
173
+ SecurityCategory.componentType = namedtype.NamedTypes(
174
+ namedtype.NamedType('type', univ.ObjectIdentifier().subtype(
175
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
176
+ namedtype.NamedType('value', univ.Any().subtype(implicitTag=tag.Tag(
177
+ tag.tagClassContext, tag.tagFormatSimple, 1)))
178
+ )
179
+
180
+
181
+ class SecurityCategories(univ.SetOf):
182
+ pass
183
+
184
+ SecurityCategories.componentType = SecurityCategory()
185
+ SecurityCategories.sizeSpec = constraint.ValueSizeConstraint(1, ub_security_categories)
186
+
187
+
188
+ class ESSSecurityLabel(univ.Set):
189
+ pass
190
+
191
+ ESSSecurityLabel.componentType = namedtype.NamedTypes(
192
+ namedtype.NamedType('security-policy-identifier', SecurityPolicyIdentifier()),
193
+ namedtype.OptionalNamedType('security-classification', SecurityClassification()),
194
+ namedtype.OptionalNamedType('privacy-mark', ESSPrivacyMark()),
195
+ namedtype.OptionalNamedType('security-categories', SecurityCategories())
196
+ )
197
+
198
+
199
+ # Equivalent Labels Attribute
200
+
201
+ id_aa_equivalentLabels = univ.ObjectIdentifier('1.2.840.113549.1.9.16.2.9')
202
+
203
+ class EquivalentLabels(univ.SequenceOf):
204
+ pass
205
+
206
+ EquivalentLabels.componentType = ESSSecurityLabel()
207
+
208
+
209
+ # Content Identifier Attribute
210
+
211
+ id_aa_contentIdentifier = univ.ObjectIdentifier('1.2.840.113549.1.9.16.2.7')
212
+
213
+ class ContentIdentifier(univ.OctetString):
214
+ pass
215
+
216
+
217
+ # Content Reference Attribute
218
+
219
+ id_aa_contentReference = univ.ObjectIdentifier('1.2.840.113549.1.9.16.2.10')
220
+
221
+ class ContentReference(univ.Sequence):
222
+ pass
223
+
224
+ ContentReference.componentType = namedtype.NamedTypes(
225
+ namedtype.NamedType('contentType', ContentType()),
226
+ namedtype.NamedType('signedContentIdentifier', ContentIdentifier()),
227
+ namedtype.NamedType('originatorSignatureValue', univ.OctetString())
228
+ )
229
+
230
+
231
+ # Message Signature Digest Attribute
232
+
233
+ id_aa_msgSigDigest = univ.ObjectIdentifier('1.2.840.113549.1.9.16.2.5')
234
+
235
+ class MsgSigDigest(univ.OctetString):
236
+ pass
237
+
238
+
239
+ # Content Hints Attribute
240
+
241
+ id_aa_contentHint = univ.ObjectIdentifier('1.2.840.113549.1.9.16.2.4')
242
+
243
+ class ContentHints(univ.Sequence):
244
+ pass
245
+
246
+ ContentHints.componentType = namedtype.NamedTypes(
247
+ namedtype.OptionalNamedType('contentDescription', char.UTF8String().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, MAX))),
248
+ namedtype.NamedType('contentType', ContentType())
249
+ )
250
+
251
+
252
+ # Receipt Request Attribute
253
+
254
+ class AllOrFirstTier(univ.Integer):
255
+ pass
256
+
257
+ AllOrFirstTier.namedValues = namedval.NamedValues(
258
+ ('allReceipts', 0),
259
+ ('firstTierRecipients', 1)
260
+ )
261
+
262
+
263
+ class ReceiptsFrom(univ.Choice):
264
+ pass
265
+
266
+ ReceiptsFrom.componentType = namedtype.NamedTypes(
267
+ namedtype.NamedType('allOrFirstTier', AllOrFirstTier().subtype(
268
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
269
+ namedtype.NamedType('receiptList', univ.SequenceOf(
270
+ componentType=GeneralNames()).subtype(implicitTag=tag.Tag(
271
+ tag.tagClassContext, tag.tagFormatSimple, 1)))
272
+ )
273
+
274
+
275
+ id_aa_receiptRequest = univ.ObjectIdentifier('1.2.840.113549.1.9.16.2.1')
276
+
277
+ ub_receiptsTo = univ.Integer(16)
278
+
279
+ class ReceiptRequest(univ.Sequence):
280
+ pass
281
+
282
+ ReceiptRequest.componentType = namedtype.NamedTypes(
283
+ namedtype.NamedType('signedContentIdentifier', ContentIdentifier()),
284
+ namedtype.NamedType('receiptsFrom', ReceiptsFrom()),
285
+ namedtype.NamedType('receiptsTo', univ.SequenceOf(componentType=GeneralNames()).subtype(sizeSpec=constraint.ValueSizeConstraint(1, ub_receiptsTo)))
286
+ )
287
+
288
+ # Receipt Content Type
289
+
290
+ class ESSVersion(univ.Integer):
291
+ pass
292
+
293
+ ESSVersion.namedValues = namedval.NamedValues(
294
+ ('v1', 1)
295
+ )
296
+
297
+
298
+ id_ct_receipt = univ.ObjectIdentifier('1.2.840.113549.1.9.16.1.1')
299
+
300
+ class Receipt(univ.Sequence):
301
+ pass
302
+
303
+ Receipt.componentType = namedtype.NamedTypes(
304
+ namedtype.NamedType('version', ESSVersion()),
305
+ namedtype.NamedType('contentType', ContentType()),
306
+ namedtype.NamedType('signedContentIdentifier', ContentIdentifier()),
307
+ namedtype.NamedType('originatorSignatureValue', univ.OctetString())
308
+ )
309
+
310
+
311
+ # Map of Attribute Type to the Attribute structure is added to the
312
+ # ones that are in rfc5652.py
313
+
314
+ _cmsAttributesMapUpdate = {
315
+ id_aa_signingCertificate: SigningCertificate(),
316
+ id_aa_mlExpandHistory: MLExpansionHistory(),
317
+ id_aa_securityLabel: ESSSecurityLabel(),
318
+ id_aa_equivalentLabels: EquivalentLabels(),
319
+ id_aa_contentIdentifier: ContentIdentifier(),
320
+ id_aa_contentReference: ContentReference(),
321
+ id_aa_msgSigDigest: MsgSigDigest(),
322
+ id_aa_contentHint: ContentHints(),
323
+ id_aa_receiptRequest: ReceiptRequest(),
324
+ }
325
+
326
+ rfc5652.cmsAttributesMap.update(_cmsAttributesMapUpdate)
327
+
328
+
329
+ # Map of Content Type OIDs to Content Types is added to the
330
+ # ones that are in rfc5652.py
331
+
332
+ _cmsContentTypesMapUpdate = {
333
+ id_ct_receipt: Receipt(),
334
+ }
335
+
336
+ rfc5652.cmsContentTypesMap.update(_cmsContentTypesMapUpdate)
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc3058.py ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ # IDEA Encryption Algorithm in CMS
10
+ #
11
+ # ASN.1 source from:
12
+ # https://www.rfc-editor.org/rfc/rfc3058.txt
13
+ # https://www.rfc-editor.org/errata/eid5913
14
+ #
15
+
16
+ from pyasn1.type import namedtype
17
+ from pyasn1.type import univ
18
+
19
+ from pyasn1_modules import rfc5280
20
+
21
+
22
+ id_IDEA_CBC = univ.ObjectIdentifier('1.3.6.1.4.1.188.7.1.1.2')
23
+
24
+
25
+ id_alg_CMSIDEAwrap = univ.ObjectIdentifier('1.3.6.1.4.1.188.7.1.1.6')
26
+
27
+
28
+ class IDEA_CBCPar(univ.Sequence):
29
+ componentType = namedtype.NamedTypes(
30
+ namedtype.OptionalNamedType('iv', univ.OctetString())
31
+ # exactly 8 octets, when present
32
+ )
33
+
34
+
35
+ # Update the Algorithm Identifier map in rfc5280.py.
36
+
37
+ _algorithmIdentifierMapUpdate = {
38
+ id_IDEA_CBC: IDEA_CBCPar(),
39
+ id_alg_CMSIDEAwrap: univ.Null("")
40
+ }
41
+
42
+ rfc5280.algorithmIdentifierMap.update(_algorithmIdentifierMapUpdate)
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc3161.py ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ # Time-Stamp Protocol (TSP)
10
+ #
11
+ # ASN.1 source from:
12
+ # https://www.rfc-editor.org/rfc/rfc3161.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 tag
19
+ from pyasn1.type import univ
20
+ from pyasn1.type import useful
21
+
22
+ from pyasn1_modules import rfc4210
23
+ from pyasn1_modules import rfc5280
24
+ from pyasn1_modules import rfc5652
25
+
26
+
27
+ Extensions = rfc5280.Extensions
28
+
29
+ AlgorithmIdentifier = rfc5280.AlgorithmIdentifier
30
+
31
+ GeneralName = rfc5280.GeneralName
32
+
33
+ ContentInfo = rfc5652.ContentInfo
34
+
35
+ PKIFreeText = rfc4210.PKIFreeText
36
+
37
+
38
+ id_ct_TSTInfo = univ.ObjectIdentifier('1.2.840.113549.1.9.16.1.4')
39
+
40
+
41
+ class Accuracy(univ.Sequence):
42
+ pass
43
+
44
+ Accuracy.componentType = namedtype.NamedTypes(
45
+ namedtype.OptionalNamedType('seconds', univ.Integer()),
46
+ namedtype.OptionalNamedType('millis', univ.Integer().subtype(subtypeSpec=constraint.ValueRangeConstraint(1, 999)).subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
47
+ namedtype.OptionalNamedType('micros', univ.Integer().subtype(subtypeSpec=constraint.ValueRangeConstraint(1, 999)).subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1)))
48
+ )
49
+
50
+
51
+ class MessageImprint(univ.Sequence):
52
+ pass
53
+
54
+ MessageImprint.componentType = namedtype.NamedTypes(
55
+ namedtype.NamedType('hashAlgorithm', AlgorithmIdentifier()),
56
+ namedtype.NamedType('hashedMessage', univ.OctetString())
57
+ )
58
+
59
+
60
+ class PKIFailureInfo(univ.BitString):
61
+ pass
62
+
63
+ PKIFailureInfo.namedValues = namedval.NamedValues(
64
+ ('badAlg', 0),
65
+ ('badRequest', 2),
66
+ ('badDataFormat', 5),
67
+ ('timeNotAvailable', 14),
68
+ ('unacceptedPolicy', 15),
69
+ ('unacceptedExtension', 16),
70
+ ('addInfoNotAvailable', 17),
71
+ ('systemFailure', 25)
72
+ )
73
+
74
+
75
+ class PKIStatus(univ.Integer):
76
+ pass
77
+
78
+ PKIStatus.namedValues = namedval.NamedValues(
79
+ ('granted', 0),
80
+ ('grantedWithMods', 1),
81
+ ('rejection', 2),
82
+ ('waiting', 3),
83
+ ('revocationWarning', 4),
84
+ ('revocationNotification', 5)
85
+ )
86
+
87
+
88
+ class PKIStatusInfo(univ.Sequence):
89
+ pass
90
+
91
+ PKIStatusInfo.componentType = namedtype.NamedTypes(
92
+ namedtype.NamedType('status', PKIStatus()),
93
+ namedtype.OptionalNamedType('statusString', PKIFreeText()),
94
+ namedtype.OptionalNamedType('failInfo', PKIFailureInfo())
95
+ )
96
+
97
+
98
+ class TSAPolicyId(univ.ObjectIdentifier):
99
+ pass
100
+
101
+
102
+ class TSTInfo(univ.Sequence):
103
+ pass
104
+
105
+ TSTInfo.componentType = namedtype.NamedTypes(
106
+ namedtype.NamedType('version', univ.Integer(namedValues=namedval.NamedValues(('v1', 1)))),
107
+ namedtype.NamedType('policy', TSAPolicyId()),
108
+ namedtype.NamedType('messageImprint', MessageImprint()),
109
+ namedtype.NamedType('serialNumber', univ.Integer()),
110
+ namedtype.NamedType('genTime', useful.GeneralizedTime()),
111
+ namedtype.OptionalNamedType('accuracy', Accuracy()),
112
+ namedtype.DefaultedNamedType('ordering', univ.Boolean().subtype(value=0)),
113
+ namedtype.OptionalNamedType('nonce', univ.Integer()),
114
+ namedtype.OptionalNamedType('tsa', GeneralName().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
115
+ namedtype.OptionalNamedType('extensions', Extensions().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1)))
116
+ )
117
+
118
+
119
+ class TimeStampReq(univ.Sequence):
120
+ pass
121
+
122
+ TimeStampReq.componentType = namedtype.NamedTypes(
123
+ namedtype.NamedType('version', univ.Integer(namedValues=namedval.NamedValues(('v1', 1)))),
124
+ namedtype.NamedType('messageImprint', MessageImprint()),
125
+ namedtype.OptionalNamedType('reqPolicy', TSAPolicyId()),
126
+ namedtype.OptionalNamedType('nonce', univ.Integer()),
127
+ namedtype.DefaultedNamedType('certReq', univ.Boolean().subtype(value=0)),
128
+ namedtype.OptionalNamedType('extensions', Extensions().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0)))
129
+ )
130
+
131
+
132
+ class TimeStampToken(ContentInfo):
133
+ pass
134
+
135
+
136
+ class TimeStampResp(univ.Sequence):
137
+ pass
138
+
139
+ TimeStampResp.componentType = namedtype.NamedTypes(
140
+ namedtype.NamedType('status', PKIStatusInfo()),
141
+ namedtype.OptionalNamedType('timeStampToken', TimeStampToken())
142
+ )
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc3279.py ADDED
@@ -0,0 +1,260 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # This file is part of pyasn1-modules.
3
+ #
4
+ # Copyright (c) 2017, Danielle Madeley <danielle@madeley.id.au>
5
+ # License: http://snmplabs.com/pyasn1/license.html
6
+ #
7
+ # Modified by Russ Housley to add maps for use with opentypes.
8
+ #
9
+ # Algorithms and Identifiers for Internet X.509 Certificates and CRLs
10
+ #
11
+ # Derived from RFC 3279:
12
+ # https://www.rfc-editor.org/rfc/rfc3279.txt
13
+ #
14
+ from pyasn1.type import namedtype
15
+ from pyasn1.type import namedval
16
+ from pyasn1.type import univ
17
+
18
+ from pyasn1_modules import rfc5280
19
+
20
+
21
+ def _OID(*components):
22
+ output = []
23
+ for x in tuple(components):
24
+ if isinstance(x, univ.ObjectIdentifier):
25
+ output.extend(list(x))
26
+ else:
27
+ output.append(int(x))
28
+
29
+ return univ.ObjectIdentifier(output)
30
+
31
+
32
+ md2 = _OID(1, 2, 840, 113549, 2, 2)
33
+ md5 = _OID(1, 2, 840, 113549, 2, 5)
34
+ id_sha1 = _OID(1, 3, 14, 3, 2, 26)
35
+ id_dsa = _OID(1, 2, 840, 10040, 4, 1)
36
+
37
+
38
+ class DSAPublicKey(univ.Integer):
39
+ pass
40
+
41
+
42
+ class Dss_Parms(univ.Sequence):
43
+ componentType = namedtype.NamedTypes(
44
+ namedtype.NamedType('p', univ.Integer()),
45
+ namedtype.NamedType('q', univ.Integer()),
46
+ namedtype.NamedType('g', univ.Integer())
47
+ )
48
+
49
+
50
+ id_dsa_with_sha1 = _OID(1, 2, 840, 10040, 4, 3)
51
+
52
+
53
+ class Dss_Sig_Value(univ.Sequence):
54
+ componentType = namedtype.NamedTypes(
55
+ namedtype.NamedType('r', univ.Integer()),
56
+ namedtype.NamedType('s', univ.Integer())
57
+ )
58
+
59
+
60
+ pkcs_1 = _OID(1, 2, 840, 113549, 1, 1)
61
+ rsaEncryption = _OID(pkcs_1, 1)
62
+ md2WithRSAEncryption = _OID(pkcs_1, 2)
63
+ md5WithRSAEncryption = _OID(pkcs_1, 4)
64
+ sha1WithRSAEncryption = _OID(pkcs_1, 5)
65
+
66
+
67
+ class RSAPublicKey(univ.Sequence):
68
+ componentType = namedtype.NamedTypes(
69
+ namedtype.NamedType('modulus', univ.Integer()),
70
+ namedtype.NamedType('publicExponent', univ.Integer())
71
+ )
72
+
73
+
74
+ dhpublicnumber = _OID(1, 2, 840, 10046, 2, 1)
75
+
76
+
77
+ class DHPublicKey(univ.Integer):
78
+ pass
79
+
80
+
81
+ class ValidationParms(univ.Sequence):
82
+ componentType = namedtype.NamedTypes(
83
+ namedtype.NamedType('seed', univ.BitString()),
84
+ namedtype.NamedType('pgenCounter', univ.Integer())
85
+ )
86
+
87
+
88
+ class DomainParameters(univ.Sequence):
89
+ componentType = namedtype.NamedTypes(
90
+ namedtype.NamedType('p', univ.Integer()),
91
+ namedtype.NamedType('g', univ.Integer()),
92
+ namedtype.NamedType('q', univ.Integer()),
93
+ namedtype.OptionalNamedType('j', univ.Integer()),
94
+ namedtype.OptionalNamedType('validationParms', ValidationParms())
95
+ )
96
+
97
+
98
+ id_keyExchangeAlgorithm = _OID(2, 16, 840, 1, 101, 2, 1, 1, 22)
99
+
100
+
101
+ class KEA_Parms_Id(univ.OctetString):
102
+ pass
103
+
104
+
105
+ ansi_X9_62 = _OID(1, 2, 840, 10045)
106
+
107
+
108
+ class FieldID(univ.Sequence):
109
+ componentType = namedtype.NamedTypes(
110
+ namedtype.NamedType('fieldType', univ.ObjectIdentifier()),
111
+ namedtype.NamedType('parameters', univ.Any())
112
+ )
113
+
114
+
115
+ id_ecSigType = _OID(ansi_X9_62, 4)
116
+ ecdsa_with_SHA1 = _OID(id_ecSigType, 1)
117
+
118
+
119
+ class ECDSA_Sig_Value(univ.Sequence):
120
+ componentType = namedtype.NamedTypes(
121
+ namedtype.NamedType('r', univ.Integer()),
122
+ namedtype.NamedType('s', univ.Integer())
123
+ )
124
+
125
+
126
+ id_fieldType = _OID(ansi_X9_62, 1)
127
+ prime_field = _OID(id_fieldType, 1)
128
+
129
+
130
+ class Prime_p(univ.Integer):
131
+ pass
132
+
133
+
134
+ characteristic_two_field = _OID(id_fieldType, 2)
135
+
136
+
137
+ class Characteristic_two(univ.Sequence):
138
+ componentType = namedtype.NamedTypes(
139
+ namedtype.NamedType('m', univ.Integer()),
140
+ namedtype.NamedType('basis', univ.ObjectIdentifier()),
141
+ namedtype.NamedType('parameters', univ.Any())
142
+ )
143
+
144
+
145
+ id_characteristic_two_basis = _OID(characteristic_two_field, 3)
146
+ gnBasis = _OID(id_characteristic_two_basis, 1)
147
+ tpBasis = _OID(id_characteristic_two_basis, 2)
148
+
149
+
150
+ class Trinomial(univ.Integer):
151
+ pass
152
+
153
+
154
+ ppBasis = _OID(id_characteristic_two_basis, 3)
155
+
156
+
157
+ class Pentanomial(univ.Sequence):
158
+ componentType = namedtype.NamedTypes(
159
+ namedtype.NamedType('k1', univ.Integer()),
160
+ namedtype.NamedType('k2', univ.Integer()),
161
+ namedtype.NamedType('k3', univ.Integer())
162
+ )
163
+
164
+
165
+ class FieldElement(univ.OctetString):
166
+ pass
167
+
168
+
169
+ class ECPoint(univ.OctetString):
170
+ pass
171
+
172
+
173
+ class Curve(univ.Sequence):
174
+ componentType = namedtype.NamedTypes(
175
+ namedtype.NamedType('a', FieldElement()),
176
+ namedtype.NamedType('b', FieldElement()),
177
+ namedtype.OptionalNamedType('seed', univ.BitString())
178
+ )
179
+
180
+
181
+ class ECPVer(univ.Integer):
182
+ namedValues = namedval.NamedValues(
183
+ ('ecpVer1', 1)
184
+ )
185
+
186
+
187
+ class ECParameters(univ.Sequence):
188
+ componentType = namedtype.NamedTypes(
189
+ namedtype.NamedType('version', ECPVer()),
190
+ namedtype.NamedType('fieldID', FieldID()),
191
+ namedtype.NamedType('curve', Curve()),
192
+ namedtype.NamedType('base', ECPoint()),
193
+ namedtype.NamedType('order', univ.Integer()),
194
+ namedtype.OptionalNamedType('cofactor', univ.Integer())
195
+ )
196
+
197
+
198
+ class EcpkParameters(univ.Choice):
199
+ componentType = namedtype.NamedTypes(
200
+ namedtype.NamedType('ecParameters', ECParameters()),
201
+ namedtype.NamedType('namedCurve', univ.ObjectIdentifier()),
202
+ namedtype.NamedType('implicitlyCA', univ.Null())
203
+ )
204
+
205
+
206
+ id_publicKeyType = _OID(ansi_X9_62, 2)
207
+ id_ecPublicKey = _OID(id_publicKeyType, 1)
208
+
209
+ ellipticCurve = _OID(ansi_X9_62, 3)
210
+
211
+ c_TwoCurve = _OID(ellipticCurve, 0)
212
+ c2pnb163v1 = _OID(c_TwoCurve, 1)
213
+ c2pnb163v2 = _OID(c_TwoCurve, 2)
214
+ c2pnb163v3 = _OID(c_TwoCurve, 3)
215
+ c2pnb176w1 = _OID(c_TwoCurve, 4)
216
+ c2tnb191v1 = _OID(c_TwoCurve, 5)
217
+ c2tnb191v2 = _OID(c_TwoCurve, 6)
218
+ c2tnb191v3 = _OID(c_TwoCurve, 7)
219
+ c2onb191v4 = _OID(c_TwoCurve, 8)
220
+ c2onb191v5 = _OID(c_TwoCurve, 9)
221
+ c2pnb208w1 = _OID(c_TwoCurve, 10)
222
+ c2tnb239v1 = _OID(c_TwoCurve, 11)
223
+ c2tnb239v2 = _OID(c_TwoCurve, 12)
224
+ c2tnb239v3 = _OID(c_TwoCurve, 13)
225
+ c2onb239v4 = _OID(c_TwoCurve, 14)
226
+ c2onb239v5 = _OID(c_TwoCurve, 15)
227
+ c2pnb272w1 = _OID(c_TwoCurve, 16)
228
+ c2pnb304w1 = _OID(c_TwoCurve, 17)
229
+ c2tnb359v1 = _OID(c_TwoCurve, 18)
230
+ c2pnb368w1 = _OID(c_TwoCurve, 19)
231
+ c2tnb431r1 = _OID(c_TwoCurve, 20)
232
+
233
+ primeCurve = _OID(ellipticCurve, 1)
234
+ prime192v1 = _OID(primeCurve, 1)
235
+ prime192v2 = _OID(primeCurve, 2)
236
+ prime192v3 = _OID(primeCurve, 3)
237
+ prime239v1 = _OID(primeCurve, 4)
238
+ prime239v2 = _OID(primeCurve, 5)
239
+ prime239v3 = _OID(primeCurve, 6)
240
+ prime256v1 = _OID(primeCurve, 7)
241
+
242
+
243
+ # Map of Algorithm Identifier OIDs to Parameters added to the
244
+ # ones in rfc5280.py. Do not add OIDs with absent paramaters.
245
+
246
+ _algorithmIdentifierMapUpdate = {
247
+ md2: univ.Null(""),
248
+ md5: univ.Null(""),
249
+ id_sha1: univ.Null(""),
250
+ id_dsa: Dss_Parms(),
251
+ rsaEncryption: univ.Null(""),
252
+ md2WithRSAEncryption: univ.Null(""),
253
+ md5WithRSAEncryption: univ.Null(""),
254
+ sha1WithRSAEncryption: univ.Null(""),
255
+ dhpublicnumber: DomainParameters(),
256
+ id_keyExchangeAlgorithm: KEA_Parms_Id(),
257
+ id_ecPublicKey: EcpkParameters(),
258
+ }
259
+
260
+ rfc5280.algorithmIdentifierMap.update(_algorithmIdentifierMapUpdate)
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc3565.py ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file is being contributed to pyasn1-modules software.
2
+ #
3
+ # Created by Russ Housley.
4
+ # Modified by Russ Housley to add maps for use with opentypes.
5
+ #
6
+ # Copyright (c) 2019, Vigil Security, LLC
7
+ # License: http://snmplabs.com/pyasn1/license.html
8
+ #
9
+ # Use of the Advanced Encryption Standard (AES) Encryption
10
+ # Algorithm in the Cryptographic Message Syntax (CMS)
11
+ #
12
+ # ASN.1 source from:
13
+ # https://www.rfc-editor.org/rfc/rfc3565.txt
14
+
15
+
16
+ from pyasn1.type import constraint
17
+ from pyasn1.type import univ
18
+
19
+ from pyasn1_modules import rfc5280
20
+
21
+
22
+ class AlgorithmIdentifier(rfc5280.AlgorithmIdentifier):
23
+ pass
24
+
25
+
26
+ class AES_IV(univ.OctetString):
27
+ pass
28
+
29
+ AES_IV.subtypeSpec = constraint.ValueSizeConstraint(16, 16)
30
+
31
+
32
+ id_aes128_CBC = univ.ObjectIdentifier('2.16.840.1.101.3.4.1.2')
33
+
34
+ id_aes192_CBC = univ.ObjectIdentifier('2.16.840.1.101.3.4.1.22')
35
+
36
+ id_aes256_CBC = univ.ObjectIdentifier('2.16.840.1.101.3.4.1.42')
37
+
38
+
39
+ id_aes128_wrap = univ.ObjectIdentifier('2.16.840.1.101.3.4.1.5')
40
+
41
+ id_aes192_wrap = univ.ObjectIdentifier('2.16.840.1.101.3.4.1.25')
42
+
43
+ id_aes256_wrap = univ.ObjectIdentifier('2.16.840.1.101.3.4.1.45')
44
+
45
+
46
+ # Update the Algorithm Identifier map
47
+
48
+ _algorithmIdentifierMapUpdate = {
49
+ id_aes128_CBC: AES_IV(),
50
+ id_aes192_CBC: AES_IV(),
51
+ id_aes256_CBC: AES_IV(),
52
+ id_aes128_wrap: univ.Null(),
53
+ id_aes192_wrap: univ.Null(),
54
+ id_aes256_wrap: univ.Null(),
55
+ }
56
+
57
+ rfc5280.algorithmIdentifierMap.update(_algorithmIdentifierMapUpdate)
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc4108.py ADDED
@@ -0,0 +1,350 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ # Modified by Russ Housley to add items from the verified errata.
6
+ # Modified by Russ Housley to add maps for use with opentypes.
7
+ #
8
+ # Copyright (c) 2019, Vigil Security, LLC
9
+ # License: http://snmplabs.com/pyasn1/license.html
10
+ #
11
+ # CMS Firmware Wrapper
12
+ #
13
+ # ASN.1 source from:
14
+ # https://www.rfc-editor.org/rfc/rfc4108.txt
15
+ # https://www.rfc-editor.org/errata_search.php?rfc=4108
16
+ #
17
+
18
+
19
+ from pyasn1.type import univ, char, namedtype, namedval, tag, constraint, useful
20
+
21
+ from pyasn1_modules import rfc5280
22
+ from pyasn1_modules import rfc5652
23
+
24
+ MAX = float('inf')
25
+
26
+
27
+ class HardwareSerialEntry(univ.Choice):
28
+ pass
29
+
30
+ HardwareSerialEntry.componentType = namedtype.NamedTypes(
31
+ namedtype.NamedType('all', univ.Null()),
32
+ namedtype.NamedType('single', univ.OctetString()),
33
+ namedtype.NamedType('block', univ.Sequence(componentType=namedtype.NamedTypes(
34
+ namedtype.NamedType('low', univ.OctetString()),
35
+ namedtype.NamedType('high', univ.OctetString())
36
+ ))
37
+ )
38
+ )
39
+
40
+
41
+ class HardwareModules(univ.Sequence):
42
+ pass
43
+
44
+ HardwareModules.componentType = namedtype.NamedTypes(
45
+ namedtype.NamedType('hwType', univ.ObjectIdentifier()),
46
+ namedtype.NamedType('hwSerialEntries', univ.SequenceOf(componentType=HardwareSerialEntry()))
47
+ )
48
+
49
+
50
+ class CommunityIdentifier(univ.Choice):
51
+ pass
52
+
53
+ CommunityIdentifier.componentType = namedtype.NamedTypes(
54
+ namedtype.NamedType('communityOID', univ.ObjectIdentifier()),
55
+ namedtype.NamedType('hwModuleList', HardwareModules())
56
+ )
57
+
58
+
59
+
60
+ class PreferredPackageIdentifier(univ.Sequence):
61
+ pass
62
+
63
+ PreferredPackageIdentifier.componentType = namedtype.NamedTypes(
64
+ namedtype.NamedType('fwPkgID', univ.ObjectIdentifier()),
65
+ namedtype.NamedType('verNum', univ.Integer().subtype(subtypeSpec=constraint.ValueRangeConstraint(0, MAX)))
66
+ )
67
+
68
+
69
+ class PreferredOrLegacyPackageIdentifier(univ.Choice):
70
+ pass
71
+
72
+ PreferredOrLegacyPackageIdentifier.componentType = namedtype.NamedTypes(
73
+ namedtype.NamedType('preferred', PreferredPackageIdentifier()),
74
+ namedtype.NamedType('legacy', univ.OctetString())
75
+ )
76
+
77
+
78
+ class CurrentFWConfig(univ.Sequence):
79
+ pass
80
+
81
+ CurrentFWConfig.componentType = namedtype.NamedTypes(
82
+ namedtype.OptionalNamedType('fwPkgType', univ.Integer()),
83
+ namedtype.NamedType('fwPkgName', PreferredOrLegacyPackageIdentifier())
84
+ )
85
+
86
+
87
+ class PreferredOrLegacyStalePackageIdentifier(univ.Choice):
88
+ pass
89
+
90
+ PreferredOrLegacyStalePackageIdentifier.componentType = namedtype.NamedTypes(
91
+ namedtype.NamedType('preferredStaleVerNum', univ.Integer().subtype(subtypeSpec=constraint.ValueRangeConstraint(0, MAX))),
92
+ namedtype.NamedType('legacyStaleVersion', univ.OctetString())
93
+ )
94
+
95
+
96
+ class FirmwarePackageLoadErrorCode(univ.Enumerated):
97
+ pass
98
+
99
+ FirmwarePackageLoadErrorCode.namedValues = namedval.NamedValues(
100
+ ('decodeFailure', 1),
101
+ ('badContentInfo', 2),
102
+ ('badSignedData', 3),
103
+ ('badEncapContent', 4),
104
+ ('badCertificate', 5),
105
+ ('badSignerInfo', 6),
106
+ ('badSignedAttrs', 7),
107
+ ('badUnsignedAttrs', 8),
108
+ ('missingContent', 9),
109
+ ('noTrustAnchor', 10),
110
+ ('notAuthorized', 11),
111
+ ('badDigestAlgorithm', 12),
112
+ ('badSignatureAlgorithm', 13),
113
+ ('unsupportedKeySize', 14),
114
+ ('signatureFailure', 15),
115
+ ('contentTypeMismatch', 16),
116
+ ('badEncryptedData', 17),
117
+ ('unprotectedAttrsPresent', 18),
118
+ ('badEncryptContent', 19),
119
+ ('badEncryptAlgorithm', 20),
120
+ ('missingCiphertext', 21),
121
+ ('noDecryptKey', 22),
122
+ ('decryptFailure', 23),
123
+ ('badCompressAlgorithm', 24),
124
+ ('missingCompressedContent', 25),
125
+ ('decompressFailure', 26),
126
+ ('wrongHardware', 27),
127
+ ('stalePackage', 28),
128
+ ('notInCommunity', 29),
129
+ ('unsupportedPackageType', 30),
130
+ ('missingDependency', 31),
131
+ ('wrongDependencyVersion', 32),
132
+ ('insufficientMemory', 33),
133
+ ('badFirmware', 34),
134
+ ('unsupportedParameters', 35),
135
+ ('breaksDependency', 36),
136
+ ('otherError', 99)
137
+ )
138
+
139
+
140
+ class VendorLoadErrorCode(univ.Integer):
141
+ pass
142
+
143
+
144
+ # Wrapped Firmware Key Unsigned Attribute and Object Identifier
145
+
146
+ id_aa_wrappedFirmwareKey = univ.ObjectIdentifier('1.2.840.113549.1.9.16.2.39')
147
+
148
+ class WrappedFirmwareKey(rfc5652.EnvelopedData):
149
+ pass
150
+
151
+
152
+ # Firmware Package Information Signed Attribute and Object Identifier
153
+
154
+ id_aa_firmwarePackageInfo = univ.ObjectIdentifier('1.2.840.113549.1.9.16.2.42')
155
+
156
+ class FirmwarePackageInfo(univ.Sequence):
157
+ pass
158
+
159
+ FirmwarePackageInfo.componentType = namedtype.NamedTypes(
160
+ namedtype.OptionalNamedType('fwPkgType', univ.Integer()),
161
+ namedtype.OptionalNamedType('dependencies', univ.SequenceOf(componentType=PreferredOrLegacyPackageIdentifier()))
162
+ )
163
+
164
+ FirmwarePackageInfo.sizeSpec = univ.Sequence.sizeSpec + constraint.ValueSizeConstraint(1, 2)
165
+
166
+
167
+ # Community Identifiers Signed Attribute and Object Identifier
168
+
169
+ id_aa_communityIdentifiers = univ.ObjectIdentifier('1.2.840.113549.1.9.16.2.40')
170
+
171
+ class CommunityIdentifiers(univ.SequenceOf):
172
+ pass
173
+
174
+ CommunityIdentifiers.componentType = CommunityIdentifier()
175
+
176
+
177
+ # Implemented Compression Algorithms Signed Attribute and Object Identifier
178
+
179
+ id_aa_implCompressAlgs = univ.ObjectIdentifier('1.2.840.113549.1.9.16.2.43')
180
+
181
+ class ImplementedCompressAlgorithms(univ.SequenceOf):
182
+ pass
183
+
184
+ ImplementedCompressAlgorithms.componentType = univ.ObjectIdentifier()
185
+
186
+
187
+ # Implemented Cryptographic Algorithms Signed Attribute and Object Identifier
188
+
189
+ id_aa_implCryptoAlgs = univ.ObjectIdentifier('1.2.840.113549.1.9.16.2.38')
190
+
191
+ class ImplementedCryptoAlgorithms(univ.SequenceOf):
192
+ pass
193
+
194
+ ImplementedCryptoAlgorithms.componentType = univ.ObjectIdentifier()
195
+
196
+
197
+ # Decrypt Key Identifier Signed Attribute and Object Identifier
198
+
199
+ id_aa_decryptKeyID = univ.ObjectIdentifier('1.2.840.113549.1.9.16.2.37')
200
+
201
+ class DecryptKeyIdentifier(univ.OctetString):
202
+ pass
203
+
204
+
205
+ # Target Hardware Identifier Signed Attribute and Object Identifier
206
+
207
+ id_aa_targetHardwareIDs = univ.ObjectIdentifier('1.2.840.113549.1.9.16.2.36')
208
+
209
+ class TargetHardwareIdentifiers(univ.SequenceOf):
210
+ pass
211
+
212
+ TargetHardwareIdentifiers.componentType = univ.ObjectIdentifier()
213
+
214
+
215
+ # Firmware Package Identifier Signed Attribute and Object Identifier
216
+
217
+ id_aa_firmwarePackageID = univ.ObjectIdentifier('1.2.840.113549.1.9.16.2.35')
218
+
219
+ class FirmwarePackageIdentifier(univ.Sequence):
220
+ pass
221
+
222
+ FirmwarePackageIdentifier.componentType = namedtype.NamedTypes(
223
+ namedtype.NamedType('name', PreferredOrLegacyPackageIdentifier()),
224
+ namedtype.OptionalNamedType('stale', PreferredOrLegacyStalePackageIdentifier())
225
+ )
226
+
227
+
228
+ # Firmware Package Message Digest Signed Attribute and Object Identifier
229
+
230
+ id_aa_fwPkgMessageDigest = univ.ObjectIdentifier('1.2.840.113549.1.9.16.2.41')
231
+
232
+ class FirmwarePackageMessageDigest(univ.Sequence):
233
+ pass
234
+
235
+ FirmwarePackageMessageDigest.componentType = namedtype.NamedTypes(
236
+ namedtype.NamedType('algorithm', rfc5280.AlgorithmIdentifier()),
237
+ namedtype.NamedType('msgDigest', univ.OctetString())
238
+ )
239
+
240
+
241
+ # Firmware Package Load Error Report Content Type and Object Identifier
242
+
243
+ class FWErrorVersion(univ.Integer):
244
+ pass
245
+
246
+ FWErrorVersion.namedValues = namedval.NamedValues(
247
+ ('v1', 1)
248
+ )
249
+
250
+
251
+ id_ct_firmwareLoadError = univ.ObjectIdentifier('1.2.840.113549.1.9.16.1.18')
252
+
253
+ class FirmwarePackageLoadError(univ.Sequence):
254
+ pass
255
+
256
+ FirmwarePackageLoadError.componentType = namedtype.NamedTypes(
257
+ namedtype.DefaultedNamedType('version', FWErrorVersion().subtype(value='v1')),
258
+ namedtype.NamedType('hwType', univ.ObjectIdentifier()),
259
+ namedtype.NamedType('hwSerialNum', univ.OctetString()),
260
+ namedtype.NamedType('errorCode', FirmwarePackageLoadErrorCode()),
261
+ namedtype.OptionalNamedType('vendorErrorCode', VendorLoadErrorCode()),
262
+ namedtype.OptionalNamedType('fwPkgName', PreferredOrLegacyPackageIdentifier()),
263
+ namedtype.OptionalNamedType('config', univ.SequenceOf(componentType=CurrentFWConfig()).subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1)))
264
+ )
265
+
266
+
267
+ # Firmware Package Load Receipt Content Type and Object Identifier
268
+
269
+ class FWReceiptVersion(univ.Integer):
270
+ pass
271
+
272
+ FWReceiptVersion.namedValues = namedval.NamedValues(
273
+ ('v1', 1)
274
+ )
275
+
276
+
277
+ id_ct_firmwareLoadReceipt = univ.ObjectIdentifier('1.2.840.113549.1.9.16.1.17')
278
+
279
+ class FirmwarePackageLoadReceipt(univ.Sequence):
280
+ pass
281
+
282
+ FirmwarePackageLoadReceipt.componentType = namedtype.NamedTypes(
283
+ namedtype.DefaultedNamedType('version', FWReceiptVersion().subtype(value='v1')),
284
+ namedtype.NamedType('hwType', univ.ObjectIdentifier()),
285
+ namedtype.NamedType('hwSerialNum', univ.OctetString()),
286
+ namedtype.NamedType('fwPkgName', PreferredOrLegacyPackageIdentifier()),
287
+ namedtype.OptionalNamedType('trustAnchorKeyID', univ.OctetString()),
288
+ namedtype.OptionalNamedType('decryptKeyID', univ.OctetString().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1)))
289
+ )
290
+
291
+
292
+ # Firmware Package Content Type and Object Identifier
293
+
294
+ id_ct_firmwarePackage = univ.ObjectIdentifier('1.2.840.113549.1.9.16.1.16')
295
+
296
+ class FirmwarePkgData(univ.OctetString):
297
+ pass
298
+
299
+
300
+ # Other Name syntax for Hardware Module Name
301
+
302
+ id_on_hardwareModuleName = univ.ObjectIdentifier('1.3.6.1.5.5.7.8.4')
303
+
304
+ class HardwareModuleName(univ.Sequence):
305
+ pass
306
+
307
+ HardwareModuleName.componentType = namedtype.NamedTypes(
308
+ namedtype.NamedType('hwType', univ.ObjectIdentifier()),
309
+ namedtype.NamedType('hwSerialNum', univ.OctetString())
310
+ )
311
+
312
+
313
+ # Map of Attribute Type OIDs to Attributes is added to the
314
+ # ones that are in rfc5652.py
315
+
316
+ _cmsAttributesMapUpdate = {
317
+ id_aa_wrappedFirmwareKey: WrappedFirmwareKey(),
318
+ id_aa_firmwarePackageInfo: FirmwarePackageInfo(),
319
+ id_aa_communityIdentifiers: CommunityIdentifiers(),
320
+ id_aa_implCompressAlgs: ImplementedCompressAlgorithms(),
321
+ id_aa_implCryptoAlgs: ImplementedCryptoAlgorithms(),
322
+ id_aa_decryptKeyID: DecryptKeyIdentifier(),
323
+ id_aa_targetHardwareIDs: TargetHardwareIdentifiers(),
324
+ id_aa_firmwarePackageID: FirmwarePackageIdentifier(),
325
+ id_aa_fwPkgMessageDigest: FirmwarePackageMessageDigest(),
326
+ }
327
+
328
+ rfc5652.cmsAttributesMap.update(_cmsAttributesMapUpdate)
329
+
330
+
331
+ # Map of Content Type OIDs to Content Types is added to the
332
+ # ones that are in rfc5652.py
333
+
334
+ _cmsContentTypesMapUpdate = {
335
+ id_ct_firmwareLoadError: FirmwarePackageLoadError(),
336
+ id_ct_firmwareLoadReceipt: FirmwarePackageLoadReceipt(),
337
+ id_ct_firmwarePackage: FirmwarePkgData(),
338
+ }
339
+
340
+ rfc5652.cmsContentTypesMap.update(_cmsContentTypesMapUpdate)
341
+
342
+
343
+ # Map of Other Name OIDs to Other Name is added to the
344
+ # ones that are in rfc5280.py
345
+
346
+ _anotherNameMapUpdate = {
347
+ id_on_hardwareModuleName: HardwareModuleName(),
348
+ }
349
+
350
+ rfc5280.anotherNameMap.update(_anotherNameMapUpdate)
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc5940.py ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ # Modified by Russ Housley to add map for use with opentypes.
6
+ #
7
+ # Copyright (c) 2019, Vigil Security, LLC
8
+ # License: http://snmplabs.com/pyasn1/license.html
9
+ #
10
+ # Additional CMS Revocation Information Choices
11
+ #
12
+ # ASN.1 source from:
13
+ # https://www.rfc-editor.org/rfc/rfc5940.txt
14
+ #
15
+
16
+ from pyasn1.type import namedtype
17
+ from pyasn1.type import tag
18
+ from pyasn1.type import univ
19
+
20
+ from pyasn1_modules import rfc2560
21
+ from pyasn1_modules import rfc5652
22
+
23
+
24
+ # RevocationInfoChoice for OCSP response:
25
+ # The OID is included in otherRevInfoFormat, and
26
+ # signed OCSPResponse is included in otherRevInfo
27
+
28
+ id_ri_ocsp_response = univ.ObjectIdentifier('1.3.6.1.5.5.7.16.2')
29
+
30
+ OCSPResponse = rfc2560.OCSPResponse
31
+
32
+
33
+ # RevocationInfoChoice for SCVP request/response:
34
+ # The OID is included in otherRevInfoFormat, and
35
+ # SCVPReqRes is included in otherRevInfo
36
+
37
+ id_ri_scvp = univ.ObjectIdentifier('1.3.6.1.5.5.7.16.4')
38
+
39
+ ContentInfo = rfc5652.ContentInfo
40
+
41
+ class SCVPReqRes(univ.Sequence):
42
+ pass
43
+
44
+ SCVPReqRes.componentType = namedtype.NamedTypes(
45
+ namedtype.OptionalNamedType('request',
46
+ ContentInfo().subtype(explicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
47
+ namedtype.NamedType('response', ContentInfo())
48
+ )
49
+
50
+
51
+ # Map of Revocation Info Format OIDs to Revocation Info Format
52
+ # is added to the ones that are in rfc5652.py
53
+
54
+ _otherRevInfoFormatMapUpdate = {
55
+ id_ri_ocsp_response: OCSPResponse(),
56
+ id_ri_scvp: SCVPReqRes(),
57
+ }
58
+
59
+ rfc5652.otherRevInfoFormatMap.update(_otherRevInfoFormatMapUpdate)
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc6120.py ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ # Extensible Messaging and Presence Protocol (XMPP)
10
+ #
11
+ # ASN.1 source from:
12
+ # https://www.rfc-editor.org/rfc/rfc6120.txt
13
+ #
14
+
15
+ from pyasn1.type import char
16
+ from pyasn1.type import univ
17
+
18
+ from pyasn1_modules import rfc5280
19
+
20
+ MAX = float('inf')
21
+
22
+
23
+ # XmppAddr Identifier Type as specified in Section 13.7.1.4. of RFC 6120
24
+
25
+ id_pkix = rfc5280.id_pkix
26
+
27
+ id_on = id_pkix + (8, )
28
+
29
+ id_on_xmppAddr = id_on + (5, )
30
+
31
+
32
+ class XmppAddr(char.UTF8String):
33
+ pass
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_xmppAddr: XmppAddr(),
41
+ }
42
+
43
+ rfc5280.anotherNameMap.update(_anotherNameMapUpdate)
evalkit_cambrian/lib/python3.10/site-packages/pyasn1_modules/rfc8418.py ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file is being contributed to pyasn1-modules software.
2
+ #
3
+ # Created by Russ Housley.
4
+ #
5
+ # Copyright (c) 2019, Vigil Security, LLC
6
+ # License: http://snmplabs.com/pyasn1/license.html
7
+ #
8
+ # Elliptic Curve Diffie-Hellman (ECDH) Key Agreement Algorithm
9
+ # with X25519 and X448
10
+ #
11
+ # ASN.1 source from:
12
+ # https://www.rfc-editor.org/rfc/rfc8418.txt
13
+
14
+ from pyasn1.type import univ
15
+ from pyasn1_modules import rfc5280
16
+
17
+
18
+ class KeyEncryptionAlgorithmIdentifier(rfc5280.AlgorithmIdentifier):
19
+ pass
20
+
21
+
22
+ class KeyWrapAlgorithmIdentifier(rfc5280.AlgorithmIdentifier):
23
+ pass
24
+
25
+
26
+ dhSinglePass_stdDH_sha256kdf_scheme = univ.ObjectIdentifier('1.3.133.16.840.63.0.11.1')
27
+
28
+ dhSinglePass_stdDH_sha384kdf_scheme = univ.ObjectIdentifier('1.3.133.16.840.63.0.11.2')
29
+
30
+ dhSinglePass_stdDH_sha512kdf_scheme = univ.ObjectIdentifier('1.3.133.16.840.63.0.11.3')
31
+
32
+ dhSinglePass_stdDH_hkdf_sha256_scheme = univ.ObjectIdentifier('1.2.840.113549.1.9.16.3.19')
33
+
34
+ dhSinglePass_stdDH_hkdf_sha384_scheme = univ.ObjectIdentifier('1.2.840.113549.1.9.16.3.20')
35
+
36
+ dhSinglePass_stdDH_hkdf_sha512_scheme = univ.ObjectIdentifier('1.2.840.113549.1.9.16.3.21')
janus/lib/python3.10/__pycache__/__future__.cpython-310.pyc ADDED
Binary file (4.13 kB). View file
 
janus/lib/python3.10/__pycache__/_bootsubprocess.cpython-310.pyc ADDED
Binary file (2.55 kB). View file
 
janus/lib/python3.10/__pycache__/_collections_abc.cpython-310.pyc ADDED
Binary file (33.2 kB). View file
 
janus/lib/python3.10/__pycache__/_compat_pickle.cpython-310.pyc ADDED
Binary file (6.13 kB). View file
 
janus/lib/python3.10/__pycache__/_markupbase.cpython-310.pyc ADDED
Binary file (7.57 kB). View file
 
janus/lib/python3.10/__pycache__/_pydecimal.cpython-310.pyc ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:867ec504e3cc49724dd91bb949795ebec4dfbb3ea9fe5873b9907ac81789fba1
3
+ size 157990
janus/lib/python3.10/__pycache__/_pyio.cpython-310.pyc ADDED
Binary file (73.9 kB). View file
 
janus/lib/python3.10/__pycache__/_sysconfigdata_x86_64_conda_cos6_linux_gnu.cpython-310.pyc ADDED
Binary file (60 kB). View file
 
janus/lib/python3.10/__pycache__/_weakrefset.cpython-310.pyc ADDED
Binary file (7.6 kB). View file
 
janus/lib/python3.10/__pycache__/abc.cpython-310.pyc ADDED
Binary file (6.75 kB). View file
 
janus/lib/python3.10/__pycache__/antigravity.cpython-310.pyc ADDED
Binary file (1.08 kB). View file
 
janus/lib/python3.10/__pycache__/asyncore.cpython-310.pyc ADDED
Binary file (16.3 kB). View file
 
janus/lib/python3.10/__pycache__/bdb.cpython-310.pyc ADDED
Binary file (26.1 kB). View file
 
janus/lib/python3.10/__pycache__/calendar.cpython-310.pyc ADDED
Binary file (26.3 kB). View file
 
janus/lib/python3.10/__pycache__/cgitb.cpython-310.pyc ADDED
Binary file (10.3 kB). View file
 
janus/lib/python3.10/__pycache__/colorsys.cpython-310.pyc ADDED
Binary file (3.26 kB). View file
 
janus/lib/python3.10/__pycache__/decimal.cpython-310.pyc ADDED
Binary file (616 Bytes). View file
 
janus/lib/python3.10/__pycache__/difflib.cpython-310.pyc ADDED
Binary file (59.2 kB). View file
 
janus/lib/python3.10/__pycache__/dis.cpython-310.pyc ADDED
Binary file (15.9 kB). View file
 
janus/lib/python3.10/__pycache__/fnmatch.cpython-310.pyc ADDED
Binary file (4.5 kB). View file
 
janus/lib/python3.10/__pycache__/ftplib.cpython-310.pyc ADDED
Binary file (29.2 kB). View file
 
janus/lib/python3.10/__pycache__/genericpath.cpython-310.pyc ADDED
Binary file (3.9 kB). View file
 
janus/lib/python3.10/__pycache__/getopt.cpython-310.pyc ADDED
Binary file (6.59 kB). View file
 
janus/lib/python3.10/__pycache__/gzip.cpython-310.pyc ADDED
Binary file (18.8 kB). View file
 
janus/lib/python3.10/__pycache__/heapq.cpython-310.pyc ADDED
Binary file (13.9 kB). View file