diff options
author | David Kalnischkies <david@kalnischkies.de> | 2014-10-23 16:54:00 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2014-10-24 23:54:59 +0200 |
commit | 23397c9d7d4d455461176600bb45c81185493504 (patch) | |
tree | d31bba61b1c04aa66f9a17dca19127dd94d8f65d /apt-pkg/contrib/hashes.h | |
parent | 10e100e59a96ea7b6834a139beab5d9d70180633 (diff) |
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.
Diffstat (limited to 'apt-pkg/contrib/hashes.h')
-rw-r--r-- | apt-pkg/contrib/hashes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/contrib/hashes.h b/apt-pkg/contrib/hashes.h index caeba006d..e2e213855 100644 --- a/apt-pkg/contrib/hashes.h +++ b/apt-pkg/contrib/hashes.h @@ -161,10 +161,10 @@ class HashStringList std::vector<HashString> list; }; +class PrivateHashes; class Hashes { - /** \brief dpointer placeholder */ - void *d; + PrivateHashes *d; public: /* those will disappear in the future as it is hard to add new ones this way. |