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

feat(extensions/crypto): implement verify() for RSA #11312

Merged
merged 14 commits into from
Jul 12, 2021

Conversation

littledivy
Copy link
Member

Towards #1891

Introduces SubtleCrypto.verify for RSA algorithms (RSASSA-PKCS1-v1_5 and RSA-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 on SubtleCrypto.importKey.

@lucacasonato
Copy link
Member

Make sure to update supportedAlgorithms.

@littledivy littledivy marked this pull request as ready for review July 8, 2021 06:56
@bartlomieju bartlomieju requested a review from lucacasonato July 8, 2021 10:44
Copy link
Member

@lucacasonato lucacasonato left a 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?

extensions/crypto/00_crypto.js Outdated Show resolved Hide resolved
Copy link
Contributor

@bnoordhuis bnoordhuis left a 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!?

@lucacasonato lucacasonato merged commit 00484d2 into denoland:main Jul 12, 2021
@littledivy littledivy deleted the crypto/verify branch July 12, 2021 13:53
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.

4 participants