News for hackers. Stuff that matters.
Re:NIST Retires SHA-1 Cryptographic Algorithm by Dylan16807 on Thursday December 15, 2022 @03:00PM (#34004841)
Assuming reasonable logic around hashes, like "a SHA-2 commit can't be a parent of a SHA-1 commit", there wouldn't much in the way of downgrade attacks available.
Re:NIST Retires SHA-1 Cryptographic Algorithm by bornfreddy on Thursday December 15, 2022 @04:05PM (#34005773)
Wow, smart! This would keep all the old history intact and at the same time force lots of people to upgrade through social pressure. I'd probably be angry as hell when that happened to me, but it would also work.
Re:NIST Retires SHA-1 Cryptographic Algorithm by est31 on Friday December 16, 2022 @03:20AM (#34012151)
FTR the current plan for git's migration is that commits have both SHA-1 and SHA-2 addresses, and you can reference them by both. There is thus no concept of "SHA-2 commit", or "SHA-1 commit". The issue is more around pointers that are not directly managed by git, e.g. hashes inside commit messages to reference an earlier commit (and of course signatures). Those might require a git filter-repo - like step that breaks the SHA-1 hashes (and signatures) to migrate to SHA-2, if that is desired.