I would like to evaluate a hash for a C++ data-structure, containing mainly double, and std::string. Boost proposes some functions to do so, with hash and sha1.
Boost hash is known to be platform dependent, since it returns a std::size_t. However, its API is very handy, thanks to its extensions that deal with stl containers.
For example, Boost hash allows to declare such a hash
#include <boost/functional/hash.hpp>
boost::hash<MyType> hash;
std::size_t seed = hash(MyType());
I would like to benefit from the same API using boost SHA1.
Is there a higher API level for SHA1, than the process_bytes method?