android_kernel_motorola_sm6375/fs/crypto
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Eric Biggers 23b53e4b2a UPSTREAM: fscrypt: restrict IV_INO_LBLK_* to AES-256-XTS
IV_INO_LBLK_* exist only because of hardware limitations, and currently
the only known use case for them involves AES-256-XTS.  Therefore, for
now only allow them in combination with AES-256-XTS.  This way we don't
have to worry about them being combined with other encryption modes.

(To be clear, combining IV_INO_LBLK_* with other encryption modes
*should* work just fine.  It's just not being tested, so we can't be
100% sure it works.  So with no known use case, it's best to disallow it
for now, just like we don't allow other weird combinations like
AES-256-XTS contents encryption with Adiantum filenames encryption.)

This can be relaxed later if a use case for other combinations arises.

Fixes: b103fb7653ff ("fscrypt: add support for IV_INO_LBLK_64 policies")
Fixes: e3b1078bedd3 ("fscrypt: add support for IV_INO_LBLK_32 policies")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Eric Biggers <[email protected]>
(cherry picked from commit f000223c981a7c75f6f3ab7288f0be7b571c3644)
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Change-Id: I9b28a1d2394a8a70d020be3a4f8661ac5987a78d
2020-11-14 16:29:45 +01:00
..
bio.c ANDROID: fscrypt: fix DUN contiguity with inline encryption + IV_INO_LBLK_32 policies 2020-07-14 15:48:10 +00:00
crypto.c Merge remote-tracking branch 'aosp/upstream-f2fs-stable-linux-5.4.y' into android-5.4-stable 2020-06-22 13:32:36 -07:00
fname.c Merge remote-tracking branch 'aosp/upstream-f2fs-stable-linux-5.4.y' into android-5.4-stable 2020-06-22 13:32:36 -07:00
fscrypt_private.h UPSTREAM: fscrypt: use smp_load_acquire() for fscrypt_prepared_key 2020-11-14 16:29:43 +01:00
hkdf.c fscrypt: constify struct fscrypt_hkdf parameter to fscrypt_hkdf_expand() 2020-02-12 19:35:18 -08:00
hooks.c Merge remote-tracking branch 'aosp/upstream-f2fs-stable-linux-5.4.y' into android-5.4-stable 2020-06-22 13:32:36 -07:00
inline_crypt.c UPSTREAM: fscrypt: use smp_load_acquire() for fscrypt_prepared_key 2020-11-14 16:29:43 +01:00
Kconfig Merge remote-tracking branch 'aosp/upstream-f2fs-stable-linux-5.4.y' into android-5.4 2020-02-20 12:31:26 -08:00
keyring.c Revert "ANDROID: fscrypt: add key removal notifier chain" 2020-06-29 18:26:35 +00:00
keysetup.c UPSTREAM: fscrypt: use smp_load_acquire() for fscrypt_prepared_key 2020-11-14 16:29:43 +01:00
keysetup_v1.c ANDROID: block: Prevent crypto fallback for wrapped keys 2020-02-25 19:27:51 +00:00
Makefile FROMLIST: fscrypt: add inline encryption support 2019-10-30 22:01:39 +00:00
policy.c UPSTREAM: fscrypt: restrict IV_INO_LBLK_* to AES-256-XTS 2020-11-14 16:29:45 +01:00