xref: /openbmc/linux/fs/crypto/Kconfig (revision bd0d97b7)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
20b81d077SJaegeuk Kimconfig FS_ENCRYPTION
3643fa961SChandan Rajendra	bool "FS Encryption (Per-file encryption)"
40b81d077SJaegeuk Kim	select CRYPTO
5ede7a09fSHerbert Xu	select CRYPTO_HASH
6ede7a09fSHerbert Xu	select CRYPTO_SKCIPHER
7bd0d97b7SEric Biggers	select CRYPTO_LIB_SHA256
80b81d077SJaegeuk Kim	select KEYS
90b81d077SJaegeuk Kim	help
100b81d077SJaegeuk Kim	  Enable encryption of files and directories.  This
110b81d077SJaegeuk Kim	  feature is similar to ecryptfs, but it is more memory
120b81d077SJaegeuk Kim	  efficient since it avoids caching the encrypted and
13643fa961SChandan Rajendra	  decrypted pages in the page cache.  Currently Ext4,
14643fa961SChandan Rajendra	  F2FS and UBIFS make use of this feature.
15ede7a09fSHerbert Xu
16ede7a09fSHerbert Xu# Filesystems supporting encryption must select this if FS_ENCRYPTION.  This
17ede7a09fSHerbert Xu# allows the algorithms to be built as modules when all the filesystems are.
18ede7a09fSHerbert Xuconfig FS_ENCRYPTION_ALGS
19ede7a09fSHerbert Xu	tristate
20ede7a09fSHerbert Xu	select CRYPTO_AES
21ede7a09fSHerbert Xu	select CRYPTO_CBC
22ede7a09fSHerbert Xu	select CRYPTO_CTS
23ede7a09fSHerbert Xu	select CRYPTO_ECB
24ede7a09fSHerbert Xu	select CRYPTO_HMAC
25ede7a09fSHerbert Xu	select CRYPTO_SHA512
26ede7a09fSHerbert Xu	select CRYPTO_XTS
275fee3609SSatya Tangirala
285fee3609SSatya Tangiralaconfig FS_ENCRYPTION_INLINE_CRYPT
295fee3609SSatya Tangirala	bool "Enable fscrypt to use inline crypto"
305fee3609SSatya Tangirala	depends on FS_ENCRYPTION && BLK_INLINE_ENCRYPTION
315fee3609SSatya Tangirala	help
325fee3609SSatya Tangirala	  Enable fscrypt to use inline encryption hardware if available.
33