Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hs2019 with PSS support #12

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open

hs2019 with PSS support #12

wants to merge 20 commits into from

Conversation

fulder
Copy link

@fulder fulder commented Aug 20, 2020

Try implementing hs2019 support (using PSS).

I've been reading through both these drafts:

But still find it a bit confusing on how the digital signature algorithm should be derived from keyId in a good way both at the client and at the server side (funny the same confusion is stated in this appendix B.1.1.1)

Right now I've only added support for PSS algorithm, other algorithms can simply be added by creating new structs in the hs2019.go file. I was thinking that as the client will chose the algorithm and use the correct hs2019 struct, the server can then look up the algorithm in the KeyGetter implementing struct (just like for the key data) and verify the signature using the new GetKeyAlgorithm function (this will be a breaking change for structs implementing this interface today, the whole new draft version feels a bit breaking with the new way of specifying the algorithm).

Hope I haven't misunderstood the new draft version completely, all change requests and help is appreciated.

Related issue: #7

As all the other algorithms have now become deprecated it would probably be a good idea to remove them entirely. But in order to not introduce even more breaking changes I've kept them and just added a deprecation message to update the algorithm to hs2019 if any other version is used. Guess this will also collide with #6

The removal can then be done in a second step (after users of this lib get some time to migrate to the new algorithm)

@McLoone
Copy link

McLoone commented Aug 27, 2020

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants