linux/fs/crypto
Eric Biggers b9db0b4a68 fscrypt: fix up fscrypt_fname_encrypted_size() for internal use
Filesystems don't need fscrypt_fname_encrypted_size() anymore, so
unexport it and move it to fscrypt_private.h.

We also never calculate the encrypted size of a filename without having
the fscrypt_info present since it is needed to know the amount of
NUL-padding which is determined by the encryption policy, and also we
will always truncate the NUL-padding to the maximum filename length.
Therefore, also make fscrypt_fname_encrypted_size() assume that the
fscrypt_info is present, and make it truncate the returned length to the
specified max_len.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2018-01-11 23:30:08 -05:00
..
Kconfig fscrypt: add support for AES-128-CBC 2017-06-23 20:05:07 -04:00
Makefile fscrypt: new helper function - fscrypt_file_open() 2017-10-18 19:52:37 -04:00
bio.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
crypto.c fscrypt: trim down fscrypt.h includes 2018-01-11 22:06:19 -05:00
fname.c fscrypt: fix up fscrypt_fname_encrypted_size() for internal use 2018-01-11 23:30:08 -05:00
fscrypt_private.h fscrypt: fix up fscrypt_fname_encrypted_size() for internal use 2018-01-11 23:30:08 -05:00
hooks.c fscrypt: fix up fscrypt_fname_encrypted_size() for internal use 2018-01-11 23:30:08 -05:00
keyinfo.c fscrypt: trim down fscrypt.h includes 2018-01-11 22:06:19 -05:00
policy.c fscrypt: lots of cleanups, mostly courtesy by Eric Biggers 2017-11-14 11:35:15 -08:00