]> git.saurik.com Git - apt.git/commit - apt-pkg/contrib/hashes.h
promote filesize to a hashstring
authorDavid Kalnischkies <david@kalnischkies.de>
Thu, 23 Oct 2014 14:54:00 +0000 (16:54 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Fri, 24 Oct 2014 21:54:59 +0000 (23:54 +0200)
commit23397c9d7d4d455461176600bb45c81185493504
treed31bba61b1c04aa66f9a17dca19127dd94d8f65d
parent10e100e59a96ea7b6834a139beab5d9d70180633
promote filesize to a hashstring

It is a very simple hashstring, which is why it isn't contributing to
the usability of a list of them, but it is also trivial to check and
calculate, so it doesn't hurt checking it either as it can combined even
with the simplest other hashes greatly complicate attacks on them as you
suddenly need a same-size hash collision, which is usually a lot harder
to achieve.
apt-pkg/contrib/hashes.cc
apt-pkg/contrib/hashes.h
apt-pkg/indexrecords.cc
ftparchive/cachedb.cc
ftparchive/writer.cc
test/integration/test-apt-update-filesize-mismatch [new file with mode: 0755]
test/integration/test-apt-update-hashsum-mismatch [new file with mode: 0755]
test/integration/test-apt-update-ims
test/interactive-helper/aptwebserver.cc
test/libapt/hashsums_test.cc