| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Poetry breaks no-binary installations of the RSA library, which defeats
the purpose of this library.
See https://github.com/sybrenstuvel/python-rsa/issues/148
Among other changes, this reverts commit
fcf5b7457c70426a242b17db20dd4e34e1055f69.
I also added a workaround for an `ImportError` importing `zipp` on
Python 3.5.
|
|
|
|
| |
The newer versions always have a message, even on success.
|
|\ |
|
| |
| |
| |
| |
| | |
This resolves the issue that the files are uploaded to the wrong project
on pypi.org.
|
|/ |
|
| |
|
| |
|
|
|
|
|
|
| |
Supporting Python 3.8 not only required configuring Tox and Travis to
run the tests on that version, but also required updating the
dependencies. Without that update, `pluggy` wouldn't work properly.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Reject cyphertexts that have been modified by prepending zero bytes, by
checking the cyphertext length against the expected size (given the
decryption key). This resolves CVE-2020-13757.
The same approach is used when verifying a signature.
Thanks Carnil for pointing this out on https://github.com/sybrenstuvel/python-rsa/issues/146
|
| |
|
| |
|
|
|
|
| |
This is a requirement for RSA blinding, but wasn't implemented yet.
|
| |
|
|
|
|
|
|
| |
I've overridden the default configuration in such a way that the code as
it is now passes all the code smells checks. Especially the default code
complexity threshold is extremely low.
|
|
|
|
| |
Also reorganised the only function that had a higher complexity.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This is based on https://github.com/sybrenstuvel/python-rsa/pull/96, with
a few improvements:
- The minimum of one use of SHA3 in a unit test, to at least touch it at
some point.
- Documented the support of SHA3.
- Only install the third-party library required by Python 3.5 when we're
running on Python 3.5. Newer Python versions support SHA3 natively.
|
|
|
|
| |
This script updates the Python-RSA version number in various places.
|
|
|
|
|
| |
Poetry generates a setup.py as part of the building process. It's no longer
necessary to keep it in the Git repo.
|
| |
|
| |
|
|
|
|
|
| |
Poetry has a nicer interface, performs more tasks than Pipenv, and is
generally more pleasant to use.
|
|
|
|
|
|
| |
One functional change: `CryptoOperation.read_infile()` now reads bytes
from `sys.stdin` instead of text. This is necessary to be consistent with
the rest of the code, which all deals with bytes.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some of our development dependencies, like Sphinx, have already dropped
support for Python 2. This makes it harder for this project to update
its dependencies. Since Python 2 only has a few more months to live, I
think it's fine to drop support now.
Python 3.4 has already reached its end-of-life date.
Python-RSA now only supports Python 3.5 and newer. Python 3.5 support is
intended to last until its end-of-life date of 2019-09-13:
https://devguide.python.org/#status-of-python-branches
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Shouldn't try to coerce bytes to a string. Instead, print the repr
value (e.g. b'mybytestring').
When running tests with the Python `-b` option, fixes warnings of the
form:
.../python-rsa/tests/test_strings.py:34: BytesWarning: str() on a bytes instance
print("\tMessage: %s" % message)
.../python-rsa/tests/test_strings.py:37: BytesWarning: str() on a bytes instance
print("\tEncrypted: %s" % encrypted)
.../python-rsa/tests/test_strings.py:40: BytesWarning: str() on a bytes instance
print("\tDecrypted: %s" % decrypted)
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Remove `--ignore-pipfile`. This option makes Pipenv install from the
`Pipfile.lock` only, ignoring the `Pipfile` itself. In a sense this is
good, because it tests with the locked dependencies. However, it
breaks when you lock on Python 3.6 but test on Python 3.4 or 2.7.
We'll have to re-visit this when dropping support for older Pythons.
- pypy 3.6 -> 3.5
- Drop `pypy` from Travis CI testing
We still test with 'pypy3.5'. However, Pipenv has an issue with pypy 2.7.
See https://github.com/pypa/pipenv/issues/2449
- Pypy3.5 seems to want pathlib2 when running on Travis CI
|
|
|
|
|
|
|
| |
Python 3.7 is not yet supported by Travis CI.
See https://github.com/travis-ci/travis-ci/issues/9815
Also fixed a mistake in the test config.
|
| |
|
|
|
|
|
| |
The use of nose for testing was previously removed and replaced by
pytest.
|
|
|
| |
"if A and B" if mostly A is True then we should judge B at first
|
| |
|
|
|
|
|
|
| |
In preparation of removal of Python 2.7 support, I only want to have
compatibility code for Python 2.7 in `_compat.py`, and not other kinds
of 'compatibility'.
|
|
|
|
|
|
| |
- Added missing test dependencies.
- Updated `.travis.yml` and `tox.ini` to install deps and run with pipenv.
- Added testing on Python 3.7.
|
| |
|