| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
This commit implements the FIPS 186-4 recommendation for lower & upper
bounds on p & q, and on a minimum distance |p-q|.
@joostrijneveld and @RichardThiessen I'd appreciate your eyes on this
before it's pushed to master. If you can, please test & give me some
feedback on #98.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
Slightly speed up builds and reduce load on PyPI servers.
For more information, see:
https://docs.travis-ci.com/user/caching/#pip-cache
|
|
|
|
|
|
| |
For details on the new PyPI, see the blog post:
https://pythoninsider.blogspot.ca/2018/04/new-pypi-launched-legacy-pypi-shutting.html
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The wheel package format supports including the license file. This is
done using the [metadata] section in the setup.cfg file. For additional
information on this feature, see:
https://wheel.readthedocs.io/en/stable/index.html#including-the-license-in-the-generated-wheel-file
Helps the project comply with its own license:
> 4. Redistribution. You may reproduce and distribute copies of the Work
> or Derivative Works thereof in any medium, with or without
> modifications, and in Source or Object form, provided that You meet the
> following conditions:
>
> a. You must give any other recipients of the Work or Derivative Works
> a copy of this License; and ...
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
This library is probably not the right place to recommend key sizes
or have discussions about the relation between key sizes and hash
function outputs.
|
| |
|
|
|
|
|
|
|
| |
There is no need to specify this list in PKCS1_v2 when it is
already specified in PKCS1. This does rely on the digest_size
attribute being available, but pkcs1.py already depends heavily
on the specific API of hashlib.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* Use tox-travis to run tox when using TravisCI
* Always run coveralls after TravisCI
It appears coveralls no longer comments twice
|
| |
|
| |
|