summaryrefslogtreecommitdiff
path: root/tests/test_algorithms.py
Commit message (Collapse)AuthorAgeFilesLines
* Run pyupgrade across project to use modern Python 3 conventions (#491)Jon Dufresne2020-06-081-29/+29
| | | | | | | | pyupgrade is a tool to automatically upgrade Python syntax for newer versions of the language. Running pyupgrade removes several Python-2-isms that are no longer necessary now that the project is Python 3 only. https://github.com/asottile/pyupgrade
* DX Tweaks (#450)José Padilla2019-10-211-194/+283
| | | | | | | | | | * Setup pre-commit hooks * Run initial `tox -e lint` * Fix package name * Fix .travis.yml
* Throw if key is an PKCS1 PEM-encoded public keyJosé Padilla2017-06-221-0/+7
|
* Add a failing test for OpenSSH-formatted ECDSA public keysMark Adams2017-03-141-0/+7
|
* Add JWK support for HMAC and RSA keysadd-jwk-for-hmac-rsaMark Adams2016-08-281-25/+245
| | | | | | | - JWKs for RSA and HMAC can be encoded / decoded using the .to_jwk() and .from_jwk() methods on their respective jwt.algorithms instances - Replaced tests.utils ensure_unicode and ensure_bytes with jwt.utils versions
* Fix a bug where a PEM private key as bytes raises a TypeErrorfix-type-error-on-bytes-keyMark Adams2016-08-041-0/+14
|
* Remove some erroenous @pytest.mark.skipif decoratorsmadams/cleanup-test-skipsMark Adams2016-05-051-4/+0
|
* Removed tests that are no longer necessary now that we have test vectors ↵Mark Adams2015-05-191-66/+33
| | | | from RFC 7520
* Removed the @skipif from the RSA-PSS test vector test.Mark Adams2015-05-191-1/+0
|
* Merged master branch in to remove Python 3.2 support and add the newMark Adams2015-05-181-1/+102
|\ | | | | | | test vectors from #160
| * Added test vectors from the IETF JOSE Cookbook for HMAC, RSA, and EC.Mark Adams2015-05-181-1/+102
| |
* | Test signatures with wrong lengthesneider2015-05-151-0/+14
| |
* | Fix the ECDSA signature serialization format when using cryptographyesneider2015-05-131-8/+6
|/
* Removed all references to unittestMark Adams2015-04-141-3/+2
|
* Minor refactorings to move some utils code around and remove unneeded code.Mark Adams2015-04-141-3/+0
|
* Converted all unittest constructs to pytestMark Adams2015-04-141-35/+37
|
* Added a test to improve coverage and cleaned up some existing tests.Mark Adams2015-04-121-9/+9
|
* Added support for RSASSA-PSS algorithms (PS256, PS384, PS512)Mark Adams2015-04-081-7/+65
|
* Fixed a flaky test by making sure we actually make the signature invalid ↵Mark Adams2015-03-181-3/+2
| | | | from within the base64 instead of afterwards.
* Added tests to cover invalid string validations on HMACMark Adams2015-03-171-1/+40
|
* Revived PyCrypto and ecdsa-based algorithms as optional jwt.contrib modules.Mark Adams2015-03-151-10/+10
|
* Made algorithm class dependence on hash functions more direct.Mark Adams2015-03-151-13/+11
| | | | | | | - Algorithms now have SHA256, SHA384, and SHA512 static properties that refer to the callable that instantiates their hash class - All algorithms now expect a class (callable) as their hash_alg now. This behavior was inconsistent before.
* Fixed a typo in the class name for TestAlgorithmsMark Adams2015-01-251-1/+1
|
* Removed json from compat since this only applies to Python < 2.6 and pyjwt ↵Mark Adams2015-01-251-0/+7
| | | | only builds on >= 2.6.
* Made several changes to testing to increase code coverageMark Adams2015-01-251-0/+160
- Added a ton of tests to cover areas that weren't covered before - Added a pep8 tox env to run pep8 tests as part of the build - Moved keys into tests/keys - Added test_algorithms.py for algorithms module tests - Changed setup.py to run all tests in tests/