-
Notifications
You must be signed in to change notification settings - Fork 20
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
Support for 128 or 256 bit hashes? #4
Comments
Hello, the 128 and 256 bit hash functions were still under active upstream development until 4 days ago - see google/highwayhash@eeea446 - so we can now start to expose these. PRs and thoughts/discussion about how to expose these are welcome. |
Wow, I didn't know it was so recent, I had just assumed they'd have produced those variants initially. I've seen both additional methods, as well as arguments, support this sort of a switch. Exposing new high-level functions (say, |
Quick thought: perhaps we could use namespaced exports for this? const { hh128 } = require('highwayhash');
hh128.asBuffer( ... ); |
Hi @mceachen , FYI 128 and 256 bit variants have been around a long time but we hadn't yet frozen them until the change lovell mentioned. |
Commit a902c5f updates the HighwayHash source to latest so these improvements can now be exposed. |
Thanks for this work!
Is there an API to switch the result buffer to render 128 bit or 256 bit hashes? Providing an
HHResult128
orHHResult256
to the constructor should suffice. I looked but didn't find anything promising.The text was updated successfully, but these errors were encountered: