summaryrefslogtreecommitdiffstats
path: root/src/digest.c
AgeCommit message (Collapse)AuthorFilesLines
2023-02-04Fix inconsistent parameter namesDavid Robillard1-10/+10
2022-08-19Avoid mixing signed and unsigned integersDavid Robillard1-1/+1
2022-06-28Use uppercase integer literal suffixesDavid Robillard1-41/+41
I give in.
2022-02-02Avoid fallthrough annotation on older GCC versionsDavid Robillard1-1/+1
2021-10-27Fix zix_digest64() to consume all inputDavid Robillard1-5/+5
This was a copy-paste bug since the loop in zix_digest32() worked differently. As a result only the first block was considered, making the digest nearly useless for larger values. The tests didn't (and unfortunately still don't) catch this because the 64-bit digest algorithm incorporates the size itself. Fix this by changing the loop to work the same way as zix_digest32(), so hopefully something like this doesn't happen again.
2021-09-10Adopt REUSE machine-readable licensing standardDavid Robillard1-15/+2
2021-09-10Replace CRC32 digest with more modern and appropriate algorithmsDavid Robillard1-100/+172
This makes the hassle of platform-specific code go away, and instead uses portable implementations of relatively standard modern hash algorithms. CRC32 is not great as a hash function anyway, though it is very fast when hardware accelerated.
2021-09-10Fix cast alignment warnings in SSE4.2 digest codeDavid Robillard1-5/+29
2020-12-31Update copyright headersDavid Robillard1-1/+1
2020-12-31Separate source from headersDavid Robillard1-0/+141