
On Thu, Sep 7, 2017 at 8:30 AM, Niall Douglas via Boost <boost@lists.boost.org> wrote:
I vaguely remember that...Howard had some WG21 proposal for a standardised hashing infrastructure? One not fundamentally broken like std::hash. One should probably study/implement that proposal.
You're thinking of hash_append, described here: <http://htmlpreview.github.io/?https://github.com/HowardHinnant/papers/blob/master/hashing.html> Repository: <https://github.com/howardhinnant/hash_append> This library is designed for non-cryptographic hashing. Specifically for unordered containers (hash tables). The requirements for cryptographic hash algorithms are different, and difficult to unify with the use-case for hash tables. For example when calculating the cryptographic digest on serialized data, endianness of integers matters.