Datasets:
Add Meta OmniASR Modal baseline (part 14)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +2 -0
- .venv/lib/python3.12/site-packages/pyasn1-0.6.4.dist-info/INSTALLER +1 -0
- .venv/lib/python3.12/site-packages/pyasn1-0.6.4.dist-info/METADATA +228 -0
- .venv/lib/python3.12/site-packages/pyasn1-0.6.4.dist-info/RECORD +71 -0
- .venv/lib/python3.12/site-packages/pyasn1-0.6.4.dist-info/WHEEL +5 -0
- .venv/lib/python3.12/site-packages/pyasn1-0.6.4.dist-info/licenses/LICENSE.rst +24 -0
- .venv/lib/python3.12/site-packages/pyasn1-0.6.4.dist-info/top_level.txt +1 -0
- .venv/lib/python3.12/site-packages/pyasn1-0.6.4.dist-info/zip-safe +1 -0
- .venv/lib/python3.12/site-packages/pyasn1/type/error.py +11 -0
- .venv/lib/python3.12/site-packages/pyasn1/type/namedtype.py +550 -0
- .venv/lib/python3.12/site-packages/pyasn1/type/namedval.py +192 -0
- .venv/lib/python3.12/site-packages/pyasn1/type/opentype.py +104 -0
- .venv/lib/python3.12/site-packages/pyasn1/type/tag.py +347 -0
- .venv/lib/python3.12/site-packages/pyasn1/type/tagmap.py +96 -0
- .venv/lib/python3.12/site-packages/pyasn1/type/univ.py +0 -0
- .venv/lib/python3.12/site-packages/pyasn1/type/useful.py +190 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules-0.4.2.dist-info/INSTALLER +1 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules-0.4.2.dist-info/METADATA +73 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules-0.4.2.dist-info/RECORD +271 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules-0.4.2.dist-info/WHEEL +5 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules-0.4.2.dist-info/licenses/LICENSE.txt +24 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules-0.4.2.dist-info/top_level.txt +1 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules-0.4.2.dist-info/zip-safe +1 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__init__.py +2 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/__init__.cpython-312.pyc +0 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/pem.cpython-312.pyc +0 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc1155.cpython-312.pyc +0 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc1157.cpython-312.pyc +0 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc1901.cpython-312.pyc +0 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc1902.cpython-312.pyc +0 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc1905.cpython-312.pyc +0 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc2251.cpython-312.pyc +0 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc2314.cpython-312.pyc +0 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc2315.cpython-312.pyc +0 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc2437.cpython-312.pyc +0 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc2459.cpython-312.pyc +0 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc2511.cpython-312.pyc +0 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc2560.cpython-312.pyc +0 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc2631.cpython-312.pyc +0 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc2634.cpython-312.pyc +0 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc2876.cpython-312.pyc +0 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc2985.cpython-312.pyc +0 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc2986.cpython-312.pyc +0 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc3058.cpython-312.pyc +0 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc3114.cpython-312.pyc +0 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc3125.cpython-312.pyc +0 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc3161.cpython-312.pyc +0 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc3274.cpython-312.pyc +0 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc3279.cpython-312.pyc +0 -0
- .venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc3280.cpython-312.pyc +0 -0
.gitattributes
CHANGED
|
@@ -235,3 +235,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 235 |
.venv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/console.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
| 236 |
.venv/lib/python3.12/site-packages/propcache/_helpers_c.cpython-312-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
|
| 237 |
.venv/lib/python3.12/site-packages/pyasn1/type/__pycache__/univ.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 235 |
.venv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/console.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
| 236 |
.venv/lib/python3.12/site-packages/propcache/_helpers_c.cpython-312-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
|
| 237 |
.venv/lib/python3.12/site-packages/pyasn1/type/__pycache__/univ.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
| 238 |
+
.venv/lib/python3.12/site-packages/pygments/lexers/__pycache__/lisp.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
| 239 |
+
.venv/lib/python3.12/site-packages/pyparsing/__pycache__/core.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
.venv/lib/python3.12/site-packages/pyasn1-0.6.4.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
.venv/lib/python3.12/site-packages/pyasn1-0.6.4.dist-info/METADATA
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.4
|
| 2 |
+
Name: pyasn1
|
| 3 |
+
Version: 0.6.4
|
| 4 |
+
Summary: Pure-Python implementation of ASN.1 types and DER/BER/CER codecs (X.208)
|
| 5 |
+
Author-email: Ilya Etingof <etingof@gmail.com>
|
| 6 |
+
Maintainer: pyasn1 maintenance organization
|
| 7 |
+
Maintainer-email: Christian Heimes <christian@python.org>
|
| 8 |
+
License: BSD-2-Clause
|
| 9 |
+
Project-URL: Homepage, https://github.com/pyasn1/pyasn1
|
| 10 |
+
Project-URL: Documentation, https://pyasn1.readthedocs.io
|
| 11 |
+
Project-URL: Source, https://github.com/pyasn1/pyasn1
|
| 12 |
+
Project-URL: Issues, https://github.com/pyasn1/pyasn1/issues
|
| 13 |
+
Project-URL: Changelog, https://pyasn1.readthedocs.io/en/latest/changelog.html
|
| 14 |
+
Platform: any
|
| 15 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 16 |
+
Classifier: Environment :: Console
|
| 17 |
+
Classifier: Intended Audience :: Developers
|
| 18 |
+
Classifier: Intended Audience :: Education
|
| 19 |
+
Classifier: Intended Audience :: Information Technology
|
| 20 |
+
Classifier: Intended Audience :: System Administrators
|
| 21 |
+
Classifier: Intended Audience :: Telecommunications Industry
|
| 22 |
+
Classifier: Natural Language :: English
|
| 23 |
+
Classifier: Operating System :: OS Independent
|
| 24 |
+
Classifier: Programming Language :: Python :: 3
|
| 25 |
+
Classifier: Programming Language :: Python :: 3.8
|
| 26 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 27 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 28 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 29 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 30 |
+
Classifier: Programming Language :: Python :: 3.13
|
| 31 |
+
Classifier: Programming Language :: Python :: 3.14
|
| 32 |
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
| 33 |
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
| 34 |
+
Classifier: Topic :: Communications
|
| 35 |
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
| 36 |
+
Requires-Python: >=3.8
|
| 37 |
+
Description-Content-Type: text/markdown
|
| 38 |
+
License-File: LICENSE.rst
|
| 39 |
+
Dynamic: license-file
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
ASN.1 library for Python
|
| 43 |
+
------------------------
|
| 44 |
+
[](https://pypi.org/project/pyasn1)
|
| 45 |
+
[](https://pypi.org/project/pyasn1/)
|
| 46 |
+
[](https://github.com/pyasn1/pyasn1/actions/workflows/main.yml)
|
| 47 |
+
[](https://codecov.io/github/pyasn1/pyasn1)
|
| 48 |
+
[](https://raw.githubusercontent.com/pyasn1/pyasn1/master/LICENSE.txt)
|
| 49 |
+
|
| 50 |
+
This is a free and open source implementation of ASN.1 types and codecs
|
| 51 |
+
as a Python package. It has been first written to support particular
|
| 52 |
+
protocol (SNMP) but then generalized to be suitable for a wide range
|
| 53 |
+
of protocols based on
|
| 54 |
+
[ASN.1 specification](https://www.itu.int/rec/dologin_pub.asp?lang=e&id=T-REC-X.208-198811-W!!PDF-E&type=items).
|
| 55 |
+
|
| 56 |
+
**NOTE:** The package is now maintained by *Christian Heimes* and
|
| 57 |
+
*Simon Pichugin* in project https://github.com/pyasn1/pyasn1.
|
| 58 |
+
|
| 59 |
+
Features
|
| 60 |
+
--------
|
| 61 |
+
|
| 62 |
+
* Generic implementation of ASN.1 types (X.208)
|
| 63 |
+
* Standards compliant BER/CER/DER codecs
|
| 64 |
+
* Can operate on streams of serialized data
|
| 65 |
+
* Dumps/loads ASN.1 structures from Python types
|
| 66 |
+
* 100% Python, works with Python 3.8+
|
| 67 |
+
* MT-safe
|
| 68 |
+
* Contributed ASN.1 compiler [Asn1ate](https://github.com/kimgr/asn1ate)
|
| 69 |
+
|
| 70 |
+
Why using pyasn1
|
| 71 |
+
----------------
|
| 72 |
+
|
| 73 |
+
ASN.1 solves the data serialisation problem. This solution was
|
| 74 |
+
designed long ago by the wise Ancients. Back then, they did not
|
| 75 |
+
have the luxury of wasting bits. That is why ASN.1 is designed
|
| 76 |
+
to serialise data structures of unbounded complexity into
|
| 77 |
+
something compact and efficient when it comes to processing
|
| 78 |
+
the data.
|
| 79 |
+
|
| 80 |
+
That probably explains why many network protocols and file formats
|
| 81 |
+
still rely on the 30+ years old technology. Including a number of
|
| 82 |
+
high-profile Internet protocols and file formats.
|
| 83 |
+
|
| 84 |
+
Quite a number of books cover the topic of ASN.1.
|
| 85 |
+
[Communication between heterogeneous systems](http://www.oss.com/asn1/dubuisson.html)
|
| 86 |
+
by Olivier Dubuisson is one of those high quality books freely
|
| 87 |
+
available on the Internet.
|
| 88 |
+
|
| 89 |
+
The pyasn1 package is designed to help Python programmers tackling
|
| 90 |
+
network protocols and file formats at the comfort of their Python
|
| 91 |
+
prompt. The tool struggles to capture all aspects of a rather
|
| 92 |
+
complicated ASN.1 system and to represent it on the Python terms.
|
| 93 |
+
|
| 94 |
+
How to use pyasn1
|
| 95 |
+
-----------------
|
| 96 |
+
|
| 97 |
+
With pyasn1 you can build Python objects from ASN.1 data structures.
|
| 98 |
+
For example, the following ASN.1 data structure:
|
| 99 |
+
|
| 100 |
+
```bash
|
| 101 |
+
Record ::= SEQUENCE {
|
| 102 |
+
id INTEGER,
|
| 103 |
+
room [0] INTEGER OPTIONAL,
|
| 104 |
+
house [1] INTEGER DEFAULT 0
|
| 105 |
+
}
|
| 106 |
+
```
|
| 107 |
+
|
| 108 |
+
Could be expressed in pyasn1 like this:
|
| 109 |
+
|
| 110 |
+
```python
|
| 111 |
+
class Record(Sequence):
|
| 112 |
+
componentType = NamedTypes(
|
| 113 |
+
NamedType('id', Integer()),
|
| 114 |
+
OptionalNamedType(
|
| 115 |
+
'room', Integer().subtype(
|
| 116 |
+
implicitTag=Tag(tagClassContext, tagFormatSimple, 0)
|
| 117 |
+
)
|
| 118 |
+
),
|
| 119 |
+
DefaultedNamedType(
|
| 120 |
+
'house', Integer(0).subtype(
|
| 121 |
+
implicitTag=Tag(tagClassContext, tagFormatSimple, 1)
|
| 122 |
+
)
|
| 123 |
+
)
|
| 124 |
+
)
|
| 125 |
+
```
|
| 126 |
+
|
| 127 |
+
It is in the spirit of ASN.1 to take abstract data description
|
| 128 |
+
and turn it into a programming language specific form.
|
| 129 |
+
Once you have your ASN.1 data structure expressed in Python, you
|
| 130 |
+
can use it along the lines of similar Python type (e.g. ASN.1
|
| 131 |
+
`SET` is similar to Python `dict`, `SET OF` to `list`):
|
| 132 |
+
|
| 133 |
+
```python
|
| 134 |
+
>>> record = Record()
|
| 135 |
+
>>> record['id'] = 123
|
| 136 |
+
>>> record['room'] = 321
|
| 137 |
+
>>> str(record)
|
| 138 |
+
Record:
|
| 139 |
+
id=123
|
| 140 |
+
room=321
|
| 141 |
+
>>>
|
| 142 |
+
```
|
| 143 |
+
|
| 144 |
+
Part of the power of ASN.1 comes from its serialisation features. You
|
| 145 |
+
can serialise your data structure and send it over the network.
|
| 146 |
+
|
| 147 |
+
```python
|
| 148 |
+
>>> from pyasn1.codec.der.encoder import encode
|
| 149 |
+
>>> substrate = encode(record)
|
| 150 |
+
>>> hexdump(substrate)
|
| 151 |
+
00000: 30 07 02 01 7B 80 02 01 41
|
| 152 |
+
```
|
| 153 |
+
|
| 154 |
+
Conversely, you can turn serialised ASN.1 content, as received from
|
| 155 |
+
network or read from a file, into a Python object which you can
|
| 156 |
+
introspect, modify, encode and send back.
|
| 157 |
+
|
| 158 |
+
```python
|
| 159 |
+
>>> from pyasn1.codec.der.decoder import decode
|
| 160 |
+
>>> received_record, rest_of_substrate = decode(substrate, asn1Spec=Record())
|
| 161 |
+
>>>
|
| 162 |
+
>>> for field in received_record:
|
| 163 |
+
>>> print('{} is {}'.format(field, received_record[field]))
|
| 164 |
+
id is 123
|
| 165 |
+
room is 321
|
| 166 |
+
house is 0
|
| 167 |
+
>>>
|
| 168 |
+
>>> record == received_record
|
| 169 |
+
True
|
| 170 |
+
>>> received_record.update(room=123)
|
| 171 |
+
>>> substrate = encode(received_record)
|
| 172 |
+
>>> hexdump(substrate)
|
| 173 |
+
00000: 30 06 02 01 7B 80 01 7B
|
| 174 |
+
```
|
| 175 |
+
|
| 176 |
+
The pyasn1 classes struggle to emulate their Python prototypes (e.g. int,
|
| 177 |
+
list, dict etc.). But ASN.1 types exhibit more complicated behaviour.
|
| 178 |
+
To make life easier for a Pythonista, they can turn their pyasn1
|
| 179 |
+
classes into Python built-ins:
|
| 180 |
+
|
| 181 |
+
```python
|
| 182 |
+
>>> from pyasn1.codec.native.encoder import encode
|
| 183 |
+
>>> encode(record)
|
| 184 |
+
{'id': 123, 'room': 321, 'house': 0}
|
| 185 |
+
```
|
| 186 |
+
|
| 187 |
+
Or vice-versa -- you can initialize an ASN.1 structure from a tree of
|
| 188 |
+
Python objects:
|
| 189 |
+
|
| 190 |
+
```python
|
| 191 |
+
>>> from pyasn1.codec.native.decoder import decode
|
| 192 |
+
>>> record = decode({'id': 123, 'room': 321, 'house': 0}, asn1Spec=Record())
|
| 193 |
+
>>> str(record)
|
| 194 |
+
Record:
|
| 195 |
+
id=123
|
| 196 |
+
room=321
|
| 197 |
+
>>>
|
| 198 |
+
```
|
| 199 |
+
|
| 200 |
+
With ASN.1 design, serialisation codecs are decoupled from data objects,
|
| 201 |
+
so you could turn every single ASN.1 object into many different
|
| 202 |
+
serialised forms. As of this moment, pyasn1 supports BER, DER, CER and
|
| 203 |
+
Python built-ins codecs. The extremely compact PER encoding is expected
|
| 204 |
+
to be introduced in the upcoming pyasn1 release.
|
| 205 |
+
|
| 206 |
+
More information on pyasn1 APIs can be found in the
|
| 207 |
+
[documentation](https://pyasn1.readthedocs.io/en/latest/pyasn1/contents.html),
|
| 208 |
+
compiled ASN.1 modules for different protocols and file formats
|
| 209 |
+
could be found in the pyasn1-modules
|
| 210 |
+
[repo](https://github.com/pyasn1/pyasn1-modules).
|
| 211 |
+
|
| 212 |
+
How to get pyasn1
|
| 213 |
+
-----------------
|
| 214 |
+
|
| 215 |
+
The pyasn1 package is distributed under terms and conditions of 2-clause
|
| 216 |
+
BSD [license](https://pyasn1.readthedocs.io/en/latest/license.html). Source code is freely
|
| 217 |
+
available as a GitHub [repo](https://github.com/pyasn1/pyasn1).
|
| 218 |
+
|
| 219 |
+
You could `pip install pyasn1` or download it from [PyPI](https://pypi.org/project/pyasn1).
|
| 220 |
+
|
| 221 |
+
If something does not work as expected,
|
| 222 |
+
[open an issue](https://github.com/epyasn1/pyasn1/issues) at GitHub or
|
| 223 |
+
post your question [on Stack Overflow](https://stackoverflow.com/questions/ask)
|
| 224 |
+
or try browsing pyasn1
|
| 225 |
+
[mailing list archives](https://sourceforge.net/p/pyasn1/mailman/pyasn1-users/).
|
| 226 |
+
|
| 227 |
+
Copyright (c) 2005-2020, [Ilya Etingof](mailto:etingof@gmail.com).
|
| 228 |
+
All rights reserved.
|
.venv/lib/python3.12/site-packages/pyasn1-0.6.4.dist-info/RECORD
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pyasn1-0.6.4.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 2 |
+
pyasn1-0.6.4.dist-info/METADATA,sha256=oJLZn60eN0TWqibu8lmOjuI0PqQDE3ynPQbczvGdcOI,8411
|
| 3 |
+
pyasn1-0.6.4.dist-info/RECORD,,
|
| 4 |
+
pyasn1-0.6.4.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
|
| 5 |
+
pyasn1-0.6.4.dist-info/licenses/LICENSE.rst,sha256=Kq1fwA9wXEoa3bg-7RCmp10oajd58M-FGdh-YrxHNf0,1334
|
| 6 |
+
pyasn1-0.6.4.dist-info/top_level.txt,sha256=dnNEQt3nIDIO5mSCCOB5obQHrjDOUsRycdBujc2vrWE,7
|
| 7 |
+
pyasn1-0.6.4.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
| 8 |
+
pyasn1/__init__.py,sha256=oxwp-n9Hk2dKvO2Dwjk2L-icbpp0gGjPIC2dOyihtdM,66
|
| 9 |
+
pyasn1/__pycache__/__init__.cpython-312.pyc,,
|
| 10 |
+
pyasn1/__pycache__/debug.cpython-312.pyc,,
|
| 11 |
+
pyasn1/__pycache__/error.cpython-312.pyc,,
|
| 12 |
+
pyasn1/codec/__init__.py,sha256=EEDlJYS172EH39GUidN_8FbkNcWY9OVV8e30AV58pn0,59
|
| 13 |
+
pyasn1/codec/__pycache__/__init__.cpython-312.pyc,,
|
| 14 |
+
pyasn1/codec/__pycache__/streaming.cpython-312.pyc,,
|
| 15 |
+
pyasn1/codec/ber/__init__.py,sha256=EEDlJYS172EH39GUidN_8FbkNcWY9OVV8e30AV58pn0,59
|
| 16 |
+
pyasn1/codec/ber/__pycache__/__init__.cpython-312.pyc,,
|
| 17 |
+
pyasn1/codec/ber/__pycache__/decoder.cpython-312.pyc,,
|
| 18 |
+
pyasn1/codec/ber/__pycache__/encoder.cpython-312.pyc,,
|
| 19 |
+
pyasn1/codec/ber/__pycache__/eoo.cpython-312.pyc,,
|
| 20 |
+
pyasn1/codec/ber/decoder.py,sha256=MBYFXHETpdM-YwjV9aaYYpBCZ5uBJvt7M2evPBmeyMs,81248
|
| 21 |
+
pyasn1/codec/ber/encoder.py,sha256=lktVv9FIkVHh9PRdzI9bRMXwiQCRnlaQ-52y_ZU4Fas,29850
|
| 22 |
+
pyasn1/codec/ber/eoo.py,sha256=dspLKc2xr_W5Tbcr2WcfLd_bJLhOjotq1YxKn3DCQNI,639
|
| 23 |
+
pyasn1/codec/cer/__init__.py,sha256=EEDlJYS172EH39GUidN_8FbkNcWY9OVV8e30AV58pn0,59
|
| 24 |
+
pyasn1/codec/cer/__pycache__/__init__.cpython-312.pyc,,
|
| 25 |
+
pyasn1/codec/cer/__pycache__/decoder.cpython-312.pyc,,
|
| 26 |
+
pyasn1/codec/cer/__pycache__/encoder.cpython-312.pyc,,
|
| 27 |
+
pyasn1/codec/cer/decoder.py,sha256=-mX9lPevt5ErPHSF_OWdJDk9gctKUyFPntaFBees7Zg,4603
|
| 28 |
+
pyasn1/codec/cer/encoder.py,sha256=R_6zLWVDqQQdSR6DrlXQcpb7VVa0t8g2XqYDyT9RvXE,9852
|
| 29 |
+
pyasn1/codec/der/__init__.py,sha256=EEDlJYS172EH39GUidN_8FbkNcWY9OVV8e30AV58pn0,59
|
| 30 |
+
pyasn1/codec/der/__pycache__/__init__.cpython-312.pyc,,
|
| 31 |
+
pyasn1/codec/der/__pycache__/decoder.cpython-312.pyc,,
|
| 32 |
+
pyasn1/codec/der/__pycache__/encoder.cpython-312.pyc,,
|
| 33 |
+
pyasn1/codec/der/decoder.py,sha256=hqAxJ6tI4f80B67Oq5mMoUptyDH_iryVQZ8MEGV_FfU,3442
|
| 34 |
+
pyasn1/codec/der/encoder.py,sha256=Ms2hqkhbpPPj-CK6XdD0ZpZX1ZJSsA-0GPKXHogI3zg,3493
|
| 35 |
+
pyasn1/codec/native/__init__.py,sha256=EEDlJYS172EH39GUidN_8FbkNcWY9OVV8e30AV58pn0,59
|
| 36 |
+
pyasn1/codec/native/__pycache__/__init__.cpython-312.pyc,,
|
| 37 |
+
pyasn1/codec/native/__pycache__/decoder.cpython-312.pyc,,
|
| 38 |
+
pyasn1/codec/native/__pycache__/encoder.cpython-312.pyc,,
|
| 39 |
+
pyasn1/codec/native/decoder.py,sha256=ZQXHXu30asaueFC97S39hvwQnJnpirTv-_inffDx0j4,9132
|
| 40 |
+
pyasn1/codec/native/encoder.py,sha256=YD2UzkVVUNCwiy4eM06dehe383xm9hMqTFpY_83vocg,9198
|
| 41 |
+
pyasn1/codec/streaming.py,sha256=Vp-VDh0SlA5h7T133rne9UNlJlqv2ohpUzVlSCGjq24,6377
|
| 42 |
+
pyasn1/compat/__init__.py,sha256=-9FOJV1STFBatf2pVRiOYn14GmCKC8RY3TYCxOqfRXY,112
|
| 43 |
+
pyasn1/compat/__pycache__/__init__.cpython-312.pyc,,
|
| 44 |
+
pyasn1/compat/__pycache__/integer.cpython-312.pyc,,
|
| 45 |
+
pyasn1/compat/integer.py,sha256=lMXqbJBTyjg34Rhx6JlFcXyoQxDaeXGxhaIIab86hX8,404
|
| 46 |
+
pyasn1/debug.py,sha256=u-WmIFfewqp0041ezvtTjvhZcU9K14OI6p00ArXZ63g,3494
|
| 47 |
+
pyasn1/error.py,sha256=e352oqW33seeh2MbIF27sFSgpiegjstabCMFx2piR0M,3258
|
| 48 |
+
pyasn1/type/__init__.py,sha256=EEDlJYS172EH39GUidN_8FbkNcWY9OVV8e30AV58pn0,59
|
| 49 |
+
pyasn1/type/__pycache__/__init__.cpython-312.pyc,,
|
| 50 |
+
pyasn1/type/__pycache__/base.cpython-312.pyc,,
|
| 51 |
+
pyasn1/type/__pycache__/char.cpython-312.pyc,,
|
| 52 |
+
pyasn1/type/__pycache__/constraint.cpython-312.pyc,,
|
| 53 |
+
pyasn1/type/__pycache__/error.cpython-312.pyc,,
|
| 54 |
+
pyasn1/type/__pycache__/namedtype.cpython-312.pyc,,
|
| 55 |
+
pyasn1/type/__pycache__/namedval.cpython-312.pyc,,
|
| 56 |
+
pyasn1/type/__pycache__/opentype.cpython-312.pyc,,
|
| 57 |
+
pyasn1/type/__pycache__/tag.cpython-312.pyc,,
|
| 58 |
+
pyasn1/type/__pycache__/tagmap.cpython-312.pyc,,
|
| 59 |
+
pyasn1/type/__pycache__/univ.cpython-312.pyc,,
|
| 60 |
+
pyasn1/type/__pycache__/useful.cpython-312.pyc,,
|
| 61 |
+
pyasn1/type/base.py,sha256=tjBRvXIQSiHES5-e5rBbsnn5CtIvBgCuflujDbdrtkM,22050
|
| 62 |
+
pyasn1/type/char.py,sha256=Rvj5ypQLPNXcdHkfUV8nul1XX66R_Akn0g2HUyLj1qY,9438
|
| 63 |
+
pyasn1/type/constraint.py,sha256=jmrt5esLa095XdfS0beqaoRuUjnuHiTKdkTdCcKx1FI,21915
|
| 64 |
+
pyasn1/type/error.py,sha256=2kwYYkbd2jXIVEE56ThLRmBEOGZfafwogEOo-9RV_GY,259
|
| 65 |
+
pyasn1/type/namedtype.py,sha256=jnTClIUoRZi025GTY9GlMlMI-j5dqEcv_ilzZ7i0hUQ,16179
|
| 66 |
+
pyasn1/type/namedval.py,sha256=84u6wKOfte7U47aWrFqIZRM3tO2ryivpsBqVblPezuc,4899
|
| 67 |
+
pyasn1/type/opentype.py,sha256=jjqSbTgAaCxlSHSf66YcLbrxtfh_98nAx2v8wzW35MU,2861
|
| 68 |
+
pyasn1/type/tag.py,sha256=S8mt-viyumzggnB9O1880Rh8XWGUXBKT_ygAazUTBkE,9865
|
| 69 |
+
pyasn1/type/tagmap.py,sha256=alJ9ZfDGTAsPeygHT6yONTagUkCjlgij82YXpPaQ_-8,3000
|
| 70 |
+
pyasn1/type/univ.py,sha256=mwJbH74vcT8nSIfaSS_4aEJEzd2MqV6kqHYoFSpymPM,109578
|
| 71 |
+
pyasn1/type/useful.py,sha256=waqrYyKvH31rdRYvPnSLxAN3R03nFqxcD5ZOmbRXjbI,5389
|
.venv/lib/python3.12/site-packages/pyasn1-0.6.4.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: setuptools (83.0.0)
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py3-none-any
|
| 5 |
+
|
.venv/lib/python3.12/site-packages/pyasn1-0.6.4.dist-info/licenses/LICENSE.rst
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (c) 2005-2020, Ilya Etingof <etingof@gmail.com>
|
| 2 |
+
All rights reserved.
|
| 3 |
+
|
| 4 |
+
Redistribution and use in source and binary forms, with or without
|
| 5 |
+
modification, are permitted provided that the following conditions are met:
|
| 6 |
+
|
| 7 |
+
* Redistributions of source code must retain the above copyright notice,
|
| 8 |
+
this list of conditions and the following disclaimer.
|
| 9 |
+
|
| 10 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 11 |
+
this list of conditions and the following disclaimer in the documentation
|
| 12 |
+
and/or other materials provided with the distribution.
|
| 13 |
+
|
| 14 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
| 15 |
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 16 |
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
| 17 |
+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
| 18 |
+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
| 19 |
+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
| 20 |
+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
| 21 |
+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
| 22 |
+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 23 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 24 |
+
POSSIBILITY OF SUCH DAMAGE.
|
.venv/lib/python3.12/site-packages/pyasn1-0.6.4.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pyasn1
|
.venv/lib/python3.12/site-packages/pyasn1-0.6.4.dist-info/zip-safe
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
|
.venv/lib/python3.12/site-packages/pyasn1/type/error.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# This file is part of pyasn1 software.
|
| 3 |
+
#
|
| 4 |
+
# Copyright (c) 2005-2020, Ilya Etingof <etingof@gmail.com>
|
| 5 |
+
# License: https://pyasn1.readthedocs.io/en/latest/license.html
|
| 6 |
+
#
|
| 7 |
+
from pyasn1.error import PyAsn1Error
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
class ValueConstraintError(PyAsn1Error):
|
| 11 |
+
pass
|
.venv/lib/python3.12/site-packages/pyasn1/type/namedtype.py
ADDED
|
@@ -0,0 +1,550 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# This file is part of pyasn1 software.
|
| 3 |
+
#
|
| 4 |
+
# Copyright (c) 2005-2020, Ilya Etingof <etingof@gmail.com>
|
| 5 |
+
# License: https://pyasn1.readthedocs.io/en/latest/license.html
|
| 6 |
+
#
|
| 7 |
+
import sys
|
| 8 |
+
|
| 9 |
+
from pyasn1 import error
|
| 10 |
+
from pyasn1.type import tag
|
| 11 |
+
from pyasn1.type import tagmap
|
| 12 |
+
|
| 13 |
+
__all__ = ['NamedType', 'OptionalNamedType', 'DefaultedNamedType',
|
| 14 |
+
'NamedTypes']
|
| 15 |
+
|
| 16 |
+
class NamedType(object):
|
| 17 |
+
"""Create named field object for a constructed ASN.1 type.
|
| 18 |
+
|
| 19 |
+
The |NamedType| object represents a single name and ASN.1 type of a constructed ASN.1 type.
|
| 20 |
+
|
| 21 |
+
|NamedType| objects are immutable and duck-type Python :class:`tuple` objects
|
| 22 |
+
holding *name* and *asn1Object* components.
|
| 23 |
+
|
| 24 |
+
Parameters
|
| 25 |
+
----------
|
| 26 |
+
name: :py:class:`str`
|
| 27 |
+
Field name
|
| 28 |
+
|
| 29 |
+
asn1Object:
|
| 30 |
+
ASN.1 type object
|
| 31 |
+
"""
|
| 32 |
+
isOptional = False
|
| 33 |
+
isDefaulted = False
|
| 34 |
+
|
| 35 |
+
def __init__(self, name, asn1Object, openType=None):
|
| 36 |
+
self.__name = name
|
| 37 |
+
self.__type = asn1Object
|
| 38 |
+
self.__nameAndType = name, asn1Object
|
| 39 |
+
self.__openType = openType
|
| 40 |
+
|
| 41 |
+
def __repr__(self):
|
| 42 |
+
representation = '%s=%r' % (self.name, self.asn1Object)
|
| 43 |
+
|
| 44 |
+
if self.openType:
|
| 45 |
+
representation += ', open type %r' % self.openType
|
| 46 |
+
|
| 47 |
+
return '<%s object, type %s>' % (
|
| 48 |
+
self.__class__.__name__, representation)
|
| 49 |
+
|
| 50 |
+
def __eq__(self, other):
|
| 51 |
+
return self.__nameAndType == other
|
| 52 |
+
|
| 53 |
+
def __ne__(self, other):
|
| 54 |
+
return self.__nameAndType != other
|
| 55 |
+
|
| 56 |
+
def __lt__(self, other):
|
| 57 |
+
return self.__nameAndType < other
|
| 58 |
+
|
| 59 |
+
def __le__(self, other):
|
| 60 |
+
return self.__nameAndType <= other
|
| 61 |
+
|
| 62 |
+
def __gt__(self, other):
|
| 63 |
+
return self.__nameAndType > other
|
| 64 |
+
|
| 65 |
+
def __ge__(self, other):
|
| 66 |
+
return self.__nameAndType >= other
|
| 67 |
+
|
| 68 |
+
def __hash__(self):
|
| 69 |
+
return hash(self.__nameAndType)
|
| 70 |
+
|
| 71 |
+
def __getitem__(self, idx):
|
| 72 |
+
return self.__nameAndType[idx]
|
| 73 |
+
|
| 74 |
+
def __iter__(self):
|
| 75 |
+
return iter(self.__nameAndType)
|
| 76 |
+
|
| 77 |
+
@property
|
| 78 |
+
def name(self):
|
| 79 |
+
return self.__name
|
| 80 |
+
|
| 81 |
+
@property
|
| 82 |
+
def asn1Object(self):
|
| 83 |
+
return self.__type
|
| 84 |
+
|
| 85 |
+
@property
|
| 86 |
+
def openType(self):
|
| 87 |
+
return self.__openType
|
| 88 |
+
|
| 89 |
+
# Backward compatibility
|
| 90 |
+
|
| 91 |
+
def getName(self):
|
| 92 |
+
return self.name
|
| 93 |
+
|
| 94 |
+
def getType(self):
|
| 95 |
+
return self.asn1Object
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
class OptionalNamedType(NamedType):
|
| 99 |
+
__doc__ = NamedType.__doc__
|
| 100 |
+
|
| 101 |
+
isOptional = True
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
class DefaultedNamedType(NamedType):
|
| 105 |
+
__doc__ = NamedType.__doc__
|
| 106 |
+
|
| 107 |
+
isDefaulted = True
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
class NamedTypes(object):
|
| 111 |
+
"""Create a collection of named fields for a constructed ASN.1 type.
|
| 112 |
+
|
| 113 |
+
The NamedTypes object represents a collection of named fields of a constructed ASN.1 type.
|
| 114 |
+
|
| 115 |
+
*NamedTypes* objects are immutable and duck-type Python :class:`dict` objects
|
| 116 |
+
holding *name* as keys and ASN.1 type object as values.
|
| 117 |
+
|
| 118 |
+
Parameters
|
| 119 |
+
----------
|
| 120 |
+
*namedTypes: :class:`~pyasn1.type.namedtype.NamedType`
|
| 121 |
+
|
| 122 |
+
Examples
|
| 123 |
+
--------
|
| 124 |
+
|
| 125 |
+
.. code-block:: python
|
| 126 |
+
|
| 127 |
+
class Description(Sequence):
|
| 128 |
+
'''
|
| 129 |
+
ASN.1 specification:
|
| 130 |
+
|
| 131 |
+
Description ::= SEQUENCE {
|
| 132 |
+
surname IA5String,
|
| 133 |
+
first-name IA5String OPTIONAL,
|
| 134 |
+
age INTEGER DEFAULT 40
|
| 135 |
+
}
|
| 136 |
+
'''
|
| 137 |
+
componentType = NamedTypes(
|
| 138 |
+
NamedType('surname', IA5String()),
|
| 139 |
+
OptionalNamedType('first-name', IA5String()),
|
| 140 |
+
DefaultedNamedType('age', Integer(40))
|
| 141 |
+
)
|
| 142 |
+
|
| 143 |
+
descr = Description()
|
| 144 |
+
descr['surname'] = 'Smith'
|
| 145 |
+
descr['first-name'] = 'John'
|
| 146 |
+
"""
|
| 147 |
+
def __init__(self, *namedTypes, **kwargs):
|
| 148 |
+
self.__namedTypes = namedTypes
|
| 149 |
+
self.__namedTypesLen = len(self.__namedTypes)
|
| 150 |
+
self.__minTagSet = self.__computeMinTagSet()
|
| 151 |
+
self.__nameToPosMap = self.__computeNameToPosMap()
|
| 152 |
+
self.__tagToPosMap = self.__computeTagToPosMap()
|
| 153 |
+
self.__ambiguousTypes = 'terminal' not in kwargs and self.__computeAmbiguousTypes() or {}
|
| 154 |
+
self.__uniqueTagMap = self.__computeTagMaps(unique=True)
|
| 155 |
+
self.__nonUniqueTagMap = self.__computeTagMaps(unique=False)
|
| 156 |
+
self.__hasOptionalOrDefault = any([True for namedType in self.__namedTypes
|
| 157 |
+
if namedType.isDefaulted or namedType.isOptional])
|
| 158 |
+
self.__hasOpenTypes = any([True for namedType in self.__namedTypes
|
| 159 |
+
if namedType.openType])
|
| 160 |
+
|
| 161 |
+
self.__requiredComponents = frozenset(
|
| 162 |
+
[idx for idx, nt in enumerate(self.__namedTypes) if not nt.isOptional and not nt.isDefaulted]
|
| 163 |
+
)
|
| 164 |
+
self.__keys = frozenset([namedType.name for namedType in self.__namedTypes])
|
| 165 |
+
self.__values = tuple([namedType.asn1Object for namedType in self.__namedTypes])
|
| 166 |
+
self.__items = tuple([(namedType.name, namedType.asn1Object) for namedType in self.__namedTypes])
|
| 167 |
+
|
| 168 |
+
def __repr__(self):
|
| 169 |
+
representation = ', '.join(['%r' % x for x in self.__namedTypes])
|
| 170 |
+
return '<%s object, types %s>' % (
|
| 171 |
+
self.__class__.__name__, representation)
|
| 172 |
+
|
| 173 |
+
def __eq__(self, other):
|
| 174 |
+
return self.__namedTypes == other
|
| 175 |
+
|
| 176 |
+
def __ne__(self, other):
|
| 177 |
+
return self.__namedTypes != other
|
| 178 |
+
|
| 179 |
+
def __lt__(self, other):
|
| 180 |
+
return self.__namedTypes < other
|
| 181 |
+
|
| 182 |
+
def __le__(self, other):
|
| 183 |
+
return self.__namedTypes <= other
|
| 184 |
+
|
| 185 |
+
def __gt__(self, other):
|
| 186 |
+
return self.__namedTypes > other
|
| 187 |
+
|
| 188 |
+
def __ge__(self, other):
|
| 189 |
+
return self.__namedTypes >= other
|
| 190 |
+
|
| 191 |
+
def __hash__(self):
|
| 192 |
+
return hash(self.__namedTypes)
|
| 193 |
+
|
| 194 |
+
def __getitem__(self, idx):
|
| 195 |
+
try:
|
| 196 |
+
return self.__namedTypes[idx]
|
| 197 |
+
|
| 198 |
+
except TypeError:
|
| 199 |
+
return self.__namedTypes[self.__nameToPosMap[idx]]
|
| 200 |
+
|
| 201 |
+
def __contains__(self, key):
|
| 202 |
+
return key in self.__nameToPosMap
|
| 203 |
+
|
| 204 |
+
def __iter__(self):
|
| 205 |
+
return (x[0] for x in self.__namedTypes)
|
| 206 |
+
|
| 207 |
+
def __bool__(self):
|
| 208 |
+
return self.__namedTypesLen > 0
|
| 209 |
+
|
| 210 |
+
def __len__(self):
|
| 211 |
+
return self.__namedTypesLen
|
| 212 |
+
|
| 213 |
+
# Python dict protocol
|
| 214 |
+
|
| 215 |
+
def values(self):
|
| 216 |
+
return self.__values
|
| 217 |
+
|
| 218 |
+
def keys(self):
|
| 219 |
+
return self.__keys
|
| 220 |
+
|
| 221 |
+
def items(self):
|
| 222 |
+
return self.__items
|
| 223 |
+
|
| 224 |
+
def clone(self):
|
| 225 |
+
return self.__class__(*self.__namedTypes)
|
| 226 |
+
|
| 227 |
+
class PostponedError(object):
|
| 228 |
+
def __init__(self, errorMsg):
|
| 229 |
+
self.__errorMsg = errorMsg
|
| 230 |
+
|
| 231 |
+
def __getitem__(self, item):
|
| 232 |
+
raise error.PyAsn1Error(self.__errorMsg)
|
| 233 |
+
|
| 234 |
+
def __computeTagToPosMap(self):
|
| 235 |
+
tagToPosMap = {}
|
| 236 |
+
for idx, namedType in enumerate(self.__namedTypes):
|
| 237 |
+
tagMap = namedType.asn1Object.tagMap
|
| 238 |
+
if isinstance(tagMap, NamedTypes.PostponedError):
|
| 239 |
+
return tagMap
|
| 240 |
+
if not tagMap:
|
| 241 |
+
continue
|
| 242 |
+
for _tagSet in tagMap.presentTypes:
|
| 243 |
+
if _tagSet in tagToPosMap:
|
| 244 |
+
return NamedTypes.PostponedError('Duplicate component tag %s at %s' % (_tagSet, namedType))
|
| 245 |
+
tagToPosMap[_tagSet] = idx
|
| 246 |
+
|
| 247 |
+
return tagToPosMap
|
| 248 |
+
|
| 249 |
+
def __computeNameToPosMap(self):
|
| 250 |
+
nameToPosMap = {}
|
| 251 |
+
for idx, namedType in enumerate(self.__namedTypes):
|
| 252 |
+
if namedType.name in nameToPosMap:
|
| 253 |
+
return NamedTypes.PostponedError('Duplicate component name %s at %s' % (namedType.name, namedType))
|
| 254 |
+
nameToPosMap[namedType.name] = idx
|
| 255 |
+
|
| 256 |
+
return nameToPosMap
|
| 257 |
+
|
| 258 |
+
def __computeAmbiguousTypes(self):
|
| 259 |
+
ambiguousTypes = {}
|
| 260 |
+
partialAmbiguousTypes = ()
|
| 261 |
+
for idx, namedType in reversed(tuple(enumerate(self.__namedTypes))):
|
| 262 |
+
if namedType.isOptional or namedType.isDefaulted:
|
| 263 |
+
partialAmbiguousTypes = (namedType,) + partialAmbiguousTypes
|
| 264 |
+
else:
|
| 265 |
+
partialAmbiguousTypes = (namedType,)
|
| 266 |
+
if len(partialAmbiguousTypes) == len(self.__namedTypes):
|
| 267 |
+
ambiguousTypes[idx] = self
|
| 268 |
+
else:
|
| 269 |
+
ambiguousTypes[idx] = NamedTypes(*partialAmbiguousTypes, **dict(terminal=True))
|
| 270 |
+
return ambiguousTypes
|
| 271 |
+
|
| 272 |
+
def getTypeByPosition(self, idx):
|
| 273 |
+
"""Return ASN.1 type object by its position in fields set.
|
| 274 |
+
|
| 275 |
+
Parameters
|
| 276 |
+
----------
|
| 277 |
+
idx: :py:class:`int`
|
| 278 |
+
Field index
|
| 279 |
+
|
| 280 |
+
Returns
|
| 281 |
+
-------
|
| 282 |
+
:
|
| 283 |
+
ASN.1 type
|
| 284 |
+
|
| 285 |
+
Raises
|
| 286 |
+
------
|
| 287 |
+
~pyasn1.error.PyAsn1Error
|
| 288 |
+
If given position is out of fields range
|
| 289 |
+
"""
|
| 290 |
+
try:
|
| 291 |
+
return self.__namedTypes[idx].asn1Object
|
| 292 |
+
|
| 293 |
+
except IndexError:
|
| 294 |
+
raise error.PyAsn1Error('Type position out of range')
|
| 295 |
+
|
| 296 |
+
def getPositionByType(self, tagSet):
|
| 297 |
+
"""Return field position by its ASN.1 type.
|
| 298 |
+
|
| 299 |
+
Parameters
|
| 300 |
+
----------
|
| 301 |
+
tagSet: :class:`~pysnmp.type.tag.TagSet`
|
| 302 |
+
ASN.1 tag set distinguishing one ASN.1 type from others.
|
| 303 |
+
|
| 304 |
+
Returns
|
| 305 |
+
-------
|
| 306 |
+
: :py:class:`int`
|
| 307 |
+
ASN.1 type position in fields set
|
| 308 |
+
|
| 309 |
+
Raises
|
| 310 |
+
------
|
| 311 |
+
~pyasn1.error.PyAsn1Error
|
| 312 |
+
If *tagSet* is not present or ASN.1 types are not unique within callee *NamedTypes*
|
| 313 |
+
"""
|
| 314 |
+
try:
|
| 315 |
+
return self.__tagToPosMap[tagSet]
|
| 316 |
+
|
| 317 |
+
except KeyError:
|
| 318 |
+
raise error.PyAsn1Error('Type %s not found' % (tagSet,))
|
| 319 |
+
|
| 320 |
+
def getNameByPosition(self, idx):
|
| 321 |
+
"""Return field name by its position in fields set.
|
| 322 |
+
|
| 323 |
+
Parameters
|
| 324 |
+
----------
|
| 325 |
+
idx: :py:class:`idx`
|
| 326 |
+
Field index
|
| 327 |
+
|
| 328 |
+
Returns
|
| 329 |
+
-------
|
| 330 |
+
: :py:class:`str`
|
| 331 |
+
Field name
|
| 332 |
+
|
| 333 |
+
Raises
|
| 334 |
+
------
|
| 335 |
+
~pyasn1.error.PyAsn1Error
|
| 336 |
+
If given field name is not present in callee *NamedTypes*
|
| 337 |
+
"""
|
| 338 |
+
try:
|
| 339 |
+
return self.__namedTypes[idx].name
|
| 340 |
+
|
| 341 |
+
except IndexError:
|
| 342 |
+
raise error.PyAsn1Error('Type position out of range')
|
| 343 |
+
|
| 344 |
+
def getPositionByName(self, name):
|
| 345 |
+
"""Return field position by filed name.
|
| 346 |
+
|
| 347 |
+
Parameters
|
| 348 |
+
----------
|
| 349 |
+
name: :py:class:`str`
|
| 350 |
+
Field name
|
| 351 |
+
|
| 352 |
+
Returns
|
| 353 |
+
-------
|
| 354 |
+
: :py:class:`int`
|
| 355 |
+
Field position in fields set
|
| 356 |
+
|
| 357 |
+
Raises
|
| 358 |
+
------
|
| 359 |
+
~pyasn1.error.PyAsn1Error
|
| 360 |
+
If *name* is not present or not unique within callee *NamedTypes*
|
| 361 |
+
"""
|
| 362 |
+
try:
|
| 363 |
+
return self.__nameToPosMap[name]
|
| 364 |
+
|
| 365 |
+
except KeyError:
|
| 366 |
+
raise error.PyAsn1Error('Name %s not found' % (name,))
|
| 367 |
+
|
| 368 |
+
def getTagMapNearPosition(self, idx):
|
| 369 |
+
"""Return ASN.1 types that are allowed at or past given field position.
|
| 370 |
+
|
| 371 |
+
Some ASN.1 serialisation allow for skipping optional and defaulted fields.
|
| 372 |
+
Some constructed ASN.1 types allow reordering of the fields. When recovering
|
| 373 |
+
such objects it may be important to know which types can possibly be
|
| 374 |
+
present at any given position in the field sets.
|
| 375 |
+
|
| 376 |
+
Parameters
|
| 377 |
+
----------
|
| 378 |
+
idx: :py:class:`int`
|
| 379 |
+
Field index
|
| 380 |
+
|
| 381 |
+
Returns
|
| 382 |
+
-------
|
| 383 |
+
: :class:`~pyasn1.type.tagmap.TagMap`
|
| 384 |
+
Map if ASN.1 types allowed at given field position
|
| 385 |
+
|
| 386 |
+
Raises
|
| 387 |
+
------
|
| 388 |
+
~pyasn1.error.PyAsn1Error
|
| 389 |
+
If given position is out of fields range
|
| 390 |
+
"""
|
| 391 |
+
try:
|
| 392 |
+
return self.__ambiguousTypes[idx].tagMap
|
| 393 |
+
|
| 394 |
+
except KeyError:
|
| 395 |
+
raise error.PyAsn1Error('Type position out of range')
|
| 396 |
+
|
| 397 |
+
def getPositionNearType(self, tagSet, idx):
|
| 398 |
+
"""Return the closest field position where given ASN.1 type is allowed.
|
| 399 |
+
|
| 400 |
+
Some ASN.1 serialisation allow for skipping optional and defaulted fields.
|
| 401 |
+
Some constructed ASN.1 types allow reordering of the fields. When recovering
|
| 402 |
+
such objects it may be important to know at which field position, in field set,
|
| 403 |
+
given *tagSet* is allowed at or past *idx* position.
|
| 404 |
+
|
| 405 |
+
Parameters
|
| 406 |
+
----------
|
| 407 |
+
tagSet: :class:`~pyasn1.type.tag.TagSet`
|
| 408 |
+
ASN.1 type which field position to look up
|
| 409 |
+
|
| 410 |
+
idx: :py:class:`int`
|
| 411 |
+
Field position at or past which to perform ASN.1 type look up
|
| 412 |
+
|
| 413 |
+
Returns
|
| 414 |
+
-------
|
| 415 |
+
: :py:class:`int`
|
| 416 |
+
Field position in fields set
|
| 417 |
+
|
| 418 |
+
Raises
|
| 419 |
+
------
|
| 420 |
+
~pyasn1.error.PyAsn1Error
|
| 421 |
+
If *tagSet* is not present or not unique within callee *NamedTypes*
|
| 422 |
+
or *idx* is out of fields range
|
| 423 |
+
"""
|
| 424 |
+
try:
|
| 425 |
+
return idx + self.__ambiguousTypes[idx].getPositionByType(tagSet)
|
| 426 |
+
|
| 427 |
+
except KeyError:
|
| 428 |
+
raise error.PyAsn1Error('Type position out of range')
|
| 429 |
+
|
| 430 |
+
def __computeMinTagSet(self):
|
| 431 |
+
minTagSet = None
|
| 432 |
+
for namedType in self.__namedTypes:
|
| 433 |
+
asn1Object = namedType.asn1Object
|
| 434 |
+
|
| 435 |
+
try:
|
| 436 |
+
tagSet = asn1Object.minTagSet
|
| 437 |
+
|
| 438 |
+
except AttributeError:
|
| 439 |
+
tagSet = asn1Object.tagSet
|
| 440 |
+
|
| 441 |
+
if minTagSet is None or tagSet < minTagSet:
|
| 442 |
+
minTagSet = tagSet
|
| 443 |
+
|
| 444 |
+
return minTagSet or tag.TagSet()
|
| 445 |
+
|
| 446 |
+
@property
|
| 447 |
+
def minTagSet(self):
|
| 448 |
+
"""Return the minimal TagSet among ASN.1 type in callee *NamedTypes*.
|
| 449 |
+
|
| 450 |
+
Some ASN.1 types/serialisation protocols require ASN.1 types to be
|
| 451 |
+
arranged based on their numerical tag value. The *minTagSet* property
|
| 452 |
+
returns that.
|
| 453 |
+
|
| 454 |
+
Returns
|
| 455 |
+
-------
|
| 456 |
+
: :class:`~pyasn1.type.tagset.TagSet`
|
| 457 |
+
Minimal TagSet among ASN.1 types in callee *NamedTypes*
|
| 458 |
+
"""
|
| 459 |
+
return self.__minTagSet
|
| 460 |
+
|
| 461 |
+
def __computeTagMaps(self, unique):
|
| 462 |
+
presentTypes = {}
|
| 463 |
+
skipTypes = {}
|
| 464 |
+
defaultType = None
|
| 465 |
+
for namedType in self.__namedTypes:
|
| 466 |
+
tagMap = namedType.asn1Object.tagMap
|
| 467 |
+
if isinstance(tagMap, NamedTypes.PostponedError):
|
| 468 |
+
return tagMap
|
| 469 |
+
for tagSet in tagMap:
|
| 470 |
+
if unique and tagSet in presentTypes:
|
| 471 |
+
return NamedTypes.PostponedError('Non-unique tagSet %s of %s at %s' % (tagSet, namedType, self))
|
| 472 |
+
presentTypes[tagSet] = namedType.asn1Object
|
| 473 |
+
skipTypes.update(tagMap.skipTypes)
|
| 474 |
+
|
| 475 |
+
if defaultType is None:
|
| 476 |
+
defaultType = tagMap.defaultType
|
| 477 |
+
elif tagMap.defaultType is not None:
|
| 478 |
+
return NamedTypes.PostponedError('Duplicate default ASN.1 type at %s' % (self,))
|
| 479 |
+
|
| 480 |
+
return tagmap.TagMap(presentTypes, skipTypes, defaultType)
|
| 481 |
+
|
| 482 |
+
@property
|
| 483 |
+
def tagMap(self):
|
| 484 |
+
"""Return a *TagMap* object from tags and types recursively.
|
| 485 |
+
|
| 486 |
+
Return a :class:`~pyasn1.type.tagmap.TagMap` object by
|
| 487 |
+
combining tags from *TagMap* objects of children types and
|
| 488 |
+
associating them with their immediate child type.
|
| 489 |
+
|
| 490 |
+
Example
|
| 491 |
+
-------
|
| 492 |
+
.. code-block:: python
|
| 493 |
+
|
| 494 |
+
OuterType ::= CHOICE {
|
| 495 |
+
innerType INTEGER
|
| 496 |
+
}
|
| 497 |
+
|
| 498 |
+
Calling *.tagMap* on *OuterType* will yield a map like this:
|
| 499 |
+
|
| 500 |
+
.. code-block:: python
|
| 501 |
+
|
| 502 |
+
Integer.tagSet -> Choice
|
| 503 |
+
"""
|
| 504 |
+
return self.__nonUniqueTagMap
|
| 505 |
+
|
| 506 |
+
@property
|
| 507 |
+
def tagMapUnique(self):
|
| 508 |
+
"""Return a *TagMap* object from unique tags and types recursively.
|
| 509 |
+
|
| 510 |
+
Return a :class:`~pyasn1.type.tagmap.TagMap` object by
|
| 511 |
+
combining tags from *TagMap* objects of children types and
|
| 512 |
+
associating them with their immediate child type.
|
| 513 |
+
|
| 514 |
+
Example
|
| 515 |
+
-------
|
| 516 |
+
.. code-block:: python
|
| 517 |
+
|
| 518 |
+
OuterType ::= CHOICE {
|
| 519 |
+
innerType INTEGER
|
| 520 |
+
}
|
| 521 |
+
|
| 522 |
+
Calling *.tagMapUnique* on *OuterType* will yield a map like this:
|
| 523 |
+
|
| 524 |
+
.. code-block:: python
|
| 525 |
+
|
| 526 |
+
Integer.tagSet -> Choice
|
| 527 |
+
|
| 528 |
+
Note
|
| 529 |
+
----
|
| 530 |
+
|
| 531 |
+
Duplicate *TagSet* objects found in the tree of children
|
| 532 |
+
types would cause error.
|
| 533 |
+
"""
|
| 534 |
+
return self.__uniqueTagMap
|
| 535 |
+
|
| 536 |
+
@property
|
| 537 |
+
def hasOptionalOrDefault(self):
|
| 538 |
+
return self.__hasOptionalOrDefault
|
| 539 |
+
|
| 540 |
+
@property
|
| 541 |
+
def hasOpenTypes(self):
|
| 542 |
+
return self.__hasOpenTypes
|
| 543 |
+
|
| 544 |
+
@property
|
| 545 |
+
def namedTypes(self):
|
| 546 |
+
return tuple(self.__namedTypes)
|
| 547 |
+
|
| 548 |
+
@property
|
| 549 |
+
def requiredComponents(self):
|
| 550 |
+
return self.__requiredComponents
|
.venv/lib/python3.12/site-packages/pyasn1/type/namedval.py
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# This file is part of pyasn1 software.
|
| 3 |
+
#
|
| 4 |
+
# Copyright (c) 2005-2020, Ilya Etingof <etingof@gmail.com>
|
| 5 |
+
# License: https://pyasn1.readthedocs.io/en/latest/license.html
|
| 6 |
+
#
|
| 7 |
+
# ASN.1 named integers
|
| 8 |
+
#
|
| 9 |
+
from pyasn1 import error
|
| 10 |
+
|
| 11 |
+
__all__ = ['NamedValues']
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
class NamedValues(object):
|
| 15 |
+
"""Create named values object.
|
| 16 |
+
|
| 17 |
+
The |NamedValues| object represents a collection of string names
|
| 18 |
+
associated with numeric IDs. These objects are used for giving
|
| 19 |
+
names to otherwise numerical values.
|
| 20 |
+
|
| 21 |
+
|NamedValues| objects are immutable and duck-type Python
|
| 22 |
+
:class:`dict` object mapping ID to name and vice-versa.
|
| 23 |
+
|
| 24 |
+
Parameters
|
| 25 |
+
----------
|
| 26 |
+
*args: variable number of two-element :py:class:`tuple`
|
| 27 |
+
|
| 28 |
+
name: :py:class:`str`
|
| 29 |
+
Value label
|
| 30 |
+
|
| 31 |
+
value: :py:class:`int`
|
| 32 |
+
Numeric value
|
| 33 |
+
|
| 34 |
+
Keyword Args
|
| 35 |
+
------------
|
| 36 |
+
name: :py:class:`str`
|
| 37 |
+
Value label
|
| 38 |
+
|
| 39 |
+
value: :py:class:`int`
|
| 40 |
+
Numeric value
|
| 41 |
+
|
| 42 |
+
Examples
|
| 43 |
+
--------
|
| 44 |
+
|
| 45 |
+
.. code-block:: pycon
|
| 46 |
+
|
| 47 |
+
>>> nv = NamedValues('a', 'b', ('c', 0), d=1)
|
| 48 |
+
>>> nv
|
| 49 |
+
>>> {'c': 0, 'd': 1, 'a': 2, 'b': 3}
|
| 50 |
+
>>> nv[0]
|
| 51 |
+
'c'
|
| 52 |
+
>>> nv['a']
|
| 53 |
+
2
|
| 54 |
+
"""
|
| 55 |
+
def __init__(self, *args, **kwargs):
|
| 56 |
+
self.__names = {}
|
| 57 |
+
self.__numbers = {}
|
| 58 |
+
|
| 59 |
+
anonymousNames = []
|
| 60 |
+
|
| 61 |
+
for namedValue in args:
|
| 62 |
+
if isinstance(namedValue, (tuple, list)):
|
| 63 |
+
try:
|
| 64 |
+
name, number = namedValue
|
| 65 |
+
|
| 66 |
+
except ValueError:
|
| 67 |
+
raise error.PyAsn1Error('Not a proper attribute-value pair %r' % (namedValue,))
|
| 68 |
+
|
| 69 |
+
else:
|
| 70 |
+
anonymousNames.append(namedValue)
|
| 71 |
+
continue
|
| 72 |
+
|
| 73 |
+
if name in self.__names:
|
| 74 |
+
raise error.PyAsn1Error('Duplicate name %s' % (name,))
|
| 75 |
+
|
| 76 |
+
if number in self.__numbers:
|
| 77 |
+
raise error.PyAsn1Error('Duplicate number %s=%s' % (name, number))
|
| 78 |
+
|
| 79 |
+
self.__names[name] = number
|
| 80 |
+
self.__numbers[number] = name
|
| 81 |
+
|
| 82 |
+
for name, number in kwargs.items():
|
| 83 |
+
if name in self.__names:
|
| 84 |
+
raise error.PyAsn1Error('Duplicate name %s' % (name,))
|
| 85 |
+
|
| 86 |
+
if number in self.__numbers:
|
| 87 |
+
raise error.PyAsn1Error('Duplicate number %s=%s' % (name, number))
|
| 88 |
+
|
| 89 |
+
self.__names[name] = number
|
| 90 |
+
self.__numbers[number] = name
|
| 91 |
+
|
| 92 |
+
if anonymousNames:
|
| 93 |
+
|
| 94 |
+
number = self.__numbers and max(self.__numbers) + 1 or 0
|
| 95 |
+
|
| 96 |
+
for name in anonymousNames:
|
| 97 |
+
|
| 98 |
+
if name in self.__names:
|
| 99 |
+
raise error.PyAsn1Error('Duplicate name %s' % (name,))
|
| 100 |
+
|
| 101 |
+
self.__names[name] = number
|
| 102 |
+
self.__numbers[number] = name
|
| 103 |
+
|
| 104 |
+
number += 1
|
| 105 |
+
|
| 106 |
+
def __repr__(self):
|
| 107 |
+
representation = ', '.join(['%s=%d' % x for x in self.items()])
|
| 108 |
+
|
| 109 |
+
if len(representation) > 64:
|
| 110 |
+
representation = representation[:32] + '...' + representation[-32:]
|
| 111 |
+
|
| 112 |
+
return '<%s object, enums %s>' % (
|
| 113 |
+
self.__class__.__name__, representation)
|
| 114 |
+
|
| 115 |
+
def __eq__(self, other):
|
| 116 |
+
return dict(self) == other
|
| 117 |
+
|
| 118 |
+
def __ne__(self, other):
|
| 119 |
+
return dict(self) != other
|
| 120 |
+
|
| 121 |
+
def __lt__(self, other):
|
| 122 |
+
return dict(self) < other
|
| 123 |
+
|
| 124 |
+
def __le__(self, other):
|
| 125 |
+
return dict(self) <= other
|
| 126 |
+
|
| 127 |
+
def __gt__(self, other):
|
| 128 |
+
return dict(self) > other
|
| 129 |
+
|
| 130 |
+
def __ge__(self, other):
|
| 131 |
+
return dict(self) >= other
|
| 132 |
+
|
| 133 |
+
def __hash__(self):
|
| 134 |
+
return hash(self.items())
|
| 135 |
+
|
| 136 |
+
# Python dict protocol (read-only)
|
| 137 |
+
|
| 138 |
+
def __getitem__(self, key):
|
| 139 |
+
try:
|
| 140 |
+
return self.__numbers[key]
|
| 141 |
+
|
| 142 |
+
except KeyError:
|
| 143 |
+
return self.__names[key]
|
| 144 |
+
|
| 145 |
+
def __len__(self):
|
| 146 |
+
return len(self.__names)
|
| 147 |
+
|
| 148 |
+
def __contains__(self, key):
|
| 149 |
+
return key in self.__names or key in self.__numbers
|
| 150 |
+
|
| 151 |
+
def __iter__(self):
|
| 152 |
+
return iter(self.__names)
|
| 153 |
+
|
| 154 |
+
def values(self):
|
| 155 |
+
return iter(self.__numbers)
|
| 156 |
+
|
| 157 |
+
def keys(self):
|
| 158 |
+
return iter(self.__names)
|
| 159 |
+
|
| 160 |
+
def items(self):
|
| 161 |
+
for name in self.__names:
|
| 162 |
+
yield name, self.__names[name]
|
| 163 |
+
|
| 164 |
+
# support merging
|
| 165 |
+
|
| 166 |
+
def __add__(self, namedValues):
|
| 167 |
+
return self.__class__(*tuple(self.items()) + tuple(namedValues.items()))
|
| 168 |
+
|
| 169 |
+
# XXX clone/subtype?
|
| 170 |
+
|
| 171 |
+
def clone(self, *args, **kwargs):
|
| 172 |
+
new = self.__class__(*args, **kwargs)
|
| 173 |
+
return self + new
|
| 174 |
+
|
| 175 |
+
# legacy protocol
|
| 176 |
+
|
| 177 |
+
def getName(self, value):
|
| 178 |
+
if value in self.__numbers:
|
| 179 |
+
return self.__numbers[value]
|
| 180 |
+
|
| 181 |
+
def getValue(self, name):
|
| 182 |
+
if name in self.__names:
|
| 183 |
+
return self.__names[name]
|
| 184 |
+
|
| 185 |
+
def getValues(self, *names):
|
| 186 |
+
try:
|
| 187 |
+
return [self.__names[name] for name in names]
|
| 188 |
+
|
| 189 |
+
except KeyError:
|
| 190 |
+
raise error.PyAsn1Error(
|
| 191 |
+
'Unknown bit identifier(s): %s' % (set(names).difference(self.__names),)
|
| 192 |
+
)
|
.venv/lib/python3.12/site-packages/pyasn1/type/opentype.py
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# This file is part of pyasn1 software.
|
| 3 |
+
#
|
| 4 |
+
# Copyright (c) 2005-2020, Ilya Etingof <etingof@gmail.com>
|
| 5 |
+
# License: https://pyasn1.readthedocs.io/en/latest/license.html
|
| 6 |
+
#
|
| 7 |
+
|
| 8 |
+
__all__ = ['OpenType']
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
class OpenType(object):
|
| 12 |
+
"""Create ASN.1 type map indexed by a value
|
| 13 |
+
|
| 14 |
+
The *OpenType* object models an untyped field of a constructed ASN.1
|
| 15 |
+
type. In ASN.1 syntax it is usually represented by the
|
| 16 |
+
`ANY DEFINED BY` for scalars or `SET OF ANY DEFINED BY`,
|
| 17 |
+
`SEQUENCE OF ANY DEFINED BY` for container types clauses. Typically
|
| 18 |
+
used together with :class:`~pyasn1.type.univ.Any` object.
|
| 19 |
+
|
| 20 |
+
OpenType objects duck-type a read-only Python :class:`dict` objects,
|
| 21 |
+
however the passed `typeMap` is not copied, but stored by reference.
|
| 22 |
+
That means the user can manipulate `typeMap` at run time having this
|
| 23 |
+
reflected on *OpenType* object behavior.
|
| 24 |
+
|
| 25 |
+
The |OpenType| class models an untyped field of a constructed ASN.1
|
| 26 |
+
type. In ASN.1 syntax it is usually represented by the
|
| 27 |
+
`ANY DEFINED BY` for scalars or `SET OF ANY DEFINED BY`,
|
| 28 |
+
`SEQUENCE OF ANY DEFINED BY` for container types clauses. Typically
|
| 29 |
+
used with :class:`~pyasn1.type.univ.Any` type.
|
| 30 |
+
|
| 31 |
+
Parameters
|
| 32 |
+
----------
|
| 33 |
+
name: :py:class:`str`
|
| 34 |
+
Field name
|
| 35 |
+
|
| 36 |
+
typeMap: :py:class:`dict`
|
| 37 |
+
A map of value->ASN.1 type. It's stored by reference and can be
|
| 38 |
+
mutated later to register new mappings.
|
| 39 |
+
|
| 40 |
+
Examples
|
| 41 |
+
--------
|
| 42 |
+
|
| 43 |
+
For untyped scalars:
|
| 44 |
+
|
| 45 |
+
.. code-block:: python
|
| 46 |
+
|
| 47 |
+
openType = OpenType(
|
| 48 |
+
'id', {1: Integer(),
|
| 49 |
+
2: OctetString()}
|
| 50 |
+
)
|
| 51 |
+
Sequence(
|
| 52 |
+
componentType=NamedTypes(
|
| 53 |
+
NamedType('id', Integer()),
|
| 54 |
+
NamedType('blob', Any(), openType=openType)
|
| 55 |
+
)
|
| 56 |
+
)
|
| 57 |
+
|
| 58 |
+
For untyped `SET OF` or `SEQUENCE OF` vectors:
|
| 59 |
+
|
| 60 |
+
.. code-block:: python
|
| 61 |
+
|
| 62 |
+
openType = OpenType(
|
| 63 |
+
'id', {1: Integer(),
|
| 64 |
+
2: OctetString()}
|
| 65 |
+
)
|
| 66 |
+
Sequence(
|
| 67 |
+
componentType=NamedTypes(
|
| 68 |
+
NamedType('id', Integer()),
|
| 69 |
+
NamedType('blob', SetOf(componentType=Any()),
|
| 70 |
+
openType=openType)
|
| 71 |
+
)
|
| 72 |
+
)
|
| 73 |
+
"""
|
| 74 |
+
|
| 75 |
+
def __init__(self, name, typeMap=None):
|
| 76 |
+
self.__name = name
|
| 77 |
+
if typeMap is None:
|
| 78 |
+
self.__typeMap = {}
|
| 79 |
+
else:
|
| 80 |
+
self.__typeMap = typeMap
|
| 81 |
+
|
| 82 |
+
@property
|
| 83 |
+
def name(self):
|
| 84 |
+
return self.__name
|
| 85 |
+
|
| 86 |
+
# Python dict protocol
|
| 87 |
+
|
| 88 |
+
def values(self):
|
| 89 |
+
return self.__typeMap.values()
|
| 90 |
+
|
| 91 |
+
def keys(self):
|
| 92 |
+
return self.__typeMap.keys()
|
| 93 |
+
|
| 94 |
+
def items(self):
|
| 95 |
+
return self.__typeMap.items()
|
| 96 |
+
|
| 97 |
+
def __contains__(self, key):
|
| 98 |
+
return key in self.__typeMap
|
| 99 |
+
|
| 100 |
+
def __getitem__(self, key):
|
| 101 |
+
return self.__typeMap[key]
|
| 102 |
+
|
| 103 |
+
def __iter__(self):
|
| 104 |
+
return iter(self.__typeMap)
|
.venv/lib/python3.12/site-packages/pyasn1/type/tag.py
ADDED
|
@@ -0,0 +1,347 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# This file is part of pyasn1 software.
|
| 3 |
+
#
|
| 4 |
+
# Copyright (c) 2005-2020, Ilya Etingof <etingof@gmail.com>
|
| 5 |
+
# License: https://pyasn1.readthedocs.io/en/latest/license.html
|
| 6 |
+
#
|
| 7 |
+
from pyasn1 import error
|
| 8 |
+
|
| 9 |
+
__all__ = ['tagClassUniversal', 'tagClassApplication', 'tagClassContext',
|
| 10 |
+
'tagClassPrivate', 'tagFormatSimple', 'tagFormatConstructed',
|
| 11 |
+
'tagCategoryImplicit', 'tagCategoryExplicit',
|
| 12 |
+
'tagCategoryUntagged', 'Tag', 'TagSet']
|
| 13 |
+
|
| 14 |
+
#: Identifier for ASN.1 class UNIVERSAL
|
| 15 |
+
tagClassUniversal = 0x00
|
| 16 |
+
|
| 17 |
+
#: Identifier for ASN.1 class APPLICATION
|
| 18 |
+
tagClassApplication = 0x40
|
| 19 |
+
|
| 20 |
+
#: Identifier for ASN.1 class context-specific
|
| 21 |
+
tagClassContext = 0x80
|
| 22 |
+
|
| 23 |
+
#: Identifier for ASN.1 class private
|
| 24 |
+
tagClassPrivate = 0xC0
|
| 25 |
+
|
| 26 |
+
#: Identifier for "simple" ASN.1 structure (e.g. scalar)
|
| 27 |
+
tagFormatSimple = 0x00
|
| 28 |
+
|
| 29 |
+
#: Identifier for "constructed" ASN.1 structure (e.g. may have inner components)
|
| 30 |
+
tagFormatConstructed = 0x20
|
| 31 |
+
|
| 32 |
+
tagCategoryImplicit = 0x01
|
| 33 |
+
tagCategoryExplicit = 0x02
|
| 34 |
+
tagCategoryUntagged = 0x04
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
def _tagIdToStr(tagId):
|
| 38 |
+
# Decimal rendering of a huge tag ID can exceed the interpreter's
|
| 39 |
+
# integer-to-string conversion limit (sys.get_int_max_str_digits(),
|
| 40 |
+
# Python 3.11+) and raise ValueError; hexadecimal is not limited
|
| 41 |
+
try:
|
| 42 |
+
return str(tagId)
|
| 43 |
+
except ValueError:
|
| 44 |
+
return hex(tagId)
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
class Tag(object):
|
| 48 |
+
"""Create ASN.1 tag
|
| 49 |
+
|
| 50 |
+
Represents ASN.1 tag that can be attached to a ASN.1 type to make
|
| 51 |
+
types distinguishable from each other.
|
| 52 |
+
|
| 53 |
+
*Tag* objects are immutable and duck-type Python :class:`tuple` objects
|
| 54 |
+
holding three integer components of a tag.
|
| 55 |
+
|
| 56 |
+
Parameters
|
| 57 |
+
----------
|
| 58 |
+
tagClass: :py:class:`int`
|
| 59 |
+
Tag *class* value
|
| 60 |
+
|
| 61 |
+
tagFormat: :py:class:`int`
|
| 62 |
+
Tag *format* value
|
| 63 |
+
|
| 64 |
+
tagId: :py:class:`int`
|
| 65 |
+
Tag ID value
|
| 66 |
+
"""
|
| 67 |
+
def __init__(self, tagClass, tagFormat, tagId):
|
| 68 |
+
if tagId < 0:
|
| 69 |
+
raise error.PyAsn1Error(
|
| 70 |
+
'Negative tag ID (%s) not allowed' % _tagIdToStr(tagId))
|
| 71 |
+
self.__tagClass = tagClass
|
| 72 |
+
self.__tagFormat = tagFormat
|
| 73 |
+
self.__tagId = tagId
|
| 74 |
+
self.__tagClassId = tagClass, tagId
|
| 75 |
+
self.__hash = hash(self.__tagClassId)
|
| 76 |
+
|
| 77 |
+
def __repr__(self):
|
| 78 |
+
representation = '[%s:%s:%s]' % (
|
| 79 |
+
self.__tagClass, self.__tagFormat, _tagIdToStr(self.__tagId))
|
| 80 |
+
return '<%s object, tag %s>' % (
|
| 81 |
+
self.__class__.__name__, representation)
|
| 82 |
+
|
| 83 |
+
def __eq__(self, other):
|
| 84 |
+
return self.__tagClassId == other
|
| 85 |
+
|
| 86 |
+
def __ne__(self, other):
|
| 87 |
+
return self.__tagClassId != other
|
| 88 |
+
|
| 89 |
+
def __lt__(self, other):
|
| 90 |
+
return self.__tagClassId < other
|
| 91 |
+
|
| 92 |
+
def __le__(self, other):
|
| 93 |
+
return self.__tagClassId <= other
|
| 94 |
+
|
| 95 |
+
def __gt__(self, other):
|
| 96 |
+
return self.__tagClassId > other
|
| 97 |
+
|
| 98 |
+
def __ge__(self, other):
|
| 99 |
+
return self.__tagClassId >= other
|
| 100 |
+
|
| 101 |
+
def __hash__(self):
|
| 102 |
+
return self.__hash
|
| 103 |
+
|
| 104 |
+
def __getitem__(self, idx):
|
| 105 |
+
if idx == 0:
|
| 106 |
+
return self.__tagClass
|
| 107 |
+
elif idx == 1:
|
| 108 |
+
return self.__tagFormat
|
| 109 |
+
elif idx == 2:
|
| 110 |
+
return self.__tagId
|
| 111 |
+
else:
|
| 112 |
+
raise IndexError
|
| 113 |
+
|
| 114 |
+
def __iter__(self):
|
| 115 |
+
yield self.__tagClass
|
| 116 |
+
yield self.__tagFormat
|
| 117 |
+
yield self.__tagId
|
| 118 |
+
|
| 119 |
+
def __and__(self, otherTag):
|
| 120 |
+
return self.__class__(self.__tagClass & otherTag.tagClass,
|
| 121 |
+
self.__tagFormat & otherTag.tagFormat,
|
| 122 |
+
self.__tagId & otherTag.tagId)
|
| 123 |
+
|
| 124 |
+
def __or__(self, otherTag):
|
| 125 |
+
return self.__class__(self.__tagClass | otherTag.tagClass,
|
| 126 |
+
self.__tagFormat | otherTag.tagFormat,
|
| 127 |
+
self.__tagId | otherTag.tagId)
|
| 128 |
+
|
| 129 |
+
@property
|
| 130 |
+
def tagClass(self):
|
| 131 |
+
"""ASN.1 tag class
|
| 132 |
+
|
| 133 |
+
Returns
|
| 134 |
+
-------
|
| 135 |
+
: :py:class:`int`
|
| 136 |
+
Tag class
|
| 137 |
+
"""
|
| 138 |
+
return self.__tagClass
|
| 139 |
+
|
| 140 |
+
@property
|
| 141 |
+
def tagFormat(self):
|
| 142 |
+
"""ASN.1 tag format
|
| 143 |
+
|
| 144 |
+
Returns
|
| 145 |
+
-------
|
| 146 |
+
: :py:class:`int`
|
| 147 |
+
Tag format
|
| 148 |
+
"""
|
| 149 |
+
return self.__tagFormat
|
| 150 |
+
|
| 151 |
+
@property
|
| 152 |
+
def tagId(self):
|
| 153 |
+
"""ASN.1 tag ID
|
| 154 |
+
|
| 155 |
+
Returns
|
| 156 |
+
-------
|
| 157 |
+
: :py:class:`int`
|
| 158 |
+
Tag ID
|
| 159 |
+
"""
|
| 160 |
+
return self.__tagId
|
| 161 |
+
|
| 162 |
+
|
| 163 |
+
class TagSet(object):
|
| 164 |
+
"""Create a collection of ASN.1 tags
|
| 165 |
+
|
| 166 |
+
Represents a combination of :class:`~pyasn1.type.tag.Tag` objects
|
| 167 |
+
that can be attached to a ASN.1 type to make types distinguishable
|
| 168 |
+
from each other.
|
| 169 |
+
|
| 170 |
+
*TagSet* objects are immutable and duck-type Python :class:`tuple` objects
|
| 171 |
+
holding arbitrary number of :class:`~pyasn1.type.tag.Tag` objects.
|
| 172 |
+
|
| 173 |
+
Parameters
|
| 174 |
+
----------
|
| 175 |
+
baseTag: :class:`~pyasn1.type.tag.Tag`
|
| 176 |
+
Base *Tag* object. This tag survives IMPLICIT tagging.
|
| 177 |
+
|
| 178 |
+
*superTags: :class:`~pyasn1.type.tag.Tag`
|
| 179 |
+
Additional *Tag* objects taking part in subtyping.
|
| 180 |
+
|
| 181 |
+
Examples
|
| 182 |
+
--------
|
| 183 |
+
.. code-block:: python
|
| 184 |
+
|
| 185 |
+
class OrderNumber(NumericString):
|
| 186 |
+
'''
|
| 187 |
+
ASN.1 specification
|
| 188 |
+
|
| 189 |
+
Order-number ::=
|
| 190 |
+
[APPLICATION 5] IMPLICIT NumericString
|
| 191 |
+
'''
|
| 192 |
+
tagSet = NumericString.tagSet.tagImplicitly(
|
| 193 |
+
Tag(tagClassApplication, tagFormatSimple, 5)
|
| 194 |
+
)
|
| 195 |
+
|
| 196 |
+
orderNumber = OrderNumber('1234')
|
| 197 |
+
"""
|
| 198 |
+
def __init__(self, baseTag=(), *superTags):
|
| 199 |
+
self.__baseTag = baseTag
|
| 200 |
+
self.__superTags = superTags
|
| 201 |
+
self.__superTagsClassId = tuple(
|
| 202 |
+
[(superTag.tagClass, superTag.tagId) for superTag in superTags]
|
| 203 |
+
)
|
| 204 |
+
self.__lenOfSuperTags = len(superTags)
|
| 205 |
+
self.__hash = hash(self.__superTagsClassId)
|
| 206 |
+
|
| 207 |
+
def __repr__(self):
|
| 208 |
+
representation = '-'.join(
|
| 209 |
+
['%s:%s:%s' % (x.tagClass, x.tagFormat, _tagIdToStr(x.tagId))
|
| 210 |
+
for x in self.__superTags])
|
| 211 |
+
if representation:
|
| 212 |
+
representation = 'tags ' + representation
|
| 213 |
+
else:
|
| 214 |
+
representation = 'untagged'
|
| 215 |
+
|
| 216 |
+
return '<%s object, %s>' % (self.__class__.__name__, representation)
|
| 217 |
+
|
| 218 |
+
def __add__(self, superTag):
|
| 219 |
+
return self.__class__(self.__baseTag, *self.__superTags + (superTag,))
|
| 220 |
+
|
| 221 |
+
def __radd__(self, superTag):
|
| 222 |
+
return self.__class__(self.__baseTag, *(superTag,) + self.__superTags)
|
| 223 |
+
|
| 224 |
+
def __getitem__(self, i):
|
| 225 |
+
if i.__class__ is slice:
|
| 226 |
+
return self.__class__(self.__baseTag, *self.__superTags[i])
|
| 227 |
+
else:
|
| 228 |
+
return self.__superTags[i]
|
| 229 |
+
|
| 230 |
+
def __eq__(self, other):
|
| 231 |
+
return self.__superTagsClassId == other
|
| 232 |
+
|
| 233 |
+
def __ne__(self, other):
|
| 234 |
+
return self.__superTagsClassId != other
|
| 235 |
+
|
| 236 |
+
def __lt__(self, other):
|
| 237 |
+
return self.__superTagsClassId < other
|
| 238 |
+
|
| 239 |
+
def __le__(self, other):
|
| 240 |
+
return self.__superTagsClassId <= other
|
| 241 |
+
|
| 242 |
+
def __gt__(self, other):
|
| 243 |
+
return self.__superTagsClassId > other
|
| 244 |
+
|
| 245 |
+
def __ge__(self, other):
|
| 246 |
+
return self.__superTagsClassId >= other
|
| 247 |
+
|
| 248 |
+
def __hash__(self):
|
| 249 |
+
return self.__hash
|
| 250 |
+
|
| 251 |
+
def __len__(self):
|
| 252 |
+
return self.__lenOfSuperTags
|
| 253 |
+
|
| 254 |
+
@property
|
| 255 |
+
def baseTag(self):
|
| 256 |
+
"""Return base ASN.1 tag
|
| 257 |
+
|
| 258 |
+
Returns
|
| 259 |
+
-------
|
| 260 |
+
: :class:`~pyasn1.type.tag.Tag`
|
| 261 |
+
Base tag of this *TagSet*
|
| 262 |
+
"""
|
| 263 |
+
return self.__baseTag
|
| 264 |
+
|
| 265 |
+
@property
|
| 266 |
+
def superTags(self):
|
| 267 |
+
"""Return ASN.1 tags
|
| 268 |
+
|
| 269 |
+
Returns
|
| 270 |
+
-------
|
| 271 |
+
: :py:class:`tuple`
|
| 272 |
+
Tuple of :class:`~pyasn1.type.tag.Tag` objects that this *TagSet* contains
|
| 273 |
+
"""
|
| 274 |
+
return self.__superTags
|
| 275 |
+
|
| 276 |
+
def tagExplicitly(self, superTag):
|
| 277 |
+
"""Return explicitly tagged *TagSet*
|
| 278 |
+
|
| 279 |
+
Create a new *TagSet* representing callee *TagSet* explicitly tagged
|
| 280 |
+
with passed tag(s). With explicit tagging mode, new tags are appended
|
| 281 |
+
to existing tag(s).
|
| 282 |
+
|
| 283 |
+
Parameters
|
| 284 |
+
----------
|
| 285 |
+
superTag: :class:`~pyasn1.type.tag.Tag`
|
| 286 |
+
*Tag* object to tag this *TagSet*
|
| 287 |
+
|
| 288 |
+
Returns
|
| 289 |
+
-------
|
| 290 |
+
: :class:`~pyasn1.type.tag.TagSet`
|
| 291 |
+
New *TagSet* object
|
| 292 |
+
"""
|
| 293 |
+
if superTag.tagClass == tagClassUniversal:
|
| 294 |
+
raise error.PyAsn1Error("Can't tag with UNIVERSAL class tag")
|
| 295 |
+
if superTag.tagFormat != tagFormatConstructed:
|
| 296 |
+
superTag = Tag(superTag.tagClass, tagFormatConstructed, superTag.tagId)
|
| 297 |
+
return self + superTag
|
| 298 |
+
|
| 299 |
+
def tagImplicitly(self, superTag):
|
| 300 |
+
"""Return implicitly tagged *TagSet*
|
| 301 |
+
|
| 302 |
+
Create a new *TagSet* representing callee *TagSet* implicitly tagged
|
| 303 |
+
with passed tag(s). With implicit tagging mode, new tag(s) replace the
|
| 304 |
+
last existing tag.
|
| 305 |
+
|
| 306 |
+
Parameters
|
| 307 |
+
----------
|
| 308 |
+
superTag: :class:`~pyasn1.type.tag.Tag`
|
| 309 |
+
*Tag* object to tag this *TagSet*
|
| 310 |
+
|
| 311 |
+
Returns
|
| 312 |
+
-------
|
| 313 |
+
: :class:`~pyasn1.type.tag.TagSet`
|
| 314 |
+
New *TagSet* object
|
| 315 |
+
"""
|
| 316 |
+
if self.__superTags:
|
| 317 |
+
superTag = Tag(superTag.tagClass, self.__superTags[-1].tagFormat, superTag.tagId)
|
| 318 |
+
return self[:-1] + superTag
|
| 319 |
+
|
| 320 |
+
def isSuperTagSetOf(self, tagSet):
|
| 321 |
+
"""Test type relationship against given *TagSet*
|
| 322 |
+
|
| 323 |
+
The callee is considered to be a supertype of given *TagSet*
|
| 324 |
+
tag-wise if all tags in *TagSet* are present in the callee and
|
| 325 |
+
they are in the same order.
|
| 326 |
+
|
| 327 |
+
Parameters
|
| 328 |
+
----------
|
| 329 |
+
tagSet: :class:`~pyasn1.type.tag.TagSet`
|
| 330 |
+
*TagSet* object to evaluate against the callee
|
| 331 |
+
|
| 332 |
+
Returns
|
| 333 |
+
-------
|
| 334 |
+
: :py:class:`bool`
|
| 335 |
+
:obj:`True` if callee is a supertype of *tagSet*
|
| 336 |
+
"""
|
| 337 |
+
if len(tagSet) < self.__lenOfSuperTags:
|
| 338 |
+
return False
|
| 339 |
+
return self.__superTags == tagSet[:self.__lenOfSuperTags]
|
| 340 |
+
|
| 341 |
+
# Backward compatibility
|
| 342 |
+
|
| 343 |
+
def getBaseTag(self):
|
| 344 |
+
return self.__baseTag
|
| 345 |
+
|
| 346 |
+
def initTagSet(tag):
|
| 347 |
+
return TagSet(tag, tag)
|
.venv/lib/python3.12/site-packages/pyasn1/type/tagmap.py
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# This file is part of pyasn1 software.
|
| 3 |
+
#
|
| 4 |
+
# Copyright (c) 2005-2020, Ilya Etingof <etingof@gmail.com>
|
| 5 |
+
# License: https://pyasn1.readthedocs.io/en/latest/license.html
|
| 6 |
+
#
|
| 7 |
+
from pyasn1 import error
|
| 8 |
+
|
| 9 |
+
__all__ = ['TagMap']
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
class TagMap(object):
|
| 13 |
+
"""Map *TagSet* objects to ASN.1 types
|
| 14 |
+
|
| 15 |
+
Create an object mapping *TagSet* object to ASN.1 type.
|
| 16 |
+
|
| 17 |
+
*TagMap* objects are immutable and duck-type read-only Python
|
| 18 |
+
:class:`dict` objects holding *TagSet* objects as keys and ASN.1
|
| 19 |
+
type objects as values.
|
| 20 |
+
|
| 21 |
+
Parameters
|
| 22 |
+
----------
|
| 23 |
+
presentTypes: :py:class:`dict`
|
| 24 |
+
Map of :class:`~pyasn1.type.tag.TagSet` to ASN.1 objects considered
|
| 25 |
+
as being unconditionally present in the *TagMap*.
|
| 26 |
+
|
| 27 |
+
skipTypes: :py:class:`dict`
|
| 28 |
+
A collection of :class:`~pyasn1.type.tag.TagSet` objects considered
|
| 29 |
+
as absent in the *TagMap* even when *defaultType* is present.
|
| 30 |
+
|
| 31 |
+
defaultType: ASN.1 type object
|
| 32 |
+
An ASN.1 type object callee *TagMap* returns for any *TagSet* key not present
|
| 33 |
+
in *presentTypes* (unless given key is present in *skipTypes*).
|
| 34 |
+
"""
|
| 35 |
+
def __init__(self, presentTypes=None, skipTypes=None, defaultType=None):
|
| 36 |
+
self.__presentTypes = presentTypes or {}
|
| 37 |
+
self.__skipTypes = skipTypes or {}
|
| 38 |
+
self.__defaultType = defaultType
|
| 39 |
+
|
| 40 |
+
def __contains__(self, tagSet):
|
| 41 |
+
return (tagSet in self.__presentTypes or
|
| 42 |
+
self.__defaultType is not None and tagSet not in self.__skipTypes)
|
| 43 |
+
|
| 44 |
+
def __getitem__(self, tagSet):
|
| 45 |
+
try:
|
| 46 |
+
return self.__presentTypes[tagSet]
|
| 47 |
+
except KeyError:
|
| 48 |
+
if self.__defaultType is None:
|
| 49 |
+
raise
|
| 50 |
+
elif tagSet in self.__skipTypes:
|
| 51 |
+
raise error.PyAsn1Error('Key in negative map')
|
| 52 |
+
else:
|
| 53 |
+
return self.__defaultType
|
| 54 |
+
|
| 55 |
+
def __iter__(self):
|
| 56 |
+
return iter(self.__presentTypes)
|
| 57 |
+
|
| 58 |
+
def __repr__(self):
|
| 59 |
+
representation = '%s object' % self.__class__.__name__
|
| 60 |
+
|
| 61 |
+
if self.__presentTypes:
|
| 62 |
+
representation += ', present %s' % repr(self.__presentTypes)
|
| 63 |
+
|
| 64 |
+
if self.__skipTypes:
|
| 65 |
+
representation += ', skip %s' % repr(self.__skipTypes)
|
| 66 |
+
|
| 67 |
+
if self.__defaultType is not None:
|
| 68 |
+
representation += ', default %s' % repr(self.__defaultType)
|
| 69 |
+
|
| 70 |
+
return '<%s>' % representation
|
| 71 |
+
|
| 72 |
+
@property
|
| 73 |
+
def presentTypes(self):
|
| 74 |
+
"""Return *TagSet* to ASN.1 type map present in callee *TagMap*"""
|
| 75 |
+
return self.__presentTypes
|
| 76 |
+
|
| 77 |
+
@property
|
| 78 |
+
def skipTypes(self):
|
| 79 |
+
"""Return *TagSet* collection unconditionally absent in callee *TagMap*"""
|
| 80 |
+
return self.__skipTypes
|
| 81 |
+
|
| 82 |
+
@property
|
| 83 |
+
def defaultType(self):
|
| 84 |
+
"""Return default ASN.1 type being returned for any missing *TagSet*"""
|
| 85 |
+
return self.__defaultType
|
| 86 |
+
|
| 87 |
+
# Backward compatibility
|
| 88 |
+
|
| 89 |
+
def getPosMap(self):
|
| 90 |
+
return self.presentTypes
|
| 91 |
+
|
| 92 |
+
def getNegMap(self):
|
| 93 |
+
return self.skipTypes
|
| 94 |
+
|
| 95 |
+
def getDef(self):
|
| 96 |
+
return self.defaultType
|
.venv/lib/python3.12/site-packages/pyasn1/type/univ.py
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
.venv/lib/python3.12/site-packages/pyasn1/type/useful.py
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# This file is part of pyasn1 software.
|
| 3 |
+
#
|
| 4 |
+
# Copyright (c) 2005-2020, Ilya Etingof <etingof@gmail.com>
|
| 5 |
+
# License: https://pyasn1.readthedocs.io/en/latest/license.html
|
| 6 |
+
#
|
| 7 |
+
import datetime
|
| 8 |
+
|
| 9 |
+
from pyasn1 import error
|
| 10 |
+
from pyasn1.type import char
|
| 11 |
+
from pyasn1.type import tag
|
| 12 |
+
from pyasn1.type import univ
|
| 13 |
+
|
| 14 |
+
__all__ = ['ObjectDescriptor', 'GeneralizedTime', 'UTCTime']
|
| 15 |
+
|
| 16 |
+
NoValue = univ.NoValue
|
| 17 |
+
noValue = univ.noValue
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
class ObjectDescriptor(char.GraphicString):
|
| 21 |
+
__doc__ = char.GraphicString.__doc__
|
| 22 |
+
|
| 23 |
+
#: Default :py:class:`~pyasn1.type.tag.TagSet` object for |ASN.1| objects
|
| 24 |
+
tagSet = char.GraphicString.tagSet.tagImplicitly(
|
| 25 |
+
tag.Tag(tag.tagClassUniversal, tag.tagFormatSimple, 7)
|
| 26 |
+
)
|
| 27 |
+
|
| 28 |
+
# Optimization for faster codec lookup
|
| 29 |
+
typeId = char.GraphicString.getTypeId()
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
class TimeMixIn(object):
|
| 33 |
+
|
| 34 |
+
_yearsDigits = 4
|
| 35 |
+
_hasSubsecond = False
|
| 36 |
+
_optionalMinutes = False
|
| 37 |
+
_shortTZ = False
|
| 38 |
+
|
| 39 |
+
class FixedOffset(datetime.tzinfo):
|
| 40 |
+
"""Fixed offset in minutes east from UTC."""
|
| 41 |
+
|
| 42 |
+
# defaulted arguments required
|
| 43 |
+
# https: // docs.python.org / 2.3 / lib / datetime - tzinfo.html
|
| 44 |
+
def __init__(self, offset=0, name='UTC'):
|
| 45 |
+
self.__offset = datetime.timedelta(minutes=offset)
|
| 46 |
+
self.__name = name
|
| 47 |
+
|
| 48 |
+
def utcoffset(self, dt):
|
| 49 |
+
return self.__offset
|
| 50 |
+
|
| 51 |
+
def tzname(self, dt):
|
| 52 |
+
return self.__name
|
| 53 |
+
|
| 54 |
+
def dst(self, dt):
|
| 55 |
+
return datetime.timedelta(0)
|
| 56 |
+
|
| 57 |
+
UTC = FixedOffset()
|
| 58 |
+
|
| 59 |
+
@property
|
| 60 |
+
def asDateTime(self):
|
| 61 |
+
"""Create :py:class:`datetime.datetime` object from a |ASN.1| object.
|
| 62 |
+
|
| 63 |
+
Returns
|
| 64 |
+
-------
|
| 65 |
+
:
|
| 66 |
+
new instance of :py:class:`datetime.datetime` object
|
| 67 |
+
"""
|
| 68 |
+
text = str(self)
|
| 69 |
+
if text.endswith('Z'):
|
| 70 |
+
tzinfo = TimeMixIn.UTC
|
| 71 |
+
text = text[:-1]
|
| 72 |
+
|
| 73 |
+
elif '-' in text or '+' in text:
|
| 74 |
+
if '+' in text:
|
| 75 |
+
text, plusminus, tz = text.partition('+')
|
| 76 |
+
else:
|
| 77 |
+
text, plusminus, tz = text.partition('-')
|
| 78 |
+
|
| 79 |
+
if self._shortTZ and len(tz) == 2:
|
| 80 |
+
tz += '00'
|
| 81 |
+
|
| 82 |
+
if len(tz) != 4:
|
| 83 |
+
raise error.PyAsn1Error('malformed time zone offset %s' % tz)
|
| 84 |
+
|
| 85 |
+
try:
|
| 86 |
+
minutes = int(tz[:2]) * 60 + int(tz[2:])
|
| 87 |
+
if plusminus == '-':
|
| 88 |
+
minutes *= -1
|
| 89 |
+
|
| 90 |
+
except ValueError:
|
| 91 |
+
raise error.PyAsn1Error('unknown time specification %s' % self)
|
| 92 |
+
|
| 93 |
+
tzinfo = TimeMixIn.FixedOffset(minutes, '?')
|
| 94 |
+
|
| 95 |
+
else:
|
| 96 |
+
tzinfo = None
|
| 97 |
+
|
| 98 |
+
if '.' in text or ',' in text:
|
| 99 |
+
if '.' in text:
|
| 100 |
+
text, _, ms = text.partition('.')
|
| 101 |
+
else:
|
| 102 |
+
text, _, ms = text.partition(',')
|
| 103 |
+
|
| 104 |
+
try:
|
| 105 |
+
# Normalize variable-length fraction to microseconds
|
| 106 |
+
ms = int(ms.ljust(6, '0')[:6])
|
| 107 |
+
|
| 108 |
+
except ValueError:
|
| 109 |
+
raise error.PyAsn1Error('bad sub-second time specification %s' % self)
|
| 110 |
+
|
| 111 |
+
else:
|
| 112 |
+
ms = 0
|
| 113 |
+
|
| 114 |
+
if self._optionalMinutes and len(text) - self._yearsDigits == 6:
|
| 115 |
+
text += '0000'
|
| 116 |
+
elif len(text) - self._yearsDigits == 8:
|
| 117 |
+
text += '00'
|
| 118 |
+
|
| 119 |
+
try:
|
| 120 |
+
dt = datetime.datetime.strptime(text, self._yearsDigits == 4 and '%Y%m%d%H%M%S' or '%y%m%d%H%M%S')
|
| 121 |
+
|
| 122 |
+
except ValueError:
|
| 123 |
+
raise error.PyAsn1Error('malformed datetime format %s' % self)
|
| 124 |
+
|
| 125 |
+
return dt.replace(microsecond=ms, tzinfo=tzinfo)
|
| 126 |
+
|
| 127 |
+
@classmethod
|
| 128 |
+
def fromDateTime(cls, dt):
|
| 129 |
+
"""Create |ASN.1| object from a :py:class:`datetime.datetime` object.
|
| 130 |
+
|
| 131 |
+
Parameters
|
| 132 |
+
----------
|
| 133 |
+
dt: :py:class:`datetime.datetime` object
|
| 134 |
+
The `datetime.datetime` object to initialize the |ASN.1| object
|
| 135 |
+
from
|
| 136 |
+
|
| 137 |
+
Returns
|
| 138 |
+
-------
|
| 139 |
+
:
|
| 140 |
+
new instance of |ASN.1| value
|
| 141 |
+
"""
|
| 142 |
+
text = dt.strftime(cls._yearsDigits == 4 and '%Y%m%d%H%M%S' or '%y%m%d%H%M%S')
|
| 143 |
+
if cls._hasSubsecond and dt.microsecond:
|
| 144 |
+
text += ('.%06d' % dt.microsecond).rstrip('0')
|
| 145 |
+
|
| 146 |
+
if dt.utcoffset():
|
| 147 |
+
seconds = dt.utcoffset().seconds
|
| 148 |
+
if seconds < 0:
|
| 149 |
+
text += '-'
|
| 150 |
+
else:
|
| 151 |
+
text += '+'
|
| 152 |
+
text += '%.2d%.2d' % (seconds // 3600, seconds % 3600)
|
| 153 |
+
else:
|
| 154 |
+
text += 'Z'
|
| 155 |
+
|
| 156 |
+
return cls(text)
|
| 157 |
+
|
| 158 |
+
|
| 159 |
+
class GeneralizedTime(char.VisibleString, TimeMixIn):
|
| 160 |
+
__doc__ = char.VisibleString.__doc__
|
| 161 |
+
|
| 162 |
+
#: Default :py:class:`~pyasn1.type.tag.TagSet` object for |ASN.1| objects
|
| 163 |
+
tagSet = char.VisibleString.tagSet.tagImplicitly(
|
| 164 |
+
tag.Tag(tag.tagClassUniversal, tag.tagFormatSimple, 24)
|
| 165 |
+
)
|
| 166 |
+
|
| 167 |
+
# Optimization for faster codec lookup
|
| 168 |
+
typeId = char.VideotexString.getTypeId()
|
| 169 |
+
|
| 170 |
+
_yearsDigits = 4
|
| 171 |
+
_hasSubsecond = True
|
| 172 |
+
_optionalMinutes = True
|
| 173 |
+
_shortTZ = True
|
| 174 |
+
|
| 175 |
+
|
| 176 |
+
class UTCTime(char.VisibleString, TimeMixIn):
|
| 177 |
+
__doc__ = char.VisibleString.__doc__
|
| 178 |
+
|
| 179 |
+
#: Default :py:class:`~pyasn1.type.tag.TagSet` object for |ASN.1| objects
|
| 180 |
+
tagSet = char.VisibleString.tagSet.tagImplicitly(
|
| 181 |
+
tag.Tag(tag.tagClassUniversal, tag.tagFormatSimple, 23)
|
| 182 |
+
)
|
| 183 |
+
|
| 184 |
+
# Optimization for faster codec lookup
|
| 185 |
+
typeId = char.VideotexString.getTypeId()
|
| 186 |
+
|
| 187 |
+
_yearsDigits = 2
|
| 188 |
+
_hasSubsecond = False
|
| 189 |
+
_optionalMinutes = False
|
| 190 |
+
_shortTZ = False
|
.venv/lib/python3.12/site-packages/pyasn1_modules-0.4.2.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
.venv/lib/python3.12/site-packages/pyasn1_modules-0.4.2.dist-info/METADATA
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.4
|
| 2 |
+
Name: pyasn1_modules
|
| 3 |
+
Version: 0.4.2
|
| 4 |
+
Summary: A collection of ASN.1-based protocols modules
|
| 5 |
+
Home-page: https://github.com/pyasn1/pyasn1-modules
|
| 6 |
+
Author: Ilya Etingof
|
| 7 |
+
Author-email: etingof@gmail.com
|
| 8 |
+
Maintainer: pyasn1 maintenance organization
|
| 9 |
+
Maintainer-email: Christian Heimes <christian@python.org>
|
| 10 |
+
License: BSD
|
| 11 |
+
Project-URL: Source, https://github.com/pyasn1/pyasn1-modules
|
| 12 |
+
Project-URL: Issues, https://github.com/pyasn1/pyasn1-modules/issues
|
| 13 |
+
Project-URL: Changelog, https://github.com/pyasn1/pyasn1-modules/blob/master/CHANGES.txt
|
| 14 |
+
Platform: any
|
| 15 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 16 |
+
Classifier: Environment :: Console
|
| 17 |
+
Classifier: Intended Audience :: Developers
|
| 18 |
+
Classifier: Intended Audience :: Education
|
| 19 |
+
Classifier: Intended Audience :: Information Technology
|
| 20 |
+
Classifier: Intended Audience :: System Administrators
|
| 21 |
+
Classifier: Intended Audience :: Telecommunications Industry
|
| 22 |
+
Classifier: License :: OSI Approved :: BSD License
|
| 23 |
+
Classifier: Natural Language :: English
|
| 24 |
+
Classifier: Operating System :: OS Independent
|
| 25 |
+
Classifier: Programming Language :: Python :: 3
|
| 26 |
+
Classifier: Programming Language :: Python :: 3.8
|
| 27 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 28 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 29 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 30 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 31 |
+
Classifier: Programming Language :: Python :: 3.13
|
| 32 |
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
| 33 |
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
| 34 |
+
Classifier: Topic :: Communications
|
| 35 |
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
| 36 |
+
Requires-Python: >=3.8
|
| 37 |
+
Description-Content-Type: text/markdown
|
| 38 |
+
License-File: LICENSE.txt
|
| 39 |
+
Requires-Dist: pyasn1<0.7.0,>=0.6.1
|
| 40 |
+
Dynamic: license-file
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
ASN.1 modules for Python
|
| 44 |
+
------------------------
|
| 45 |
+
[](https://pypi.org/project/pyasn1-modules)
|
| 46 |
+
[](https://pypi.org/project/pyasn1-modules/)
|
| 47 |
+
[](https://github.com/pyasn1/pyasn1-modules/actions/workflows/main.yml)
|
| 48 |
+
[](https://codecov.io/github/pyasn1/pyasn1-modules)
|
| 49 |
+
[](https://raw.githubusercontent.com/pyasn1/pyasn1-modules/master/LICENSE.txt)
|
| 50 |
+
|
| 51 |
+
The `pyasn1-modules` package contains a collection of
|
| 52 |
+
[ASN.1](https://www.itu.int/rec/dologin_pub.asp?lang=e&id=T-REC-X.208-198811-W!!PDF-E&type=items)
|
| 53 |
+
data structures expressed as Python classes based on [pyasn1](https://github.com/pyasn1/pyasn1)
|
| 54 |
+
data model.
|
| 55 |
+
|
| 56 |
+
If ASN.1 module you need is not present in this collection, try using
|
| 57 |
+
[Asn1ate](https://github.com/kimgr/asn1ate) tool that compiles ASN.1 documents
|
| 58 |
+
into pyasn1 code.
|
| 59 |
+
|
| 60 |
+
**NOTE:** The package is now maintained by *Christian Heimes* and
|
| 61 |
+
*Simon Pichugin* in project https://github.com/pyasn1/pyasn1-modules.
|
| 62 |
+
|
| 63 |
+
Feedback
|
| 64 |
+
--------
|
| 65 |
+
|
| 66 |
+
If something does not work as expected,
|
| 67 |
+
[open an issue](https://github.com/pyasn1/pyasn1-modules/issues) at GitHub
|
| 68 |
+
or post your question [on Stack Overflow](https://stackoverflow.com/questions/ask)
|
| 69 |
+
|
| 70 |
+
New modules contributions are welcome via GitHub pull requests.
|
| 71 |
+
|
| 72 |
+
Copyright (c) 2005-2020, [Ilya Etingof](mailto:etingof@gmail.com).
|
| 73 |
+
All rights reserved.
|
.venv/lib/python3.12/site-packages/pyasn1_modules-0.4.2.dist-info/RECORD
ADDED
|
@@ -0,0 +1,271 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pyasn1_modules-0.4.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 2 |
+
pyasn1_modules-0.4.2.dist-info/METADATA,sha256=FiZm11KX383QEWy-qxNNePq4CLima_pcHXSDLZt1R3E,3484
|
| 3 |
+
pyasn1_modules-0.4.2.dist-info/RECORD,,
|
| 4 |
+
pyasn1_modules-0.4.2.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
| 5 |
+
pyasn1_modules-0.4.2.dist-info/licenses/LICENSE.txt,sha256=Kq1fwA9wXEoa3bg-7RCmp10oajd58M-FGdh-YrxHNf0,1334
|
| 6 |
+
pyasn1_modules-0.4.2.dist-info/top_level.txt,sha256=e_AojfE1DNY4M8P9LAS7qh8Fx3eOmovobqkr7NEjlg4,15
|
| 7 |
+
pyasn1_modules-0.4.2.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
| 8 |
+
pyasn1_modules/__init__.py,sha256=JKAoFkSDJbt4rg_rDDaTin-JVwKNKIwMg3OSPhlNAiM,65
|
| 9 |
+
pyasn1_modules/__pycache__/__init__.cpython-312.pyc,,
|
| 10 |
+
pyasn1_modules/__pycache__/pem.cpython-312.pyc,,
|
| 11 |
+
pyasn1_modules/__pycache__/rfc1155.cpython-312.pyc,,
|
| 12 |
+
pyasn1_modules/__pycache__/rfc1157.cpython-312.pyc,,
|
| 13 |
+
pyasn1_modules/__pycache__/rfc1901.cpython-312.pyc,,
|
| 14 |
+
pyasn1_modules/__pycache__/rfc1902.cpython-312.pyc,,
|
| 15 |
+
pyasn1_modules/__pycache__/rfc1905.cpython-312.pyc,,
|
| 16 |
+
pyasn1_modules/__pycache__/rfc2251.cpython-312.pyc,,
|
| 17 |
+
pyasn1_modules/__pycache__/rfc2314.cpython-312.pyc,,
|
| 18 |
+
pyasn1_modules/__pycache__/rfc2315.cpython-312.pyc,,
|
| 19 |
+
pyasn1_modules/__pycache__/rfc2437.cpython-312.pyc,,
|
| 20 |
+
pyasn1_modules/__pycache__/rfc2459.cpython-312.pyc,,
|
| 21 |
+
pyasn1_modules/__pycache__/rfc2511.cpython-312.pyc,,
|
| 22 |
+
pyasn1_modules/__pycache__/rfc2560.cpython-312.pyc,,
|
| 23 |
+
pyasn1_modules/__pycache__/rfc2631.cpython-312.pyc,,
|
| 24 |
+
pyasn1_modules/__pycache__/rfc2634.cpython-312.pyc,,
|
| 25 |
+
pyasn1_modules/__pycache__/rfc2876.cpython-312.pyc,,
|
| 26 |
+
pyasn1_modules/__pycache__/rfc2985.cpython-312.pyc,,
|
| 27 |
+
pyasn1_modules/__pycache__/rfc2986.cpython-312.pyc,,
|
| 28 |
+
pyasn1_modules/__pycache__/rfc3058.cpython-312.pyc,,
|
| 29 |
+
pyasn1_modules/__pycache__/rfc3114.cpython-312.pyc,,
|
| 30 |
+
pyasn1_modules/__pycache__/rfc3125.cpython-312.pyc,,
|
| 31 |
+
pyasn1_modules/__pycache__/rfc3161.cpython-312.pyc,,
|
| 32 |
+
pyasn1_modules/__pycache__/rfc3274.cpython-312.pyc,,
|
| 33 |
+
pyasn1_modules/__pycache__/rfc3279.cpython-312.pyc,,
|
| 34 |
+
pyasn1_modules/__pycache__/rfc3280.cpython-312.pyc,,
|
| 35 |
+
pyasn1_modules/__pycache__/rfc3281.cpython-312.pyc,,
|
| 36 |
+
pyasn1_modules/__pycache__/rfc3370.cpython-312.pyc,,
|
| 37 |
+
pyasn1_modules/__pycache__/rfc3412.cpython-312.pyc,,
|
| 38 |
+
pyasn1_modules/__pycache__/rfc3414.cpython-312.pyc,,
|
| 39 |
+
pyasn1_modules/__pycache__/rfc3447.cpython-312.pyc,,
|
| 40 |
+
pyasn1_modules/__pycache__/rfc3537.cpython-312.pyc,,
|
| 41 |
+
pyasn1_modules/__pycache__/rfc3560.cpython-312.pyc,,
|
| 42 |
+
pyasn1_modules/__pycache__/rfc3565.cpython-312.pyc,,
|
| 43 |
+
pyasn1_modules/__pycache__/rfc3657.cpython-312.pyc,,
|
| 44 |
+
pyasn1_modules/__pycache__/rfc3709.cpython-312.pyc,,
|
| 45 |
+
pyasn1_modules/__pycache__/rfc3739.cpython-312.pyc,,
|
| 46 |
+
pyasn1_modules/__pycache__/rfc3770.cpython-312.pyc,,
|
| 47 |
+
pyasn1_modules/__pycache__/rfc3779.cpython-312.pyc,,
|
| 48 |
+
pyasn1_modules/__pycache__/rfc3820.cpython-312.pyc,,
|
| 49 |
+
pyasn1_modules/__pycache__/rfc3852.cpython-312.pyc,,
|
| 50 |
+
pyasn1_modules/__pycache__/rfc4010.cpython-312.pyc,,
|
| 51 |
+
pyasn1_modules/__pycache__/rfc4043.cpython-312.pyc,,
|
| 52 |
+
pyasn1_modules/__pycache__/rfc4055.cpython-312.pyc,,
|
| 53 |
+
pyasn1_modules/__pycache__/rfc4073.cpython-312.pyc,,
|
| 54 |
+
pyasn1_modules/__pycache__/rfc4108.cpython-312.pyc,,
|
| 55 |
+
pyasn1_modules/__pycache__/rfc4210.cpython-312.pyc,,
|
| 56 |
+
pyasn1_modules/__pycache__/rfc4211.cpython-312.pyc,,
|
| 57 |
+
pyasn1_modules/__pycache__/rfc4334.cpython-312.pyc,,
|
| 58 |
+
pyasn1_modules/__pycache__/rfc4357.cpython-312.pyc,,
|
| 59 |
+
pyasn1_modules/__pycache__/rfc4387.cpython-312.pyc,,
|
| 60 |
+
pyasn1_modules/__pycache__/rfc4476.cpython-312.pyc,,
|
| 61 |
+
pyasn1_modules/__pycache__/rfc4490.cpython-312.pyc,,
|
| 62 |
+
pyasn1_modules/__pycache__/rfc4491.cpython-312.pyc,,
|
| 63 |
+
pyasn1_modules/__pycache__/rfc4683.cpython-312.pyc,,
|
| 64 |
+
pyasn1_modules/__pycache__/rfc4985.cpython-312.pyc,,
|
| 65 |
+
pyasn1_modules/__pycache__/rfc5035.cpython-312.pyc,,
|
| 66 |
+
pyasn1_modules/__pycache__/rfc5083.cpython-312.pyc,,
|
| 67 |
+
pyasn1_modules/__pycache__/rfc5084.cpython-312.pyc,,
|
| 68 |
+
pyasn1_modules/__pycache__/rfc5126.cpython-312.pyc,,
|
| 69 |
+
pyasn1_modules/__pycache__/rfc5208.cpython-312.pyc,,
|
| 70 |
+
pyasn1_modules/__pycache__/rfc5275.cpython-312.pyc,,
|
| 71 |
+
pyasn1_modules/__pycache__/rfc5280.cpython-312.pyc,,
|
| 72 |
+
pyasn1_modules/__pycache__/rfc5480.cpython-312.pyc,,
|
| 73 |
+
pyasn1_modules/__pycache__/rfc5636.cpython-312.pyc,,
|
| 74 |
+
pyasn1_modules/__pycache__/rfc5639.cpython-312.pyc,,
|
| 75 |
+
pyasn1_modules/__pycache__/rfc5649.cpython-312.pyc,,
|
| 76 |
+
pyasn1_modules/__pycache__/rfc5652.cpython-312.pyc,,
|
| 77 |
+
pyasn1_modules/__pycache__/rfc5697.cpython-312.pyc,,
|
| 78 |
+
pyasn1_modules/__pycache__/rfc5751.cpython-312.pyc,,
|
| 79 |
+
pyasn1_modules/__pycache__/rfc5752.cpython-312.pyc,,
|
| 80 |
+
pyasn1_modules/__pycache__/rfc5753.cpython-312.pyc,,
|
| 81 |
+
pyasn1_modules/__pycache__/rfc5755.cpython-312.pyc,,
|
| 82 |
+
pyasn1_modules/__pycache__/rfc5913.cpython-312.pyc,,
|
| 83 |
+
pyasn1_modules/__pycache__/rfc5914.cpython-312.pyc,,
|
| 84 |
+
pyasn1_modules/__pycache__/rfc5915.cpython-312.pyc,,
|
| 85 |
+
pyasn1_modules/__pycache__/rfc5916.cpython-312.pyc,,
|
| 86 |
+
pyasn1_modules/__pycache__/rfc5917.cpython-312.pyc,,
|
| 87 |
+
pyasn1_modules/__pycache__/rfc5924.cpython-312.pyc,,
|
| 88 |
+
pyasn1_modules/__pycache__/rfc5934.cpython-312.pyc,,
|
| 89 |
+
pyasn1_modules/__pycache__/rfc5940.cpython-312.pyc,,
|
| 90 |
+
pyasn1_modules/__pycache__/rfc5958.cpython-312.pyc,,
|
| 91 |
+
pyasn1_modules/__pycache__/rfc5990.cpython-312.pyc,,
|
| 92 |
+
pyasn1_modules/__pycache__/rfc6010.cpython-312.pyc,,
|
| 93 |
+
pyasn1_modules/__pycache__/rfc6019.cpython-312.pyc,,
|
| 94 |
+
pyasn1_modules/__pycache__/rfc6031.cpython-312.pyc,,
|
| 95 |
+
pyasn1_modules/__pycache__/rfc6032.cpython-312.pyc,,
|
| 96 |
+
pyasn1_modules/__pycache__/rfc6120.cpython-312.pyc,,
|
| 97 |
+
pyasn1_modules/__pycache__/rfc6170.cpython-312.pyc,,
|
| 98 |
+
pyasn1_modules/__pycache__/rfc6187.cpython-312.pyc,,
|
| 99 |
+
pyasn1_modules/__pycache__/rfc6210.cpython-312.pyc,,
|
| 100 |
+
pyasn1_modules/__pycache__/rfc6211.cpython-312.pyc,,
|
| 101 |
+
pyasn1_modules/__pycache__/rfc6402.cpython-312.pyc,,
|
| 102 |
+
pyasn1_modules/__pycache__/rfc6482.cpython-312.pyc,,
|
| 103 |
+
pyasn1_modules/__pycache__/rfc6486.cpython-312.pyc,,
|
| 104 |
+
pyasn1_modules/__pycache__/rfc6487.cpython-312.pyc,,
|
| 105 |
+
pyasn1_modules/__pycache__/rfc6664.cpython-312.pyc,,
|
| 106 |
+
pyasn1_modules/__pycache__/rfc6955.cpython-312.pyc,,
|
| 107 |
+
pyasn1_modules/__pycache__/rfc6960.cpython-312.pyc,,
|
| 108 |
+
pyasn1_modules/__pycache__/rfc7030.cpython-312.pyc,,
|
| 109 |
+
pyasn1_modules/__pycache__/rfc7191.cpython-312.pyc,,
|
| 110 |
+
pyasn1_modules/__pycache__/rfc7229.cpython-312.pyc,,
|
| 111 |
+
pyasn1_modules/__pycache__/rfc7292.cpython-312.pyc,,
|
| 112 |
+
pyasn1_modules/__pycache__/rfc7296.cpython-312.pyc,,
|
| 113 |
+
pyasn1_modules/__pycache__/rfc7508.cpython-312.pyc,,
|
| 114 |
+
pyasn1_modules/__pycache__/rfc7585.cpython-312.pyc,,
|
| 115 |
+
pyasn1_modules/__pycache__/rfc7633.cpython-312.pyc,,
|
| 116 |
+
pyasn1_modules/__pycache__/rfc7773.cpython-312.pyc,,
|
| 117 |
+
pyasn1_modules/__pycache__/rfc7894.cpython-312.pyc,,
|
| 118 |
+
pyasn1_modules/__pycache__/rfc7906.cpython-312.pyc,,
|
| 119 |
+
pyasn1_modules/__pycache__/rfc7914.cpython-312.pyc,,
|
| 120 |
+
pyasn1_modules/__pycache__/rfc8017.cpython-312.pyc,,
|
| 121 |
+
pyasn1_modules/__pycache__/rfc8018.cpython-312.pyc,,
|
| 122 |
+
pyasn1_modules/__pycache__/rfc8103.cpython-312.pyc,,
|
| 123 |
+
pyasn1_modules/__pycache__/rfc8209.cpython-312.pyc,,
|
| 124 |
+
pyasn1_modules/__pycache__/rfc8226.cpython-312.pyc,,
|
| 125 |
+
pyasn1_modules/__pycache__/rfc8358.cpython-312.pyc,,
|
| 126 |
+
pyasn1_modules/__pycache__/rfc8360.cpython-312.pyc,,
|
| 127 |
+
pyasn1_modules/__pycache__/rfc8398.cpython-312.pyc,,
|
| 128 |
+
pyasn1_modules/__pycache__/rfc8410.cpython-312.pyc,,
|
| 129 |
+
pyasn1_modules/__pycache__/rfc8418.cpython-312.pyc,,
|
| 130 |
+
pyasn1_modules/__pycache__/rfc8419.cpython-312.pyc,,
|
| 131 |
+
pyasn1_modules/__pycache__/rfc8479.cpython-312.pyc,,
|
| 132 |
+
pyasn1_modules/__pycache__/rfc8494.cpython-312.pyc,,
|
| 133 |
+
pyasn1_modules/__pycache__/rfc8520.cpython-312.pyc,,
|
| 134 |
+
pyasn1_modules/__pycache__/rfc8619.cpython-312.pyc,,
|
| 135 |
+
pyasn1_modules/__pycache__/rfc8649.cpython-312.pyc,,
|
| 136 |
+
pyasn1_modules/__pycache__/rfc8692.cpython-312.pyc,,
|
| 137 |
+
pyasn1_modules/__pycache__/rfc8696.cpython-312.pyc,,
|
| 138 |
+
pyasn1_modules/__pycache__/rfc8702.cpython-312.pyc,,
|
| 139 |
+
pyasn1_modules/__pycache__/rfc8708.cpython-312.pyc,,
|
| 140 |
+
pyasn1_modules/__pycache__/rfc8769.cpython-312.pyc,,
|
| 141 |
+
pyasn1_modules/pem.py,sha256=J9x8rEx_jhdXBKeM4X3JS5ucRNsdQyaNJrs4Dfog0MM,1821
|
| 142 |
+
pyasn1_modules/rfc1155.py,sha256=yG3A0ClwC3diCdMxEywvLvdc8eBtL_fh9yIdImYij2E,2683
|
| 143 |
+
pyasn1_modules/rfc1157.py,sha256=JBkbJD7LcyGH4vzxYIXgAw58X15Wx6RrL59NMBLqYRU,3554
|
| 144 |
+
pyasn1_modules/rfc1901.py,sha256=qpv7P8cC0kcy33rZ5_Et0AXgJlOB6Rsv6gpMpWnZBGk,646
|
| 145 |
+
pyasn1_modules/rfc1902.py,sha256=VfB6zThzmIzBPcAkosPVfNQH0D-MtKYarL7BvgMJS0U,3705
|
| 146 |
+
pyasn1_modules/rfc1905.py,sha256=q---r52j2AyQ4HL3hRbWBcNGNLTahDsAGAJiCYzsW0Q,4831
|
| 147 |
+
pyasn1_modules/rfc2251.py,sha256=jHH9A0FTDwNp4lJLCr24_tFSofi_5r2rq8BLEB-EfcI,26931
|
| 148 |
+
pyasn1_modules/rfc2314.py,sha256=h7G-AdL89X9-3qxtjcQYAikVtvK-l4xmxD_KZySDH50,1313
|
| 149 |
+
pyasn1_modules/rfc2315.py,sha256=_0tMHafjOM4lUYOg-Cc_-_Fd_BGlPT32erpYswntRLM,9666
|
| 150 |
+
pyasn1_modules/rfc2437.py,sha256=1lie1MIMdOFBnlAETF2ThpLs0rz6aV8AJaSlwWMsRUY,2623
|
| 151 |
+
pyasn1_modules/rfc2459.py,sha256=ZHKavZuowKbEbzTxpjtSNi3nBUS3gsigSZjwMoPx2E0,50002
|
| 152 |
+
pyasn1_modules/rfc2511.py,sha256=IuJekkyDgOD5mYN9a2zHf4hpKSuhPBgnwbPx5EUOH0k,10350
|
| 153 |
+
pyasn1_modules/rfc2560.py,sha256=ztdWLRPg99biGGOTmkfTIJGZrCEwXNGgUPS-9bOzaBQ,8406
|
| 154 |
+
pyasn1_modules/rfc2631.py,sha256=Het4nHPVFj6oElpEANYkKQuincUa0ms5SOt94Ph8jhs,1219
|
| 155 |
+
pyasn1_modules/rfc2634.py,sha256=7sTu3YysbHImknLk7CbdQIjJjt6cC849-XqkuEDgFPk,9425
|
| 156 |
+
pyasn1_modules/rfc2876.py,sha256=yWx-0S_Lm-qGaEmJ4e3DZy7GKpvxFTf0rQVfnz_ke-8,1438
|
| 157 |
+
pyasn1_modules/rfc2985.py,sha256=8GL8jkWGpN1t7sVaEtyhVgfCM80XhlYOUEi9jhcAX0E,14359
|
| 158 |
+
pyasn1_modules/rfc2986.py,sha256=fLxMpQEBGC2e68ASrQWCUvRzpndfy1uOiSvf1pa0V-M,1896
|
| 159 |
+
pyasn1_modules/rfc3058.py,sha256=dKAjM1SUIk-Hoj5ps5MDzbDv8fHQma2J6B8SoZqlrb8,992
|
| 160 |
+
pyasn1_modules/rfc3114.py,sha256=02eDCK2blUNybTaGX85vxGfCTnzHXXa9BP9IaVVocK8,1961
|
| 161 |
+
pyasn1_modules/rfc3125.py,sha256=bd80G-Frzu3A_rfql04WLJcbKigQjsDY_6kFBinMFQk,16707
|
| 162 |
+
pyasn1_modules/rfc3161.py,sha256=9kz_TvQ5_OpBPuHQDAh2WyqKeOThgxPq8E5iBB-sNp8,4260
|
| 163 |
+
pyasn1_modules/rfc3274.py,sha256=ZULbMN3wksvv_fWvT_C1vskxuh_IzRCAD9QD1hdk-lo,1670
|
| 164 |
+
pyasn1_modules/rfc3279.py,sha256=uRaWfvIw4WXBoJN9gcAhsW8MTDymGoa-FrrC2k033TI,6807
|
| 165 |
+
pyasn1_modules/rfc3280.py,sha256=JxIDKgqrhEkRmr54yNmoNsFCRIK8Lz8X85yLHiMTXcg,46620
|
| 166 |
+
pyasn1_modules/rfc3281.py,sha256=IBiEVBhKoWlb0KJwVwqAPW91PPW-v8Dla8p52n2GgXY,9866
|
| 167 |
+
pyasn1_modules/rfc3370.py,sha256=q3dToJOoYvaxFO89Zqa_nYi9l3rQvGwCfLF7qFfhbfs,2811
|
| 168 |
+
pyasn1_modules/rfc3412.py,sha256=MqrXwY35FPEZqXNdey4LZ44wBO6nrITqD5-thE_tLd8,1956
|
| 169 |
+
pyasn1_modules/rfc3414.py,sha256=NmGZ3dWZY3e_Ovv0PyHDdK8hOqdbaar2AuUSi7YKkDc,1167
|
| 170 |
+
pyasn1_modules/rfc3447.py,sha256=IBxHcG0Xg8kXomMB6hFv-CMa_Y9XQQa-b1bs7L0bhsM,1605
|
| 171 |
+
pyasn1_modules/rfc3537.py,sha256=I0LVSnsyyMOTNJyLda-8T98JShYtDk13yPd_bmrZ3OQ,796
|
| 172 |
+
pyasn1_modules/rfc3560.py,sha256=3Ud7sY7OAV_4KGNn_hg5xZblEkxE_ILH1kP2TI-KbZw,1818
|
| 173 |
+
pyasn1_modules/rfc3565.py,sha256=nRephcXY7ioG5I4iaT6mSQYGwaouRQXoMnp2kFQQOE0,1438
|
| 174 |
+
pyasn1_modules/rfc3657.py,sha256=H484bVE7VJ05rVbk6BdlbIbAWCd7CFqt5e5BptNs3wY,1746
|
| 175 |
+
pyasn1_modules/rfc3709.py,sha256=KAaG7SKTT9Ef-Kza5Zn_qXkZppul8Wt8MPSkzS4qs5o,6469
|
| 176 |
+
pyasn1_modules/rfc3739.py,sha256=p-D897qRYt6QR0fWmgoPVmB6VXnz_1mMY1HRJnH9eeE,5122
|
| 177 |
+
pyasn1_modules/rfc3770.py,sha256=ue0Qaiys8J86M-8EtLNrcfuXm87Mr2GQ4f30lSs0vXE,1743
|
| 178 |
+
pyasn1_modules/rfc3779.py,sha256=x8HYKGCaGO3BohCREHQUEa1oYGArWIC2J0PftxiPrjI,3260
|
| 179 |
+
pyasn1_modules/rfc3820.py,sha256=hV70UpibmcSzH4_TncHPPHsw4OrtFjMbepS4EvieQLk,1478
|
| 180 |
+
pyasn1_modules/rfc3852.py,sha256=VcWcbTAAYtZ0FDYcuofDxVVSMdKgithdTBixQ898Szs,20101
|
| 181 |
+
pyasn1_modules/rfc4010.py,sha256=J2FptJQv03o8N-mo7vJ9q5_A9vrwEk0crpvAkXmVH74,1228
|
| 182 |
+
pyasn1_modules/rfc4043.py,sha256=OWPgVzfK3Hs5sNQJSqUBkInhgikv-x15-xLSg30xwNE,1067
|
| 183 |
+
pyasn1_modules/rfc4055.py,sha256=f2rlyaBeNhl287b_qLLsNpjgwxYRVzBgbOH28UnJZwQ,10392
|
| 184 |
+
pyasn1_modules/rfc4073.py,sha256=bHVssQE3yXwetes1TPWAT30UhOEinHj8vEBaYjWC24g,1636
|
| 185 |
+
pyasn1_modules/rfc4108.py,sha256=-I63Z0crn_Elvr85nSa9BqAlRx7cIJfEb9ItPDkq8JY,10598
|
| 186 |
+
pyasn1_modules/rfc4210.py,sha256=3ndhsJ5yFx3ZUvUP8EDeJhUilSFAdeL8baT5tKPyIi0,28469
|
| 187 |
+
pyasn1_modules/rfc4211.py,sha256=THqr9n4PGg0jVMmj8k9bhKzb5j7IapwtBinhWQAnL9k,12110
|
| 188 |
+
pyasn1_modules/rfc4334.py,sha256=Q-fcYksrunAo1t07HE2jm5WlQgFAf5o39utpel0ZjcI,1586
|
| 189 |
+
pyasn1_modules/rfc4357.py,sha256=tpZZ-6xDt_u8aYr4qbwe5UJxT-JVGOihuxPaemB1AXM,15036
|
| 190 |
+
pyasn1_modules/rfc4387.py,sha256=CylvEQRpV_U9vVivzTJ4PVDjZEBAKS-6TrVVoepRk2E,441
|
| 191 |
+
pyasn1_modules/rfc4476.py,sha256=klWmMFZg_aMqmVGuYEjXQa3v3iKlopkhMumBoLdmYT4,1960
|
| 192 |
+
pyasn1_modules/rfc4490.py,sha256=Z9nkntSSc9npWHBjV9c86QGW_itvGYQ4l5jJO0a2GCA,3401
|
| 193 |
+
pyasn1_modules/rfc4491.py,sha256=Lpej17T5MfF25FnfWo1CFqmBYWQTJS4WQSGki5hCgsM,1054
|
| 194 |
+
pyasn1_modules/rfc4683.py,sha256=X0P6ln34ZsYkCepgGJH8AxUhoG85TuLof55jIIDMNeI,1839
|
| 195 |
+
pyasn1_modules/rfc4985.py,sha256=oWCBG3tknFLUJOeG4aKF7JrkA4qMjPyJFGTnf7xmPd8,961
|
| 196 |
+
pyasn1_modules/rfc5035.py,sha256=xgw9ztAM_bJKlIUCzni2zcE_z3ErEuXpWRPJpXI1KEw,4523
|
| 197 |
+
pyasn1_modules/rfc5083.py,sha256=ENXIEL0CYrTqvf_iwpvAkBBJpi2pOFNBDFEYc37yqF8,1888
|
| 198 |
+
pyasn1_modules/rfc5084.py,sha256=i9sFdUklbdTQodTya4BNFnpeFxGIB2uS1aNkfFdZpu4,2855
|
| 199 |
+
pyasn1_modules/rfc5126.py,sha256=ape8y-hcslojU0MRD6-JCoQlJxsaS0h_0sWs2FlUGqI,15780
|
| 200 |
+
pyasn1_modules/rfc5208.py,sha256=adwiwa639VdhaNMRTKXfEPl-AkbB5grrLJMJN6FZVsg,1432
|
| 201 |
+
pyasn1_modules/rfc5275.py,sha256=mgirSEvl3OJn1C40dHkNTH04Sm4aEvT8c682FE_cOQ8,11605
|
| 202 |
+
pyasn1_modules/rfc5280.py,sha256=GFwSclsvpTUc2rjEF2fwAK48wHI3PkXxHIbVMkfD4sQ,51236
|
| 203 |
+
pyasn1_modules/rfc5480.py,sha256=GzBTgKQ68V-L-Qy0SBrCQMgqR5mGF7U73uXlBzfV2Jk,4834
|
| 204 |
+
pyasn1_modules/rfc5636.py,sha256=2z0NoxI2uMlTHHGA10Q0W_329PsmZOjSFnciL2CiywE,2324
|
| 205 |
+
pyasn1_modules/rfc5639.py,sha256=28YlbU49j4lr_Blwfjn2-WJyzKQhpJPPZMNW0lWXlSk,1025
|
| 206 |
+
pyasn1_modules/rfc5649.py,sha256=3A--LQL7iw8DGXSDyiSUeh6wwFPKQQGyVY94mNzY0Ek,830
|
| 207 |
+
pyasn1_modules/rfc5652.py,sha256=65A_djYGSuEhuFj08mn7y2kvVrbr4ArxcW0bW5JVzrE,21451
|
| 208 |
+
pyasn1_modules/rfc5697.py,sha256=aWqi-QBZrEr6I5bIppRet4dREqFF8E1tO2BvaZBGOOE,1702
|
| 209 |
+
pyasn1_modules/rfc5751.py,sha256=M8kTLARhdqh3UqmlZv_FWJfuJb-ph7P6MVGxSP7Q4wQ,3198
|
| 210 |
+
pyasn1_modules/rfc5752.py,sha256=Sjijqbi5C_deVnJJMBtOHz7wBWFM7PCTwDWZ2lomWT0,1431
|
| 211 |
+
pyasn1_modules/rfc5753.py,sha256=2Nwr8GsV2TgjTDLtE5QiIunPOA617F3CXB_tPYe7BHc,4534
|
| 212 |
+
pyasn1_modules/rfc5755.py,sha256=RZ28NeCnEAGr2pLRSNFw0BRb_b_eulmxag-lRTmUeTo,12081
|
| 213 |
+
pyasn1_modules/rfc5913.py,sha256=OayMmpi29ZlQI1EszIxXaU8Mhwi41BrH5esoyS80efQ,1161
|
| 214 |
+
pyasn1_modules/rfc5914.py,sha256=nXOb4SvESbEFYI8h0nEYkRArNZ9w5Zqxva_4uAdMXNY,3714
|
| 215 |
+
pyasn1_modules/rfc5915.py,sha256=VqMRd_Ksm0LFvE5XX4_MO6BdFG7Ch7NdQcwT_DMWAK4,1056
|
| 216 |
+
pyasn1_modules/rfc5916.py,sha256=gHrFO9lX21h6Wa3JnEqyjuqXQlcTE0loUIu913Sit0E,800
|
| 217 |
+
pyasn1_modules/rfc5917.py,sha256=nM08rGm9D3O8uqSbmshvp7_fHl2dYaTdhUGVJQHe0xc,1511
|
| 218 |
+
pyasn1_modules/rfc5924.py,sha256=_8TqEJ9Q7cFSd2u3Za6rzlNPqGLl7IA4oHtYVpoJhdA,425
|
| 219 |
+
pyasn1_modules/rfc5934.py,sha256=77z96SeP4iM2R6Rl5-Vx7OaENA8ZQvzrfhDVZRy9lqk,23798
|
| 220 |
+
pyasn1_modules/rfc5940.py,sha256=66rMmgyKBhay-RZsWaKz7PUGwp0bqEAVULPb4Edk1vk,1613
|
| 221 |
+
pyasn1_modules/rfc5958.py,sha256=NZPx-7FvjzgErz2lTURiRq8m3XCZ7D9QbGDhtIF-zCE,2650
|
| 222 |
+
pyasn1_modules/rfc5990.py,sha256=-b0St64ba3LVRGSeNmbGoMIbkU8c8FDpo4zFWF0PCFM,5505
|
| 223 |
+
pyasn1_modules/rfc6010.py,sha256=F43AYVFUwu-2_xjJE2Wmw1Wdt0K7l3vg0_fCa_QHqBU,2347
|
| 224 |
+
pyasn1_modules/rfc6019.py,sha256=vzj5tfG4694-ucpErpAtE1DVOE4-v0dkN894Zr9xm4o,1086
|
| 225 |
+
pyasn1_modules/rfc6031.py,sha256=X2cjNyVnrX3G2zG7kD4Rq__kF6-ftmmnqHlCQJDCuMU,12137
|
| 226 |
+
pyasn1_modules/rfc6032.py,sha256=uNAu5zLHg0b583xxzFNUZxCnJaCzMw1iobzREuejMoM,1950
|
| 227 |
+
pyasn1_modules/rfc6120.py,sha256=JehGZD8Y0Bdhr_ojpMSjHgnRHEdUXauZxqLxRwns6Cc,818
|
| 228 |
+
pyasn1_modules/rfc6170.py,sha256=sL2yPZzO--MI4ToeAwlFEP-x6I0-etuJxT2mgAPjEO4,409
|
| 229 |
+
pyasn1_modules/rfc6187.py,sha256=jOMiIhw4HAUn7hj37gKImNU_hK8TamAfd0V0Jrwh_YU,489
|
| 230 |
+
pyasn1_modules/rfc6210.py,sha256=wLifK_EShv1a4TOhGJ-k9zA1kVVYVDNjS-Rh0ohmCh0,1052
|
| 231 |
+
pyasn1_modules/rfc6211.py,sha256=XotTBQVseK7y0nJB4Fx-npdhRHeH53IM84kGupWIprk,2257
|
| 232 |
+
pyasn1_modules/rfc6402.py,sha256=ksg6YsacS9vJAzObqFOPRCoe8mpyvRDb43Z0v-QKhnM,17148
|
| 233 |
+
pyasn1_modules/rfc6482.py,sha256=10_Xyb2TaPFx72IUCZtu81aH5rmYihhdL0P-PVby1ys,2085
|
| 234 |
+
pyasn1_modules/rfc6486.py,sha256=a3_5OJvkz2G7xWOC0dqbNqJQDsHQAOU62AWin107c4k,1916
|
| 235 |
+
pyasn1_modules/rfc6487.py,sha256=gTUVkFYJyUcr1E4uoeN2cXPNaXyjYbixupbBKFQA4jQ,472
|
| 236 |
+
pyasn1_modules/rfc6664.py,sha256=nq8F5wDeO49FoBGVQDx8ivvg_GsubdWa1bpZM_40Tms,4270
|
| 237 |
+
pyasn1_modules/rfc6955.py,sha256=FBVb8LpHKMZjR3wOJtm-BPbi5EMiRoGuUWh41r1soCU,2814
|
| 238 |
+
pyasn1_modules/rfc6960.py,sha256=BhEDCLLrae4RaCpMuKJc0kw1bGs56V0_F-NxiO9ctuw,7913
|
| 239 |
+
pyasn1_modules/rfc7030.py,sha256=t-s2BDyX3Zk2sy_jMQl-P2I2NXFOn7huu0wFcM-2sqs,1441
|
| 240 |
+
pyasn1_modules/rfc7191.py,sha256=uMsBzJ9167wxsiPYDQUnZQFVFNfgUxnCwRNeKnXxNGM,7062
|
| 241 |
+
pyasn1_modules/rfc7229.py,sha256=GSiUz4QkYODfnIvLRXKiabyno9Gmd6CX0zWR7HoIpCk,743
|
| 242 |
+
pyasn1_modules/rfc7292.py,sha256=wORjDGD_aqHoujB2wu6nNrEjYTw3VO_xDp-Qx0VWLbc,8478
|
| 243 |
+
pyasn1_modules/rfc7296.py,sha256=eAZpZ2dgUhxbJrLLGtDff4UspauG7Tr5dj8WELYHnUM,885
|
| 244 |
+
pyasn1_modules/rfc7508.py,sha256=ZmJFbQO934Fs8wxcpO0gg5fU0d8yEFlkkFD3KMUQbAE,2182
|
| 245 |
+
pyasn1_modules/rfc7585.py,sha256=T0-sdzPJoop1jbB2RJ-wzUnf6t6CeD2eMMXpcz55JEg,1076
|
| 246 |
+
pyasn1_modules/rfc7633.py,sha256=8P_fBWkoGk3rsk7SEAm6QZcPjoRGTRGQuasWMLOrLKY,841
|
| 247 |
+
pyasn1_modules/rfc7773.py,sha256=6UGPWyVYuicKe6snZCnD1wuAu1MOVgzPoSALL2uvTrI,1315
|
| 248 |
+
pyasn1_modules/rfc7894.py,sha256=HLaSBoOUB-_cSE5935TXAnuFBVpZBv6jBnLOPp_-LNk,2769
|
| 249 |
+
pyasn1_modules/rfc7906.py,sha256=mDf1pWwVNlCcEQfswUhtQDStAnwS-5xbZtjMlfnWLdI,18921
|
| 250 |
+
pyasn1_modules/rfc7914.py,sha256=JxWGnXV-V13xzOn7c7-_3vxDNpkPtdZIYU4KF2kFXR4,1493
|
| 251 |
+
pyasn1_modules/rfc8017.py,sha256=pwPRSchvMtXuatcCLULHuvSL8kAPEqkC4aIJjd5vEAo,4178
|
| 252 |
+
pyasn1_modules/rfc8018.py,sha256=8_49xA3vEOdlGUhasw2xTUv4TpHBvjRuoonMT_k1TTk,6166
|
| 253 |
+
pyasn1_modules/rfc8103.py,sha256=pNYAFfKCNrg9ZmRKsNNwr2ooptEABF3gMaPbqCroRnQ,1017
|
| 254 |
+
pyasn1_modules/rfc8209.py,sha256=9EQ077rjD9uoTZWIOGmeOaHLDDq0IRXh3Rt0eYB-Ysc,393
|
| 255 |
+
pyasn1_modules/rfc8226.py,sha256=mudlVgrsJ6XeHnFmxBNW_NgcYcFsHUvK04_MTr3UkRM,4291
|
| 256 |
+
pyasn1_modules/rfc8358.py,sha256=aiHaXQAaaP-q5c90x_uZHSpQRTB-yekwhe6V9-EtrFg,1136
|
| 257 |
+
pyasn1_modules/rfc8360.py,sha256=T4sY6o2VLVPnZ9s4yJ8PzfVA8Y60ne-1KcVNtw5yt-s,1075
|
| 258 |
+
pyasn1_modules/rfc8398.py,sha256=i3lwgf__9oJzOaaHJKWmDAx3d_deKNCCuvIDWqQWiJ4,1192
|
| 259 |
+
pyasn1_modules/rfc8410.py,sha256=nteKyTKcIwVlgh1qUl-8kE63kKG-KgWtLrfF92TWyyQ,971
|
| 260 |
+
pyasn1_modules/rfc8418.py,sha256=eTCPTOm6t-RyHd6PlowLogDzUO72lRddESYLiSiOpC0,1109
|
| 261 |
+
pyasn1_modules/rfc8419.py,sha256=qcvBlXxqvsCvG_F6AKKjqBderqbWwBy8zjZOjAPdYU4,1704
|
| 262 |
+
pyasn1_modules/rfc8479.py,sha256=rDKzrp-MmEF0t3E7lqKXhgwcggvx8NoWVbtJHGLxDYM,1142
|
| 263 |
+
pyasn1_modules/rfc8494.py,sha256=GMht1RdAbjHLtSqHdJ2cLO8HXRz6SLIPE254T4oy0S4,2363
|
| 264 |
+
pyasn1_modules/rfc8520.py,sha256=_o00lv2MYciOqo0UKjlZBQNY_MzzgQt1SV9VXCI0T9A,1496
|
| 265 |
+
pyasn1_modules/rfc8619.py,sha256=qSYiBefLSFukLg6VIgR6dnhX-uBwJMItxqHjNXnBgM0,1136
|
| 266 |
+
pyasn1_modules/rfc8649.py,sha256=oHCQK7g4vKs1B0IO9GgiidTyPOk4pz5bYkXSRmBOAHo,982
|
| 267 |
+
pyasn1_modules/rfc8692.py,sha256=eLLbpx7CdcCSL3MgogE17WvPoV3VW-K1bo6dq4mRoeg,2098
|
| 268 |
+
pyasn1_modules/rfc8696.py,sha256=iqGh7uhZ9wO2UU6Tk2tIBTw_uwOutogkksnDdg_-Qjg,3479
|
| 269 |
+
pyasn1_modules/rfc8702.py,sha256=t7J9gvKZ3n02UCUjTHeJZWdcC8moBe2QmA_P6K8LVww,2739
|
| 270 |
+
pyasn1_modules/rfc8708.py,sha256=iHNsHkk1G419l7KOQAZwq25yL9m6wyACmM0lS4f5XGw,978
|
| 271 |
+
pyasn1_modules/rfc8769.py,sha256=vwRJCfdmar4FdQ-IhCHJRyyn4fVm_82WsVMuqBeDy5o,441
|
.venv/lib/python3.12/site-packages/pyasn1_modules-0.4.2.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: setuptools (78.1.0)
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py3-none-any
|
| 5 |
+
|
.venv/lib/python3.12/site-packages/pyasn1_modules-0.4.2.dist-info/licenses/LICENSE.txt
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (c) 2005-2020, Ilya Etingof <etingof@gmail.com>
|
| 2 |
+
All rights reserved.
|
| 3 |
+
|
| 4 |
+
Redistribution and use in source and binary forms, with or without
|
| 5 |
+
modification, are permitted provided that the following conditions are met:
|
| 6 |
+
|
| 7 |
+
* Redistributions of source code must retain the above copyright notice,
|
| 8 |
+
this list of conditions and the following disclaimer.
|
| 9 |
+
|
| 10 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 11 |
+
this list of conditions and the following disclaimer in the documentation
|
| 12 |
+
and/or other materials provided with the distribution.
|
| 13 |
+
|
| 14 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
| 15 |
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 16 |
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
| 17 |
+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
| 18 |
+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
| 19 |
+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
| 20 |
+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
| 21 |
+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
| 22 |
+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 23 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 24 |
+
POSSIBILITY OF SUCH DAMAGE.
|
.venv/lib/python3.12/site-packages/pyasn1_modules-0.4.2.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pyasn1_modules
|
.venv/lib/python3.12/site-packages/pyasn1_modules-0.4.2.dist-info/zip-safe
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__init__.py
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# http://www.python.org/dev/peps/pep-0396/
|
| 2 |
+
__version__ = '0.4.2'
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/__init__.cpython-312.pyc
ADDED
|
Binary file (218 Bytes). View file
|
|
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/pem.cpython-312.pyc
ADDED
|
Binary file (2.8 kB). View file
|
|
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc1155.cpython-312.pyc
ADDED
|
Binary file (5.21 kB). View file
|
|
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc1157.cpython-312.pyc
ADDED
|
Binary file (6.61 kB). View file
|
|
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc1901.cpython-312.pyc
ADDED
|
Binary file (1.05 kB). View file
|
|
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc1902.cpython-312.pyc
ADDED
|
Binary file (6.89 kB). View file
|
|
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc1905.cpython-312.pyc
ADDED
|
Binary file (8.35 kB). View file
|
|
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc2251.cpython-312.pyc
ADDED
|
Binary file (36.4 kB). View file
|
|
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc2314.cpython-312.pyc
ADDED
|
Binary file (2.42 kB). View file
|
|
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc2315.cpython-312.pyc
ADDED
|
Binary file (17.2 kB). View file
|
|
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc2437.cpython-312.pyc
ADDED
|
Binary file (4.39 kB). View file
|
|
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc2459.cpython-312.pyc
ADDED
|
Binary file (87.6 kB). View file
|
|
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc2511.cpython-312.pyc
ADDED
|
Binary file (18.7 kB). View file
|
|
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc2560.cpython-312.pyc
ADDED
|
Binary file (14.9 kB). View file
|
|
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc2631.cpython-312.pyc
ADDED
|
Binary file (2.02 kB). View file
|
|
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc2634.cpython-312.pyc
ADDED
|
Binary file (14.2 kB). View file
|
|
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc2876.cpython-312.pyc
ADDED
|
Binary file (1.69 kB). View file
|
|
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc2985.cpython-312.pyc
ADDED
|
Binary file (15.1 kB). View file
|
|
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc2986.cpython-312.pyc
ADDED
|
Binary file (2.51 kB). View file
|
|
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc3058.cpython-312.pyc
ADDED
|
Binary file (1.2 kB). View file
|
|
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc3114.cpython-312.pyc
ADDED
|
Binary file (2.28 kB). View file
|
|
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc3125.cpython-312.pyc
ADDED
|
Binary file (28.8 kB). View file
|
|
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc3161.cpython-312.pyc
ADDED
|
Binary file (7.35 kB). View file
|
|
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc3274.cpython-312.pyc
ADDED
|
Binary file (1.73 kB). View file
|
|
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc3279.cpython-312.pyc
ADDED
|
Binary file (12.1 kB). View file
|
|
|
.venv/lib/python3.12/site-packages/pyasn1_modules/__pycache__/rfc3280.cpython-312.pyc
ADDED
|
Binary file (77.2 kB). View file
|
|
|