|
|
Subscribe / Log in / New account

Whatever happened to SHA-256 support in Git?

Whatever happened to SHA-256 support in Git?

Posted Jun 23, 2022 17:13 UTC (Thu) by tlater (guest, #116684)
In reply to: Whatever happened to SHA-256 support in Git? by zblaxell
Parent article: Whatever happened to SHA-256 support in Git?

It's a regulation thing: https://csrc.nist.gov/Projects/Hash-Functions/NIST-Policy...

Various industries in the US require that you comply by those standards, and given how many companies at least work with US companies that means it tears through a lot of the world.

While it's a bit ridiculously broad to state you simply are not allowed to generate sha-1 hashes ever (one of the addendum documents makes this explicit), it does make sense from a policy perspective. Otherwise there's just no incentive to ever change, and some deeply rooted uses of sha-1 will be passed over and eventually found to be problematic.

If git can't adapt, in theory competitors should step up and through all that newfound industrial funding eventually become less of a mess. The policy makes sense, even if it in practice results in some pretty silly trade-offs in the short term.

Of course, companies should just spend the money to get that 10% of the work done, but well, not everybody lives in the open source world, and I imagine a lot of the people who decide where budget goes just understand git as yet another product, not a community project that they have the power to modify. I imagine they also look at the competitors and don't see the problems, especially given they likely migrated to git at some point in the past, so it's just regressing back to the state of 10 years ago, which isn't that long in the kind of industry that cares about regulation like this.


to post comments

Whatever happened to SHA-256 support in Git?

Posted Jun 24, 2022 5:35 UTC (Fri) by wtarreau (subscriber, #51152) [Link]

The rule is not *that* drastic, it says:

"Federal agencies should stop using SHA-1 for generating digital signatures, generating time stamps and for other applications that require collision resistance. Federal agencies may use SHA-1 for the following applications: verifying old digital signatures and time stamps, generating and verifying hash-based message authentication codes (HMACs), key derivation functions (KDFs), and random bit/number generation. Further guidance on the use of SHA-1 is provided in SP 800-131A."

i.e. don't use it if you need security, but its other properties remain useful.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds