]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ext4 crypto: add ext4 encryption Kconfig
authorTheodore Ts'o <tytso@mit.edu>
Wed, 8 Apr 2015 04:19:25 +0000 (00:19 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 8 Apr 2015 04:19:25 +0000 (00:19 -0400)
Change-Id: Ieedde8447d748d2ca1ffca546e58418fb9e9c885
Signed-off-by: Michael Halcrow <mhalcrow@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/Kconfig

index efea5d5c44ce4e0cf0910db50020dca4008779c0..bc395edecde90f96fda73bb803429e7ed3d3feb7 100644 (file)
@@ -64,6 +64,27 @@ config EXT4_FS_SECURITY
          If you are not using a security module that requires using
          extended attributes for file security labels, say N.
 
+config EXT4_FS_ENCRYPTION
+       bool "Ext4 Encryption"
+       depends on EXT4_FS
+       select CRYPTO_AES
+       select CRYPTO_CBC
+       select CRYPTO_CTR
+       select CRYPTO_ECB
+       select CRYPTO_XTS
+       select CRYPTO_CTS
+       select CRYPTO_SHA1
+       select CRYPTO_SHA256
+       select CRYPTO_SHA512
+       select CRYPTO_HMAC
+       select KEYS
+       select ENCRYPTED_KEYS
+       help
+         Enable encryption of ext4 files and directories.  This
+         feature is similar to ecryptfs, but it is more memory
+         efficient since it avoids caching the encrypted and
+         decrypted pages in the page cache.
+
 config EXT4_DEBUG
        bool "EXT4 debugging support"
        depends on EXT4_FS