Commits


introduce more helpers to deal with different hash digests


add functions to compute hashes This adds a set of functions to abstract over SHA1Init, SHA1Update, SHA1Final, their respective SHA256 variants and how to compare digests. It's a preparatory step for sha256 pack handling.


provide functions to parse/serialize sha256 digest plus a generic helper it abstracts over the hash type. Needed by the incoming sha256 support.


rename lib/sha1.c to lib/hash.c