|
From: | Pádraig Brady |
Subject: | Re: Add support for cksum --algorithm [sm3] |
Date: | Thu, 9 Sep 2021 13:20:56 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Thunderbird/84.0 |
On 09/09/2021 00:39, Michael Stone wrote:
On Tue, Sep 07, 2021 at 04:45:23PM +0100, Pádraig Brady wrote:This patch set refactors all digest implementations to their own modules, all interfaced through digest.c. All file operations and diagnostics are done in digest.c. All digests are made available through `cksum -a`. Also we add support for SM3 through `cksum -a sm3` only.Might be nice if there was something like "-a list-available" to see what algorithms are available without parsing the --help output.
That's pretty much supported already in the argmatch functionality. I.e. if you use `cksum -a list-available`, the list of possibilities are printed. I generally use that feature like: $ cksum --algo= cksum: ambiguous argument ‘’ for ‘--algorithm’ Valid arguments are: - ‘bsd’ - ‘sysv’ - ‘crc’ - ‘md5’ - ‘sha1’ - ‘sha224’ - ‘sha256’ - ‘sha384’ - ‘sha512’ - ‘blake2b’ - ‘sm3’ Try 'cksum --help' for more information. cheers, Pádraig
[Prev in Thread] | Current Thread | [Next in Thread] |