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
crypto::Hash update method error output is missing Buffer
#25487
Comments
|
Thanks for the excellent bug report. Yes, that looks like a genuine oversight to me, pull request most welcome. |
(edit: or just |
|
Running |
|
Great point. I'm working on it. Thanks! |
|
Any idea why I'm getting this error during Node version: both 10.10.0 and 8.12.0 |
|
thanks @bnoordhuis . I assumed this so I allowed myself to file a PR already. And indeed the checks passed. |
amitzur commentedJan 14, 2019
10.10.0Linux amit-ThinkPad-X1-Carbon-6th 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 x86_64 x86_64 x86_64 GNU/LinuxcryptoThe
Hashclass in thecryptomodule has anupdatemethod which may receive{string | Buffer | TypedArray | DataView}in thedataargument.(https://github.com/nodejs/node/blob/master/doc/api/crypto.md#hashupdatedata-inputencoding)
The error message output if an invalid argument type is passed is missing
Buffer.(https://github.com/nodejs/node/blob/master/lib/internal/crypto/hash.js#L65)
I believe this is a good first bug, and would like to fix it myself. AFAICT, a test should be added here:
https://github.com/nodejs/node/blob/master/test/parallel/test-crypto-hash.js
If this issue is verified, I just need a pointer to how to run the tests in
test/parallel.The text was updated successfully, but these errors were encountered: