diff --git a/linux-5.10/prebuilts/usr/include/linux/code_decrypt.h b/linux-5.10/prebuilts/usr/include/linux/code_decrypt.h new file mode 100644 index 0000000000000000000000000000000000000000..77dccb7ec7d34cbf8f6407d1ef5e9852b93138aa --- /dev/null +++ b/linux-5.10/prebuilts/usr/include/linux/code_decrypt.h @@ -0,0 +1,61 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ + +#ifndef _UAPI_LINUX_CODE_DECRYPT_H +#define _UAPI_LINUX_CODE_DECRYPT_H + +#include +#include + +struct code_decrypt_arg { + int arg1_len; + int arg2_len; + void *arg1; + void *arg2; +}; + +#ifndef CIPHER_IV_LEN +#define CIPHER_IV_LEN (128 / 8) +#endif +struct code_decrypt_arg_range { + unsigned char iv[CIPHER_IV_LEN]; + unsigned long off; + unsigned long size; +}; +#undef CIPHER_IV_LEN + +struct code_decrypt_inode_metadata { + int version; + int metadata_size; + int app_id_off; + int app_id_size; + int range_off; + int range_size; +}; + +/* Common commands */ +#define CODE_DECRYPT_CMD_SET_KEY _IOW('c', 0x01, struct code_decrypt_arg) +#define CODE_DECRYPT_CMD_REMOVE_KEY _IOW('c', 0x02, struct code_decrypt_arg) +#define CODE_DECRYPT_CMD_SET_ASSOCIATE_KEY _IOW('c', 0x03, struct code_decrypt_arg) +#define CODE_DECRYPT_CMD_REMOVE_ASSOCIATE_KEY _IOW('c', 0x04, struct code_decrypt_arg) +#define CODE_DECRYPT_CMD_CLEAR_CACHE_BY_KEY _IOW('c', 0x05, struct code_decrypt_arg) +#define CODE_DECRYPT_CMD_CLEAR_CACHE_BY_FILE _IOW('c', 0x06, struct code_decrypt_arg) +#define CODE_DECRYPT_CMD_CLEAR_SPECIFIC_CACHE _IOW('c', 0x07, struct code_decrypt_arg) + +#endif \ No newline at end of file