diff options
author | Joe Richey <joerichey@google.com> | 2017-04-07 01:14:05 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2017-04-30 07:26:34 +0200 |
commit | 9c8268def6127a9d9888b822a74becb80dfeab6f (patch) | |
tree | 5fd97eff49f60f3e4485b4082eb0c6baee6ec2a9 /sound/firewire/cmp.h | |
parent | fscrypt: remove fscrypt_symlink_data_len() (diff) | |
download | linux-9c8268def6127a9d9888b822a74becb80dfeab6f.tar.xz linux-9c8268def6127a9d9888b822a74becb80dfeab6f.zip |
fscrypt: Move key structure and constants to uapi
This commit exposes the necessary constants and structures for a
userspace program to pass filesystem encryption keys into the keyring.
The fscrypt_key structure was already part of the kernel ABI, this
change just makes it so programs no longer have to redeclare these
structures (like e4crypt in e2fsprogs currently does).
Note that we do not expose the other FS_*_KEY_SIZE constants as they are
not necessary. Only XTS is supported for contents_encryption_mode, so
currently FS_MAX_KEY_SIZE bytes of key material must always be passed to
the kernel.
This commit also removes __packed from fscrypt_key as it does not
contain any implicit padding and does not refer to an on-disk structure.
Signed-off-by: Joe Richey <joerichey@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'sound/firewire/cmp.h')
0 files changed, 0 insertions, 0 deletions