Skip to content
Snippets Groups Projects

Makefile: Build Git with non-collision-detecting SHA1

Merged Justin Tobler requested to merge jt/git-sha1-no-dc into master
All threads resolved!

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.48.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.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading