Add a way for sha1/mhash to take a raw hash value.