fscrypt: move v1 policy key setup to keysetup_v1.c
authorEric Biggers <ebiggers@google.com>
Mon, 5 Aug 2019 02:35:45 +0000 (19:35 -0700)
committerEric Biggers <ebiggers@google.com>
Tue, 13 Aug 2019 02:06:00 +0000 (19:06 -0700)
commit0109ce76dd6e9e69559e56ea9f10d1e12ca4a50b
tree504055ee412377cd59284a1da771f7e085085bbe
parent3ec4f2a62927c72607db633f55b0489e3d5b8e48
fscrypt: move v1 policy key setup to keysetup_v1.c

In preparation for introducing v2 encryption policies which will find
and derive encryption keys differently from the current v1 encryption
policies, move the v1 policy-specific key setup code from keyinfo.c into
keysetup_v1.c.

Reviewed-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Eric Biggers <ebiggers@google.com>
fs/crypto/Makefile
fs/crypto/fscrypt_private.h
fs/crypto/keyinfo.c
fs/crypto/keysetup_v1.c [new file with mode: 0644]