author: Tianjia Zhang <tianjia.zhang@linux.alibaba.com> 2021-07-20 11:46:41 +0800
committer: Herbert Xu <herbert@gondor.apana.org.au> 2021-07-30 10:58:31 +0800
commit: a7ee22ee1445c7fdb00ab80116bb9710ca86a860
parent: c59de48e125c6d49a8abd165e388ca57bfe37b17
Commit Summary:
Diffstat:
1 file changed, 18 insertions, 0 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig
index 5bf86f5d59db..8a4010d91124 100644
--- a/crypto/Kconfig
+++ b/crypto/Kconfig
@@ -1570,6 +1570,27 @@ config CRYPTO_SM4
If unsure, say N.
+config CRYPTO_SM4_AESNI_AVX_X86_64
+ tristate "SM4 cipher algorithm (x86_64/AES-NI/AVX)"
+ depends on X86 && 64BIT
+ select CRYPTO_SKCIPHER
+ select CRYPTO_SIMD
+ select CRYPTO_ALGAPI
+ select CRYPTO_LIB_SM4
+ help
+ SM4 cipher algorithms (OSCCA GB/T 32907-2016) (x86_64/AES-NI/AVX).
+
+ SM4 (GBT.32907-2016) is a cryptographic standard issued by the
+ Organization of State Commercial Administration of China (OSCCA)
+ as an authorized cryptographic algorithms for the use within China.
+
+ This is SM4 optimized implementation using AES-NI/AVX/x86_64
+ instruction set for block cipher. Through two affine transforms,
+ we can use the AES S-Box to simulate the SM4 S-Box to achieve the
+ effect of instruction acceleration.
+
+ If unsure, say N.
+
config CRYPTO_TEA
tristate "TEA, XTEA and XETA cipher algorithms"
depends on CRYPTO_USER_API_ENABLE_OBSOLETE