| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
Previously it wasn't because pypy doesn't support abi3, but maybe the pyo3 feature works.
|
| |
|
|
|
|
|
|
|
| |
* Upgrade to pyo3 0.16
* Upgrade to pyo3 0.17
* Upgrade to pyo3 0.18
|
|
|
| |
One less file?
|
|
|
|
|
| |
* update MSRV 1.48.0 -> 1.56.0
* bump some deps for MSRV
|
|
|
|
|
|
|
|
|
|
|
| |
* drop python 3.6 support
* Update tests/hazmat/bindings/test_openssl.py
Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
---------
Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Python 3.6 compatibility fix.
The capture_output argument to subprocess.run() was not introduced until
Python 3.7. Use stdout=subprocess.PIPE and stderr=subprocess.PIPE instead,
which is equivalent.
* Update pyproject.toml
* Black
---------
Co-authored-by: Matthew Ryan <matt.ryan@nominum.com>
Co-authored-by: Paul Kehrer <paul.l.kehrer@gmail.com>
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add the rustc version to debug assistance output when setup.py fails
* Update setup.py
Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
* Apply formatter, better string manipulation
* Try again with string manipulation
* check=True
* apply formatter
Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
|
| |
|
|
|
| |
URL fragments don't work on the redirects anyway
|
|
|
|
|
|
|
|
|
| |
* try porting over setup.py config
* reduce duplication
* flake
* move long_description, remove more lines from setup.py
|
|
|
|
|
|
| |
Print Python version, platform, setuptools, pip, and setuptools_rust
on failed builds.
Signed-off-by: Christian Heimes <christian@python.org>
|
| |
|
|
|
|
|
| |
* Strict is deprecated
* bump pytest dep
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Remove setuptools_rust from install requirement
setuptools_rust is only required for building cryptography.
Fixes: https://github.com/pyca/cryptography/issues/5778
Signed-off-by: Christian Heimes <cheimes@redhat.com>
* sdist needs setuptools_rust
Signed-off-by: Christian Heimes <cheimes@redhat.com>
|
|
|
|
|
|
|
| |
* Try to assist folks having issues with older pips
* Update setup.py
* Update setup.py
|
| |
|
|
|
| |
fixes #5646
|
|
|
|
|
|
|
|
|
|
| |
* switch to xdist in tox for faster runs
* not using auto to avoid too many processes on local laptops
* we need to use pytest-cov to generate coverage properly now
* these env vars aren't present on no coverage builds
* tox changes
|
|
|
| |
pypy 7.2 is the oldest pypy that supports py3.6
|
|
|
|
|
| |
* Drop Python 2
* Black everything
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Remove Python2 from CI and code that branched on it
* Update setup.py
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* remove
* review feedback
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
|
|
|
| |
fixes https://github.com/pyca/pyopenssl/issues/971
|
| |
|
|
|
|
| |
This is likely futile, but maybe it will slightly help out people who
run into compilation errors and actually choose to look at the output.
|
| |
|
| |
|
|
|
|
|
| |
* remove idna support finally
* remove unused import
|
| |
|
| |
|
|
|
|
|
| |
* ban a sphinxcontrib-spelling version that breaks things
* try bumping the pypy3 version
|
|
|
|
|
|
|
|
|
| |
* ssh.py contains load/serialize code.
* Add PrivateFormat.OpenSSH to .private_bytes() format.
* Add load_ssh_private_key().
* Use new code for PublicFormat.OpenSSH too.
* load_ssh_public_key() now supports reading signed public keys.
* Supported algorithms: rsa, dsa, ec, ed25519.
* Optional dependency on 'bcrypt' package via [ssh] extra
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* drop python 3.4 support
Our dependencies have started dropping support so it is becoming
difficult to test. Additionally, Python 3.4 represents <2% of our
downloads, so taking on a large maintenance burden to maintain support
isn't a good use of limited time. Accordingly, we're dropping testing
infrastructure and migrating our abi3 wheels to py35+.
* use removed instead of dropped
|
|
|
|
|
|
| |
* Fixes #5010 -- test and build 3.8 wheels
* try using isolated_build = True to work around a failure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Remove non-test dependencies on asn1crypto.
cryptography.io actually contains two OpenSSL bindings right now, the
expected cffi one, and an optional one hidden in asn1crypto. asn1crypto
contains a lot of things that cryptography.io doesn't use, including a
BER parser and a hand-rolled and not constant-time EC implementation.
Instead, check in a much small DER-only parser in cryptography/hazmat. A
quick benchmark suggests this parser is also faster than asn1crypto:
from __future__ import absolute_import, division, print_function
import timeit
print(timeit.timeit(
"decode_dss_signature(sig)",
setup=r"""
from cryptography.hazmat.primitives.asymmetric.utils import decode_dss_signature
sig=b"\x30\x2d\x02\x15\x00\xb5\xaf\x30\x78\x67\xfb\x8b\x54\x39\x00\x13\xcc\x67\x02\x0d\xdf\x1f\x2c\x0b\x81\x02\x14\x62\x0d\x3b\x22\xab\x50\x31\x44\x0c\x3e\x35\xea\xb6\xf4\x81\x29\x8f\x9e\x9f\x08"
""",
number=10000))
Python 2.7:
asn1crypto: 0.25
_der.py: 0.098
Python 3.5:
asn1crypto: 0.17
_der.py: 0.10
* Remove test dependencies on asn1crypto.
The remaining use of asn1crypto was some sanity-checking of
Certificates. Add a minimal X.509 parser to extract the relevant fields.
* Add a read_single_element helper function.
The outermost read is a little tedious.
* Address flake8 warnings
* Fix test for long-form vs short-form lengths.
Testing a zero length trips both this check and the non-minimal long
form check. Use a one-byte length to cover the missing branch.
* Remove support for negative integers.
These never come up in valid signatures. Note, however, this does
change public API.
* Update src/cryptography/hazmat/primitives/asymmetric/utils.py
Co-Authored-By: Alex Gaynor <alex.gaynor@gmail.com>
* Review comments
* Avoid hardcoding the serialization of NULL in decode_asn1.py too.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Drop setup.py test support.
It's fragile and relies on eggs. While our downstream redistributors don't love this (sorry!), it seems like the right tradeoff.
* Remove unused
* Added a changelog entry
* typo
* line length
|
|
|
| |
It already defaults to x-rst, but this silences a warning
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* allow bytearrays for key/iv for symmetric encryption
* bump pypy/cffi requirements
* update docs, fix some tests
* old openssl is naught but pain
* revert a typo
* use trusty for old pypy
* better error msg again
* restore match
|