]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - crypto/Kconfig
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[linux.git] / crypto / Kconfig
index c0a26c6cbb0cd547486be9c94280b4db271c85de..c0dabed5122e23ea68952bc3ccd9857911653632 100644 (file)
@@ -245,10 +245,6 @@ config CRYPTO_TEST
        help
          Quick & dirty crypto test module.
 
-config CRYPTO_ABLK_HELPER
-       tristate
-       select CRYPTO_CRYPTD
-
 config CRYPTO_SIMD
        tristate
        select CRYPTO_CRYPTD
@@ -324,6 +320,14 @@ config CRYPTO_CBC
          CBC: Cipher Block Chaining mode
          This block cipher algorithm is required for IPSec.
 
+config CRYPTO_CFB
+       tristate "CFB support"
+       select CRYPTO_BLKCIPHER
+       select CRYPTO_MANAGER
+       help
+         CFB: Cipher FeedBack mode
+         This block cipher algorithm is required for TPM2 Cryptography.
+
 config CRYPTO_CTR
        tristate "CTR support"
        select CRYPTO_BLKCIPHER
@@ -1114,7 +1118,7 @@ config CRYPTO_BLOWFISH_COMMON
 config CRYPTO_BLOWFISH_X86_64
        tristate "Blowfish cipher algorithm (x86_64)"
        depends on X86 && 64BIT
-       select CRYPTO_ALGAPI
+       select CRYPTO_BLKCIPHER
        select CRYPTO_BLOWFISH_COMMON
        help
          Blowfish cipher algorithm (x86_64), by Bruce Schneier.
@@ -1145,10 +1149,8 @@ config CRYPTO_CAMELLIA_X86_64
        tristate "Camellia cipher algorithm (x86_64)"
        depends on X86 && 64BIT
        depends on CRYPTO
-       select CRYPTO_ALGAPI
+       select CRYPTO_BLKCIPHER
        select CRYPTO_GLUE_HELPER_X86
-       select CRYPTO_LRW
-       select CRYPTO_XTS
        help
          Camellia cipher algorithm module (x86_64).
 
@@ -1164,12 +1166,10 @@ config CRYPTO_CAMELLIA_AESNI_AVX_X86_64
        tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)"
        depends on X86 && 64BIT
        depends on CRYPTO
-       select CRYPTO_ALGAPI
-       select CRYPTO_CRYPTD
-       select CRYPTO_ABLK_HELPER
-       select CRYPTO_GLUE_HELPER_X86
+       select CRYPTO_BLKCIPHER
        select CRYPTO_CAMELLIA_X86_64
-       select CRYPTO_LRW
+       select CRYPTO_GLUE_HELPER_X86
+       select CRYPTO_SIMD
        select CRYPTO_XTS
        help
          Camellia cipher algorithm module (x86_64/AES-NI/AVX).
@@ -1186,14 +1186,7 @@ config CRYPTO_CAMELLIA_AESNI_AVX2_X86_64
        tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX2)"
        depends on X86 && 64BIT
        depends on CRYPTO
-       select CRYPTO_ALGAPI
-       select CRYPTO_CRYPTD
-       select CRYPTO_ABLK_HELPER
-       select CRYPTO_GLUE_HELPER_X86
-       select CRYPTO_CAMELLIA_X86_64
        select CRYPTO_CAMELLIA_AESNI_AVX_X86_64
-       select CRYPTO_LRW
-       select CRYPTO_XTS
        help
          Camellia cipher algorithm module (x86_64/AES-NI/AVX2).
 
@@ -1238,11 +1231,10 @@ config CRYPTO_CAST5
 config CRYPTO_CAST5_AVX_X86_64
        tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)"
        depends on X86 && 64BIT
-       select CRYPTO_ALGAPI
-       select CRYPTO_CRYPTD
-       select CRYPTO_ABLK_HELPER
-       select CRYPTO_CAST_COMMON
+       select CRYPTO_BLKCIPHER
        select CRYPTO_CAST5
+       select CRYPTO_CAST_COMMON
+       select CRYPTO_SIMD
        help
          The CAST5 encryption algorithm (synonymous with CAST-128) is
          described in RFC2144.
@@ -1261,13 +1253,11 @@ config CRYPTO_CAST6
 config CRYPTO_CAST6_AVX_X86_64
        tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)"
        depends on X86 && 64BIT
-       select CRYPTO_ALGAPI
-       select CRYPTO_CRYPTD
-       select CRYPTO_ABLK_HELPER
-       select CRYPTO_GLUE_HELPER_X86
-       select CRYPTO_CAST_COMMON
+       select CRYPTO_BLKCIPHER
        select CRYPTO_CAST6
-       select CRYPTO_LRW
+       select CRYPTO_CAST_COMMON
+       select CRYPTO_GLUE_HELPER_X86
+       select CRYPTO_SIMD
        select CRYPTO_XTS
        help
          The CAST6 encryption algorithm (synonymous with CAST-256) is
@@ -1294,7 +1284,7 @@ config CRYPTO_DES_SPARC64
 config CRYPTO_DES3_EDE_X86_64
        tristate "Triple DES EDE cipher algorithm (x86-64)"
        depends on X86 && 64BIT
-       select CRYPTO_ALGAPI
+       select CRYPTO_BLKCIPHER
        select CRYPTO_DES
        help
          Triple DES EDE (FIPS 46-3) algorithm.
@@ -1493,6 +1483,31 @@ config CRYPTO_SERPENT_AVX2_X86_64
          See also:
          <http://www.cl.cam.ac.uk/~rja14/serpent.html>
 
+config CRYPTO_SM4
+       tristate "SM4 cipher algorithm"
+       select CRYPTO_ALGAPI
+       help
+         SM4 cipher algorithms (OSCCA GB/T 32907-2016).
+
+         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.
+
+         SMS4 was originally created for use in protecting wireless
+         networks, and is mandated in the Chinese National Standard for
+         Wireless LAN WAPI (Wired Authentication and Privacy Infrastructure)
+         (GB.15629.11-2003).
+
+         The latest SM4 standard (GBT.32907-2016) was proposed by OSCCA and
+         standardized through TC 260 of the Standardization Administration
+         of the People's Republic of China (SAC).
+
+         The input, output, and key of SMS4 are each 128 bits.
+
+         See also: <https://eprint.iacr.org/2008/329.pdf>
+
+         If unsure, say N.
+
 config CRYPTO_SPECK
        tristate "Speck cipher algorithm"
        select CRYPTO_ALGAPI
@@ -1601,15 +1616,12 @@ config CRYPTO_TWOFISH_X86_64_3WAY
 config CRYPTO_TWOFISH_AVX_X86_64
        tristate "Twofish cipher algorithm (x86_64/AVX)"
        depends on X86 && 64BIT
-       select CRYPTO_ALGAPI
-       select CRYPTO_CRYPTD
-       select CRYPTO_ABLK_HELPER
+       select CRYPTO_BLKCIPHER
        select CRYPTO_GLUE_HELPER_X86
+       select CRYPTO_SIMD
        select CRYPTO_TWOFISH_COMMON
        select CRYPTO_TWOFISH_X86_64
        select CRYPTO_TWOFISH_X86_64_3WAY
-       select CRYPTO_LRW
-       select CRYPTO_XTS
        help
          Twofish cipher algorithm (x86_64/AVX).