crypto: lrw - Add dependency on ecb
[linux-block.git] / crypto / Kconfig
index 94bfa32cc6a1dbc1cc3f2b82e1ea2ff9c1c4511d..d9573b3f081ff8a5f952e98fe43e66783b10a714 100644 (file)
@@ -267,7 +267,7 @@ config CRYPTO_ECRDSA
 
 config CRYPTO_SM2
        tristate "SM2 algorithm"
-       select CRYPTO_SM3
+       select CRYPTO_LIB_SM3
        select CRYPTO_AKCIPHER
        select CRYPTO_MANAGER
        select MPILIB
@@ -425,6 +425,7 @@ config CRYPTO_LRW
        select CRYPTO_SKCIPHER
        select CRYPTO_MANAGER
        select CRYPTO_GF128MUL
+       select CRYPTO_ECB
        help
          LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
          narrow block cipher mode for dm-crypt.  Use it with cipher
@@ -999,6 +1000,7 @@ config CRYPTO_SHA3
 config CRYPTO_SM3
        tristate "SM3 digest algorithm"
        select CRYPTO_HASH
+       select CRYPTO_LIB_SM3
        help
          SM3 secure hash function as defined by OSCCA GM/T 0004-2012 SM3).
          It is part of the Chinese Commercial Cryptography suite.
@@ -1007,6 +1009,19 @@ config CRYPTO_SM3
          http://www.oscca.gov.cn/UpFile/20101222141857786.pdf
          https://datatracker.ietf.org/doc/html/draft-shen-sm3-hash
 
+config CRYPTO_SM3_AVX_X86_64
+       tristate "SM3 digest algorithm (x86_64/AVX)"
+       depends on X86 && 64BIT
+       select CRYPTO_HASH
+       select CRYPTO_LIB_SM3
+       help
+         SM3 secure hash function as defined by OSCCA GM/T 0004-2012 SM3).
+         It is part of the Chinese Commercial Cryptography suite. This is
+         SM3 optimized implementation using Advanced Vector Extensions (AVX)
+         when available.
+
+         If unsure, say N.
+
 config CRYPTO_STREEBOG
        tristate "Streebog Hash Function"
        select CRYPTO_HASH
@@ -1847,6 +1862,7 @@ config CRYPTO_JITTERENTROPY
 
 config CRYPTO_KDF800108_CTR
        tristate
+       select CRYPTO_HMAC
        select CRYPTO_SHA256
 
 config CRYPTO_USER_API
@@ -1928,5 +1944,3 @@ source "crypto/asymmetric_keys/Kconfig"
 source "certs/Kconfig"
 
 endif  # if CRYPTO
-
-source "lib/crypto/Kconfig"