Eric Biggers
3ec4f2a629
fscrypt: refactor key setup code in preparation for v2 policies
...
Do some more refactoring of the key setup code, in preparation for
introducing a filesystem-level keyring and v2 encryption policies:
- Now that ci_inode exists, don't pass around the inode unnecessarily.
- Define a function setup_file_encryption_key() which handles the crypto
key setup given an under-construction fscrypt_info. Don't pass the
fscrypt_context, since everything is in the fscrypt_info.
[This will be extended for v2 policies and the fs-level keyring.]
- Define a function fscrypt_set_derived_key() which sets the per-file
key, without depending on anything specific to v1 policies.
[This will also be used for v2 policies.]
- Define a function fscrypt_setup_v1_file_key() which takes the raw
master key, thus separating finding the key from using it.
[This will also be used if the key is found in the fs-level keyring.]
Reviewed-by: Theodore Ts'o <tytso@mit.edu >
Signed-off-by: Eric Biggers <ebiggers@google.com >
2019-08-12 19:05:51 -07:00
..
2019-07-12 11:05:43 -07:00
2019-07-19 11:33:22 -07:00
2019-05-21 10:50:46 +02:00
2019-07-25 20:09:49 -05:00
2019-05-24 17:37:52 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-08-02 14:19:41 -07:00
2019-05-24 17:27:11 +02:00
2019-07-20 09:15:51 -07:00
2019-07-18 18:14:47 -05:00
2019-07-16 19:23:23 -07:00
2019-07-19 10:42:02 -07:00
2019-05-21 10:50:46 +02:00
2019-08-12 19:05:51 -07:00
2019-07-12 12:24:03 -07:00
2019-06-20 14:46:34 +02:00
2019-07-12 17:37:53 -07:00
2019-07-14 19:29:04 -07:00
2019-07-19 10:42:02 -07:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-07-12 16:54:37 -07:00
2019-07-18 10:52:08 -07:00
2019-07-30 13:15:39 -07:00
2019-06-05 17:36:37 +02:00
2019-05-21 10:50:46 +02:00
2019-07-10 18:43:43 -07:00
2019-07-19 10:42:02 -07:00
2019-07-31 18:51:50 +02:00
2019-05-21 10:50:46 +02:00
2019-07-16 19:23:23 -07:00
2019-05-12 17:52:13 -04:00
2019-05-21 10:50:46 +02:00
2019-07-19 10:42:02 -07:00
2019-07-25 11:05:11 +02:00
2019-05-30 11:25:17 -07:00
2019-06-20 17:32:21 -04:00
2019-07-12 11:05:43 -07:00
2019-07-01 08:25:34 -07:00
2019-06-05 17:37:16 +02:00
2019-07-03 17:52:09 -04:00
2019-05-21 10:50:46 +02:00
2019-07-20 09:15:51 -07:00
2019-05-21 10:50:46 +02:00
2019-07-19 10:42:02 -07:00
2019-07-01 08:25:34 -07:00
2019-05-21 10:50:46 +02:00
2019-07-18 17:08:07 -07:00
2019-05-24 17:37:53 +02:00
2019-08-03 07:02:00 -07:00
2019-05-30 11:29:53 -07:00
2019-07-19 10:42:02 -07:00
2019-07-16 15:15:29 -07:00
2019-06-21 09:58:42 -07:00
2019-07-19 10:42:02 -07:00
2019-07-08 21:04:42 -07:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-07-10 20:27:07 -07:00
2019-07-19 10:42:02 -07:00
2019-07-16 19:23:24 -07:00
2019-05-30 11:26:32 -07:00
2019-06-19 17:09:53 +02:00
2019-07-19 10:42:02 -07:00
2019-05-21 10:50:46 +02:00
2019-07-10 20:09:17 -07:00
2019-07-18 17:08:07 -07:00
2019-07-10 20:27:07 -07:00
2019-07-16 19:23:23 -07:00
2019-07-10 21:06:01 -07:00
2019-07-30 11:28:20 -07:00
2019-07-19 10:42:02 -07:00
2019-07-19 10:42:02 -07:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:32 -07:00
2019-07-16 19:23:22 -07:00
2019-05-21 10:50:45 +02:00
2019-07-16 19:23:22 -07:00
2019-07-19 10:42:02 -07:00
2019-05-21 10:50:45 +02:00
2019-08-01 13:51:18 -06:00
2019-07-15 21:20:52 -07:00
2019-05-24 20:50:36 +02:00
2019-05-30 11:29:21 -07:00
2019-06-19 17:09:55 +02:00
2019-08-03 07:02:01 -07:00
2019-05-21 08:23:41 +01:00
2019-07-29 09:24:22 -07:00
2019-07-20 09:15:51 -07:00
2019-05-21 10:50:45 +02:00
2019-06-29 09:47:31 -06:00
2019-05-21 10:50:45 +02:00
2019-07-18 17:08:07 -07:00
2019-07-25 15:37:04 +02:00
2019-04-08 18:21:02 -05:00
2019-05-21 10:50:45 +02:00
2019-03-08 14:48:40 -08:00
2019-02-28 03:29:26 -05:00
2019-05-25 18:00:01 -04:00
2019-07-19 10:42:02 -07:00
2019-07-16 22:52:37 -04:00
2019-05-21 10:50:45 +02:00
2019-07-10 09:00:57 -06:00
2019-07-19 10:42:02 -07:00
2019-07-12 16:54:37 -07:00
2019-07-20 09:15:51 -07:00
2019-07-31 08:45:10 -06:00
2019-07-05 11:22:11 -04:00
2019-06-24 09:16:47 +10:00
2019-07-19 10:42:02 -07:00
2019-07-10 21:22:43 -07:00
2019-07-17 07:20:43 -07:00
2019-05-21 10:50:45 +02:00
2019-07-16 22:52:37 -04:00
2019-07-10 09:00:57 -06:00
2019-06-20 14:44:55 +02:00
2019-07-26 07:59:06 -04:00
2019-05-30 11:26:32 -07:00
2019-05-25 18:00:06 -04:00
2019-07-24 10:12:09 -07:00
2019-05-25 18:00:07 -04:00
2019-06-17 17:36:09 -04:00
2019-05-30 11:29:53 -07:00
2019-05-21 10:50:45 +02:00
2019-06-09 10:06:20 -07:00
2019-07-16 19:23:25 -07:00
2019-07-03 17:52:50 -04:00
2019-04-08 18:21:02 -05:00
2019-05-31 15:30:03 -06:00
2019-05-21 10:50:45 +02:00
2019-07-31 12:22:32 -04:00
2019-05-14 09:47:50 -07:00
2019-07-05 11:12:07 +09:00
2019-05-21 10:50:45 +02:00