Skip to content

crypto: use correct webcrypto RSASSA-PKCS1-v1_5 algorithm name#38029

Closed
panva wants to merge 1 commit into
nodejs:masterfrom
panva:fix-rsa1_5-algorithm
Closed

crypto: use correct webcrypto RSASSA-PKCS1-v1_5 algorithm name#38029
panva wants to merge 1 commit into
nodejs:masterfrom
panva:fix-rsa1_5-algorithm

Conversation

@panva

@panva panva commented Apr 1, 2021

Copy link
Copy Markdown
Member

This fixes the algorithm name used in Web Cryptography API.

Correct value is RSASSA-PKCS1-v1_5. The difference is lowercase "v" instead of uppercase "V".

Ref: https://www.w3.org/TR/WebCryptoAPI/#rsassa-pkcs1

@panva panva added crypto Issues and PRs related to the crypto subsystem. webcrypto labels Apr 1, 2021
@panva panva requested a review from jasnell April 1, 2021 20:09
@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Apr 1, 2021
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@panva

panva commented Apr 1, 2021

Copy link
Copy Markdown
Member Author

cc @nodejs/crypto

@panva panva added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. and removed needs-ci PRs that need a full CI run. labels Apr 1, 2021
@panva

panva commented Apr 1, 2021

Copy link
Copy Markdown
Member Author

@jasnell what am i missing here? why are the string changes not enough?

Edit: I see now:

  return { ...algorithm, name: StringPrototypeToUpperCase(name), hash };

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@tniessen tniessen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RSLGTM

panva added a commit that referenced this pull request Apr 3, 2021
@panva

panva commented Apr 3, 2021

Copy link
Copy Markdown
Member Author

Landed in c81d0fa

@panva panva closed this Apr 3, 2021
MylesBorins pushed a commit that referenced this pull request Apr 4, 2021
@MylesBorins MylesBorins mentioned this pull request Apr 4, 2021
MylesBorins pushed a commit that referenced this pull request Apr 5, 2021
@panva panva deleted the fix-rsa1_5-algorithm branch October 13, 2022 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. crypto Issues and PRs related to the crypto subsystem. webcrypto

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants