]> git.ipfire.org Git - thirdparty/coreutils.git/commit
digest: support -length specifiers on all digest tags
authorPádraig Brady <P@draigBrady.com>
Sat, 11 Sep 2021 15:38:50 +0000 (16:38 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 15 Sep 2021 19:44:18 +0000 (20:44 +0100)
commit8e411226f9686341d17c4c1da17ccade63f619bd
tree3280671f4cd1aaf0d828db612e9c7822c3c6b128
parent772173a8328ffdbde7a6639f456b36a5522e60bc
digest: support -length specifiers on all digest tags

This will be generally useful going forward, for sha3-256 etc.

* src/digest.c: Rename b2_length to digest_length, and
adjust/simplify the code to operate on this for both
b2sum and cksum -a blake2b.
src/digest.c