Searched hist:"3 ec4f2a62927c72607db633f55b0489e3d5b8e48" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/crypto/ |
H A D | fscrypt_private.h | diff 3ec4f2a62927c72607db633f55b0489e3d5b8e48 Sun Aug 04 21:35:45 CDT 2019 Eric Biggers <ebiggers@google.com> 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>
|