go/src/internal/coverage
qmuntal 092d18b318 internal/coverage: use 128-bit FNV-1a hash instead of MD5
This change replaces the MD5 hash used to identify coverage files with a
128-bit FNV-1a hash. This change is motivated by the fact that MD5
should only be used for legacy cryptographic purposes.

The 128-bit FNV-1a hash is sufficient for the purpose of identifying
coverage files, it having the same theoretical collision resistance as
MD5, but with the added benefit of being faster to compute.

Change-Id: I7b547ce2ea784f8f4071599a10fcb512b87ee469
Reviewed-on: https://go-review.googlesource.com/c/go/+/617360
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Than McIntosh <thanm@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
2024-10-07 15:45:41 +00:00
..
calloc cmd/covdata: add tools to read/manipulate coverage data files 2022-09-28 11:47:16 +00:00
cfile internal/coverage: use 128-bit FNV-1a hash instead of MD5 2024-10-07 15:45:41 +00:00
cformat all: use slices.Sorted(maps.Keys(m)) 2024-10-02 14:22:59 +00:00
cmerge all: fix typos and remove repeated words 2023-07-12 23:26:34 +00:00
decodecounter all: remove repeated definite articles 2023-04-27 15:29:54 +00:00
decodemeta internal/coverage: use 128-bit FNV-1a hash instead of MD5 2024-10-07 15:45:41 +00:00
encodecounter all: use slices.Sorted(maps.Keys(m)) 2024-10-02 14:22:59 +00:00
encodemeta internal/coverage: use 128-bit FNV-1a hash instead of MD5 2024-10-07 15:45:41 +00:00
pods internal/coverage: use 128-bit FNV-1a hash instead of MD5 2024-10-07 15:45:41 +00:00
rtcov internal/coverage/cfile: remove more //go:linkname usage 2024-05-22 09:57:47 +00:00
slicereader internal/coverage: implement conforming Seek method in slicereader 2023-05-23 11:36:28 +00:00
slicewriter internal/coverage/slicewriter: fix off-by-1 error in seek utilities 2023-04-26 12:44:26 +00:00
stringtab internal/coverage: minor code cleanups 2022-10-11 12:40:42 +00:00
test coverage: fix count vs emit discrepancy in coverage counter data writing 2023-04-26 12:44:34 +00:00
uleb128 internal/coverage: add coverage meta-data encoder 2022-09-26 20:51:52 +00:00
defs.go all: make struct comments match struct names 2024-07-11 17:23:45 +00:00
pkid.go internal/coverage: add internal/stringslite to hard-coded coverpkg ID list 2024-07-30 14:19:02 +00:00