Boost logo

Boost :

Subject: Re: [boost] [rfc] Preliminary Hash Library
From: Roland Bock (rbock_at_[hidden])
Date: 2010-05-06 08:48:45

Scott McMurray wrote:
> I've boostified, cleaned up, and documented the Hash Library I
> mentioned here about a month ago. Comments, complaints, suggestions,
> and questions appreciated.
> Source code is in the sandbox at
> Documentation can be read online at
> I was very pleased by how the implementation came together, as
> templates mean that all the hash algorithms share a substantial
> portion of their code.
> Those details are all hidden from the user, though. Here's an example
> showing the simplest use of the library:
> #include <boost/hash.hpp>
> #include <iostream>
> #include <string>
> int main() {
> std::string s = "Hello World!";
> typedef boost::hash::sha2<256> HashPolicy;
> HashPolicy::digest_type digest = boost::hash::compute_digest<HashPolicy>(s);
> std::cout << digest << "\n";
> }
> Thanks,
> ~ Scott McMurray

To be honest, I just looked at the quickstart (very nice) and the

Performance is an issue, I think. You may also want to look at small
entities. We hash many millions of small data entities each day (MD5).

Also, adding comparison with openssl or cryptopp might be useful.



Boost list run by bdawes at, gregod at, cpdaniel at, john at