]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.18.77/crypto-xts-add-ecb-dependency.patch
drop queue-4.14/mips-make-sure-dt-memory-regions-are-valid.patch
[thirdparty/kernel/stable-queue.git] / releases / 3.18.77 / crypto-xts-add-ecb-dependency.patch
1 From foo@baz Thu Oct 19 15:22:10 CEST 2017
2 From: Milan Broz <gmazyland@gmail.com>
3 Date: Thu, 23 Feb 2017 08:38:26 +0100
4 Subject: crypto: xts - Add ECB dependency
5
6 From: Milan Broz <gmazyland@gmail.com>
7
8
9 [ Upstream commit 12cb3a1c4184f891d965d1f39f8cfcc9ef617647 ]
10
11 Since the
12 commit f1c131b45410a202eb45cc55980a7a9e4e4b4f40
13 crypto: xts - Convert to skcipher
14 the XTS mode is based on ECB, so the mode must select
15 ECB otherwise it can fail to initialize.
16
17 Signed-off-by: Milan Broz <gmazyland@gmail.com>
18 Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
19 Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
20 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
21 ---
22 crypto/Kconfig | 1 +
23 1 file changed, 1 insertion(+)
24
25 --- a/crypto/Kconfig
26 +++ b/crypto/Kconfig
27 @@ -290,6 +290,7 @@ config CRYPTO_XTS
28 select CRYPTO_BLKCIPHER
29 select CRYPTO_MANAGER
30 select CRYPTO_GF128MUL
31 + select CRYPTO_ECB
32 help
33 XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
34 key size 256, 384 or 512 bits. This implementation currently