]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'tb/weak-sha1-for-tail-sum'
authorJunio C Hamano <gitster@pobox.com>
Wed, 2 Oct 2024 14:46:27 +0000 (07:46 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Oct 2024 14:46:27 +0000 (07:46 -0700)
commitead0a050e2eddf8c67ee3404e165bffd42c6fd42
tree0d2d1c33bec3d1be1c99d67dec0edfc39dc861e6
parent59ee4f70136a12feb47979ca90baaf7c7beafe73
parent1b9e9be8b4694ea52d8aae93f311b1607c3576b7
Merge branch 'tb/weak-sha1-for-tail-sum'

The checksum at the tail of files are now computed without
collision detection protection.  This is safe as the consumer of
the information to protect itself from replay attacks checks for
hash collisions independently.

* tb/weak-sha1-for-tail-sum:
  csum-file.c: use unsafe SHA-1 implementation when available
  Makefile: allow specifying a SHA-1 for non-cryptographic uses
  hash.h: scaffolding for _unsafe hashing variants
  sha1: do not redefine `platform_SHA_CTX` and friends
  pack-objects: use finalize_object_file() to rename pack/idx/etc
  finalize_object_file(): implement collision check
  finalize_object_file(): refactor unlink_or_warn() placement
  finalize_object_file(): check for name collision before renaming
Makefile
object-file.c
pack-write.c
tmp-objdir.c