-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
feat(extensions/crypto): implement verify() for RSA #11312
Conversation
Make sure to update |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JS side LGTM, except a minor comment.
@bnoordhuis could you review the Rust side crypto code?
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
The duplication for the SHA versions is kind of unfortunate. Maybe it's time to break out macro_rules!
?
Towards #1891
Introduces
SubtleCrypto.verify
for RSA algorithms (RSASSA-PKCS1-v1_5
andRSA-PSS
)Originally the plan was to implement all current algorithms supported by
sign()
in this PR but we can't enable WPT for both the methods because it relies onSubtleCrypto.importKey
.