|
@@ -57,20 +57,6 @@ struct fscrypt_name {
|
|
|
/* Maximum value for the third parameter of fscrypt_operations.set_context(). */
|
|
|
#define FSCRYPT_SET_CONTEXT_MAX_SIZE 28
|
|
|
|
|
|
-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] == '.')
|