[PATCH] sm3: implement SM3 hash algorithm
qianyue.zj at alibaba-inc.com
Tue Oct 17 04:24:22 CEST 2017
-----BEGIN PGP SIGNED MESSAGE-----
于 2017/10/17 上午9:03, NIIBE Yutaka 写道:
> "张佳(乾越)" <qianyue.zj at alibaba-inc.com> wrote:
>> Hi Werner,
> Sorry, I'm not Werner, but another (old 老头儿) developer of
Thanks for your great comments!
>> This is the review request for SM3 hash algorithm. Plz see the
>> commit header and patch for more details.
> To track this, I created a ticket at: https://dev.gnupg.org/T3454
> Could you please send the patch to gcrypt-devel? Or, you can
> upload your patch to:
I just created it. See https://dev.gnupg.org/D449.
>> SM3 hash algorithm is already accepted and supported by TPM 2.0
>> spec. So it is necessary to implement this algorithm in a famous
>> open source software for checking the digest value computed by
> Out of curiosity, is it mandated by the goverment? If so, how
> about SM2?
> When I read FIDO U2F document in this April, I learned about
> optional SM2 and SM3.
To be honest, I'm not quite sure it. But at least we are seeing it is
also for civil use. I don't want to see the thing gets complicated,
cause my original intention is quite simple. I see my TPM supports SM3
but there is no sm3sum program in coreutils to verify the hash value.
Just contribute SM3 hash function to the famous open source community
and make it easy to use.
I'm not familiar with SM2, but I confirm I will submit it if SM3 is
>> Plz refer to this PR (https://github.com/gpg/libgcrypt/pull/2)
>> for code review.
> We don't have a practice to use GitHub, which might require
> Please read libgcrypt/doc/HACKING, the "How to contribute"
> section, especially the "License policy" subsection.
I'm doing this. Copyright assignment is fine to me.
-----BEGIN PGP SIGNATURE-----
-----END PGP SIGNATURE-----
More information about the Gcrypt-devel