summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* language correction and speed-upHEADmainmyheroyuki2023-04-252-18/+5
|
* Replace Travis-CI with Github ActionsSybren A. Stüvel2023-04-231-0/+32
| | | | | | | | Travis-CI stopped working, switching over to Github Actions for automated unit tests. This removes the used of 'coveralls' in the CI pipeline (may come back at some point), and adds testing on pypy 3.8 and 3.9.
* CHANGELOG: include upgrade of mypySybren A. Stüvel2023-04-231-1/+1
|
* rsa/pkcs1.py: Clarify functionality of sign_hash()Moritz Fischer2023-04-231-2/+2
| | | | | | | Clarify functionality that a hash is not computed, rather a precomputed (given) hash is being signed. Signed-off-by: Moritz Fischer <moritzf@google.com>
* modified: Fixed a bug in rsa/core.py where the message should not be ↵Shengkai Sun2023-04-233-1/+30
| | | | | | equals to the modulus modified: Added test cases in tests/test_integers.py
* Bump mypy to 1.2.0Sybren A. Stüvel2023-04-232-23/+16
| | | | | Mypy is an important checker, nice to keep up to date, and it's only a development-time dependency anyway.
* Add recent changes to CHANGELOG.mdSybren A. Stüvel2023-04-231-0/+8
|
* Bumped version to 4.10-dev0Sybren A. Stüvel2023-04-233-5/+5
|
* Upgrade pytest to resolve security issueSybren A. Stüvel2023-04-232-42/+26
| | | | | See https://github.com/pytest-dev/py/issues/287#issuecomment-1290407715 for more info.
* Regenerate poetry.lockSybren A. Stüvel2023-04-231-2/+8
| | | | Just adds a few hashes, nothing more.
* Add support for Python 3.11Daniel Ziegenberg2023-04-233-2/+4
| | | | Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
* Make `AbstractKey` an actual abstract classSybren A. Stüvel2023-04-231-1/+6
| | | | | | | | | Decorate functions that subclassess should implement with `@abc.abstractmethod`. This is to fix a mypy error that'll show up when upgrading mypy. That upgrade will follow shortly -- I just wanted to make sure things keep working.
* Run `poetry update` to re-lock dependenciesSybren A. Stüvel2023-04-231-156/+116
|
* Drop support for Python 3.6Daniel Ziegenberg2022-12-066-11/+3
| | | | Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
* README.md: Final publishing tweaksversion-4.9Sybren A. Stüvel2022-07-201-1/+3
|
* Bumped version to 4.9Sybren A. Stüvel2022-07-202-3/+3
|
* update_version.sh: include README.md in example commit commandSybren A. Stüvel2022-07-201-1/+1
|
* Mark 4.9 as released todaySybren A. Stüvel2022-07-201-1/+1
|
* Fix README.md updating part of update_version.shSybren A. Stüvel2022-07-201-1/+1
| | | | I committed that too soon; it works now.
* Add instructions on how to publish via TwineSybren A. Stüvel2022-07-202-2/+22
| | | | | Make the existing instructions more concrete by including a config file example and the actual commands to install & run Twine.
* Upgrade Sphynx 4.3 -> 5.0.2Sybren A. Stüvel2022-07-202-385/+59
|
* Fix #199: Sphinx warnings reference target not foundSybren A. Stüvel2022-07-203-3/+12
| | | | | | | | | | | | | | | Fix the documentation by adding referenced-but-not-included functions and some other small fixes. The only warnings left are: ``` python-rsa/rsa/key.py:docstring of rsa.key.AbstractKey.load_pkcs1:: WARNING: py:class reference target not found: rsa.key.T python-rsa/rsa/key.py:docstring of rsa.key.AbstractKey.load_pkcs1:: WARNING: py:class reference target not found: rsa.key.T ``` These are due to Sphynx not really understanding `typing` type references. Not sure how to fix those.
* Doc: add `-n` option to Sphinx to show warningsSybren A. Stüvel2022-07-201-2/+1
| | | | This option was shown quite useful in #199.
* Update CHANGELOG.mdSybren A. Stüvel2022-07-201-1/+3
|
* Fix incorrect ordering of public and private keys in test casemyheroyuki2022-07-201-3/+3
|
* Mark 4.9 as released todaySybren A. Stüvel2022-07-151-1/+1
|
* Document package publishing with 2FA + API keysSybren A. Stüvel2022-07-151-0/+12
| | | | | This project has been marked as "critical" on the Python Package Index, which has some implications on the way new versions should be published.
* Cleanup: remove trailing space from docstringSybren A. Stüvel2022-03-131-1/+1
|
* Fix #133: Remove rsa/_compat.pySybren A. Stüvel2022-03-134-139/+1
| | | | | There were very few functions in there, and none of them were actually used by the RSA library (just by the test code).
* Do not include arbitrary files in wheelMichał Górny2022-03-132-2/+6
| | | | | | | | | | Fix the include key to apply to sdist format only. Otherwise, the listed files are added to the top directory of wheel as well and end up being installed in top-level site-packages directory, e.g.: * FILES:+usr/lib/python3.9/site-packages/CHANGELOG.md * FILES:+usr/lib/python3.9/site-packages/LICENSE * FILES:+usr/lib/python3.9/site-packages/README.md
* Bumped version to 4.9-dev0Sybren A. Stüvel2022-03-132-3/+3
|
* Fix CHANGELOG.mdSybren A. Stüvel2022-03-131-3/+8
| | | | I forgot to mark version 4.8 with "released on yyyy-mm-dd".
* Remove overlapping slots from AbstractKey subclassesArie Bovenberg2022-03-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | `PublicKey` and `PrivateKey` both define the `n` and `e` slots, which are already present in their base class. This reduces the benefits of having slots. ```shell $ slotscheck -m rsa -v ERROR: 'rsa.key:PrivateKey' defines overlapping slots. - e (rsa.key:AbstractKey) - n (rsa.key:AbstractKey) ERROR: 'rsa.key:PublicKey' defines overlapping slots. - e (rsa.key:AbstractKey) - n (rsa.key:AbstractKey) ``` The Python docs say: > If a class defines a slot also defined in a base class, the instance > variable defined by the base class slot is inaccessible (except by > retrieving its descriptor directly from the base class). This renders > the meaning of the program undefined.
* Fix #194: Remove debug logging from `rsa/key.py`Sybren A. Stüvel2022-03-132-4/+2
|
* add GitHub URL for PyPiAndrii Oriekhov2022-02-281-0/+1
|
* Tiny fix to Incompatible types in assignmentikeikeikeike / ikedat / Tatsuo Ikeda2022-01-111-3/+6
|
* Update Sphinx to allow docs generation on Python 3.10Sybren A. Stüvel2021-11-242-13/+13
|
* Docs: Fix table layoutSybren A. Stüvel2021-11-241-26/+26
|
* More version bump to 4.8version-4.8Sybren A. Stüvel2021-11-241-2/+2
|
* Fix update_version.sh to follow Black-style formattingSybren A. Stüvel2021-11-241-2/+2
|
* Bumped version to 4.8Sybren A. Stüvel2021-11-241-1/+1
|
* Add compat with py3.10 to changelogSybren A. Stüvel2021-11-241-0/+1
|
* Remove obsolete fileSybren A. Stüvel2021-11-241-43/+0
|
* Fix typosKian-Meng, Ang2021-11-247-10/+10
|
* Update dependencies for Python 3.10 compatibilitySybren A. Stüvel2021-11-242-138/+173
|
* Fix testing with Tox + PoetrySybren A. Stüvel2021-11-241-2/+3
| | | | | Isolated builds are necessary now, and `poetry install` no longer takes `--dev --deploy` options.
* Run 'poetry lock' to bump typed_ast to support Python 3.10Hugo van Kemenade2021-11-031-254/+292
|
* Add support for Python 3.10Hugo van Kemenade2021-11-033-1/+3
|
* Use Chinese Remainder Theorem when decrypting with private keySybren A. Stüvel2021-03-292-1/+13
| | | | | | | Use the Chinese Remainder Theorem when decrypting with private key, as that makes the decryption 2-4x faster. This fixes #163.
* Reformatting with BlackSybren A. Stüvel2021-03-2926-577/+723
| | | | No functional changes.