by tptacek · 9y ago · 0 comments
K12 is related to SHA-3, but if you're throwing standards out the door (and I think you should), you can use any of the hash core algorithms, whether or not they're related to Keccak.
The best all-purpose cryptographic hash is probably truncated SHA-2 512, and the hipster modern hash is probably still Blake2.
Could you elaborate on that please? Why would you consider it as the "best all-purpose cryptographic hash"?
Out of SHA3, K12, SHA2 and Blake, SHA-512 is one of the fastest (some variants of Blake2 are faster), and it's the one with the longest track record, while the Blake-family and SHA3 are fairly new. It's also widely supported nearly everywhere. All that makes truncated SHA-512 a sane default.
https://twitter.com/KeccakTeam/status/834789451708628995
> It's also widely supported nearly everywhere
This is true for the non-truncated variants, but I am not aware of any protocol that uses the truncated ones.
I will agree with the "longest track record" however, this is an important part.
Creating a truncate(SHA-512, 256) out of regular SHA-512 is trivial, so it true that it is widely supported nearly everywhere.
Unless you are doing hash trees, in which case SHA-512 is slower than SHA-256, and length extension is not possible.
Point is there isn't and shouldn't be a blanket solution.