Makefile: Build Git with non-collision-detecting SHA1
- Jan 28, 2025
-
-
Justin Tobler authored
By default, Git uses SHA1DC for all SHA1 hashing operations. This implementation includes collision detection to protect against collision attacks, but comes with a performance penalty. Not all hashing operations performed by Git are vulnerable to collision attacks though. In Git version 2.47.0, Git can be built with `OPENSSL_SHA1_UNSAFE` set to use a non-collision-detecting SHA1 implementation in non-cryptographic scenarios. This improves performance without compromising security. Update the Gitaly Makefile to build the bundled Git v2.48 with this option set.
-