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

This also fixes build problem when serpent-sse2 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 3cd303b70218ce878e73d5ee9af86259627c1d6e..d7d4d4e0ee18f3cb031a39d0ac172047ab0bb25e 100644 (file)
@@ -770,6 +770,8 @@ config CRYPTO_SERPENT_SSE2_X86_64
        select CRYPTO_ALGAPI
        select CRYPTO_CRYPTD
        select CRYPTO_SERPENT
+       select CRYPTO_LRW
+       select CRYPTO_XTS
        help
          Serpent cipher algorithm, by Anderson, Biham & Knudsen.
 
@@ -788,6 +790,8 @@ config CRYPTO_SERPENT_SSE2_586
        select CRYPTO_ALGAPI
        select CRYPTO_CRYPTD
        select CRYPTO_SERPENT
+       select CRYPTO_LRW
+       select CRYPTO_XTS
        help
          Serpent cipher algorithm, by Anderson, Biham & Knudsen.