crypto: lrw - Add dependency on ecb
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Feb 2022 02:31:13 +0000 (13:31 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 18 Feb 2022 05:21:08 +0000 (16:21 +1100)
The lrw template relies on ecb to work.  So we need to declare
a Kconfig dependency as well as a module softdep on it.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/Kconfig
crypto/lrw.c

index fa1741b..d9573b3 100644 (file)
@@ -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
index bcf09fb..8d59a66 100644 (file)
@@ -428,3 +428,4 @@ module_exit(lrw_module_exit);
 MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("LRW block cipher mode");
 MODULE_ALIAS_CRYPTO("lrw");
+MODULE_SOFTDEP("pre: ecb");