util/mesa_sha1: add helper to reconvert sha1 hex strings
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 10 Feb 2021 06:05:24 +0000 (17:05 +1100)
committerMarge Bot <eric+marge@anholt.net>
Sun, 21 Feb 2021 02:50:45 +0000 (02:50 +0000)
commit1fabc4ecbedd1fbfaca7886cf1b34a7e9409a80b
tree7648528aabc424ea684a49c80b60c534693b0cf5
parentf88c13f26d9b56385d3f012909b2fea42833ab84
util/mesa_sha1: add helper to reconvert sha1 hex strings

Converts the sha1 hex string representation back into its original
more compact format.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7725>
src/util/mesa-sha1.c
src/util/mesa-sha1.h