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

fix(ext/crypto): correct HMAC get key length op #16201

Merged
merged 1 commit into from Oct 15, 2022
Merged

fix(ext/crypto): correct HMAC get key length op #16201

merged 1 commit into from Oct 15, 2022

Conversation

panva
Copy link
Contributor

@panva panva commented Oct 7, 2022

fixes #16180

HMAC's get key length op uses the hash function's block size, not output size.

refs cloudflare/workerd#68 (comment)

@panva
Copy link
Contributor Author

panva commented Oct 10, 2022

cc @littledivy

Copy link
Member

@littledivy littledivy left a comment

Choose a reason for hiding this comment

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

LGTM, thank you

@littledivy littledivy merged commit 225d516 into denoland:main Oct 15, 2022
bartlomieju pushed a commit that referenced this pull request Oct 17, 2022
fixes #16180

`HMAC`'s `get key length` `op` uses the hash function's block size, not
output size.

refs
cloudflare/workerd#68 (comment)
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.

crypto.subtle.deriveKey different length arg in deno and browser
2 participants