linux/fs/crypto
Eric Biggers fb4454376d fscrypto: make XTS tweak initialization endian-independent
The XTS tweak (or IV) was initialized differently on little endian and
big endian systems.  Because the ciphertext depends on the XTS tweak, it
was not possible to use an encrypted filesystem created by a little
endian system on a big endian system and vice versa, even if they shared
the same PAGE_SIZE.  Fix this by always using little endian.

This will break hypothetical big endian users of ext4 or f2fs
encryption.  However, all users we are aware of are little endian, and
it's believed that "real" big endian users are unlikely to exist yet.
So this might as well be fixed now before it's too late.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
2016-10-12 23:30:16 -04:00
..
Kconfig
Makefile
crypto.c fscrypto: make XTS tweak initialization endian-independent 2016-10-12 23:30:16 -04:00
fname.c fscrypto: use standard macros to compute length of fname ciphertext 2016-09-30 01:46:18 -04:00
keyinfo.c fscrypto: remove unnecessary includes 2016-09-15 16:41:09 -04:00
policy.c fscrypto: require write access to mount to set encryption policy 2016-09-10 01:18:57 -04:00