blob: a5f5c30368a203d5c1f901ac00cdf1093ba4834f [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Jaegeuk Kim0b81d072015-05-15 16:26:10 -07002config FS_ENCRYPTION
Chandan Rajendra643fa962018-12-12 15:20:12 +05303 bool "FS Encryption (Per-file encryption)"
Jaegeuk Kim0b81d072015-05-15 16:26:10 -07004 select CRYPTO
Herbert Xuede7a092019-12-27 10:47:00 +08005 select CRYPTO_HASH
6 select CRYPTO_SKCIPHER
Eric Biggersbd0d97b2020-07-21 15:59:16 -07007 select CRYPTO_LIB_SHA256
Jaegeuk Kim0b81d072015-05-15 16:26:10 -07008 select KEYS
Jaegeuk Kim0b81d072015-05-15 16:26:10 -07009 help
10 Enable encryption of files and directories. This
11 feature is similar to ecryptfs, but it is more memory
12 efficient since it avoids caching the encrypted and
Chandan Rajendra643fa962018-12-12 15:20:12 +053013 decrypted pages in the page cache. Currently Ext4,
14 F2FS and UBIFS make use of this feature.
Herbert Xuede7a092019-12-27 10:47:00 +080015
16# Filesystems supporting encryption must select this if FS_ENCRYPTION. This
17# allows the algorithms to be built as modules when all the filesystems are.
18config FS_ENCRYPTION_ALGS
19 tristate
20 select CRYPTO_AES
21 select CRYPTO_CBC
22 select CRYPTO_CTS
23 select CRYPTO_ECB
24 select CRYPTO_HMAC
25 select CRYPTO_SHA512
26 select CRYPTO_XTS
Satya Tangirala5fee3602020-07-02 01:56:05 +000027
28config FS_ENCRYPTION_INLINE_CRYPT
29 bool "Enable fscrypt to use inline crypto"
30 depends on FS_ENCRYPTION && BLK_INLINE_ENCRYPTION
31 help
32 Enable fscrypt to use inline encryption hardware if available.