linux-stable/fs/crypto
Eric Biggers 71b029a5d9 fscrypt: clean up some BUG_ON()s in block encryption/decryption
[ Upstream commit eeacfdc68a ]

Replace some BUG_ON()s with WARN_ON_ONCE() and returning an error code,
and move the check for len divisible by FS_CRYPTO_BLOCK_SIZE into
fscrypt_crypt_block() so that it's done for both encryption and
decryption, not just encryption.

Reviewed-by: Chandan Rajendra <chandan@linux.ibm.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-07-26 09:14:02 +02:00
..
bio.c fscrypt: allow synchronous bio decryption 2018-05-02 14:30:57 -07:00
crypto.c fscrypt: clean up some BUG_ON()s in block encryption/decryption 2019-07-26 09:14:02 +02:00
fname.c fscrypt: use a common logging function 2018-05-20 16:21:05 -04:00
fscrypt_private.h crypto: speck - remove Speck 2018-11-13 11:08:46 -08:00
hooks.c fscrypt: use a common logging function 2018-05-20 16:21:05 -04:00
Kconfig fscrypt: add support for AES-128-CBC 2017-06-23 20:05:07 -04:00
keyinfo.c crypto: speck - remove Speck 2018-11-13 11:08:46 -08:00
Makefile fscrypt: new helper function - fscrypt_file_open() 2017-10-18 19:52:37 -04:00
policy.c fscrypt: don't set policy for a dead directory 2019-07-14 08:11:16 +02:00