summaryrefslogtreecommitdiff
path: root/src/lib/tests/hash_test.c
Commit message (Collapse)AuthorAgeFilesLines
* include: Revise printing hashesDimitri Staessens2023-08-231-0/+182
The code was a bit convoluted to print hashes as hex strings. Renamed to HASH_FMT32 and HASH_VAL32 to make clear we are printing the first 32 bits only, and added options to print 64 up to 512 bits as well. This doesn't depend on endianness anymore. Adds a small test for the hash (printing) functions. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>