This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
forked from zzsnzmn/py-http-signature
-
Notifications
You must be signed in to change notification settings - Fork 20
hs2019 with PSS support #22
Open
fulder
wants to merge
33
commits into
ahknight:master
Choose a base branch
from
fulder:hs2019-support
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In order to be able to decode the PSS message, the salt length need to be known.
This was referenced Aug 25, 2020
+1 |
Default to hash length for salt in PSS
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implement support for new
hs2019
algorithm together with PSS digital signature algorithm in order to follow the latest v12 draftAs the digital signature algorithm should now be derived from the
keyId
both theSigner
andVerifier
classes are now accepting a new (optional)sign_algorithm
parameter which should be a subclass of the newSignAlgorithm
superclass. This way we can easy add support for other digital signature algorithms by adding a custom class (implementing thesign
andverify
functions).This has been implemented in parallel with the previously accepted algorithms (e.g.
rsa-sha256
). This means these algorithms are still supported although a deprecation message is now printed while they are used and they should probably be removed in next major release of this library (together with some cleanup of the 'old' code).The
test_signature
tests has been updated to the newhs2019
with one test left for the deprecatedrsa-sha256
. TheREADME
file has also been updated with the new algorithm.