summaryrefslogtreecommitdiff
path: root/crypto/Kconfig
diff options
context:
space:
mode:
authorGilad Ben-Yossef <gilad@benyossef.com>2017-08-21 13:51:28 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2017-09-22 17:43:07 +0800
commit04e742a6ad061b85fbbd91621a64b3d4fcb19f01 (patch)
treed03d79059b5246c3397eadb3b98937858fb6b755 /crypto/Kconfig
parent508f8d23a372beae647185ce896a0c1109406b83 (diff)
downloadlinux-crypto-04e742a6ad061b85fbbd91621a64b3d4fcb19f01.tar.gz
linux-crypto-04e742a6ad061b85fbbd91621a64b3d4fcb19f01.zip
crypto: sm3 - add OSCCA SM3 secure hash
Add OSCCA SM3 secure hash (OSCCA GM/T 0004-2012 SM3) generic hash transformation. Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/Kconfig')
-rw-r--r--crypto/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig
index 0a121f9d..97fb7360 100644
--- a/crypto/Kconfig
+++ b/crypto/Kconfig
@@ -859,6 +859,17 @@ config CRYPTO_SHA3
References:
http://keccak.noekeon.org/
+config CRYPTO_SM3
+ tristate "SM3 digest algorithm"
+ select CRYPTO_HASH
+ help
+ SM3 secure hash function as defined by OSCCA GM/T 0004-2012 SM3).
+ It is part of the Chinese Commercial Cryptography suite.
+
+ References:
+ http://www.oscca.gov.cn/UpFile/20101222141857786.pdf
+ https://datatracker.ietf.org/doc/html/draft-shen-sm3-hash
+
config CRYPTO_TGR192
tristate "Tiger digest algorithms"
select CRYPTO_HASH