-
Notifications
You must be signed in to change notification settings - Fork 202
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
Add missing variations of sha2 #234
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.
I'd like to wait from an approval from @rvagg before this gets merged.
I don't know if sha2-384 is widely used so that it should be in the 1 byte range (we got stricter about putting things in the 1 byte range, so looking into existing hashes there isn't really meaningful). Though I also don't see a point of blocking it if there's consensus that it is good idea.
I will absolutely fight about it, forever. As I have said repeatedly (repeatedly, repeatedly), but will say yet one more time: it is the only hash that is in the standard libraries we especially care about, and is also some amount of strong against length-extension attacks. I will use it and I will recommend its use constantly based on these factors. |
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.
yeah, this seems reasonable to me, 384 is common enough, the others either aren't, or maybe shouldn't be
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.
please merge before we forget about it again :)
Corresponds to multiformats/multicodec#234 . Add these also to the automatically registered set, as we do for all the other hash functions that are readily available in the golang standard library.
Per discussion in #205 ,
and further discussion of the numbers,
in #206 .
Most of the variants are shifted into larger number ranges.