At present, the SM3 algorithm has been released in openssl 1.1.1 and libgcrypt 1.9.2, and it is already a standard algorithm in the linux kernel. We should reconsider this algorithm and provide sm3sum for coreutils.
List of specifications for SM3 cryptographic hash algorithm (OSCCA GM/T 0004-2012 SM3): * https://datatracker.ietf.org/doc/html/draft-sca-cfrg-sm3-02 * https://www.oscca.gov.cn/sca/xxgk/2010-12/17/content_1002389.shtml * http://www.gmbz.org.cn/main/viewfile/20180108023812835219.html Tianjia Zhang (1): maint: add sm3sum based on OSCCA SM3 secure hash AUTHORS | 1 + README | 6 ++-- bootstrap.conf | 1 + build-aux/gen-lists-of-programs.sh | 1 + doc/coreutils.texi | 20 ++++++++++- man/.gitignore | 1 + man/local.mk | 1 + man/sm3sum.x | 4 +++ src/.gitignore | 1 + src/local.mk | 4 +++ src/md5sum.c | 10 ++++++ tests/local.mk | 1 + tests/misc/sm3sum.pl | 55 ++++++++++++++++++++++++++++++ tests/misc/tty-eof.pl | 1 + 14 files changed, 103 insertions(+), 4 deletions(-) create mode 100644 man/sm3sum.x create mode 100755 tests/misc/sm3sum.pl -- 2.19.1.3.ge56e4f7