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

RsaSignature2018 with RSA_PS256 #12

Open
vitorpamplona opened this issue Dec 20, 2021 · 4 comments
Open

RsaSignature2018 with RSA_PS256 #12

vitorpamplona opened this issue Dec 20, 2021 · 4 comments

Comments

@vitorpamplona
Copy link

vitorpamplona commented Dec 20, 2021

Hi all!

I need a version of the RsaSignature2018LdVerifier with PS256 instead of RS256. Should I just send a PR with a copy of this class using a different algorithm name or should the RsaSignature2018LdVerifier itself handle multiple algorithms?

Thanks!

@peacekeeper
Copy link
Member

Hello @vitorpamplona thanks for your comment.

Note that RsaSignature2018 has been marked as outdated: https://github.com/w3c-ccg/lds-rsa2018/

And the specification mentions only RS256, not PS256: https://w3c-ccg.github.io/lds-rsa2018/#the-2018-rsa-signature-suite

So even though both your suggested approaches would work, I think your first approach (use a different algorithm name) would be slightly better. If that works for you, feel free to open a PR!

@vitorpamplona
Copy link
Author

vitorpamplona commented Dec 20, 2021

Note that RsaSignature2018 has been marked as outdated: https://github.com/w3c-ccg/lds-rsa2018/

I know, but we have 1 billion Verifiable QRs (DIVOC) with RsaSignature2018 with PS256 :(

@vitorpamplona
Copy link
Author

vitorpamplona commented Dec 21, 2021

Since the new implementation is not following the spec, I am not sure if it should be merged into this lib. Maybe I just keep it into the app I am building. Thoughts? I am happy to send a quick PR if it makes sense.

@peacekeeper
Copy link
Member

I agree it's probably best to keep in your app, unless you maybe also want to publish a specification of your modified signature suite somewhere.

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

No branches or pull requests

2 participants