2019-05-19 20:07:45 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2015-05-16 07:26:10 +08:00
|
|
|
config FS_ENCRYPTION
|
2018-12-12 17:50:12 +08:00
|
|
|
bool "FS Encryption (Per-file encryption)"
|
2015-05-16 07:26:10 +08:00
|
|
|
select CRYPTO
|
2019-12-27 10:47:00 +08:00
|
|
|
select CRYPTO_HASH
|
|
|
|
select CRYPTO_SKCIPHER
|
2020-07-22 06:59:16 +08:00
|
|
|
select CRYPTO_LIB_SHA256
|
2015-05-16 07:26:10 +08:00
|
|
|
select KEYS
|
|
|
|
help
|
|
|
|
Enable encryption of files and directories. This
|
|
|
|
feature is similar to ecryptfs, but it is more memory
|
|
|
|
efficient since it avoids caching the encrypted and
|
2018-12-12 17:50:12 +08:00
|
|
|
decrypted pages in the page cache. Currently Ext4,
|
|
|
|
F2FS and UBIFS make use of this feature.
|
2019-12-27 10:47:00 +08:00
|
|
|
|
|
|
|
# Filesystems supporting encryption must select this if FS_ENCRYPTION. This
|
|
|
|
# allows the algorithms to be built as modules when all the filesystems are.
|
|
|
|
config FS_ENCRYPTION_ALGS
|
|
|
|
tristate
|
|
|
|
select CRYPTO_AES
|
|
|
|
select CRYPTO_CBC
|
|
|
|
select CRYPTO_CTS
|
|
|
|
select CRYPTO_ECB
|
|
|
|
select CRYPTO_HMAC
|
|
|
|
select CRYPTO_SHA512
|
|
|
|
select CRYPTO_XTS
|
2020-07-02 09:56:05 +08:00
|
|
|
|
|
|
|
config FS_ENCRYPTION_INLINE_CRYPT
|
|
|
|
bool "Enable fscrypt to use inline crypto"
|
|
|
|
depends on FS_ENCRYPTION && BLK_INLINE_ENCRYPTION
|
|
|
|
help
|
|
|
|
Enable fscrypt to use inline encryption hardware if available.
|