diff options
| author | Pádraig Brady <P@draigBrady.com> | 2024-11-01 15:11:55 +0000 |
|---|---|---|
| committer | Pádraig Brady <P@draigBrady.com> | 2024-11-02 19:57:35 +0000 |
| commit | a94929715c1c111cfab3b9f9875307aba59094d8 (patch) | |
| tree | ed4066aeec51b5986d9b829cf2226f81ee3dfdd1 /tests/misc/read-errors.sh | |
| parent | test: add string operators added by POSIX 2024 (diff) | |
| download | coreutils-a94929715c1c111cfab3b9f9875307aba59094d8.tar.gz coreutils-a94929715c1c111cfab3b9f9875307aba59094d8.zip | |
cksum: add support for --algorithm=crc32b
$ echo -n '123456789' | cksum --raw -a crc32b | basenc --base16
CBF43926
* bootstrap.conf: Explicitly depend on the crc module.
* doc/coreutils.texi (cksum): Add "crc32b" as an argument to -a.
* src/cksum.c (crc32b_sum_stream): A new function similar to
crc_sum_stream, but which does not include the length in
the CRC calculation.
* src/cksum.h: Add crc32b_sum_stream prototype.
* src/digest.c: Add "crc32b" as an argument to -a.
* tests/cksum/cksum.sh: Refactor to test both crc and crc32b.
* tests/cksum/cksum-a.sh: Add "crc32b" case.
* tests/cksum/cksum-base64.pl: Likewise.
* tests/misc/read-errors.sh: Likewise.
* NEWS: Mention the new feature.
Diffstat (limited to 'tests/misc/read-errors.sh')
| -rwxr-xr-x | tests/misc/read-errors.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/misc/read-errors.sh b/tests/misc/read-errors.sh index 3f1e0c42c..ae9184c27 100755 --- a/tests/misc/read-errors.sh +++ b/tests/misc/read-errors.sh @@ -27,6 +27,7 @@ cat . cksum -a blake2b . cksum -a bsd . cksum -a crc . +cksum -a crc32b . cksum -a md5 . cksum -a sha1 . cksum -a sha224 . |
