proposal: x/crypto/sm3: new package
Closed this issue · 3 comments
SM3 is Shang Mi 3, Commercial Cryptographic hash algorithm 3.
https://tools.ietf.org/html/draft-shen-sm3-hash-01
OpenSSL 1.1.1.pre2
https://github.com/openssl/openssl/tree/master/crypto/sm3
armv8.2 has SM3 hardware instructions.
https://community.arm.com/processors/b/blog/posts/introducing-2017s-extensions-to-the-arm-architecture
Linux kernel
https://github.com/torvalds/linux/blob/master/crypto/sm3_generic.c
It seems like this is not ready for x/crypto yet: (1) it's still a draft, not an RFC, and (2) it doesn't have widespread use. We are not aiming to collect all possible crypto algorithms in x/crypto, only the ones that have widespread use to justify the Go team maintaining it.
Of course, it would be great to have in the broader Go ecosystem and we encourage you to post it in a different place, perhaps in an appropriate location on GitHub.
That's not true. SM3 is used in current TPM 2.0 devices world wide. It's a chinese hash algorithm which is allowed to use in China. Multiple crypto libraries implement it.
+1 to let golang support more crypto standards including SM and others.