blob: 3cda96e46eef144fd002754342f3be296fba7152 [file] [log] [blame]
Barani Muthukumaran3dfb0942020-02-03 13:06:45 -08001#ifndef _UAPI_LINUX_FSCRYPT_VOLD_H
2#define _UAPI_LINUX_FSCRYPT_VOLD_H
3
4#include <linux/fscrypt.h>
5#include <linux/types.h>
6
7#define FSCRYPT_ADD_KEY_FLAG_WRAPPED 0x01
8
9struct sys_fscrypt_add_key_arg {
10 struct fscrypt_key_specifier key_spec;
11 __u32 raw_size;
Nikita Ioffe1ee35cf2020-02-28 19:50:31 +000012 __u32 key_id;
13 __u32 __reserved[7];
Barani Muthukumaran3dfb0942020-02-03 13:06:45 -080014 __u32 flags;
15 __u8 raw[];
16};
17
Nikita Ioffe1ee35cf2020-02-28 19:50:31 +000018struct sys_fscrypt_provisioning_key_payload {
19 __u32 type;
20 __u32 __reserved;
21 __u8 raw[];
22};
23
Barani Muthukumaran3dfb0942020-02-03 13:06:45 -080024#define fscrypt_add_key_arg sys_fscrypt_add_key_arg
Nikita Ioffe1ee35cf2020-02-28 19:50:31 +000025#define fscrypt_provisioning_key_payload sys_fscrypt_provisioning_key_payload
Barani Muthukumaran3dfb0942020-02-03 13:06:45 -080026
27#endif //_UAPI_LINUX_FSCRYPT_VOLD_H