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] return valid values on multi-byte-wide TypedArray input #19

Merged
merged 1 commit into from
Nov 24, 2024

Conversation

ChALkeR
Copy link
Contributor

@ChALkeR ChALkeR commented Nov 19, 2024

Port of browserify/cipher-base#23 to hash-base with minor code cleanup

This technically would have been a Feat, but Node.js handles it, and this module declares support for the same API as Node.js crypto in the readme

So, a Fix

.update input is converted to Buffer for all supported types and is passed to ._update as a buffer, so this doesn't require any changes in the libraries using hash-base to just work

Changes an error message but it's also like that in Node.js

@ChALkeR ChALkeR force-pushed the chalker/fixes/3.0.x/1 branch 8 times, most recently from 8640bef to 48a70d2 Compare November 20, 2024 16:01
index.js Show resolved Hide resolved
index.js Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
test/index.js Outdated Show resolved Hide resolved
@ljharb ljharb force-pushed the chalker/fixes/3.0.x/1 branch from 50953d2 to 1af18ee Compare November 23, 2024 21:36
@ljharb ljharb merged commit 1af18ee into browserify:v3.0 Nov 24, 2024
406 checks passed
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.

2 participants