summaryrefslogtreecommitdiffstats
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
commit4f0fc1600edbdb3612b931aa5076ca984f7ee8fe (patch)
treef143c15e9e318822891695b3e30a97bc1a2a85b6 /crypto/Kconfig
parent1c9fa294fe80f85c069c64d12b2429cf99a62937 (diff)
downloadlinux-4f0fc1600edbdb3612b931aa5076ca984f7ee8fe.tar.bz2
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 0a121f9ddf8e..97fb7360207b 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