diff options
author | Gilad Ben-Yossef <gilad@benyossef.com> | 2017-08-21 13:51:28 +0300 |
---|---|---|
committer | Oleksandr Suvorov <oleksandr.suvorov@toradex.com> | 2020-04-09 16:48:51 +0300 |
commit | ca296a15059c90be6c166b7f05e30d399e179dac (patch) | |
tree | feb555c6fffd3ddaac71af86ac2831580133a544 /crypto/Kconfig | |
parent | f8e27b8b523c3d9f9444ff2e8a4907300c403ebf (diff) |
crypto: sm3 - add OSCCA SM3 secure hash
Required to build backports-5.4.
cherry picked from commit 4f0fc1600edbdb3612b931aa5076ca984f7ee8fe
Add OSCCA SM3 secure hash (OSCCA GM/T 0004-2012 SM3)
generic hash transformation.
Related-to: ELB-2388
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Diffstat (limited to 'crypto/Kconfig')
-rw-r--r-- | crypto/Kconfig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig index b0a2c0573f21..c8b2c230e9c9 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -581,6 +581,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 |