add some helper functions to compute hashes
commit70b8fa9287a63564c07fb972714585fb10b78761
authorOmar Polo <op@omarpolo.com>
Thu, 23 Feb 2023 18:51:38 +0000 (23 18:51 +0000)
committerThomas Adam <thomas@xteddy.org>
Sat, 25 Feb 2023 00:43:33 +0000 (25 00:43 +0000)
tree1d42ae062d874e8711c6a554fda761cfbcf82554
parentb1ec8cee26c37a4d2687babea76a8ba4e7d724ad
add some helper 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.
Replace all the SHA1*() usage with the new APIs.  It's a preparatory
step for sha256 handling.

ok stsp@
lib/pack_create.c