summaryrefslogtreecommitdiff
path: root/jwt/algorithms.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Changed RSA-PSS algorithm to use the digest size of the hash function for ↵Mark Adams2015-05-191-2/+2
| | | | the salt length instead of the maximum salt length per the JWA spec. Fixes #162.
* Fix python3 and pep8 issuesesneider2015-05-131-1/+1
|
* Fix the ECDSA signature serialization format when using cryptographyesneider2015-05-131-2/+10
|
* Added support for RSASSA-PSS algorithms (PS256, PS384, PS512)Mark Adams2015-04-081-7/+45
|
* Fixed some warnings in algorithms.py related to the relocation of some ↵Mark Adams2015-03-181-5/+11
| | | | cryptography primitives
* Added the ability to specify both a global alg whitelist for a PyJWT object ↵Mark Adams2015-03-171-13/+18
| | | | and a whitelist for calls to decode. (Fixes #107)
* Fix typoJosé Padilla2015-03-171-1/+1
|
* Added tests to cover invalid string validations on HMACMark Adams2015-03-171-1/+7
|
* Corrected a typo in an exception nameMark Adams2015-03-171-1/+1
|
* None algorithm now converts empty string to None prior to validationMark Adams2015-03-171-1/+4
|
* Added a check to raise an error if alg = 'none' and a key is specified. ↵Mark Adams2015-03-171-1/+4
| | | | (Fixes #106)
* Fixed indentation and spacing to pass PEP8Mark Adams2015-03-171-2/+1
|
* Added a check so that asymmetric keys cannot be used as HMAC secrets to fix #105Mark Adams2015-03-171-0/+7
|
* Added back some parenthesis now that I remember how to write PythonMark Adams2015-03-171-3/+3
|
* Removed extra parenthesis around algorithm defaults.Mark Adams2015-03-171-6/+6
|
* Refactored api.py so that all JWT functions are now part of a PyJWT class.Mark Adams2015-03-171-12/+11
| | | | | | | | - Created a singleton instance to preserve jwt.encode, jwt.decode, jwt.register_algorithms existing public APIs - Renamed load and verify_signature to _load and _verify_signature since they are not part of the existing public API - Modified related tests to use PyJWT._load and PyJWT._verify_signature
* Rearranged the way the SHA hash functions were laid out.Mark Adams2015-03-171-6/+11
|
* Made algorithm class dependence on hash functions more direct.Mark Adams2015-03-151-11/+17
| | | | | | | - 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.
* Changed header's alg parameter to be case sensitive per the JWT spec.Mark Adams2015-01-241-1/+1
|
* Added missing `sig` parameter to `sign()` method of the None algorithm.Mark Adams2015-01-241-1/+1
|
* Cleanup __init__ moduleJosé Padilla2015-01-181-2/+2
| | | | | - Expose public API - Move exceptions to separate module - Use relative imports
* Tweak comment blocksJosé Padilla2015-01-181-14/+19
|
* Accidentally replaced a reference to bytes with text_type inadvertantly. ↵Mark Adams2015-01-181-1/+1
| | | | Reverting...
* Replaced reference to basestring with string_types that I missed when ↵Mark Adams2015-01-181-1/+1
| | | | rebasing earlier.
* Added comments for algorithms module and register_algorithm.Mark Adams2015-01-181-0/+30
|
* Fixed a couple of anomalies after the last rebase.Mark Adams2015-01-181-11/+6
|
* Algorithm base class methods now raise NotImplementedErrorMark Adams2015-01-181-3/+3
|
* Fixed some style issues (reordered imports, removed unused imports, PEP8, etc.)Mark Adams2015-01-181-1/+1
|
* Created utils.py to hold functions like constant_time_compare and ↵Mark Adams2015-01-181-27/+2
| | | | base64-encoding
* Fixes #70. Refactored all HMAC, RSA, and EC code into seperate classes in ↵Mark Adams2015-01-181-0/+200
the algorithms module Added register_algorithm to add new algorithms.