]> git.hungrycats.org Git - linux/commitdiff
crypto: xts - Add ECB dependency
authorMilan Broz <gmazyland@gmail.com>
Thu, 23 Feb 2017 07:38:26 +0000 (08:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Mar 2017 05:44:14 +0000 (06:44 +0100)
commit 12cb3a1c4184f891d965d1f39f8cfcc9ef617647 upstream.

Since the
   commit f1c131b45410a202eb45cc55980a7a9e4e4b4f40
   crypto: xts - Convert to skcipher
the XTS mode is based on ECB, so the mode must select
ECB otherwise it can fail to initialize.

Signed-off-by: Milan Broz <gmazyland@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
crypto/Kconfig

index 160f08e721cc05ee4e8b1b4d4ecb556c599d6c36..9c245eb0dd83d4948ce5610e89692d10b11476cc 100644 (file)
@@ -374,6 +374,7 @@ config CRYPTO_XTS
        select CRYPTO_BLKCIPHER
        select CRYPTO_MANAGER
        select CRYPTO_GF128MUL
+       select CRYPTO_ECB
        help
          XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
          key size 256, 384 or 512 bits. This implementation currently