Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Specify length in SCRAM deriveKeySignatures #411

Closed

Conversation

petuhovskiy
Copy link
Contributor

Hi! We were playing with this library and tried to use it from the browser. SCRAM implementation didn't work for us and after some investigation, we found a bug in Deno (denoland/deno#16180) which was responsible for the issue.

The bug is that HMAC/SHA-256 object for deriveKey also has an optional length field, which is different in the browser and Deno. After explicitly specifying length: 256, SCRAM works well both in Deno and browser/cloudflare workers.

@Soremwar
Copy link
Collaborator

Merged in #413, thank you @petuhovskiy

@Soremwar Soremwar closed this Oct 19, 2022
@petuhovskiy petuhovskiy deleted the fix/hmac-specify-length branch October 19, 2022 08:10
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants