On 15/09/2025 17:53, Rob Landley wrote:
On 8/31/25 21:56, Collin Funk wrote:
Hi,

I have attached a patch adding SHA-3 to 'cksum' using the --algorithm
(-a) option and some tests based off of tests/cksum/b2sum.sh. There are
some details of it that I would like others thoughts on before pushing.

FYI toybox has had sha3sum for 5 years.

https://github.com/landley/toybox/commit/aaa5ff1a4648

That's a neat implementation.
(Its output matched whatever debian was doing at the time. Some perl
implementation if I recall...)

Previously we decided to consolidate all future checksum algorithms within 
cksum -a
to align with what NetBSD and OpenBSD did, and to future proof and simplify the 
interface.
There will be more algorithms in future, and it's preferable to minimize 
commands,
especially where they might be variations as is often the case with checksums.

cheers,
Padraig

Reply via email to