News for hackers. Stuff that matters.
Re:The Git project selects SHA-256 as the next-gen hash func... by dev_dull on Wednesday August 22, 2018 @04:47PM (#17822038)
From the email discussion:

> to support SHA-256, we would simply use the system's crypto libraries ... I think this is probably the single strongest argument for sha256. "It's just there".

Sounds reasonable and well... boring. Just the kind of technical decisions I like

Re:The Git project selects SHA-256 as the next-gen hash func... by slavik81 on Wednesday August 22, 2018 @05:04PM (#17822184)
What was the case against SHA-512/256? It's the same size as SHA-256, is faster on 64-bit hardware, and is often more difficult to attack. It's just a truncated SHA-512 hash, which is widely supported. The only drawback I know of is that it's slower than SHA-256 on 32-bit hardware.

edit: I found the email where they compared 256-bit hash functions [1]. It seems Apple Common Crypto, gcrypt and NSS don't implement SHA-512. A new twist to the performance story is that OpenSSL's SHA-256 is faster than SHA-512/256 in the AMD Ryzen tests, possibly due to the recent introduction of hardware support.

[1]: https://public-inbox.org/git/[email protected]...

Re:The Git project selects SHA-256 as the next-gen hash func... by wvh on Wednesday August 22, 2018 @06:02PM (#17822637)
Well, sha512 with different initialisation vectors. Even OpenSSL doesn't support sha512_256 yet, but it's coming in the next major release.
Re:The Git project selects SHA-256 as the next-gen hash func... by slavik81 on Wednesday August 22, 2018 @09:28PM (#17823796)
Thanks. I hadn't realized it started with a different initial value. That small difference really cuts down on availability of implementations.
Re:The Git project selects SHA-256 as the next-gen hash func... by BjoernKW on Wednesday August 22, 2018 @05:12PM (#17822235)
Absolutely. "Use boring solutions" has become a bit of a mantra for me.

Only build something yourself if it serves as a key differentiator or has the potential to do so. Otherwise, use off-the-shelf tools.

Re:The Git project selects SHA-256 as the next-gen hash func... by arusahni on Wednesday August 22, 2018 @04:50PM (#17822065)
> dev_dull

Checks out. :)