Barani Muthukumaran | 3dfb094 | 2020-02-03 13:06:45 -0800 | [diff] [blame] | 1 | #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 | |
| 9 | struct sys_fscrypt_add_key_arg { |
| 10 | struct fscrypt_key_specifier key_spec; |
| 11 | __u32 raw_size; |
Nikita Ioffe | 1c6731c | 2020-02-28 19:50:31 +0000 | [diff] [blame] | 12 | __u32 key_id; |
| 13 | __u32 __reserved[7]; |
Barani Muthukumaran | 3dfb094 | 2020-02-03 13:06:45 -0800 | [diff] [blame] | 14 | __u32 flags; |
| 15 | __u8 raw[]; |
| 16 | }; |
| 17 | |
Nikita Ioffe | 1c6731c | 2020-02-28 19:50:31 +0000 | [diff] [blame] | 18 | struct sys_fscrypt_provisioning_key_payload { |
| 19 | __u32 type; |
| 20 | __u32 __reserved; |
| 21 | __u8 raw[]; |
| 22 | }; |
| 23 | |
Barani Muthukumaran | 3dfb094 | 2020-02-03 13:06:45 -0800 | [diff] [blame] | 24 | #define fscrypt_add_key_arg sys_fscrypt_add_key_arg |
Nikita Ioffe | 1c6731c | 2020-02-28 19:50:31 +0000 | [diff] [blame] | 25 | #define fscrypt_provisioning_key_payload sys_fscrypt_provisioning_key_payload |
Barani Muthukumaran | 3dfb094 | 2020-02-03 13:06:45 -0800 | [diff] [blame] | 26 | |
| 27 | #endif //_UAPI_LINUX_FSCRYPT_VOLD_H |