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 fa1741bb568f9742c46fd995d80eea159ab1712b..d9573b3f081ff8a5f952e98fe43e66783b10a714 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 bcf09fbc750af33d8c91a018ed218efec27d870e..8d59a66b652555819452fd764c0e6094d104f508 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");