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

Add missing variations of sha2 #234

Merged
merged 1 commit into from
Sep 30, 2021
Merged

Add missing variations of sha2 #234

merged 1 commit into from
Sep 30, 2021

Conversation

warpfork
Copy link
Contributor

Per discussion in #205 ,
and further discussion of the numbers,
in #206 .

Most of the variants are shifted into larger number ranges.

Per discussion in #205 ,
and further discussion of the numbers,
in #206 .

Most of the variants are shifted into larger number ranges.
@warpfork warpfork requested a review from rvagg September 30, 2021 09:32
Copy link
Member

@vmx vmx left a 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.

@warpfork
Copy link
Contributor Author

warpfork commented Sep 30, 2021

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.

Copy link
Member

@rvagg rvagg left a 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

Copy link

@mvdan mvdan left a 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 :)

@warpfork warpfork merged commit 31acf0b into master Sep 30, 2021
@warpfork warpfork deleted the add-sha2-family branch September 30, 2021 11:40
warpfork added a commit to multiformats/go-multihash that referenced this pull request Oct 10, 2021
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.
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.

4 participants