+/*
+ *Interface for text decryption family
+ */
+struct pager_crypt_info {
+ /* Decrypt one page */
+ int (*page_decrypt)(const void *src_vaddr, void *dst_vaddr,
+ unsigned long long src_offset, void *crypt_ops);
+ /* Pager using this crypter terminates - crypt module not needed anymore */
+ void (*crypt_end)(void *crypt_ops);
+ /* Private data for the crypter */
+ void *crypt_ops;
+ volatile int crypt_refcnt;
+};
+typedef struct pager_crypt_info pager_crypt_info_t;
+
+struct crypt_file_data {
+ char *filename;
+ cpu_type_t cputype;
+ cpu_subtype_t cpusubtype;
+};
+typedef struct crypt_file_data crypt_file_data_t;
+
+typedef int (*text_crypter_create_hook_t)(struct pager_crypt_info *crypt_info,
+ const char *id, void *crypt_data);
+extern void text_crypter_create_hook_set(text_crypter_create_hook_t hook);
+extern text_crypter_create_hook_t text_crypter_create;