1# SPDX-License-Identifier: GPL-2.0-only 2config FS_ENCRYPTION 3 bool "FS Encryption (Per-file encryption)" 4 select CRYPTO 5 select CRYPTO_HASH 6 select CRYPTO_HKDF 7 select CRYPTO_SKCIPHER 8 select CRYPTO_LIB_SHA256 9 select KEYS 10 help 11 Enable encryption of files and directories. This 12 feature is similar to ecryptfs, but it is more memory 13 efficient since it avoids caching the encrypted and 14 decrypted pages in the page cache. Currently Ext4, 15 F2FS, UBIFS, and CephFS make use of this feature. 16 17# Filesystems supporting encryption must select this if FS_ENCRYPTION. This 18# allows the algorithms to be built as modules when all the filesystems are, 19# whereas selecting them from FS_ENCRYPTION would force them to be built-in. 20# 21# Note: this option only pulls in the algorithms that filesystem encryption 22# needs "by default". If userspace will use "non-default" encryption modes such 23# as Adiantum encryption, then those other modes need to be explicitly enabled 24# in the crypto API; see Documentation/filesystems/fscrypt.rst for details. 25# 26# Also note that this option only pulls in the generic implementations of the 27# algorithms, not any per-architecture optimized implementations. It is 28# strongly recommended to enable optimized implementations too. 29config FS_ENCRYPTION_ALGS 30 tristate 31 select CRYPTO_AES 32 select CRYPTO_CBC 33 select CRYPTO_CTS 34 select CRYPTO_ECB 35 select CRYPTO_HMAC 36 select CRYPTO_SHA512 37 select CRYPTO_XTS 38 39config FS_ENCRYPTION_INLINE_CRYPT 40 bool "Enable fscrypt to use inline crypto" 41 depends on FS_ENCRYPTION && BLK_INLINE_ENCRYPTION 42 help 43 Enable fscrypt to use inline encryption hardware if available. 44