]> git.ipfire.org Git - thirdparty/coreutils.git/commit
digest: add support for sm3
authorPádraig Brady <P@draigBrady.com>
Tue, 7 Sep 2021 14:45:01 +0000 (15:45 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 15 Sep 2021 19:44:18 +0000 (20:44 +0100)
commit8362f2552a4192d6b1e0e46fa5edd4ce76e29560
tree1473222dcce62ef0b2c7148f57dc0fa9ddf3245e
parentad6c8e1181a3966e35d68c1c354deb1c73f3e974
digest: add support for sm3

Add message digest sm3, which uses the OSCCA SM3 secure
hash (OSCCA GM/T 0004-2012 SM3) generic hash transformation.

* bootstrap.conf: Add the sm3 module.
* doc/coreutils.texi: Mention the cksum -a option.
* src/digest.c: Provide support for --algorithm='sm3'.
* tests/misc/sm3sum.pl: Add a new test (from Tianjia Zhang)
* tests/local.mk: Reference the new test.
* NEWS: Mention the new feature.

Tested-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
NEWS
THANKS.in
bootstrap.conf
doc/coreutils.texi
src/digest.c
tests/local.mk
tests/misc/sm3sum.pl [new file with mode: 0755]