Sync up with encryption patches
[ext4-patch-queue.git] / add-ext4-encryption-Kconfig
blob089a4a004cbfc4bbc7ed4c77f6d89abfeae736ef
1 ext4 crypto: add ext4 encryption Kconfig
3 From: Theodore Ts'o <tytso@mit.edu>
5 Change-Id: Ieedde8447d748d2ca1ffca546e58418fb9e9c885
6 Signed-off-by: Michael Halcrow <mhalcrow@google.com>
7 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 ---
9  fs/ext4/Kconfig | 17 +++++++++++++++++
10  1 file changed, 17 insertions(+)
12 diff --git a/fs/ext4/Kconfig b/fs/ext4/Kconfig
13 index efea5d5..18228c2 100644
14 --- a/fs/ext4/Kconfig
15 +++ b/fs/ext4/Kconfig
16 @@ -64,6 +64,23 @@ config EXT4_FS_SECURITY
17           If you are not using a security module that requires using
18           extended attributes for file security labels, say N.
20 +config EXT4_FS_ENCRYPTION
21 +       bool "Ext4 Encryption"
22 +       depends on EXT4_FS
23 +       select CRYPTO_AES
24 +       select CRYPTO_CBC
25 +       select CRYPTO_ECB
26 +       select CRYPTO_XTS
27 +       select CRYPTO_CTS
28 +       select CRYPTO_SHA256
29 +       select KEYS
30 +       select ENCRYPTED_KEYS
31 +       help
32 +         Enable encryption of ext4 files and directories.  This
33 +         feature is similar to ecryptfs, but it is more memory
34 +         efficient since it avoids caching the encrypted and
35 +         decrypted pages in the page cache.
37  config EXT4_DEBUG
38         bool "EXT4 debugging support"
39         depends on EXT4_FS