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

Parameterized hashing #78

Closed
indolering opened this issue Mar 19, 2017 · 3 comments
Closed

Parameterized hashing #78

indolering opened this issue Mar 19, 2017 · 3 comments

Comments

@indolering
Copy link

indolering commented Mar 19, 2017

Different types of hashing may require parameters not currently specified, for example Argon2 has parameters for iterations, memory usage and parallelism. On the one hand, such parameters could be viewed like a salt and treated out-of-band. However, swapping out Argon2 with a hypothetical Argon3 would be much easier if such parameters were treated in-band - similar to length.

As one cannot anticipate the needs of future hash functions, I believe this would require a new arbitrary length <params> such fields would require a new <params> section. Thoughts?

@hsanjuan
Copy link
Contributor

It seems the current policy is to add entries to the table for each "acceptable" generation value:

https://github.com/multiformats/multihash/blob/master/hashtable.csv

Probably not the best policy when it comes to very arbitrary params or hash functions with many inputs.

@hsanjuan
Copy link
Contributor

Also see multiformats/multiformats#37

@indolering
Copy link
Author

Let's move this to #37.

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

No branches or pull requests

2 participants