]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cksum: allow -a {blake2b,sha2,sha3} --check to work on base64 master
authorCollin Funk <collin.funk1@gmail.com>
Sun, 5 Oct 2025 00:18:01 +0000 (17:18 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Sun, 5 Oct 2025 22:38:27 +0000 (15:38 -0700)
commitce8c22d25f827edc853a8bc96d506577f0b0badc
tree274b821595f2a0f9f8013c3cf833b8439ccf175a
parentebfd80083b4fe4ae37f50bbc2fcf3cfaee50a248
cksum: allow -a {blake2b,sha2,sha3} --check to work on base64

* NEWS: Mention the bug.
* src/digest.c (split_3): Check that the base64 digest matches the
length supported by the algorithm.
(digest_check): Check that the read digest matches the base64 length of
the algorithm's digest. The previous condition would not work for
'cksum -a blake2b -l 8 ...'.
* tests/cksum/cksum-base64-untagged.sh: New file.
* tests/local.mk (all_tests): Add the new test.
NEWS
src/digest.c
tests/cksum/cksum-base64-untagged.sh [new file with mode: 0755]
tests/local.mk