diff options
| author | Eric Biggers <ebiggers@google.com> | 2018-01-05 10:44:58 -0800 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-04-08 02:10:15 -0700 |
| commit | e6fe930580cb0344a4fbd0b15bb8cda5e3986fee (patch) | |
| tree | 8846183d9ec0416480a45e5e661acc92abc48ce3 /include/linux | |
| parent | efefa434f47e1d907b3a4c31b9c9f1e561fe57d6 (diff) | |
fscrypt: move fscrypt_valid_enc_modes() to fscrypt_private.h
The encryption modes are validated by fs/crypto/, not by individual
filesystems. Therefore, move fscrypt_valid_enc_modes() from fscrypt.h
to fscrypt_private.h.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/fscrypt.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/linux/fscrypt.h b/include/linux/fscrypt.h index b29cdfc3486e..b03cb23728ea 100644 --- a/include/linux/fscrypt.h +++ b/include/linux/fscrypt.h @@ -53,20 +53,6 @@ struct fscrypt_name { #define fname_name(p) ((p)->disk_name.name) #define fname_len(p) ((p)->disk_name.len) -static inline bool fscrypt_valid_enc_modes(u32 contents_mode, - u32 filenames_mode) -{ - if (contents_mode == FS_ENCRYPTION_MODE_AES_128_CBC && - filenames_mode == FS_ENCRYPTION_MODE_AES_128_CTS) - return true; - - if (contents_mode == FS_ENCRYPTION_MODE_AES_256_XTS && - filenames_mode == FS_ENCRYPTION_MODE_AES_256_CTS) - return true; - - return false; -} - static inline bool fscrypt_is_dot_dotdot(const struct qstr *str) { if (str->len == 1 && str->name[0] == '.') |
