crypto: twofish-x86_64-3way - select LRW and XTS
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Tue, 13 Dec 2011 10:53:01 +0000 (12:53 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Dec 2011 07:20:06 +0000 (15:20 +0800)
twofish-x86_64-3way uses functions from LRW and XTS modules, so selecting would
appear to be better option than using #ifdefs in twofish_glue_3way.c to
enable/disable LRW and XTS features.

This also fixes build problem when twofish-x86_64-3way would be build into
kernel but XTS/LRW are build as modules.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/Kconfig

index a77cd8eee884495493d88920be0adcae055a442c..3cd303b70218ce878e73d5ee9af86259627c1d6e 100644 (file)
@@ -876,6 +876,8 @@ config CRYPTO_TWOFISH_X86_64_3WAY
        select CRYPTO_ALGAPI
        select CRYPTO_TWOFISH_COMMON
        select CRYPTO_TWOFISH_X86_64
+       select CRYPTO_LRW
+       select CRYPTO_XTS
        help
          Twofish cipher algorithm (x86_64, 3-way parallel).