-
Notifications
You must be signed in to change notification settings - Fork 583
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
feat: add fnv alg to crypto #2200
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@luk3skyw4lker Thank you for looking into this! Left a few comments.
@kt3k thanks for the review! |
@kt3k I think I have solved the issues. I wasn't able to keep the return of the fnv functions as ArrayBuffers because something was happening when I tried to convert the hashes into Uint32Arrays and the result was reversed (I think it may be because of MSB and LSB problems, I didn't manage to find information or fix for that) so I just convert the string to hex inside the function itself and the result comes as a hex string (and with the right ordenation). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating! The resulted values look correct. Nice progress, but left a few comments on some points.
@kt3k I think that everything is right now! I had a lot of trouble to make the returns come as ArrayBuffers but I did it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@luk3skyw4lker LGTM. Thanks!
Add implementation of fnv32, fnv32a, fnv64, fnv64a to crypto module. Addressing #2122