aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/Kconfig
diff options
context:
space:
mode:
authorGravatar Tianjia Zhang <tianjia.zhang@linux.alibaba.com> 2021-07-20 11:46:39 +0800
committerGravatar Herbert Xu <herbert@gondor.apana.org.au> 2021-07-30 10:58:30 +0800
commit2b31277af577b1b2da62c3ad7d3315b422869102 (patch)
tree198253c3073b746bd7e3e0921d8e16647695bff5 /lib/crypto/Kconfig
parentcrypto: x86/aes-ni - add missing error checks in XTS code (diff)
downloadlinux-2b31277af577b1b2da62c3ad7d3315b422869102.tar.gz
linux-2b31277af577b1b2da62c3ad7d3315b422869102.tar.bz2
linux-2b31277af577b1b2da62c3ad7d3315b422869102.zip
crypto: sm4 - create SM4 library based on sm4 generic code
Take the existing small footprint and mostly time invariant C code and turn it into a SM4 library that can be used for non-performance critical, casual use of SM4, and as a fallback for, e.g., SIMD code that needs a secondary path that can be taken in contexts where the SIMD unit is off limits. Secondly, some codes have been optimized, such as unrolling small times loop, removing unnecessary memory shifts, exporting sbox, fk, ck arrays, and basic encryption and decryption functions. Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/crypto/Kconfig')
-rw-r--r--lib/crypto/Kconfig3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/crypto/Kconfig b/lib/crypto/Kconfig
index 14c032de276e..545ccbddf6a1 100644
--- a/lib/crypto/Kconfig
+++ b/lib/crypto/Kconfig
@@ -128,3 +128,6 @@ config CRYPTO_LIB_CHACHA20POLY1305
config CRYPTO_LIB_SHA256
tristate
+
+config CRYPTO_LIB_SM4
+ tristate