47 lines · plain
1# SPDX-License-Identifier: GPL-2.0-only2config FS_ENCRYPTION3 bool "FS Encryption (Per-file encryption)"4 select CRYPTO5 select CRYPTO_HASH6 select CRYPTO_SKCIPHER7 select CRYPTO_LIB_SHA2568 select KEYS9 help10 Enable encryption of files and directories. This11 feature is similar to ecryptfs, but it is more memory12 efficient since it avoids caching the encrypted and13 decrypted pages in the page cache. Currently Ext4,14 F2FS, UBIFS, and CephFS make use of this feature.15 16# Filesystems supporting encryption must select this if FS_ENCRYPTION. This17# allows the algorithms to be built as modules when all the filesystems are,18# whereas selecting them from FS_ENCRYPTION would force them to be built-in.19#20# Note: this option only pulls in the algorithms that filesystem encryption21# needs "by default". If userspace will use "non-default" encryption modes such22# as Adiantum encryption, then those other modes need to be explicitly enabled23# in the crypto API; see Documentation/filesystems/fscrypt.rst for details.24#25# Also note that this option only pulls in the generic implementations of the26# algorithms, not any per-architecture optimized implementations. It is27# strongly recommended to enable optimized implementations too. It is safe to28# disable these generic implementations if corresponding optimized29# implementations will always be available too; for this reason, these are soft30# dependencies ('imply' rather than 'select'). Only disable these generic31# implementations if you're sure they will never be needed, though.32config FS_ENCRYPTION_ALGS33 tristate34 imply CRYPTO_AES35 imply CRYPTO_CBC36 imply CRYPTO_CTS37 imply CRYPTO_ECB38 imply CRYPTO_HMAC39 imply CRYPTO_SHA51240 imply CRYPTO_XTS41 42config FS_ENCRYPTION_INLINE_CRYPT43 bool "Enable fscrypt to use inline crypto"44 depends on FS_ENCRYPTION && BLK_INLINE_ENCRYPTION45 help46 Enable fscrypt to use inline encryption hardware if available.47