Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- data/conda_envs/evalclaw/lib/python3.11/site-packages/anthropic-0.85.0.dist-info/licenses/LICENSE +8 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/asttokens-3.0.1.dist-info/licenses/LICENSE +201 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/certifi-2026.2.25.dist-info/licenses/LICENSE +20 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/__pycache__/__about__.cpython-311.pyc +0 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/__pycache__/__init__.cpython-311.pyc +0 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/__pycache__/exceptions.cpython-311.pyc +0 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/__pycache__/fernet.cpython-311.pyc +0 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/__pycache__/utils.cpython-311.pyc +0 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/__init__.py +13 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/__pycache__/__init__.cpython-311.pyc +0 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/__pycache__/_oid.cpython-311.pyc +0 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/_oid.py +356 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/asn1/__init__.py +10 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/asn1/__pycache__/__init__.cpython-311.pyc +0 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/asn1/__pycache__/asn1.cpython-311.pyc +0 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/asn1/asn1.py +116 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/backends/__init__.py +13 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/backends/__pycache__/__init__.cpython-311.pyc +0 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/backends/openssl/__init__.py +9 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/backends/openssl/__pycache__/__init__.cpython-311.pyc +0 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/backends/openssl/__pycache__/backend.cpython-311.pyc +0 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/backends/openssl/backend.py +302 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/__init__.py +3 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/__pycache__/__init__.cpython-311.pyc +0 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/__init__.pyi +37 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/_openssl.pyi +8 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/asn1.pyi +7 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/declarative_asn1.pyi +32 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/exceptions.pyi +17 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/ocsp.pyi +117 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/__init__.pyi +75 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/aead.pyi +107 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/ciphers.pyi +38 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/cmac.pyi +18 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/dh.pyi +51 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/dsa.pyi +41 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/ec.pyi +52 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/ed25519.pyi +13 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/ed448.pyi +13 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/hashes.pyi +28 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/hmac.pyi +22 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/kdf.pyi +72 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/keys.pyi +34 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/poly1305.pyi +15 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/rsa.pyi +55 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/x25519.pyi +13 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/x448.pyi +13 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/pkcs12.pyi +52 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/pkcs7.pyi +50 -0
- data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/test_support.pyi +23 -0
data/conda_envs/evalclaw/lib/python3.11/site-packages/anthropic-0.85.0.dist-info/licenses/LICENSE
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright 2023 Anthropic, PBC.
|
| 2 |
+
|
| 3 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
| 4 |
+
|
| 5 |
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
| 6 |
+
|
| 7 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
| 8 |
+
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/asttokens-3.0.1.dist-info/licenses/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
https://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
| 178 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 179 |
+
|
| 180 |
+
To apply the Apache License to your work, attach the following
|
| 181 |
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
| 182 |
+
replaced with your own identifying information. (Don't include
|
| 183 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 184 |
+
comment syntax for the file format. We also recommend that a
|
| 185 |
+
file or class name and description of purpose be included on the
|
| 186 |
+
same "printed page" as the copyright notice for easier
|
| 187 |
+
identification within third-party archives.
|
| 188 |
+
|
| 189 |
+
Copyright {yyyy} {name of copyright owner}
|
| 190 |
+
|
| 191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 192 |
+
you may not use this file except in compliance with the License.
|
| 193 |
+
You may obtain a copy of the License at
|
| 194 |
+
|
| 195 |
+
https://www.apache.org/licenses/LICENSE-2.0
|
| 196 |
+
|
| 197 |
+
Unless required by applicable law or agreed to in writing, software
|
| 198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 200 |
+
See the License for the specific language governing permissions and
|
| 201 |
+
limitations under the License.
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/certifi-2026.2.25.dist-info/licenses/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
This package contains a modified version of ca-bundle.crt:
|
| 2 |
+
|
| 3 |
+
ca-bundle.crt -- Bundle of CA Root Certificates
|
| 4 |
+
|
| 5 |
+
This is a bundle of X.509 certificates of public Certificate Authorities
|
| 6 |
+
(CA). These were automatically extracted from Mozilla's root certificates
|
| 7 |
+
file (certdata.txt). This file can be found in the mozilla source tree:
|
| 8 |
+
https://hg.mozilla.org/mozilla-central/file/tip/security/nss/lib/ckfw/builtins/certdata.txt
|
| 9 |
+
It contains the certificates in PEM format and therefore
|
| 10 |
+
can be directly used with curl / libcurl / php_curl, or with
|
| 11 |
+
an Apache+mod_ssl webserver for SSL client authentication.
|
| 12 |
+
Just configure this file as the SSLCACertificateFile.#
|
| 13 |
+
|
| 14 |
+
***** BEGIN LICENSE BLOCK *****
|
| 15 |
+
This Source Code Form is subject to the terms of the Mozilla Public License,
|
| 16 |
+
v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain
|
| 17 |
+
one at http://mozilla.org/MPL/2.0/.
|
| 18 |
+
|
| 19 |
+
***** END LICENSE BLOCK *****
|
| 20 |
+
@(#) $RCSfile: certdata.txt,v $ $Revision: 1.80 $ $Date: 2011/11/03 15:11:58 $
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/__pycache__/__about__.cpython-311.pyc
ADDED
|
Binary file (492 Bytes). View file
|
|
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/__pycache__/__init__.cpython-311.pyc
ADDED
|
Binary file (425 Bytes). View file
|
|
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/__pycache__/exceptions.cpython-311.pyc
ADDED
|
Binary file (2.97 kB). View file
|
|
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/__pycache__/fernet.cpython-311.pyc
ADDED
|
Binary file (12.4 kB). View file
|
|
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/__pycache__/utils.cpython-311.pyc
ADDED
|
Binary file (7.42 kB). View file
|
|
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/__init__.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
from __future__ import annotations
|
| 6 |
+
|
| 7 |
+
"""
|
| 8 |
+
Hazardous Materials
|
| 9 |
+
|
| 10 |
+
This is a "Hazardous Materials" module. You should ONLY use it if you're
|
| 11 |
+
100% absolutely sure that you know what you're doing because this module
|
| 12 |
+
is full of land mines, dragons, and dinosaurs with laser guns.
|
| 13 |
+
"""
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/__pycache__/__init__.cpython-311.pyc
ADDED
|
Binary file (273 Bytes). View file
|
|
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/__pycache__/_oid.cpython-311.pyc
ADDED
|
Binary file (21.7 kB). View file
|
|
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/_oid.py
ADDED
|
@@ -0,0 +1,356 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
from __future__ import annotations
|
| 6 |
+
|
| 7 |
+
from cryptography.hazmat.bindings._rust import (
|
| 8 |
+
ObjectIdentifier as ObjectIdentifier,
|
| 9 |
+
)
|
| 10 |
+
from cryptography.hazmat.primitives import hashes
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
class ExtensionOID:
|
| 14 |
+
SUBJECT_DIRECTORY_ATTRIBUTES = ObjectIdentifier("2.5.29.9")
|
| 15 |
+
SUBJECT_KEY_IDENTIFIER = ObjectIdentifier("2.5.29.14")
|
| 16 |
+
KEY_USAGE = ObjectIdentifier("2.5.29.15")
|
| 17 |
+
PRIVATE_KEY_USAGE_PERIOD = ObjectIdentifier("2.5.29.16")
|
| 18 |
+
SUBJECT_ALTERNATIVE_NAME = ObjectIdentifier("2.5.29.17")
|
| 19 |
+
ISSUER_ALTERNATIVE_NAME = ObjectIdentifier("2.5.29.18")
|
| 20 |
+
BASIC_CONSTRAINTS = ObjectIdentifier("2.5.29.19")
|
| 21 |
+
NAME_CONSTRAINTS = ObjectIdentifier("2.5.29.30")
|
| 22 |
+
CRL_DISTRIBUTION_POINTS = ObjectIdentifier("2.5.29.31")
|
| 23 |
+
CERTIFICATE_POLICIES = ObjectIdentifier("2.5.29.32")
|
| 24 |
+
POLICY_MAPPINGS = ObjectIdentifier("2.5.29.33")
|
| 25 |
+
AUTHORITY_KEY_IDENTIFIER = ObjectIdentifier("2.5.29.35")
|
| 26 |
+
POLICY_CONSTRAINTS = ObjectIdentifier("2.5.29.36")
|
| 27 |
+
EXTENDED_KEY_USAGE = ObjectIdentifier("2.5.29.37")
|
| 28 |
+
FRESHEST_CRL = ObjectIdentifier("2.5.29.46")
|
| 29 |
+
INHIBIT_ANY_POLICY = ObjectIdentifier("2.5.29.54")
|
| 30 |
+
ISSUING_DISTRIBUTION_POINT = ObjectIdentifier("2.5.29.28")
|
| 31 |
+
AUTHORITY_INFORMATION_ACCESS = ObjectIdentifier("1.3.6.1.5.5.7.1.1")
|
| 32 |
+
SUBJECT_INFORMATION_ACCESS = ObjectIdentifier("1.3.6.1.5.5.7.1.11")
|
| 33 |
+
OCSP_NO_CHECK = ObjectIdentifier("1.3.6.1.5.5.7.48.1.5")
|
| 34 |
+
TLS_FEATURE = ObjectIdentifier("1.3.6.1.5.5.7.1.24")
|
| 35 |
+
CRL_NUMBER = ObjectIdentifier("2.5.29.20")
|
| 36 |
+
DELTA_CRL_INDICATOR = ObjectIdentifier("2.5.29.27")
|
| 37 |
+
PRECERT_SIGNED_CERTIFICATE_TIMESTAMPS = ObjectIdentifier(
|
| 38 |
+
"1.3.6.1.4.1.11129.2.4.2"
|
| 39 |
+
)
|
| 40 |
+
PRECERT_POISON = ObjectIdentifier("1.3.6.1.4.1.11129.2.4.3")
|
| 41 |
+
SIGNED_CERTIFICATE_TIMESTAMPS = ObjectIdentifier("1.3.6.1.4.1.11129.2.4.5")
|
| 42 |
+
MS_CERTIFICATE_TEMPLATE = ObjectIdentifier("1.3.6.1.4.1.311.21.7")
|
| 43 |
+
ADMISSIONS = ObjectIdentifier("1.3.36.8.3.3")
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
class OCSPExtensionOID:
|
| 47 |
+
NONCE = ObjectIdentifier("1.3.6.1.5.5.7.48.1.2")
|
| 48 |
+
ACCEPTABLE_RESPONSES = ObjectIdentifier("1.3.6.1.5.5.7.48.1.4")
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
class CRLEntryExtensionOID:
|
| 52 |
+
CERTIFICATE_ISSUER = ObjectIdentifier("2.5.29.29")
|
| 53 |
+
CRL_REASON = ObjectIdentifier("2.5.29.21")
|
| 54 |
+
INVALIDITY_DATE = ObjectIdentifier("2.5.29.24")
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
class NameOID:
|
| 58 |
+
COMMON_NAME = ObjectIdentifier("2.5.4.3")
|
| 59 |
+
COUNTRY_NAME = ObjectIdentifier("2.5.4.6")
|
| 60 |
+
LOCALITY_NAME = ObjectIdentifier("2.5.4.7")
|
| 61 |
+
STATE_OR_PROVINCE_NAME = ObjectIdentifier("2.5.4.8")
|
| 62 |
+
STREET_ADDRESS = ObjectIdentifier("2.5.4.9")
|
| 63 |
+
ORGANIZATION_IDENTIFIER = ObjectIdentifier("2.5.4.97")
|
| 64 |
+
ORGANIZATION_NAME = ObjectIdentifier("2.5.4.10")
|
| 65 |
+
ORGANIZATIONAL_UNIT_NAME = ObjectIdentifier("2.5.4.11")
|
| 66 |
+
SERIAL_NUMBER = ObjectIdentifier("2.5.4.5")
|
| 67 |
+
SURNAME = ObjectIdentifier("2.5.4.4")
|
| 68 |
+
GIVEN_NAME = ObjectIdentifier("2.5.4.42")
|
| 69 |
+
TITLE = ObjectIdentifier("2.5.4.12")
|
| 70 |
+
INITIALS = ObjectIdentifier("2.5.4.43")
|
| 71 |
+
GENERATION_QUALIFIER = ObjectIdentifier("2.5.4.44")
|
| 72 |
+
X500_UNIQUE_IDENTIFIER = ObjectIdentifier("2.5.4.45")
|
| 73 |
+
DN_QUALIFIER = ObjectIdentifier("2.5.4.46")
|
| 74 |
+
PSEUDONYM = ObjectIdentifier("2.5.4.65")
|
| 75 |
+
USER_ID = ObjectIdentifier("0.9.2342.19200300.100.1.1")
|
| 76 |
+
DOMAIN_COMPONENT = ObjectIdentifier("0.9.2342.19200300.100.1.25")
|
| 77 |
+
EMAIL_ADDRESS = ObjectIdentifier("1.2.840.113549.1.9.1")
|
| 78 |
+
JURISDICTION_COUNTRY_NAME = ObjectIdentifier("1.3.6.1.4.1.311.60.2.1.3")
|
| 79 |
+
JURISDICTION_LOCALITY_NAME = ObjectIdentifier("1.3.6.1.4.1.311.60.2.1.1")
|
| 80 |
+
JURISDICTION_STATE_OR_PROVINCE_NAME = ObjectIdentifier(
|
| 81 |
+
"1.3.6.1.4.1.311.60.2.1.2"
|
| 82 |
+
)
|
| 83 |
+
BUSINESS_CATEGORY = ObjectIdentifier("2.5.4.15")
|
| 84 |
+
POSTAL_ADDRESS = ObjectIdentifier("2.5.4.16")
|
| 85 |
+
POSTAL_CODE = ObjectIdentifier("2.5.4.17")
|
| 86 |
+
INN = ObjectIdentifier("1.2.643.3.131.1.1")
|
| 87 |
+
OGRN = ObjectIdentifier("1.2.643.100.1")
|
| 88 |
+
SNILS = ObjectIdentifier("1.2.643.100.3")
|
| 89 |
+
UNSTRUCTURED_NAME = ObjectIdentifier("1.2.840.113549.1.9.2")
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
class SignatureAlgorithmOID:
|
| 93 |
+
RSA_WITH_MD5 = ObjectIdentifier("1.2.840.113549.1.1.4")
|
| 94 |
+
RSA_WITH_SHA1 = ObjectIdentifier("1.2.840.113549.1.1.5")
|
| 95 |
+
# This is an alternate OID for RSA with SHA1 that is occasionally seen
|
| 96 |
+
_RSA_WITH_SHA1 = ObjectIdentifier("1.3.14.3.2.29")
|
| 97 |
+
RSA_WITH_SHA224 = ObjectIdentifier("1.2.840.113549.1.1.14")
|
| 98 |
+
RSA_WITH_SHA256 = ObjectIdentifier("1.2.840.113549.1.1.11")
|
| 99 |
+
RSA_WITH_SHA384 = ObjectIdentifier("1.2.840.113549.1.1.12")
|
| 100 |
+
RSA_WITH_SHA512 = ObjectIdentifier("1.2.840.113549.1.1.13")
|
| 101 |
+
RSA_WITH_SHA3_224 = ObjectIdentifier("2.16.840.1.101.3.4.3.13")
|
| 102 |
+
RSA_WITH_SHA3_256 = ObjectIdentifier("2.16.840.1.101.3.4.3.14")
|
| 103 |
+
RSA_WITH_SHA3_384 = ObjectIdentifier("2.16.840.1.101.3.4.3.15")
|
| 104 |
+
RSA_WITH_SHA3_512 = ObjectIdentifier("2.16.840.1.101.3.4.3.16")
|
| 105 |
+
RSASSA_PSS = ObjectIdentifier("1.2.840.113549.1.1.10")
|
| 106 |
+
ECDSA_WITH_SHA1 = ObjectIdentifier("1.2.840.10045.4.1")
|
| 107 |
+
ECDSA_WITH_SHA224 = ObjectIdentifier("1.2.840.10045.4.3.1")
|
| 108 |
+
ECDSA_WITH_SHA256 = ObjectIdentifier("1.2.840.10045.4.3.2")
|
| 109 |
+
ECDSA_WITH_SHA384 = ObjectIdentifier("1.2.840.10045.4.3.3")
|
| 110 |
+
ECDSA_WITH_SHA512 = ObjectIdentifier("1.2.840.10045.4.3.4")
|
| 111 |
+
ECDSA_WITH_SHA3_224 = ObjectIdentifier("2.16.840.1.101.3.4.3.9")
|
| 112 |
+
ECDSA_WITH_SHA3_256 = ObjectIdentifier("2.16.840.1.101.3.4.3.10")
|
| 113 |
+
ECDSA_WITH_SHA3_384 = ObjectIdentifier("2.16.840.1.101.3.4.3.11")
|
| 114 |
+
ECDSA_WITH_SHA3_512 = ObjectIdentifier("2.16.840.1.101.3.4.3.12")
|
| 115 |
+
DSA_WITH_SHA1 = ObjectIdentifier("1.2.840.10040.4.3")
|
| 116 |
+
DSA_WITH_SHA224 = ObjectIdentifier("2.16.840.1.101.3.4.3.1")
|
| 117 |
+
DSA_WITH_SHA256 = ObjectIdentifier("2.16.840.1.101.3.4.3.2")
|
| 118 |
+
DSA_WITH_SHA384 = ObjectIdentifier("2.16.840.1.101.3.4.3.3")
|
| 119 |
+
DSA_WITH_SHA512 = ObjectIdentifier("2.16.840.1.101.3.4.3.4")
|
| 120 |
+
ED25519 = ObjectIdentifier("1.3.101.112")
|
| 121 |
+
ED448 = ObjectIdentifier("1.3.101.113")
|
| 122 |
+
GOSTR3411_94_WITH_3410_2001 = ObjectIdentifier("1.2.643.2.2.3")
|
| 123 |
+
GOSTR3410_2012_WITH_3411_2012_256 = ObjectIdentifier("1.2.643.7.1.1.3.2")
|
| 124 |
+
GOSTR3410_2012_WITH_3411_2012_512 = ObjectIdentifier("1.2.643.7.1.1.3.3")
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
_SIG_OIDS_TO_HASH: dict[ObjectIdentifier, hashes.HashAlgorithm | None] = {
|
| 128 |
+
SignatureAlgorithmOID.RSA_WITH_MD5: hashes.MD5(),
|
| 129 |
+
SignatureAlgorithmOID.RSA_WITH_SHA1: hashes.SHA1(),
|
| 130 |
+
SignatureAlgorithmOID._RSA_WITH_SHA1: hashes.SHA1(),
|
| 131 |
+
SignatureAlgorithmOID.RSA_WITH_SHA224: hashes.SHA224(),
|
| 132 |
+
SignatureAlgorithmOID.RSA_WITH_SHA256: hashes.SHA256(),
|
| 133 |
+
SignatureAlgorithmOID.RSA_WITH_SHA384: hashes.SHA384(),
|
| 134 |
+
SignatureAlgorithmOID.RSA_WITH_SHA512: hashes.SHA512(),
|
| 135 |
+
SignatureAlgorithmOID.RSA_WITH_SHA3_224: hashes.SHA3_224(),
|
| 136 |
+
SignatureAlgorithmOID.RSA_WITH_SHA3_256: hashes.SHA3_256(),
|
| 137 |
+
SignatureAlgorithmOID.RSA_WITH_SHA3_384: hashes.SHA3_384(),
|
| 138 |
+
SignatureAlgorithmOID.RSA_WITH_SHA3_512: hashes.SHA3_512(),
|
| 139 |
+
SignatureAlgorithmOID.ECDSA_WITH_SHA1: hashes.SHA1(),
|
| 140 |
+
SignatureAlgorithmOID.ECDSA_WITH_SHA224: hashes.SHA224(),
|
| 141 |
+
SignatureAlgorithmOID.ECDSA_WITH_SHA256: hashes.SHA256(),
|
| 142 |
+
SignatureAlgorithmOID.ECDSA_WITH_SHA384: hashes.SHA384(),
|
| 143 |
+
SignatureAlgorithmOID.ECDSA_WITH_SHA512: hashes.SHA512(),
|
| 144 |
+
SignatureAlgorithmOID.ECDSA_WITH_SHA3_224: hashes.SHA3_224(),
|
| 145 |
+
SignatureAlgorithmOID.ECDSA_WITH_SHA3_256: hashes.SHA3_256(),
|
| 146 |
+
SignatureAlgorithmOID.ECDSA_WITH_SHA3_384: hashes.SHA3_384(),
|
| 147 |
+
SignatureAlgorithmOID.ECDSA_WITH_SHA3_512: hashes.SHA3_512(),
|
| 148 |
+
SignatureAlgorithmOID.DSA_WITH_SHA1: hashes.SHA1(),
|
| 149 |
+
SignatureAlgorithmOID.DSA_WITH_SHA224: hashes.SHA224(),
|
| 150 |
+
SignatureAlgorithmOID.DSA_WITH_SHA256: hashes.SHA256(),
|
| 151 |
+
SignatureAlgorithmOID.ED25519: None,
|
| 152 |
+
SignatureAlgorithmOID.ED448: None,
|
| 153 |
+
SignatureAlgorithmOID.GOSTR3411_94_WITH_3410_2001: None,
|
| 154 |
+
SignatureAlgorithmOID.GOSTR3410_2012_WITH_3411_2012_256: None,
|
| 155 |
+
SignatureAlgorithmOID.GOSTR3410_2012_WITH_3411_2012_512: None,
|
| 156 |
+
}
|
| 157 |
+
|
| 158 |
+
|
| 159 |
+
class HashAlgorithmOID:
|
| 160 |
+
SHA1 = ObjectIdentifier("1.3.14.3.2.26")
|
| 161 |
+
SHA224 = ObjectIdentifier("2.16.840.1.101.3.4.2.4")
|
| 162 |
+
SHA256 = ObjectIdentifier("2.16.840.1.101.3.4.2.1")
|
| 163 |
+
SHA384 = ObjectIdentifier("2.16.840.1.101.3.4.2.2")
|
| 164 |
+
SHA512 = ObjectIdentifier("2.16.840.1.101.3.4.2.3")
|
| 165 |
+
SHA3_224 = ObjectIdentifier("1.3.6.1.4.1.37476.3.2.1.99.7.224")
|
| 166 |
+
SHA3_256 = ObjectIdentifier("1.3.6.1.4.1.37476.3.2.1.99.7.256")
|
| 167 |
+
SHA3_384 = ObjectIdentifier("1.3.6.1.4.1.37476.3.2.1.99.7.384")
|
| 168 |
+
SHA3_512 = ObjectIdentifier("1.3.6.1.4.1.37476.3.2.1.99.7.512")
|
| 169 |
+
SHA3_224_NIST = ObjectIdentifier("2.16.840.1.101.3.4.2.7")
|
| 170 |
+
SHA3_256_NIST = ObjectIdentifier("2.16.840.1.101.3.4.2.8")
|
| 171 |
+
SHA3_384_NIST = ObjectIdentifier("2.16.840.1.101.3.4.2.9")
|
| 172 |
+
SHA3_512_NIST = ObjectIdentifier("2.16.840.1.101.3.4.2.10")
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
class PublicKeyAlgorithmOID:
|
| 176 |
+
DSA = ObjectIdentifier("1.2.840.10040.4.1")
|
| 177 |
+
EC_PUBLIC_KEY = ObjectIdentifier("1.2.840.10045.2.1")
|
| 178 |
+
RSAES_PKCS1_v1_5 = ObjectIdentifier("1.2.840.113549.1.1.1")
|
| 179 |
+
RSASSA_PSS = ObjectIdentifier("1.2.840.113549.1.1.10")
|
| 180 |
+
X25519 = ObjectIdentifier("1.3.101.110")
|
| 181 |
+
X448 = ObjectIdentifier("1.3.101.111")
|
| 182 |
+
ED25519 = ObjectIdentifier("1.3.101.112")
|
| 183 |
+
ED448 = ObjectIdentifier("1.3.101.113")
|
| 184 |
+
|
| 185 |
+
|
| 186 |
+
class ExtendedKeyUsageOID:
|
| 187 |
+
SERVER_AUTH = ObjectIdentifier("1.3.6.1.5.5.7.3.1")
|
| 188 |
+
CLIENT_AUTH = ObjectIdentifier("1.3.6.1.5.5.7.3.2")
|
| 189 |
+
CODE_SIGNING = ObjectIdentifier("1.3.6.1.5.5.7.3.3")
|
| 190 |
+
EMAIL_PROTECTION = ObjectIdentifier("1.3.6.1.5.5.7.3.4")
|
| 191 |
+
TIME_STAMPING = ObjectIdentifier("1.3.6.1.5.5.7.3.8")
|
| 192 |
+
OCSP_SIGNING = ObjectIdentifier("1.3.6.1.5.5.7.3.9")
|
| 193 |
+
ANY_EXTENDED_KEY_USAGE = ObjectIdentifier("2.5.29.37.0")
|
| 194 |
+
SMARTCARD_LOGON = ObjectIdentifier("1.3.6.1.4.1.311.20.2.2")
|
| 195 |
+
KERBEROS_PKINIT_KDC = ObjectIdentifier("1.3.6.1.5.2.3.5")
|
| 196 |
+
IPSEC_IKE = ObjectIdentifier("1.3.6.1.5.5.7.3.17")
|
| 197 |
+
BUNDLE_SECURITY = ObjectIdentifier("1.3.6.1.5.5.7.3.35")
|
| 198 |
+
CERTIFICATE_TRANSPARENCY = ObjectIdentifier("1.3.6.1.4.1.11129.2.4.4")
|
| 199 |
+
|
| 200 |
+
|
| 201 |
+
class OtherNameFormOID:
|
| 202 |
+
PERMANENT_IDENTIFIER = ObjectIdentifier("1.3.6.1.5.5.7.8.3")
|
| 203 |
+
HW_MODULE_NAME = ObjectIdentifier("1.3.6.1.5.5.7.8.4")
|
| 204 |
+
DNS_SRV = ObjectIdentifier("1.3.6.1.5.5.7.8.7")
|
| 205 |
+
NAI_REALM = ObjectIdentifier("1.3.6.1.5.5.7.8.8")
|
| 206 |
+
SMTP_UTF8_MAILBOX = ObjectIdentifier("1.3.6.1.5.5.7.8.9")
|
| 207 |
+
ACP_NODE_NAME = ObjectIdentifier("1.3.6.1.5.5.7.8.10")
|
| 208 |
+
BUNDLE_EID = ObjectIdentifier("1.3.6.1.5.5.7.8.11")
|
| 209 |
+
|
| 210 |
+
|
| 211 |
+
class AuthorityInformationAccessOID:
|
| 212 |
+
CA_ISSUERS = ObjectIdentifier("1.3.6.1.5.5.7.48.2")
|
| 213 |
+
OCSP = ObjectIdentifier("1.3.6.1.5.5.7.48.1")
|
| 214 |
+
|
| 215 |
+
|
| 216 |
+
class SubjectInformationAccessOID:
|
| 217 |
+
CA_REPOSITORY = ObjectIdentifier("1.3.6.1.5.5.7.48.5")
|
| 218 |
+
|
| 219 |
+
|
| 220 |
+
class CertificatePoliciesOID:
|
| 221 |
+
CPS_QUALIFIER = ObjectIdentifier("1.3.6.1.5.5.7.2.1")
|
| 222 |
+
CPS_USER_NOTICE = ObjectIdentifier("1.3.6.1.5.5.7.2.2")
|
| 223 |
+
ANY_POLICY = ObjectIdentifier("2.5.29.32.0")
|
| 224 |
+
|
| 225 |
+
|
| 226 |
+
class AttributeOID:
|
| 227 |
+
CHALLENGE_PASSWORD = ObjectIdentifier("1.2.840.113549.1.9.7")
|
| 228 |
+
UNSTRUCTURED_NAME = ObjectIdentifier("1.2.840.113549.1.9.2")
|
| 229 |
+
|
| 230 |
+
|
| 231 |
+
_OID_NAMES = {
|
| 232 |
+
NameOID.COMMON_NAME: "commonName",
|
| 233 |
+
NameOID.COUNTRY_NAME: "countryName",
|
| 234 |
+
NameOID.LOCALITY_NAME: "localityName",
|
| 235 |
+
NameOID.STATE_OR_PROVINCE_NAME: "stateOrProvinceName",
|
| 236 |
+
NameOID.STREET_ADDRESS: "streetAddress",
|
| 237 |
+
NameOID.ORGANIZATION_NAME: "organizationName",
|
| 238 |
+
NameOID.ORGANIZATIONAL_UNIT_NAME: "organizationalUnitName",
|
| 239 |
+
NameOID.SERIAL_NUMBER: "serialNumber",
|
| 240 |
+
NameOID.SURNAME: "surname",
|
| 241 |
+
NameOID.GIVEN_NAME: "givenName",
|
| 242 |
+
NameOID.TITLE: "title",
|
| 243 |
+
NameOID.GENERATION_QUALIFIER: "generationQualifier",
|
| 244 |
+
NameOID.X500_UNIQUE_IDENTIFIER: "x500UniqueIdentifier",
|
| 245 |
+
NameOID.DN_QUALIFIER: "dnQualifier",
|
| 246 |
+
NameOID.PSEUDONYM: "pseudonym",
|
| 247 |
+
NameOID.USER_ID: "userID",
|
| 248 |
+
NameOID.DOMAIN_COMPONENT: "domainComponent",
|
| 249 |
+
NameOID.EMAIL_ADDRESS: "emailAddress",
|
| 250 |
+
NameOID.JURISDICTION_COUNTRY_NAME: "jurisdictionCountryName",
|
| 251 |
+
NameOID.JURISDICTION_LOCALITY_NAME: "jurisdictionLocalityName",
|
| 252 |
+
NameOID.JURISDICTION_STATE_OR_PROVINCE_NAME: (
|
| 253 |
+
"jurisdictionStateOrProvinceName"
|
| 254 |
+
),
|
| 255 |
+
NameOID.BUSINESS_CATEGORY: "businessCategory",
|
| 256 |
+
NameOID.POSTAL_ADDRESS: "postalAddress",
|
| 257 |
+
NameOID.POSTAL_CODE: "postalCode",
|
| 258 |
+
NameOID.INN: "INN",
|
| 259 |
+
NameOID.OGRN: "OGRN",
|
| 260 |
+
NameOID.SNILS: "SNILS",
|
| 261 |
+
NameOID.UNSTRUCTURED_NAME: "unstructuredName",
|
| 262 |
+
SignatureAlgorithmOID.RSA_WITH_MD5: "md5WithRSAEncryption",
|
| 263 |
+
SignatureAlgorithmOID.RSA_WITH_SHA1: "sha1WithRSAEncryption",
|
| 264 |
+
SignatureAlgorithmOID.RSA_WITH_SHA224: "sha224WithRSAEncryption",
|
| 265 |
+
SignatureAlgorithmOID.RSA_WITH_SHA256: "sha256WithRSAEncryption",
|
| 266 |
+
SignatureAlgorithmOID.RSA_WITH_SHA384: "sha384WithRSAEncryption",
|
| 267 |
+
SignatureAlgorithmOID.RSA_WITH_SHA512: "sha512WithRSAEncryption",
|
| 268 |
+
SignatureAlgorithmOID.RSASSA_PSS: "rsassaPss",
|
| 269 |
+
SignatureAlgorithmOID.ECDSA_WITH_SHA1: "ecdsa-with-SHA1",
|
| 270 |
+
SignatureAlgorithmOID.ECDSA_WITH_SHA224: "ecdsa-with-SHA224",
|
| 271 |
+
SignatureAlgorithmOID.ECDSA_WITH_SHA256: "ecdsa-with-SHA256",
|
| 272 |
+
SignatureAlgorithmOID.ECDSA_WITH_SHA384: "ecdsa-with-SHA384",
|
| 273 |
+
SignatureAlgorithmOID.ECDSA_WITH_SHA512: "ecdsa-with-SHA512",
|
| 274 |
+
SignatureAlgorithmOID.DSA_WITH_SHA1: "dsa-with-sha1",
|
| 275 |
+
SignatureAlgorithmOID.DSA_WITH_SHA224: "dsa-with-sha224",
|
| 276 |
+
SignatureAlgorithmOID.DSA_WITH_SHA256: "dsa-with-sha256",
|
| 277 |
+
SignatureAlgorithmOID.ED25519: "ed25519",
|
| 278 |
+
SignatureAlgorithmOID.ED448: "ed448",
|
| 279 |
+
SignatureAlgorithmOID.GOSTR3411_94_WITH_3410_2001: (
|
| 280 |
+
"GOST R 34.11-94 with GOST R 34.10-2001"
|
| 281 |
+
),
|
| 282 |
+
SignatureAlgorithmOID.GOSTR3410_2012_WITH_3411_2012_256: (
|
| 283 |
+
"GOST R 34.10-2012 with GOST R 34.11-2012 (256 bit)"
|
| 284 |
+
),
|
| 285 |
+
SignatureAlgorithmOID.GOSTR3410_2012_WITH_3411_2012_512: (
|
| 286 |
+
"GOST R 34.10-2012 with GOST R 34.11-2012 (512 bit)"
|
| 287 |
+
),
|
| 288 |
+
HashAlgorithmOID.SHA1: "sha1",
|
| 289 |
+
HashAlgorithmOID.SHA224: "sha224",
|
| 290 |
+
HashAlgorithmOID.SHA256: "sha256",
|
| 291 |
+
HashAlgorithmOID.SHA384: "sha384",
|
| 292 |
+
HashAlgorithmOID.SHA512: "sha512",
|
| 293 |
+
HashAlgorithmOID.SHA3_224: "sha3_224",
|
| 294 |
+
HashAlgorithmOID.SHA3_256: "sha3_256",
|
| 295 |
+
HashAlgorithmOID.SHA3_384: "sha3_384",
|
| 296 |
+
HashAlgorithmOID.SHA3_512: "sha3_512",
|
| 297 |
+
HashAlgorithmOID.SHA3_224_NIST: "sha3_224",
|
| 298 |
+
HashAlgorithmOID.SHA3_256_NIST: "sha3_256",
|
| 299 |
+
HashAlgorithmOID.SHA3_384_NIST: "sha3_384",
|
| 300 |
+
HashAlgorithmOID.SHA3_512_NIST: "sha3_512",
|
| 301 |
+
PublicKeyAlgorithmOID.DSA: "dsaEncryption",
|
| 302 |
+
PublicKeyAlgorithmOID.EC_PUBLIC_KEY: "id-ecPublicKey",
|
| 303 |
+
PublicKeyAlgorithmOID.RSAES_PKCS1_v1_5: "rsaEncryption",
|
| 304 |
+
PublicKeyAlgorithmOID.X25519: "X25519",
|
| 305 |
+
PublicKeyAlgorithmOID.X448: "X448",
|
| 306 |
+
ExtendedKeyUsageOID.SERVER_AUTH: "serverAuth",
|
| 307 |
+
ExtendedKeyUsageOID.CLIENT_AUTH: "clientAuth",
|
| 308 |
+
ExtendedKeyUsageOID.CODE_SIGNING: "codeSigning",
|
| 309 |
+
ExtendedKeyUsageOID.EMAIL_PROTECTION: "emailProtection",
|
| 310 |
+
ExtendedKeyUsageOID.TIME_STAMPING: "timeStamping",
|
| 311 |
+
ExtendedKeyUsageOID.OCSP_SIGNING: "OCSPSigning",
|
| 312 |
+
ExtendedKeyUsageOID.SMARTCARD_LOGON: "msSmartcardLogin",
|
| 313 |
+
ExtendedKeyUsageOID.KERBEROS_PKINIT_KDC: "pkInitKDC",
|
| 314 |
+
ExtensionOID.SUBJECT_DIRECTORY_ATTRIBUTES: "subjectDirectoryAttributes",
|
| 315 |
+
ExtensionOID.SUBJECT_KEY_IDENTIFIER: "subjectKeyIdentifier",
|
| 316 |
+
ExtensionOID.KEY_USAGE: "keyUsage",
|
| 317 |
+
ExtensionOID.PRIVATE_KEY_USAGE_PERIOD: "privateKeyUsagePeriod",
|
| 318 |
+
ExtensionOID.SUBJECT_ALTERNATIVE_NAME: "subjectAltName",
|
| 319 |
+
ExtensionOID.ISSUER_ALTERNATIVE_NAME: "issuerAltName",
|
| 320 |
+
ExtensionOID.BASIC_CONSTRAINTS: "basicConstraints",
|
| 321 |
+
ExtensionOID.PRECERT_SIGNED_CERTIFICATE_TIMESTAMPS: (
|
| 322 |
+
"signedCertificateTimestampList"
|
| 323 |
+
),
|
| 324 |
+
ExtensionOID.SIGNED_CERTIFICATE_TIMESTAMPS: (
|
| 325 |
+
"signedCertificateTimestampList"
|
| 326 |
+
),
|
| 327 |
+
ExtensionOID.PRECERT_POISON: "ctPoison",
|
| 328 |
+
ExtensionOID.MS_CERTIFICATE_TEMPLATE: "msCertificateTemplate",
|
| 329 |
+
ExtensionOID.ADMISSIONS: "Admissions",
|
| 330 |
+
CRLEntryExtensionOID.CRL_REASON: "cRLReason",
|
| 331 |
+
CRLEntryExtensionOID.INVALIDITY_DATE: "invalidityDate",
|
| 332 |
+
CRLEntryExtensionOID.CERTIFICATE_ISSUER: "certificateIssuer",
|
| 333 |
+
ExtensionOID.NAME_CONSTRAINTS: "nameConstraints",
|
| 334 |
+
ExtensionOID.CRL_DISTRIBUTION_POINTS: "cRLDistributionPoints",
|
| 335 |
+
ExtensionOID.CERTIFICATE_POLICIES: "certificatePolicies",
|
| 336 |
+
ExtensionOID.POLICY_MAPPINGS: "policyMappings",
|
| 337 |
+
ExtensionOID.AUTHORITY_KEY_IDENTIFIER: "authorityKeyIdentifier",
|
| 338 |
+
ExtensionOID.POLICY_CONSTRAINTS: "policyConstraints",
|
| 339 |
+
ExtensionOID.EXTENDED_KEY_USAGE: "extendedKeyUsage",
|
| 340 |
+
ExtensionOID.FRESHEST_CRL: "freshestCRL",
|
| 341 |
+
ExtensionOID.INHIBIT_ANY_POLICY: "inhibitAnyPolicy",
|
| 342 |
+
ExtensionOID.ISSUING_DISTRIBUTION_POINT: "issuingDistributionPoint",
|
| 343 |
+
ExtensionOID.AUTHORITY_INFORMATION_ACCESS: "authorityInfoAccess",
|
| 344 |
+
ExtensionOID.SUBJECT_INFORMATION_ACCESS: "subjectInfoAccess",
|
| 345 |
+
ExtensionOID.OCSP_NO_CHECK: "OCSPNoCheck",
|
| 346 |
+
ExtensionOID.CRL_NUMBER: "cRLNumber",
|
| 347 |
+
ExtensionOID.DELTA_CRL_INDICATOR: "deltaCRLIndicator",
|
| 348 |
+
ExtensionOID.TLS_FEATURE: "TLSFeature",
|
| 349 |
+
AuthorityInformationAccessOID.OCSP: "OCSP",
|
| 350 |
+
AuthorityInformationAccessOID.CA_ISSUERS: "caIssuers",
|
| 351 |
+
SubjectInformationAccessOID.CA_REPOSITORY: "caRepository",
|
| 352 |
+
CertificatePoliciesOID.CPS_QUALIFIER: "id-qt-cps",
|
| 353 |
+
CertificatePoliciesOID.CPS_USER_NOTICE: "id-qt-unotice",
|
| 354 |
+
OCSPExtensionOID.NONCE: "OCSPNonce",
|
| 355 |
+
AttributeOID.CHALLENGE_PASSWORD: "challengePassword",
|
| 356 |
+
}
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/asn1/__init__.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
from cryptography.hazmat.asn1.asn1 import encode_der, sequence
|
| 6 |
+
|
| 7 |
+
__all__ = [
|
| 8 |
+
"encode_der",
|
| 9 |
+
"sequence",
|
| 10 |
+
]
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/asn1/__pycache__/__init__.cpython-311.pyc
ADDED
|
Binary file (357 Bytes). View file
|
|
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/asn1/__pycache__/asn1.cpython-311.pyc
ADDED
|
Binary file (3.87 kB). View file
|
|
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/asn1/asn1.py
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
from __future__ import annotations
|
| 6 |
+
|
| 7 |
+
import dataclasses
|
| 8 |
+
import sys
|
| 9 |
+
import typing
|
| 10 |
+
|
| 11 |
+
if sys.version_info < (3, 11):
|
| 12 |
+
import typing_extensions
|
| 13 |
+
|
| 14 |
+
# We use the `include_extras` parameter of `get_type_hints`, which was
|
| 15 |
+
# added in Python 3.9. This can be replaced by the `typing` version
|
| 16 |
+
# once the min version is >= 3.9
|
| 17 |
+
if sys.version_info < (3, 9):
|
| 18 |
+
get_type_hints = typing_extensions.get_type_hints
|
| 19 |
+
else:
|
| 20 |
+
get_type_hints = typing.get_type_hints
|
| 21 |
+
else:
|
| 22 |
+
get_type_hints = typing.get_type_hints
|
| 23 |
+
|
| 24 |
+
from cryptography.hazmat.bindings._rust import declarative_asn1
|
| 25 |
+
|
| 26 |
+
T = typing.TypeVar("T", covariant=True)
|
| 27 |
+
U = typing.TypeVar("U")
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
encode_der = declarative_asn1.encode_der
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
def _normalize_field_type(
|
| 34 |
+
field_type: typing.Any, field_name: str
|
| 35 |
+
) -> declarative_asn1.AnnotatedType:
|
| 36 |
+
annotation = declarative_asn1.Annotation()
|
| 37 |
+
|
| 38 |
+
if hasattr(field_type, "__asn1_root__"):
|
| 39 |
+
annotated_root = field_type.__asn1_root__
|
| 40 |
+
if not isinstance(annotated_root, declarative_asn1.AnnotatedType):
|
| 41 |
+
raise TypeError(f"unsupported root type: {annotated_root}")
|
| 42 |
+
return annotated_root
|
| 43 |
+
else:
|
| 44 |
+
rust_field_type = declarative_asn1.non_root_python_to_rust(field_type)
|
| 45 |
+
|
| 46 |
+
return declarative_asn1.AnnotatedType(rust_field_type, annotation)
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
def _annotate_fields(
|
| 50 |
+
raw_fields: dict[str, type],
|
| 51 |
+
) -> dict[str, declarative_asn1.AnnotatedType]:
|
| 52 |
+
fields = {}
|
| 53 |
+
for field_name, field_type in raw_fields.items():
|
| 54 |
+
# Recursively normalize the field type into something that the
|
| 55 |
+
# Rust code can understand.
|
| 56 |
+
annotated_field_type = _normalize_field_type(field_type, field_name)
|
| 57 |
+
fields[field_name] = annotated_field_type
|
| 58 |
+
|
| 59 |
+
return fields
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
def _register_asn1_sequence(cls: type[U]) -> None:
|
| 63 |
+
raw_fields = get_type_hints(cls, include_extras=True)
|
| 64 |
+
root = declarative_asn1.AnnotatedType(
|
| 65 |
+
declarative_asn1.Type.Sequence(cls, _annotate_fields(raw_fields)),
|
| 66 |
+
declarative_asn1.Annotation(),
|
| 67 |
+
)
|
| 68 |
+
|
| 69 |
+
setattr(cls, "__asn1_root__", root)
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
# Due to https://github.com/python/mypy/issues/19731, we can't define an alias
|
| 73 |
+
# for `dataclass_transform` that conditionally points to `typing` or
|
| 74 |
+
# `typing_extensions` depending on the Python version (like we do for
|
| 75 |
+
# `get_type_hints`).
|
| 76 |
+
# We work around it by making the whole decorated class conditional on the
|
| 77 |
+
# Python version.
|
| 78 |
+
if sys.version_info < (3, 11):
|
| 79 |
+
|
| 80 |
+
@typing_extensions.dataclass_transform(kw_only_default=True)
|
| 81 |
+
def sequence(cls: type[U]) -> type[U]:
|
| 82 |
+
# We use `dataclasses.dataclass` to add an __init__ method
|
| 83 |
+
# to the class with keyword-only parameters.
|
| 84 |
+
if sys.version_info >= (3, 10):
|
| 85 |
+
dataclass_cls = dataclasses.dataclass(
|
| 86 |
+
repr=False,
|
| 87 |
+
eq=False,
|
| 88 |
+
# `match_args` was added in Python 3.10 and defaults
|
| 89 |
+
# to True
|
| 90 |
+
match_args=False,
|
| 91 |
+
# `kw_only` was added in Python 3.10 and defaults to
|
| 92 |
+
# False
|
| 93 |
+
kw_only=True,
|
| 94 |
+
)(cls)
|
| 95 |
+
else:
|
| 96 |
+
dataclass_cls = dataclasses.dataclass(
|
| 97 |
+
repr=False,
|
| 98 |
+
eq=False,
|
| 99 |
+
)(cls)
|
| 100 |
+
_register_asn1_sequence(dataclass_cls)
|
| 101 |
+
return dataclass_cls
|
| 102 |
+
|
| 103 |
+
else:
|
| 104 |
+
|
| 105 |
+
@typing.dataclass_transform(kw_only_default=True)
|
| 106 |
+
def sequence(cls: type[U]) -> type[U]:
|
| 107 |
+
# Only add an __init__ method, with keyword-only
|
| 108 |
+
# parameters.
|
| 109 |
+
dataclass_cls = dataclasses.dataclass(
|
| 110 |
+
repr=False,
|
| 111 |
+
eq=False,
|
| 112 |
+
match_args=False,
|
| 113 |
+
kw_only=True,
|
| 114 |
+
)(cls)
|
| 115 |
+
_register_asn1_sequence(dataclass_cls)
|
| 116 |
+
return dataclass_cls
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/backends/__init__.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
from __future__ import annotations
|
| 6 |
+
|
| 7 |
+
from typing import Any
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
def default_backend() -> Any:
|
| 11 |
+
from cryptography.hazmat.backends.openssl.backend import backend
|
| 12 |
+
|
| 13 |
+
return backend
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/backends/__pycache__/__init__.cpython-311.pyc
ADDED
|
Binary file (583 Bytes). View file
|
|
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/backends/openssl/__init__.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
from __future__ import annotations
|
| 6 |
+
|
| 7 |
+
from cryptography.hazmat.backends.openssl.backend import backend
|
| 8 |
+
|
| 9 |
+
__all__ = ["backend"]
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/backends/openssl/__pycache__/__init__.cpython-311.pyc
ADDED
|
Binary file (403 Bytes). View file
|
|
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/backends/openssl/__pycache__/backend.cpython-311.pyc
ADDED
|
Binary file (13.8 kB). View file
|
|
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/backends/openssl/backend.py
ADDED
|
@@ -0,0 +1,302 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
from __future__ import annotations
|
| 6 |
+
|
| 7 |
+
from cryptography.hazmat.bindings._rust import openssl as rust_openssl
|
| 8 |
+
from cryptography.hazmat.bindings.openssl import binding
|
| 9 |
+
from cryptography.hazmat.primitives import hashes
|
| 10 |
+
from cryptography.hazmat.primitives._asymmetric import AsymmetricPadding
|
| 11 |
+
from cryptography.hazmat.primitives.asymmetric import ec
|
| 12 |
+
from cryptography.hazmat.primitives.asymmetric import utils as asym_utils
|
| 13 |
+
from cryptography.hazmat.primitives.asymmetric.padding import (
|
| 14 |
+
MGF1,
|
| 15 |
+
OAEP,
|
| 16 |
+
PSS,
|
| 17 |
+
PKCS1v15,
|
| 18 |
+
)
|
| 19 |
+
from cryptography.hazmat.primitives.ciphers import (
|
| 20 |
+
CipherAlgorithm,
|
| 21 |
+
)
|
| 22 |
+
from cryptography.hazmat.primitives.ciphers.algorithms import (
|
| 23 |
+
AES,
|
| 24 |
+
)
|
| 25 |
+
from cryptography.hazmat.primitives.ciphers.modes import (
|
| 26 |
+
CBC,
|
| 27 |
+
Mode,
|
| 28 |
+
)
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
class Backend:
|
| 32 |
+
"""
|
| 33 |
+
OpenSSL API binding interfaces.
|
| 34 |
+
"""
|
| 35 |
+
|
| 36 |
+
name = "openssl"
|
| 37 |
+
|
| 38 |
+
# TripleDES encryption is disallowed/deprecated throughout 2023 in
|
| 39 |
+
# FIPS 140-3. To keep it simple we denylist any use of TripleDES (TDEA).
|
| 40 |
+
_fips_ciphers = (AES,)
|
| 41 |
+
# Sometimes SHA1 is still permissible. That logic is contained
|
| 42 |
+
# within the various *_supported methods.
|
| 43 |
+
_fips_hashes = (
|
| 44 |
+
hashes.SHA224,
|
| 45 |
+
hashes.SHA256,
|
| 46 |
+
hashes.SHA384,
|
| 47 |
+
hashes.SHA512,
|
| 48 |
+
hashes.SHA512_224,
|
| 49 |
+
hashes.SHA512_256,
|
| 50 |
+
hashes.SHA3_224,
|
| 51 |
+
hashes.SHA3_256,
|
| 52 |
+
hashes.SHA3_384,
|
| 53 |
+
hashes.SHA3_512,
|
| 54 |
+
hashes.SHAKE128,
|
| 55 |
+
hashes.SHAKE256,
|
| 56 |
+
)
|
| 57 |
+
_fips_ecdh_curves = (
|
| 58 |
+
ec.SECP224R1,
|
| 59 |
+
ec.SECP256R1,
|
| 60 |
+
ec.SECP384R1,
|
| 61 |
+
ec.SECP521R1,
|
| 62 |
+
)
|
| 63 |
+
_fips_rsa_min_key_size = 2048
|
| 64 |
+
_fips_rsa_min_public_exponent = 65537
|
| 65 |
+
_fips_dsa_min_modulus = 1 << 2048
|
| 66 |
+
_fips_dh_min_key_size = 2048
|
| 67 |
+
_fips_dh_min_modulus = 1 << _fips_dh_min_key_size
|
| 68 |
+
|
| 69 |
+
def __init__(self) -> None:
|
| 70 |
+
self._binding = binding.Binding()
|
| 71 |
+
self._ffi = self._binding.ffi
|
| 72 |
+
self._lib = self._binding.lib
|
| 73 |
+
self._fips_enabled = rust_openssl.is_fips_enabled()
|
| 74 |
+
|
| 75 |
+
def __repr__(self) -> str:
|
| 76 |
+
return (
|
| 77 |
+
f"<OpenSSLBackend(version: {self.openssl_version_text()}, "
|
| 78 |
+
f"FIPS: {self._fips_enabled}, "
|
| 79 |
+
f"Legacy: {rust_openssl._legacy_provider_loaded})>"
|
| 80 |
+
)
|
| 81 |
+
|
| 82 |
+
def openssl_assert(self, ok: bool) -> None:
|
| 83 |
+
return binding._openssl_assert(ok)
|
| 84 |
+
|
| 85 |
+
def _enable_fips(self) -> None:
|
| 86 |
+
# This function enables FIPS mode for OpenSSL 3.0.0 on installs that
|
| 87 |
+
# have the FIPS provider installed properly.
|
| 88 |
+
rust_openssl.enable_fips(rust_openssl._providers)
|
| 89 |
+
assert rust_openssl.is_fips_enabled()
|
| 90 |
+
self._fips_enabled = rust_openssl.is_fips_enabled()
|
| 91 |
+
|
| 92 |
+
def openssl_version_text(self) -> str:
|
| 93 |
+
"""
|
| 94 |
+
Friendly string name of the loaded OpenSSL library. This is not
|
| 95 |
+
necessarily the same version as it was compiled against.
|
| 96 |
+
|
| 97 |
+
Example: OpenSSL 3.2.1 30 Jan 2024
|
| 98 |
+
"""
|
| 99 |
+
return rust_openssl.openssl_version_text()
|
| 100 |
+
|
| 101 |
+
def openssl_version_number(self) -> int:
|
| 102 |
+
return rust_openssl.openssl_version()
|
| 103 |
+
|
| 104 |
+
def hash_supported(self, algorithm: hashes.HashAlgorithm) -> bool:
|
| 105 |
+
if self._fips_enabled and not isinstance(algorithm, self._fips_hashes):
|
| 106 |
+
return False
|
| 107 |
+
|
| 108 |
+
return rust_openssl.hashes.hash_supported(algorithm)
|
| 109 |
+
|
| 110 |
+
def signature_hash_supported(
|
| 111 |
+
self, algorithm: hashes.HashAlgorithm
|
| 112 |
+
) -> bool:
|
| 113 |
+
# Dedicated check for hashing algorithm use in message digest for
|
| 114 |
+
# signatures, e.g. RSA PKCS#1 v1.5 SHA1 (sha1WithRSAEncryption).
|
| 115 |
+
if self._fips_enabled and isinstance(algorithm, hashes.SHA1):
|
| 116 |
+
return False
|
| 117 |
+
return self.hash_supported(algorithm)
|
| 118 |
+
|
| 119 |
+
def scrypt_supported(self) -> bool:
|
| 120 |
+
if self._fips_enabled:
|
| 121 |
+
return False
|
| 122 |
+
else:
|
| 123 |
+
return hasattr(rust_openssl.kdf.Scrypt, "derive")
|
| 124 |
+
|
| 125 |
+
def argon2_supported(self) -> bool:
|
| 126 |
+
if self._fips_enabled:
|
| 127 |
+
return False
|
| 128 |
+
else:
|
| 129 |
+
return hasattr(rust_openssl.kdf.Argon2id, "derive")
|
| 130 |
+
|
| 131 |
+
def hmac_supported(self, algorithm: hashes.HashAlgorithm) -> bool:
|
| 132 |
+
# FIPS mode still allows SHA1 for HMAC
|
| 133 |
+
if self._fips_enabled and isinstance(algorithm, hashes.SHA1):
|
| 134 |
+
return True
|
| 135 |
+
if rust_openssl.CRYPTOGRAPHY_IS_AWSLC:
|
| 136 |
+
return isinstance(
|
| 137 |
+
algorithm,
|
| 138 |
+
(
|
| 139 |
+
hashes.SHA1,
|
| 140 |
+
hashes.SHA224,
|
| 141 |
+
hashes.SHA256,
|
| 142 |
+
hashes.SHA384,
|
| 143 |
+
hashes.SHA512,
|
| 144 |
+
hashes.SHA512_224,
|
| 145 |
+
hashes.SHA512_256,
|
| 146 |
+
),
|
| 147 |
+
)
|
| 148 |
+
return self.hash_supported(algorithm)
|
| 149 |
+
|
| 150 |
+
def cipher_supported(self, cipher: CipherAlgorithm, mode: Mode) -> bool:
|
| 151 |
+
if self._fips_enabled:
|
| 152 |
+
# FIPS mode requires AES. TripleDES is disallowed/deprecated in
|
| 153 |
+
# FIPS 140-3.
|
| 154 |
+
if not isinstance(cipher, self._fips_ciphers):
|
| 155 |
+
return False
|
| 156 |
+
|
| 157 |
+
return rust_openssl.ciphers.cipher_supported(cipher, mode)
|
| 158 |
+
|
| 159 |
+
def pbkdf2_hmac_supported(self, algorithm: hashes.HashAlgorithm) -> bool:
|
| 160 |
+
return self.hmac_supported(algorithm)
|
| 161 |
+
|
| 162 |
+
def _consume_errors(self) -> list[rust_openssl.OpenSSLError]:
|
| 163 |
+
return rust_openssl.capture_error_stack()
|
| 164 |
+
|
| 165 |
+
def _oaep_hash_supported(self, algorithm: hashes.HashAlgorithm) -> bool:
|
| 166 |
+
if self._fips_enabled and isinstance(algorithm, hashes.SHA1):
|
| 167 |
+
return False
|
| 168 |
+
|
| 169 |
+
return isinstance(
|
| 170 |
+
algorithm,
|
| 171 |
+
(
|
| 172 |
+
hashes.SHA1,
|
| 173 |
+
hashes.SHA224,
|
| 174 |
+
hashes.SHA256,
|
| 175 |
+
hashes.SHA384,
|
| 176 |
+
hashes.SHA512,
|
| 177 |
+
),
|
| 178 |
+
)
|
| 179 |
+
|
| 180 |
+
def rsa_padding_supported(self, padding: AsymmetricPadding) -> bool:
|
| 181 |
+
if isinstance(padding, PKCS1v15):
|
| 182 |
+
return True
|
| 183 |
+
elif isinstance(padding, PSS) and isinstance(padding._mgf, MGF1):
|
| 184 |
+
# FIPS 186-4 only allows salt length == digest length for PSS
|
| 185 |
+
# It is technically acceptable to set an explicit salt length
|
| 186 |
+
# equal to the digest length and this will incorrectly fail, but
|
| 187 |
+
# since we don't do that in the tests and this method is
|
| 188 |
+
# private, we'll ignore that until we need to do otherwise.
|
| 189 |
+
if (
|
| 190 |
+
self._fips_enabled
|
| 191 |
+
and padding._salt_length != PSS.DIGEST_LENGTH
|
| 192 |
+
):
|
| 193 |
+
return False
|
| 194 |
+
return self.hash_supported(padding._mgf._algorithm)
|
| 195 |
+
elif isinstance(padding, OAEP) and isinstance(padding._mgf, MGF1):
|
| 196 |
+
return self._oaep_hash_supported(
|
| 197 |
+
padding._mgf._algorithm
|
| 198 |
+
) and self._oaep_hash_supported(padding._algorithm)
|
| 199 |
+
else:
|
| 200 |
+
return False
|
| 201 |
+
|
| 202 |
+
def rsa_encryption_supported(self, padding: AsymmetricPadding) -> bool:
|
| 203 |
+
if self._fips_enabled and isinstance(padding, PKCS1v15):
|
| 204 |
+
return False
|
| 205 |
+
else:
|
| 206 |
+
return self.rsa_padding_supported(padding)
|
| 207 |
+
|
| 208 |
+
def dsa_supported(self) -> bool:
|
| 209 |
+
return (
|
| 210 |
+
not rust_openssl.CRYPTOGRAPHY_IS_BORINGSSL
|
| 211 |
+
and not self._fips_enabled
|
| 212 |
+
)
|
| 213 |
+
|
| 214 |
+
def dsa_hash_supported(self, algorithm: hashes.HashAlgorithm) -> bool:
|
| 215 |
+
if not self.dsa_supported():
|
| 216 |
+
return False
|
| 217 |
+
return self.signature_hash_supported(algorithm)
|
| 218 |
+
|
| 219 |
+
def cmac_algorithm_supported(self, algorithm) -> bool:
|
| 220 |
+
return self.cipher_supported(
|
| 221 |
+
algorithm, CBC(b"\x00" * algorithm.block_size)
|
| 222 |
+
)
|
| 223 |
+
|
| 224 |
+
def elliptic_curve_supported(self, curve: ec.EllipticCurve) -> bool:
|
| 225 |
+
if self._fips_enabled and not isinstance(
|
| 226 |
+
curve, self._fips_ecdh_curves
|
| 227 |
+
):
|
| 228 |
+
return False
|
| 229 |
+
|
| 230 |
+
return rust_openssl.ec.curve_supported(curve)
|
| 231 |
+
|
| 232 |
+
def elliptic_curve_signature_algorithm_supported(
|
| 233 |
+
self,
|
| 234 |
+
signature_algorithm: ec.EllipticCurveSignatureAlgorithm,
|
| 235 |
+
curve: ec.EllipticCurve,
|
| 236 |
+
) -> bool:
|
| 237 |
+
# We only support ECDSA right now.
|
| 238 |
+
if not isinstance(signature_algorithm, ec.ECDSA):
|
| 239 |
+
return False
|
| 240 |
+
|
| 241 |
+
return self.elliptic_curve_supported(curve) and (
|
| 242 |
+
isinstance(signature_algorithm.algorithm, asym_utils.Prehashed)
|
| 243 |
+
or self.hash_supported(signature_algorithm.algorithm)
|
| 244 |
+
)
|
| 245 |
+
|
| 246 |
+
def elliptic_curve_exchange_algorithm_supported(
|
| 247 |
+
self, algorithm: ec.ECDH, curve: ec.EllipticCurve
|
| 248 |
+
) -> bool:
|
| 249 |
+
return self.elliptic_curve_supported(curve) and isinstance(
|
| 250 |
+
algorithm, ec.ECDH
|
| 251 |
+
)
|
| 252 |
+
|
| 253 |
+
def dh_supported(self) -> bool:
|
| 254 |
+
return (
|
| 255 |
+
not rust_openssl.CRYPTOGRAPHY_IS_BORINGSSL
|
| 256 |
+
and not rust_openssl.CRYPTOGRAPHY_IS_AWSLC
|
| 257 |
+
)
|
| 258 |
+
|
| 259 |
+
def dh_x942_serialization_supported(self) -> bool:
|
| 260 |
+
return self._lib.Cryptography_HAS_EVP_PKEY_DHX == 1
|
| 261 |
+
|
| 262 |
+
def x25519_supported(self) -> bool:
|
| 263 |
+
return not self._fips_enabled
|
| 264 |
+
|
| 265 |
+
def x448_supported(self) -> bool:
|
| 266 |
+
if self._fips_enabled:
|
| 267 |
+
return False
|
| 268 |
+
return (
|
| 269 |
+
not rust_openssl.CRYPTOGRAPHY_IS_LIBRESSL
|
| 270 |
+
and not rust_openssl.CRYPTOGRAPHY_IS_BORINGSSL
|
| 271 |
+
and not rust_openssl.CRYPTOGRAPHY_IS_AWSLC
|
| 272 |
+
)
|
| 273 |
+
|
| 274 |
+
def ed25519_supported(self) -> bool:
|
| 275 |
+
return not self._fips_enabled
|
| 276 |
+
|
| 277 |
+
def ed448_supported(self) -> bool:
|
| 278 |
+
if self._fips_enabled:
|
| 279 |
+
return False
|
| 280 |
+
return (
|
| 281 |
+
not rust_openssl.CRYPTOGRAPHY_IS_LIBRESSL
|
| 282 |
+
and not rust_openssl.CRYPTOGRAPHY_IS_BORINGSSL
|
| 283 |
+
and not rust_openssl.CRYPTOGRAPHY_IS_AWSLC
|
| 284 |
+
)
|
| 285 |
+
|
| 286 |
+
def ecdsa_deterministic_supported(self) -> bool:
|
| 287 |
+
return (
|
| 288 |
+
rust_openssl.CRYPTOGRAPHY_OPENSSL_320_OR_GREATER
|
| 289 |
+
and not self._fips_enabled
|
| 290 |
+
)
|
| 291 |
+
|
| 292 |
+
def poly1305_supported(self) -> bool:
|
| 293 |
+
return not self._fips_enabled
|
| 294 |
+
|
| 295 |
+
def pkcs7_supported(self) -> bool:
|
| 296 |
+
return (
|
| 297 |
+
not rust_openssl.CRYPTOGRAPHY_IS_BORINGSSL
|
| 298 |
+
and not rust_openssl.CRYPTOGRAPHY_IS_AWSLC
|
| 299 |
+
)
|
| 300 |
+
|
| 301 |
+
|
| 302 |
+
backend = Backend()
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/__init__.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/__pycache__/__init__.cpython-311.pyc
ADDED
|
Binary file (216 Bytes). View file
|
|
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/__init__.pyi
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
import typing
|
| 6 |
+
|
| 7 |
+
from cryptography.hazmat.primitives import padding
|
| 8 |
+
from cryptography.utils import Buffer
|
| 9 |
+
|
| 10 |
+
class PKCS7PaddingContext(padding.PaddingContext):
|
| 11 |
+
def __init__(self, block_size: int) -> None: ...
|
| 12 |
+
def update(self, data: Buffer) -> bytes: ...
|
| 13 |
+
def finalize(self) -> bytes: ...
|
| 14 |
+
|
| 15 |
+
class ANSIX923PaddingContext(padding.PaddingContext):
|
| 16 |
+
def __init__(self, block_size: int) -> None: ...
|
| 17 |
+
def update(self, data: Buffer) -> bytes: ...
|
| 18 |
+
def finalize(self) -> bytes: ...
|
| 19 |
+
|
| 20 |
+
class PKCS7UnpaddingContext(padding.PaddingContext):
|
| 21 |
+
def __init__(self, block_size: int) -> None: ...
|
| 22 |
+
def update(self, data: Buffer) -> bytes: ...
|
| 23 |
+
def finalize(self) -> bytes: ...
|
| 24 |
+
|
| 25 |
+
class ANSIX923UnpaddingContext(padding.PaddingContext):
|
| 26 |
+
def __init__(self, block_size: int) -> None: ...
|
| 27 |
+
def update(self, data: Buffer) -> bytes: ...
|
| 28 |
+
def finalize(self) -> bytes: ...
|
| 29 |
+
|
| 30 |
+
class ObjectIdentifier:
|
| 31 |
+
def __init__(self, value: str) -> None: ...
|
| 32 |
+
@property
|
| 33 |
+
def dotted_string(self) -> str: ...
|
| 34 |
+
@property
|
| 35 |
+
def _name(self) -> str: ...
|
| 36 |
+
|
| 37 |
+
T = typing.TypeVar("T")
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/_openssl.pyi
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
import typing
|
| 6 |
+
|
| 7 |
+
lib = typing.Any
|
| 8 |
+
ffi = typing.Any
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/asn1.pyi
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
def decode_dss_signature(signature: bytes) -> tuple[int, int]: ...
|
| 6 |
+
def encode_dss_signature(r: int, s: int) -> bytes: ...
|
| 7 |
+
def parse_spki_for_data(data: bytes) -> bytes: ...
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/declarative_asn1.pyi
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
import typing
|
| 5 |
+
|
| 6 |
+
def encode_der(value: typing.Any) -> bytes: ...
|
| 7 |
+
def non_root_python_to_rust(cls: type) -> Type: ...
|
| 8 |
+
|
| 9 |
+
# Type is a Rust enum with tuple variants. For now, we express the type
|
| 10 |
+
# annotations like this:
|
| 11 |
+
class Type:
|
| 12 |
+
Sequence: typing.ClassVar[type]
|
| 13 |
+
PyInt: typing.ClassVar[type]
|
| 14 |
+
|
| 15 |
+
class Annotation:
|
| 16 |
+
def __new__(
|
| 17 |
+
cls,
|
| 18 |
+
) -> Annotation: ...
|
| 19 |
+
|
| 20 |
+
class AnnotatedType:
|
| 21 |
+
inner: Type
|
| 22 |
+
annotation: Annotation
|
| 23 |
+
|
| 24 |
+
def __new__(cls, inner: Type, annotation: Annotation) -> AnnotatedType: ...
|
| 25 |
+
|
| 26 |
+
class AnnotatedTypeObject:
|
| 27 |
+
annotated_type: AnnotatedType
|
| 28 |
+
value: typing.Any
|
| 29 |
+
|
| 30 |
+
def __new__(
|
| 31 |
+
cls, annotated_type: AnnotatedType, value: typing.Any
|
| 32 |
+
) -> AnnotatedTypeObject: ...
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/exceptions.pyi
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
class _Reasons:
|
| 6 |
+
BACKEND_MISSING_INTERFACE: _Reasons
|
| 7 |
+
UNSUPPORTED_HASH: _Reasons
|
| 8 |
+
UNSUPPORTED_CIPHER: _Reasons
|
| 9 |
+
UNSUPPORTED_PADDING: _Reasons
|
| 10 |
+
UNSUPPORTED_MGF: _Reasons
|
| 11 |
+
UNSUPPORTED_PUBLIC_KEY_ALGORITHM: _Reasons
|
| 12 |
+
UNSUPPORTED_ELLIPTIC_CURVE: _Reasons
|
| 13 |
+
UNSUPPORTED_SERIALIZATION: _Reasons
|
| 14 |
+
UNSUPPORTED_X509: _Reasons
|
| 15 |
+
UNSUPPORTED_EXCHANGE_ALGORITHM: _Reasons
|
| 16 |
+
UNSUPPORTED_DIFFIE_HELLMAN: _Reasons
|
| 17 |
+
UNSUPPORTED_MAC: _Reasons
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/ocsp.pyi
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
import datetime
|
| 6 |
+
from collections.abc import Iterator
|
| 7 |
+
|
| 8 |
+
from cryptography import x509
|
| 9 |
+
from cryptography.hazmat.primitives import hashes, serialization
|
| 10 |
+
from cryptography.hazmat.primitives.asymmetric.types import PrivateKeyTypes
|
| 11 |
+
from cryptography.x509 import ocsp
|
| 12 |
+
|
| 13 |
+
class OCSPRequest:
|
| 14 |
+
@property
|
| 15 |
+
def issuer_key_hash(self) -> bytes: ...
|
| 16 |
+
@property
|
| 17 |
+
def issuer_name_hash(self) -> bytes: ...
|
| 18 |
+
@property
|
| 19 |
+
def hash_algorithm(self) -> hashes.HashAlgorithm: ...
|
| 20 |
+
@property
|
| 21 |
+
def serial_number(self) -> int: ...
|
| 22 |
+
def public_bytes(self, encoding: serialization.Encoding) -> bytes: ...
|
| 23 |
+
@property
|
| 24 |
+
def extensions(self) -> x509.Extensions: ...
|
| 25 |
+
|
| 26 |
+
class OCSPResponse:
|
| 27 |
+
@property
|
| 28 |
+
def responses(self) -> Iterator[OCSPSingleResponse]: ...
|
| 29 |
+
@property
|
| 30 |
+
def response_status(self) -> ocsp.OCSPResponseStatus: ...
|
| 31 |
+
@property
|
| 32 |
+
def signature_algorithm_oid(self) -> x509.ObjectIdentifier: ...
|
| 33 |
+
@property
|
| 34 |
+
def signature_hash_algorithm(
|
| 35 |
+
self,
|
| 36 |
+
) -> hashes.HashAlgorithm | None: ...
|
| 37 |
+
@property
|
| 38 |
+
def signature(self) -> bytes: ...
|
| 39 |
+
@property
|
| 40 |
+
def tbs_response_bytes(self) -> bytes: ...
|
| 41 |
+
@property
|
| 42 |
+
def certificates(self) -> list[x509.Certificate]: ...
|
| 43 |
+
@property
|
| 44 |
+
def responder_key_hash(self) -> bytes | None: ...
|
| 45 |
+
@property
|
| 46 |
+
def responder_name(self) -> x509.Name | None: ...
|
| 47 |
+
@property
|
| 48 |
+
def produced_at(self) -> datetime.datetime: ...
|
| 49 |
+
@property
|
| 50 |
+
def produced_at_utc(self) -> datetime.datetime: ...
|
| 51 |
+
@property
|
| 52 |
+
def certificate_status(self) -> ocsp.OCSPCertStatus: ...
|
| 53 |
+
@property
|
| 54 |
+
def revocation_time(self) -> datetime.datetime | None: ...
|
| 55 |
+
@property
|
| 56 |
+
def revocation_time_utc(self) -> datetime.datetime | None: ...
|
| 57 |
+
@property
|
| 58 |
+
def revocation_reason(self) -> x509.ReasonFlags | None: ...
|
| 59 |
+
@property
|
| 60 |
+
def this_update(self) -> datetime.datetime: ...
|
| 61 |
+
@property
|
| 62 |
+
def this_update_utc(self) -> datetime.datetime: ...
|
| 63 |
+
@property
|
| 64 |
+
def next_update(self) -> datetime.datetime | None: ...
|
| 65 |
+
@property
|
| 66 |
+
def next_update_utc(self) -> datetime.datetime | None: ...
|
| 67 |
+
@property
|
| 68 |
+
def issuer_key_hash(self) -> bytes: ...
|
| 69 |
+
@property
|
| 70 |
+
def issuer_name_hash(self) -> bytes: ...
|
| 71 |
+
@property
|
| 72 |
+
def hash_algorithm(self) -> hashes.HashAlgorithm: ...
|
| 73 |
+
@property
|
| 74 |
+
def serial_number(self) -> int: ...
|
| 75 |
+
@property
|
| 76 |
+
def extensions(self) -> x509.Extensions: ...
|
| 77 |
+
@property
|
| 78 |
+
def single_extensions(self) -> x509.Extensions: ...
|
| 79 |
+
def public_bytes(self, encoding: serialization.Encoding) -> bytes: ...
|
| 80 |
+
|
| 81 |
+
class OCSPSingleResponse:
|
| 82 |
+
@property
|
| 83 |
+
def certificate_status(self) -> ocsp.OCSPCertStatus: ...
|
| 84 |
+
@property
|
| 85 |
+
def revocation_time(self) -> datetime.datetime | None: ...
|
| 86 |
+
@property
|
| 87 |
+
def revocation_time_utc(self) -> datetime.datetime | None: ...
|
| 88 |
+
@property
|
| 89 |
+
def revocation_reason(self) -> x509.ReasonFlags | None: ...
|
| 90 |
+
@property
|
| 91 |
+
def this_update(self) -> datetime.datetime: ...
|
| 92 |
+
@property
|
| 93 |
+
def this_update_utc(self) -> datetime.datetime: ...
|
| 94 |
+
@property
|
| 95 |
+
def next_update(self) -> datetime.datetime | None: ...
|
| 96 |
+
@property
|
| 97 |
+
def next_update_utc(self) -> datetime.datetime | None: ...
|
| 98 |
+
@property
|
| 99 |
+
def issuer_key_hash(self) -> bytes: ...
|
| 100 |
+
@property
|
| 101 |
+
def issuer_name_hash(self) -> bytes: ...
|
| 102 |
+
@property
|
| 103 |
+
def hash_algorithm(self) -> hashes.HashAlgorithm: ...
|
| 104 |
+
@property
|
| 105 |
+
def serial_number(self) -> int: ...
|
| 106 |
+
|
| 107 |
+
def load_der_ocsp_request(data: bytes) -> ocsp.OCSPRequest: ...
|
| 108 |
+
def load_der_ocsp_response(data: bytes) -> ocsp.OCSPResponse: ...
|
| 109 |
+
def create_ocsp_request(
|
| 110 |
+
builder: ocsp.OCSPRequestBuilder,
|
| 111 |
+
) -> ocsp.OCSPRequest: ...
|
| 112 |
+
def create_ocsp_response(
|
| 113 |
+
status: ocsp.OCSPResponseStatus,
|
| 114 |
+
builder: ocsp.OCSPResponseBuilder | None,
|
| 115 |
+
private_key: PrivateKeyTypes | None,
|
| 116 |
+
hash_algorithm: hashes.HashAlgorithm | None,
|
| 117 |
+
) -> ocsp.OCSPResponse: ...
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/__init__.pyi
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
import typing
|
| 6 |
+
|
| 7 |
+
from cryptography.hazmat.bindings._rust.openssl import (
|
| 8 |
+
aead,
|
| 9 |
+
ciphers,
|
| 10 |
+
cmac,
|
| 11 |
+
dh,
|
| 12 |
+
dsa,
|
| 13 |
+
ec,
|
| 14 |
+
ed448,
|
| 15 |
+
ed25519,
|
| 16 |
+
hashes,
|
| 17 |
+
hmac,
|
| 18 |
+
kdf,
|
| 19 |
+
keys,
|
| 20 |
+
poly1305,
|
| 21 |
+
rsa,
|
| 22 |
+
x448,
|
| 23 |
+
x25519,
|
| 24 |
+
)
|
| 25 |
+
|
| 26 |
+
__all__ = [
|
| 27 |
+
"aead",
|
| 28 |
+
"ciphers",
|
| 29 |
+
"cmac",
|
| 30 |
+
"dh",
|
| 31 |
+
"dsa",
|
| 32 |
+
"ec",
|
| 33 |
+
"ed448",
|
| 34 |
+
"ed25519",
|
| 35 |
+
"hashes",
|
| 36 |
+
"hmac",
|
| 37 |
+
"kdf",
|
| 38 |
+
"keys",
|
| 39 |
+
"openssl_version",
|
| 40 |
+
"openssl_version_text",
|
| 41 |
+
"poly1305",
|
| 42 |
+
"raise_openssl_error",
|
| 43 |
+
"rsa",
|
| 44 |
+
"x448",
|
| 45 |
+
"x25519",
|
| 46 |
+
]
|
| 47 |
+
|
| 48 |
+
CRYPTOGRAPHY_IS_LIBRESSL: bool
|
| 49 |
+
CRYPTOGRAPHY_IS_BORINGSSL: bool
|
| 50 |
+
CRYPTOGRAPHY_IS_AWSLC: bool
|
| 51 |
+
CRYPTOGRAPHY_OPENSSL_300_OR_GREATER: bool
|
| 52 |
+
CRYPTOGRAPHY_OPENSSL_309_OR_GREATER: bool
|
| 53 |
+
CRYPTOGRAPHY_OPENSSL_320_OR_GREATER: bool
|
| 54 |
+
CRYPTOGRAPHY_OPENSSL_330_OR_GREATER: bool
|
| 55 |
+
CRYPTOGRAPHY_OPENSSL_350_OR_GREATER: bool
|
| 56 |
+
|
| 57 |
+
class Providers: ...
|
| 58 |
+
|
| 59 |
+
_legacy_provider_loaded: bool
|
| 60 |
+
_providers: Providers
|
| 61 |
+
|
| 62 |
+
def openssl_version() -> int: ...
|
| 63 |
+
def openssl_version_text() -> str: ...
|
| 64 |
+
def raise_openssl_error() -> typing.NoReturn: ...
|
| 65 |
+
def capture_error_stack() -> list[OpenSSLError]: ...
|
| 66 |
+
def is_fips_enabled() -> bool: ...
|
| 67 |
+
def enable_fips(providers: Providers) -> None: ...
|
| 68 |
+
|
| 69 |
+
class OpenSSLError:
|
| 70 |
+
@property
|
| 71 |
+
def lib(self) -> int: ...
|
| 72 |
+
@property
|
| 73 |
+
def reason(self) -> int: ...
|
| 74 |
+
@property
|
| 75 |
+
def reason_text(self) -> bytes: ...
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/aead.pyi
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
from collections.abc import Sequence
|
| 6 |
+
|
| 7 |
+
from cryptography.utils import Buffer
|
| 8 |
+
|
| 9 |
+
class AESGCM:
|
| 10 |
+
def __init__(self, key: Buffer) -> None: ...
|
| 11 |
+
@staticmethod
|
| 12 |
+
def generate_key(bit_length: int) -> bytes: ...
|
| 13 |
+
def encrypt(
|
| 14 |
+
self,
|
| 15 |
+
nonce: Buffer,
|
| 16 |
+
data: Buffer,
|
| 17 |
+
associated_data: Buffer | None,
|
| 18 |
+
) -> bytes: ...
|
| 19 |
+
def decrypt(
|
| 20 |
+
self,
|
| 21 |
+
nonce: Buffer,
|
| 22 |
+
data: Buffer,
|
| 23 |
+
associated_data: Buffer | None,
|
| 24 |
+
) -> bytes: ...
|
| 25 |
+
|
| 26 |
+
class ChaCha20Poly1305:
|
| 27 |
+
def __init__(self, key: Buffer) -> None: ...
|
| 28 |
+
@staticmethod
|
| 29 |
+
def generate_key() -> bytes: ...
|
| 30 |
+
def encrypt(
|
| 31 |
+
self,
|
| 32 |
+
nonce: Buffer,
|
| 33 |
+
data: Buffer,
|
| 34 |
+
associated_data: Buffer | None,
|
| 35 |
+
) -> bytes: ...
|
| 36 |
+
def decrypt(
|
| 37 |
+
self,
|
| 38 |
+
nonce: Buffer,
|
| 39 |
+
data: Buffer,
|
| 40 |
+
associated_data: Buffer | None,
|
| 41 |
+
) -> bytes: ...
|
| 42 |
+
|
| 43 |
+
class AESCCM:
|
| 44 |
+
def __init__(self, key: Buffer, tag_length: int = 16) -> None: ...
|
| 45 |
+
@staticmethod
|
| 46 |
+
def generate_key(bit_length: int) -> bytes: ...
|
| 47 |
+
def encrypt(
|
| 48 |
+
self,
|
| 49 |
+
nonce: Buffer,
|
| 50 |
+
data: Buffer,
|
| 51 |
+
associated_data: Buffer | None,
|
| 52 |
+
) -> bytes: ...
|
| 53 |
+
def decrypt(
|
| 54 |
+
self,
|
| 55 |
+
nonce: Buffer,
|
| 56 |
+
data: Buffer,
|
| 57 |
+
associated_data: Buffer | None,
|
| 58 |
+
) -> bytes: ...
|
| 59 |
+
|
| 60 |
+
class AESSIV:
|
| 61 |
+
def __init__(self, key: Buffer) -> None: ...
|
| 62 |
+
@staticmethod
|
| 63 |
+
def generate_key(bit_length: int) -> bytes: ...
|
| 64 |
+
def encrypt(
|
| 65 |
+
self,
|
| 66 |
+
data: Buffer,
|
| 67 |
+
associated_data: Sequence[Buffer] | None,
|
| 68 |
+
) -> bytes: ...
|
| 69 |
+
def decrypt(
|
| 70 |
+
self,
|
| 71 |
+
data: Buffer,
|
| 72 |
+
associated_data: Sequence[Buffer] | None,
|
| 73 |
+
) -> bytes: ...
|
| 74 |
+
|
| 75 |
+
class AESOCB3:
|
| 76 |
+
def __init__(self, key: Buffer) -> None: ...
|
| 77 |
+
@staticmethod
|
| 78 |
+
def generate_key(bit_length: int) -> bytes: ...
|
| 79 |
+
def encrypt(
|
| 80 |
+
self,
|
| 81 |
+
nonce: Buffer,
|
| 82 |
+
data: Buffer,
|
| 83 |
+
associated_data: Buffer | None,
|
| 84 |
+
) -> bytes: ...
|
| 85 |
+
def decrypt(
|
| 86 |
+
self,
|
| 87 |
+
nonce: Buffer,
|
| 88 |
+
data: Buffer,
|
| 89 |
+
associated_data: Buffer | None,
|
| 90 |
+
) -> bytes: ...
|
| 91 |
+
|
| 92 |
+
class AESGCMSIV:
|
| 93 |
+
def __init__(self, key: Buffer) -> None: ...
|
| 94 |
+
@staticmethod
|
| 95 |
+
def generate_key(bit_length: int) -> bytes: ...
|
| 96 |
+
def encrypt(
|
| 97 |
+
self,
|
| 98 |
+
nonce: Buffer,
|
| 99 |
+
data: Buffer,
|
| 100 |
+
associated_data: Buffer | None,
|
| 101 |
+
) -> bytes: ...
|
| 102 |
+
def decrypt(
|
| 103 |
+
self,
|
| 104 |
+
nonce: Buffer,
|
| 105 |
+
data: Buffer,
|
| 106 |
+
associated_data: Buffer | None,
|
| 107 |
+
) -> bytes: ...
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/ciphers.pyi
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
import typing
|
| 6 |
+
|
| 7 |
+
from cryptography.hazmat.primitives import ciphers
|
| 8 |
+
from cryptography.hazmat.primitives.ciphers import modes
|
| 9 |
+
|
| 10 |
+
@typing.overload
|
| 11 |
+
def create_encryption_ctx(
|
| 12 |
+
algorithm: ciphers.CipherAlgorithm, mode: modes.ModeWithAuthenticationTag
|
| 13 |
+
) -> ciphers.AEADEncryptionContext: ...
|
| 14 |
+
@typing.overload
|
| 15 |
+
def create_encryption_ctx(
|
| 16 |
+
algorithm: ciphers.CipherAlgorithm, mode: modes.Mode | None
|
| 17 |
+
) -> ciphers.CipherContext: ...
|
| 18 |
+
@typing.overload
|
| 19 |
+
def create_decryption_ctx(
|
| 20 |
+
algorithm: ciphers.CipherAlgorithm, mode: modes.ModeWithAuthenticationTag
|
| 21 |
+
) -> ciphers.AEADDecryptionContext: ...
|
| 22 |
+
@typing.overload
|
| 23 |
+
def create_decryption_ctx(
|
| 24 |
+
algorithm: ciphers.CipherAlgorithm, mode: modes.Mode | None
|
| 25 |
+
) -> ciphers.CipherContext: ...
|
| 26 |
+
def cipher_supported(
|
| 27 |
+
algorithm: ciphers.CipherAlgorithm, mode: modes.Mode
|
| 28 |
+
) -> bool: ...
|
| 29 |
+
def _advance(
|
| 30 |
+
ctx: ciphers.AEADEncryptionContext | ciphers.AEADDecryptionContext, n: int
|
| 31 |
+
) -> None: ...
|
| 32 |
+
def _advance_aad(
|
| 33 |
+
ctx: ciphers.AEADEncryptionContext | ciphers.AEADDecryptionContext, n: int
|
| 34 |
+
) -> None: ...
|
| 35 |
+
|
| 36 |
+
class CipherContext: ...
|
| 37 |
+
class AEADEncryptionContext: ...
|
| 38 |
+
class AEADDecryptionContext: ...
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/cmac.pyi
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
import typing
|
| 6 |
+
|
| 7 |
+
from cryptography.hazmat.primitives import ciphers
|
| 8 |
+
|
| 9 |
+
class CMAC:
|
| 10 |
+
def __init__(
|
| 11 |
+
self,
|
| 12 |
+
algorithm: ciphers.BlockCipherAlgorithm,
|
| 13 |
+
backend: typing.Any = None,
|
| 14 |
+
) -> None: ...
|
| 15 |
+
def update(self, data: bytes) -> None: ...
|
| 16 |
+
def finalize(self) -> bytes: ...
|
| 17 |
+
def verify(self, signature: bytes) -> None: ...
|
| 18 |
+
def copy(self) -> CMAC: ...
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/dh.pyi
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
import typing
|
| 6 |
+
|
| 7 |
+
from cryptography.hazmat.primitives.asymmetric import dh
|
| 8 |
+
|
| 9 |
+
MIN_MODULUS_SIZE: int
|
| 10 |
+
|
| 11 |
+
class DHPrivateKey: ...
|
| 12 |
+
class DHPublicKey: ...
|
| 13 |
+
class DHParameters: ...
|
| 14 |
+
|
| 15 |
+
class DHPrivateNumbers:
|
| 16 |
+
def __init__(self, x: int, public_numbers: DHPublicNumbers) -> None: ...
|
| 17 |
+
def private_key(self, backend: typing.Any = None) -> dh.DHPrivateKey: ...
|
| 18 |
+
@property
|
| 19 |
+
def x(self) -> int: ...
|
| 20 |
+
@property
|
| 21 |
+
def public_numbers(self) -> DHPublicNumbers: ...
|
| 22 |
+
|
| 23 |
+
class DHPublicNumbers:
|
| 24 |
+
def __init__(
|
| 25 |
+
self, y: int, parameter_numbers: DHParameterNumbers
|
| 26 |
+
) -> None: ...
|
| 27 |
+
def public_key(self, backend: typing.Any = None) -> dh.DHPublicKey: ...
|
| 28 |
+
@property
|
| 29 |
+
def y(self) -> int: ...
|
| 30 |
+
@property
|
| 31 |
+
def parameter_numbers(self) -> DHParameterNumbers: ...
|
| 32 |
+
|
| 33 |
+
class DHParameterNumbers:
|
| 34 |
+
def __init__(self, p: int, g: int, q: int | None = None) -> None: ...
|
| 35 |
+
def parameters(self, backend: typing.Any = None) -> dh.DHParameters: ...
|
| 36 |
+
@property
|
| 37 |
+
def p(self) -> int: ...
|
| 38 |
+
@property
|
| 39 |
+
def g(self) -> int: ...
|
| 40 |
+
@property
|
| 41 |
+
def q(self) -> int | None: ...
|
| 42 |
+
|
| 43 |
+
def generate_parameters(
|
| 44 |
+
generator: int, key_size: int, backend: typing.Any = None
|
| 45 |
+
) -> dh.DHParameters: ...
|
| 46 |
+
def from_pem_parameters(
|
| 47 |
+
data: bytes, backend: typing.Any = None
|
| 48 |
+
) -> dh.DHParameters: ...
|
| 49 |
+
def from_der_parameters(
|
| 50 |
+
data: bytes, backend: typing.Any = None
|
| 51 |
+
) -> dh.DHParameters: ...
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/dsa.pyi
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
import typing
|
| 6 |
+
|
| 7 |
+
from cryptography.hazmat.primitives.asymmetric import dsa
|
| 8 |
+
|
| 9 |
+
class DSAPrivateKey: ...
|
| 10 |
+
class DSAPublicKey: ...
|
| 11 |
+
class DSAParameters: ...
|
| 12 |
+
|
| 13 |
+
class DSAPrivateNumbers:
|
| 14 |
+
def __init__(self, x: int, public_numbers: DSAPublicNumbers) -> None: ...
|
| 15 |
+
@property
|
| 16 |
+
def x(self) -> int: ...
|
| 17 |
+
@property
|
| 18 |
+
def public_numbers(self) -> DSAPublicNumbers: ...
|
| 19 |
+
def private_key(self, backend: typing.Any = None) -> dsa.DSAPrivateKey: ...
|
| 20 |
+
|
| 21 |
+
class DSAPublicNumbers:
|
| 22 |
+
def __init__(
|
| 23 |
+
self, y: int, parameter_numbers: DSAParameterNumbers
|
| 24 |
+
) -> None: ...
|
| 25 |
+
@property
|
| 26 |
+
def y(self) -> int: ...
|
| 27 |
+
@property
|
| 28 |
+
def parameter_numbers(self) -> DSAParameterNumbers: ...
|
| 29 |
+
def public_key(self, backend: typing.Any = None) -> dsa.DSAPublicKey: ...
|
| 30 |
+
|
| 31 |
+
class DSAParameterNumbers:
|
| 32 |
+
def __init__(self, p: int, q: int, g: int) -> None: ...
|
| 33 |
+
@property
|
| 34 |
+
def p(self) -> int: ...
|
| 35 |
+
@property
|
| 36 |
+
def q(self) -> int: ...
|
| 37 |
+
@property
|
| 38 |
+
def g(self) -> int: ...
|
| 39 |
+
def parameters(self, backend: typing.Any = None) -> dsa.DSAParameters: ...
|
| 40 |
+
|
| 41 |
+
def generate_parameters(key_size: int) -> dsa.DSAParameters: ...
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/ec.pyi
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
import typing
|
| 6 |
+
|
| 7 |
+
from cryptography.hazmat.primitives.asymmetric import ec
|
| 8 |
+
|
| 9 |
+
class ECPrivateKey: ...
|
| 10 |
+
class ECPublicKey: ...
|
| 11 |
+
|
| 12 |
+
class EllipticCurvePrivateNumbers:
|
| 13 |
+
def __init__(
|
| 14 |
+
self, private_value: int, public_numbers: EllipticCurvePublicNumbers
|
| 15 |
+
) -> None: ...
|
| 16 |
+
def private_key(
|
| 17 |
+
self, backend: typing.Any = None
|
| 18 |
+
) -> ec.EllipticCurvePrivateKey: ...
|
| 19 |
+
@property
|
| 20 |
+
def private_value(self) -> int: ...
|
| 21 |
+
@property
|
| 22 |
+
def public_numbers(self) -> EllipticCurvePublicNumbers: ...
|
| 23 |
+
|
| 24 |
+
class EllipticCurvePublicNumbers:
|
| 25 |
+
def __init__(self, x: int, y: int, curve: ec.EllipticCurve) -> None: ...
|
| 26 |
+
def public_key(
|
| 27 |
+
self, backend: typing.Any = None
|
| 28 |
+
) -> ec.EllipticCurvePublicKey: ...
|
| 29 |
+
@property
|
| 30 |
+
def x(self) -> int: ...
|
| 31 |
+
@property
|
| 32 |
+
def y(self) -> int: ...
|
| 33 |
+
@property
|
| 34 |
+
def curve(self) -> ec.EllipticCurve: ...
|
| 35 |
+
def __eq__(self, other: object) -> bool: ...
|
| 36 |
+
|
| 37 |
+
def curve_supported(curve: ec.EllipticCurve) -> bool: ...
|
| 38 |
+
def generate_private_key(
|
| 39 |
+
curve: ec.EllipticCurve, backend: typing.Any = None
|
| 40 |
+
) -> ec.EllipticCurvePrivateKey: ...
|
| 41 |
+
def from_private_numbers(
|
| 42 |
+
numbers: ec.EllipticCurvePrivateNumbers,
|
| 43 |
+
) -> ec.EllipticCurvePrivateKey: ...
|
| 44 |
+
def from_public_numbers(
|
| 45 |
+
numbers: ec.EllipticCurvePublicNumbers,
|
| 46 |
+
) -> ec.EllipticCurvePublicKey: ...
|
| 47 |
+
def from_public_bytes(
|
| 48 |
+
curve: ec.EllipticCurve, data: bytes
|
| 49 |
+
) -> ec.EllipticCurvePublicKey: ...
|
| 50 |
+
def derive_private_key(
|
| 51 |
+
private_value: int, curve: ec.EllipticCurve
|
| 52 |
+
) -> ec.EllipticCurvePrivateKey: ...
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/ed25519.pyi
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
from cryptography.hazmat.primitives.asymmetric import ed25519
|
| 6 |
+
from cryptography.utils import Buffer
|
| 7 |
+
|
| 8 |
+
class Ed25519PrivateKey: ...
|
| 9 |
+
class Ed25519PublicKey: ...
|
| 10 |
+
|
| 11 |
+
def generate_key() -> ed25519.Ed25519PrivateKey: ...
|
| 12 |
+
def from_private_bytes(data: Buffer) -> ed25519.Ed25519PrivateKey: ...
|
| 13 |
+
def from_public_bytes(data: bytes) -> ed25519.Ed25519PublicKey: ...
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/ed448.pyi
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
from cryptography.hazmat.primitives.asymmetric import ed448
|
| 6 |
+
from cryptography.utils import Buffer
|
| 7 |
+
|
| 8 |
+
class Ed448PrivateKey: ...
|
| 9 |
+
class Ed448PublicKey: ...
|
| 10 |
+
|
| 11 |
+
def generate_key() -> ed448.Ed448PrivateKey: ...
|
| 12 |
+
def from_private_bytes(data: Buffer) -> ed448.Ed448PrivateKey: ...
|
| 13 |
+
def from_public_bytes(data: bytes) -> ed448.Ed448PublicKey: ...
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/hashes.pyi
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
import typing
|
| 6 |
+
|
| 7 |
+
from cryptography.hazmat.primitives import hashes
|
| 8 |
+
from cryptography.utils import Buffer
|
| 9 |
+
|
| 10 |
+
class Hash(hashes.HashContext):
|
| 11 |
+
def __init__(
|
| 12 |
+
self, algorithm: hashes.HashAlgorithm, backend: typing.Any = None
|
| 13 |
+
) -> None: ...
|
| 14 |
+
@property
|
| 15 |
+
def algorithm(self) -> hashes.HashAlgorithm: ...
|
| 16 |
+
def update(self, data: Buffer) -> None: ...
|
| 17 |
+
def finalize(self) -> bytes: ...
|
| 18 |
+
def copy(self) -> Hash: ...
|
| 19 |
+
|
| 20 |
+
def hash_supported(algorithm: hashes.HashAlgorithm) -> bool: ...
|
| 21 |
+
|
| 22 |
+
class XOFHash:
|
| 23 |
+
def __init__(self, algorithm: hashes.ExtendableOutputFunction) -> None: ...
|
| 24 |
+
@property
|
| 25 |
+
def algorithm(self) -> hashes.ExtendableOutputFunction: ...
|
| 26 |
+
def update(self, data: Buffer) -> None: ...
|
| 27 |
+
def squeeze(self, length: int) -> bytes: ...
|
| 28 |
+
def copy(self) -> XOFHash: ...
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/hmac.pyi
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
import typing
|
| 6 |
+
|
| 7 |
+
from cryptography.hazmat.primitives import hashes
|
| 8 |
+
from cryptography.utils import Buffer
|
| 9 |
+
|
| 10 |
+
class HMAC(hashes.HashContext):
|
| 11 |
+
def __init__(
|
| 12 |
+
self,
|
| 13 |
+
key: Buffer,
|
| 14 |
+
algorithm: hashes.HashAlgorithm,
|
| 15 |
+
backend: typing.Any = None,
|
| 16 |
+
) -> None: ...
|
| 17 |
+
@property
|
| 18 |
+
def algorithm(self) -> hashes.HashAlgorithm: ...
|
| 19 |
+
def update(self, data: Buffer) -> None: ...
|
| 20 |
+
def finalize(self) -> bytes: ...
|
| 21 |
+
def verify(self, signature: bytes) -> None: ...
|
| 22 |
+
def copy(self) -> HMAC: ...
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/kdf.pyi
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
import typing
|
| 6 |
+
|
| 7 |
+
from cryptography.hazmat.primitives.hashes import HashAlgorithm
|
| 8 |
+
from cryptography.utils import Buffer
|
| 9 |
+
|
| 10 |
+
def derive_pbkdf2_hmac(
|
| 11 |
+
key_material: Buffer,
|
| 12 |
+
algorithm: HashAlgorithm,
|
| 13 |
+
salt: bytes,
|
| 14 |
+
iterations: int,
|
| 15 |
+
length: int,
|
| 16 |
+
) -> bytes: ...
|
| 17 |
+
|
| 18 |
+
class Scrypt:
|
| 19 |
+
def __init__(
|
| 20 |
+
self,
|
| 21 |
+
salt: bytes,
|
| 22 |
+
length: int,
|
| 23 |
+
n: int,
|
| 24 |
+
r: int,
|
| 25 |
+
p: int,
|
| 26 |
+
backend: typing.Any = None,
|
| 27 |
+
) -> None: ...
|
| 28 |
+
def derive(self, key_material: Buffer) -> bytes: ...
|
| 29 |
+
def verify(self, key_material: bytes, expected_key: bytes) -> None: ...
|
| 30 |
+
|
| 31 |
+
class Argon2id:
|
| 32 |
+
def __init__(
|
| 33 |
+
self,
|
| 34 |
+
*,
|
| 35 |
+
salt: bytes,
|
| 36 |
+
length: int,
|
| 37 |
+
iterations: int,
|
| 38 |
+
lanes: int,
|
| 39 |
+
memory_cost: int,
|
| 40 |
+
ad: bytes | None = None,
|
| 41 |
+
secret: bytes | None = None,
|
| 42 |
+
) -> None: ...
|
| 43 |
+
def derive(self, key_material: bytes) -> bytes: ...
|
| 44 |
+
def verify(self, key_material: bytes, expected_key: bytes) -> None: ...
|
| 45 |
+
def derive_phc_encoded(self, key_material: bytes) -> str: ...
|
| 46 |
+
@classmethod
|
| 47 |
+
def verify_phc_encoded(
|
| 48 |
+
cls, key_material: bytes, phc_encoded: str, secret: bytes | None = None
|
| 49 |
+
) -> None: ...
|
| 50 |
+
|
| 51 |
+
class HKDF:
|
| 52 |
+
def __init__(
|
| 53 |
+
self,
|
| 54 |
+
algorithm: HashAlgorithm,
|
| 55 |
+
length: int,
|
| 56 |
+
salt: bytes | None,
|
| 57 |
+
info: bytes | None,
|
| 58 |
+
backend: typing.Any = None,
|
| 59 |
+
): ...
|
| 60 |
+
def derive(self, key_material: Buffer) -> bytes: ...
|
| 61 |
+
def verify(self, key_material: bytes, expected_key: bytes) -> None: ...
|
| 62 |
+
|
| 63 |
+
class HKDFExpand:
|
| 64 |
+
def __init__(
|
| 65 |
+
self,
|
| 66 |
+
algorithm: HashAlgorithm,
|
| 67 |
+
length: int,
|
| 68 |
+
info: bytes | None,
|
| 69 |
+
backend: typing.Any = None,
|
| 70 |
+
): ...
|
| 71 |
+
def derive(self, key_material: Buffer) -> bytes: ...
|
| 72 |
+
def verify(self, key_material: bytes, expected_key: bytes) -> None: ...
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/keys.pyi
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
import typing
|
| 6 |
+
|
| 7 |
+
from cryptography.hazmat.primitives.asymmetric.types import (
|
| 8 |
+
PrivateKeyTypes,
|
| 9 |
+
PublicKeyTypes,
|
| 10 |
+
)
|
| 11 |
+
from cryptography.utils import Buffer
|
| 12 |
+
|
| 13 |
+
def load_der_private_key(
|
| 14 |
+
data: Buffer,
|
| 15 |
+
password: bytes | None,
|
| 16 |
+
backend: typing.Any = None,
|
| 17 |
+
*,
|
| 18 |
+
unsafe_skip_rsa_key_validation: bool = False,
|
| 19 |
+
) -> PrivateKeyTypes: ...
|
| 20 |
+
def load_pem_private_key(
|
| 21 |
+
data: Buffer,
|
| 22 |
+
password: bytes | None,
|
| 23 |
+
backend: typing.Any = None,
|
| 24 |
+
*,
|
| 25 |
+
unsafe_skip_rsa_key_validation: bool = False,
|
| 26 |
+
) -> PrivateKeyTypes: ...
|
| 27 |
+
def load_der_public_key(
|
| 28 |
+
data: bytes,
|
| 29 |
+
backend: typing.Any = None,
|
| 30 |
+
) -> PublicKeyTypes: ...
|
| 31 |
+
def load_pem_public_key(
|
| 32 |
+
data: bytes,
|
| 33 |
+
backend: typing.Any = None,
|
| 34 |
+
) -> PublicKeyTypes: ...
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/poly1305.pyi
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
from cryptography.utils import Buffer
|
| 6 |
+
|
| 7 |
+
class Poly1305:
|
| 8 |
+
def __init__(self, key: Buffer) -> None: ...
|
| 9 |
+
@staticmethod
|
| 10 |
+
def generate_tag(key: Buffer, data: Buffer) -> bytes: ...
|
| 11 |
+
@staticmethod
|
| 12 |
+
def verify_tag(key: Buffer, data: Buffer, tag: bytes) -> None: ...
|
| 13 |
+
def update(self, data: Buffer) -> None: ...
|
| 14 |
+
def finalize(self) -> bytes: ...
|
| 15 |
+
def verify(self, tag: bytes) -> None: ...
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/rsa.pyi
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
import typing
|
| 6 |
+
|
| 7 |
+
from cryptography.hazmat.primitives.asymmetric import rsa
|
| 8 |
+
|
| 9 |
+
class RSAPrivateKey: ...
|
| 10 |
+
class RSAPublicKey: ...
|
| 11 |
+
|
| 12 |
+
class RSAPrivateNumbers:
|
| 13 |
+
def __init__(
|
| 14 |
+
self,
|
| 15 |
+
p: int,
|
| 16 |
+
q: int,
|
| 17 |
+
d: int,
|
| 18 |
+
dmp1: int,
|
| 19 |
+
dmq1: int,
|
| 20 |
+
iqmp: int,
|
| 21 |
+
public_numbers: RSAPublicNumbers,
|
| 22 |
+
) -> None: ...
|
| 23 |
+
@property
|
| 24 |
+
def p(self) -> int: ...
|
| 25 |
+
@property
|
| 26 |
+
def q(self) -> int: ...
|
| 27 |
+
@property
|
| 28 |
+
def d(self) -> int: ...
|
| 29 |
+
@property
|
| 30 |
+
def dmp1(self) -> int: ...
|
| 31 |
+
@property
|
| 32 |
+
def dmq1(self) -> int: ...
|
| 33 |
+
@property
|
| 34 |
+
def iqmp(self) -> int: ...
|
| 35 |
+
@property
|
| 36 |
+
def public_numbers(self) -> RSAPublicNumbers: ...
|
| 37 |
+
def private_key(
|
| 38 |
+
self,
|
| 39 |
+
backend: typing.Any = None,
|
| 40 |
+
*,
|
| 41 |
+
unsafe_skip_rsa_key_validation: bool = False,
|
| 42 |
+
) -> rsa.RSAPrivateKey: ...
|
| 43 |
+
|
| 44 |
+
class RSAPublicNumbers:
|
| 45 |
+
def __init__(self, e: int, n: int) -> None: ...
|
| 46 |
+
@property
|
| 47 |
+
def n(self) -> int: ...
|
| 48 |
+
@property
|
| 49 |
+
def e(self) -> int: ...
|
| 50 |
+
def public_key(self, backend: typing.Any = None) -> rsa.RSAPublicKey: ...
|
| 51 |
+
|
| 52 |
+
def generate_private_key(
|
| 53 |
+
public_exponent: int,
|
| 54 |
+
key_size: int,
|
| 55 |
+
) -> rsa.RSAPrivateKey: ...
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/x25519.pyi
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
from cryptography.hazmat.primitives.asymmetric import x25519
|
| 6 |
+
from cryptography.utils import Buffer
|
| 7 |
+
|
| 8 |
+
class X25519PrivateKey: ...
|
| 9 |
+
class X25519PublicKey: ...
|
| 10 |
+
|
| 11 |
+
def generate_key() -> x25519.X25519PrivateKey: ...
|
| 12 |
+
def from_private_bytes(data: Buffer) -> x25519.X25519PrivateKey: ...
|
| 13 |
+
def from_public_bytes(data: bytes) -> x25519.X25519PublicKey: ...
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/openssl/x448.pyi
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
from cryptography.hazmat.primitives.asymmetric import x448
|
| 6 |
+
from cryptography.utils import Buffer
|
| 7 |
+
|
| 8 |
+
class X448PrivateKey: ...
|
| 9 |
+
class X448PublicKey: ...
|
| 10 |
+
|
| 11 |
+
def generate_key() -> x448.X448PrivateKey: ...
|
| 12 |
+
def from_private_bytes(data: Buffer) -> x448.X448PrivateKey: ...
|
| 13 |
+
def from_public_bytes(data: bytes) -> x448.X448PublicKey: ...
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/pkcs12.pyi
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
import typing
|
| 6 |
+
from collections.abc import Iterable
|
| 7 |
+
|
| 8 |
+
from cryptography import x509
|
| 9 |
+
from cryptography.hazmat.primitives.asymmetric.types import PrivateKeyTypes
|
| 10 |
+
from cryptography.hazmat.primitives.serialization import (
|
| 11 |
+
KeySerializationEncryption,
|
| 12 |
+
)
|
| 13 |
+
from cryptography.hazmat.primitives.serialization.pkcs12 import (
|
| 14 |
+
PKCS12KeyAndCertificates,
|
| 15 |
+
PKCS12PrivateKeyTypes,
|
| 16 |
+
)
|
| 17 |
+
from cryptography.utils import Buffer
|
| 18 |
+
|
| 19 |
+
class PKCS12Certificate:
|
| 20 |
+
def __init__(
|
| 21 |
+
self, cert: x509.Certificate, friendly_name: bytes | None
|
| 22 |
+
) -> None: ...
|
| 23 |
+
@property
|
| 24 |
+
def friendly_name(self) -> bytes | None: ...
|
| 25 |
+
@property
|
| 26 |
+
def certificate(self) -> x509.Certificate: ...
|
| 27 |
+
|
| 28 |
+
def load_key_and_certificates(
|
| 29 |
+
data: Buffer,
|
| 30 |
+
password: Buffer | None,
|
| 31 |
+
backend: typing.Any = None,
|
| 32 |
+
) -> tuple[
|
| 33 |
+
PrivateKeyTypes | None,
|
| 34 |
+
x509.Certificate | None,
|
| 35 |
+
list[x509.Certificate],
|
| 36 |
+
]: ...
|
| 37 |
+
def load_pkcs12(
|
| 38 |
+
data: bytes,
|
| 39 |
+
password: bytes | None,
|
| 40 |
+
backend: typing.Any = None,
|
| 41 |
+
) -> PKCS12KeyAndCertificates: ...
|
| 42 |
+
def serialize_java_truststore(
|
| 43 |
+
certs: Iterable[PKCS12Certificate],
|
| 44 |
+
encryption_algorithm: KeySerializationEncryption,
|
| 45 |
+
) -> bytes: ...
|
| 46 |
+
def serialize_key_and_certificates(
|
| 47 |
+
name: bytes | None,
|
| 48 |
+
key: PKCS12PrivateKeyTypes | None,
|
| 49 |
+
cert: x509.Certificate | None,
|
| 50 |
+
cas: Iterable[x509.Certificate | PKCS12Certificate] | None,
|
| 51 |
+
encryption_algorithm: KeySerializationEncryption,
|
| 52 |
+
) -> bytes: ...
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/pkcs7.pyi
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
from collections.abc import Iterable
|
| 6 |
+
|
| 7 |
+
from cryptography import x509
|
| 8 |
+
from cryptography.hazmat.primitives import serialization
|
| 9 |
+
from cryptography.hazmat.primitives.asymmetric import rsa
|
| 10 |
+
from cryptography.hazmat.primitives.serialization import pkcs7
|
| 11 |
+
|
| 12 |
+
def serialize_certificates(
|
| 13 |
+
certs: list[x509.Certificate],
|
| 14 |
+
encoding: serialization.Encoding,
|
| 15 |
+
) -> bytes: ...
|
| 16 |
+
def encrypt_and_serialize(
|
| 17 |
+
builder: pkcs7.PKCS7EnvelopeBuilder,
|
| 18 |
+
content_encryption_algorithm: pkcs7.ContentEncryptionAlgorithm,
|
| 19 |
+
encoding: serialization.Encoding,
|
| 20 |
+
options: Iterable[pkcs7.PKCS7Options],
|
| 21 |
+
) -> bytes: ...
|
| 22 |
+
def sign_and_serialize(
|
| 23 |
+
builder: pkcs7.PKCS7SignatureBuilder,
|
| 24 |
+
encoding: serialization.Encoding,
|
| 25 |
+
options: Iterable[pkcs7.PKCS7Options],
|
| 26 |
+
) -> bytes: ...
|
| 27 |
+
def decrypt_der(
|
| 28 |
+
data: bytes,
|
| 29 |
+
certificate: x509.Certificate,
|
| 30 |
+
private_key: rsa.RSAPrivateKey,
|
| 31 |
+
options: Iterable[pkcs7.PKCS7Options],
|
| 32 |
+
) -> bytes: ...
|
| 33 |
+
def decrypt_pem(
|
| 34 |
+
data: bytes,
|
| 35 |
+
certificate: x509.Certificate,
|
| 36 |
+
private_key: rsa.RSAPrivateKey,
|
| 37 |
+
options: Iterable[pkcs7.PKCS7Options],
|
| 38 |
+
) -> bytes: ...
|
| 39 |
+
def decrypt_smime(
|
| 40 |
+
data: bytes,
|
| 41 |
+
certificate: x509.Certificate,
|
| 42 |
+
private_key: rsa.RSAPrivateKey,
|
| 43 |
+
options: Iterable[pkcs7.PKCS7Options],
|
| 44 |
+
) -> bytes: ...
|
| 45 |
+
def load_pem_pkcs7_certificates(
|
| 46 |
+
data: bytes,
|
| 47 |
+
) -> list[x509.Certificate]: ...
|
| 48 |
+
def load_der_pkcs7_certificates(
|
| 49 |
+
data: bytes,
|
| 50 |
+
) -> list[x509.Certificate]: ...
|
data/conda_envs/evalclaw/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust/test_support.pyi
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
from cryptography import x509
|
| 6 |
+
from cryptography.hazmat.primitives import serialization
|
| 7 |
+
from cryptography.hazmat.primitives.serialization import pkcs7
|
| 8 |
+
from cryptography.utils import Buffer
|
| 9 |
+
|
| 10 |
+
class TestCertificate:
|
| 11 |
+
not_after_tag: int
|
| 12 |
+
not_before_tag: int
|
| 13 |
+
issuer_value_tags: list[int]
|
| 14 |
+
subject_value_tags: list[int]
|
| 15 |
+
|
| 16 |
+
def test_parse_certificate(data: bytes) -> TestCertificate: ...
|
| 17 |
+
def pkcs7_verify(
|
| 18 |
+
encoding: serialization.Encoding,
|
| 19 |
+
sig: bytes,
|
| 20 |
+
msg: Buffer | None,
|
| 21 |
+
certs: list[x509.Certificate],
|
| 22 |
+
options: list[pkcs7.PKCS7Options],
|
| 23 |
+
) -> None: ...
|