1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 enum { 20 CRYPTO_MSG_BASE = 0x10, 21 CRYPTO_MSG_NEWALG = 0x10, 22 CRYPTO_MSG_DELALG, 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 CRYPTO_MSG_UPDATEALG, 25 CRYPTO_MSG_GETALG, 26 CRYPTO_MSG_DELRNG, 27 __CRYPTO_MSG_MAX 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 }; 30 #define CRYPTO_MSG_MAX (__CRYPTO_MSG_MAX - 1) 31 #define CRYPTO_NR_MSGTYPES (CRYPTO_MSG_MAX + 1 - CRYPTO_MSG_BASE) 32 #define CRYPTO_MAX_NAME CRYPTO_MAX_ALG_NAME 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 enum crypto_attr_type_t { 35 CRYPTOCFGA_UNSPEC, 36 CRYPTOCFGA_PRIORITY_VAL, 37 CRYPTOCFGA_REPORT_LARVAL, 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 CRYPTOCFGA_REPORT_HASH, 40 CRYPTOCFGA_REPORT_BLKCIPHER, 41 CRYPTOCFGA_REPORT_AEAD, 42 CRYPTOCFGA_REPORT_COMPRESS, 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 CRYPTOCFGA_REPORT_RNG, 45 CRYPTOCFGA_REPORT_CIPHER, 46 CRYPTOCFGA_REPORT_AKCIPHER, 47 CRYPTOCFGA_REPORT_KPP, 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 CRYPTOCFGA_REPORT_ACOMP, 50 __CRYPTOCFGA_MAX 51 #define CRYPTOCFGA_MAX (__CRYPTOCFGA_MAX - 1) 52 }; 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 struct crypto_user_alg { 55 char cru_name[CRYPTO_MAX_ALG_NAME]; 56 char cru_driver_name[CRYPTO_MAX_ALG_NAME]; 57 char cru_module_name[CRYPTO_MAX_ALG_NAME]; 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 __u32 cru_type; 60 __u32 cru_mask; 61 __u32 cru_refcnt; 62 __u32 cru_flags; 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 }; 65 struct crypto_report_larval { 66 char type[CRYPTO_MAX_NAME]; 67 }; 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 struct crypto_report_hash { 70 char type[CRYPTO_MAX_NAME]; 71 unsigned int blocksize; 72 unsigned int digestsize; 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 }; 75 struct crypto_report_cipher { 76 char type[CRYPTO_MAX_ALG_NAME]; 77 unsigned int blocksize; 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 unsigned int min_keysize; 80 unsigned int max_keysize; 81 }; 82 struct crypto_report_blkcipher { 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 char type[CRYPTO_MAX_NAME]; 85 char geniv[CRYPTO_MAX_NAME]; 86 unsigned int blocksize; 87 unsigned int min_keysize; 88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 unsigned int max_keysize; 90 unsigned int ivsize; 91 }; 92 struct crypto_report_aead { 93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 char type[CRYPTO_MAX_NAME]; 95 char geniv[CRYPTO_MAX_NAME]; 96 unsigned int blocksize; 97 unsigned int maxauthsize; 98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 unsigned int ivsize; 100 }; 101 struct crypto_report_comp { 102 char type[CRYPTO_MAX_NAME]; 103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104 }; 105 struct crypto_report_rng { 106 char type[CRYPTO_MAX_NAME]; 107 unsigned int seedsize; 108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109 }; 110 struct crypto_report_akcipher { 111 char type[CRYPTO_MAX_NAME]; 112 }; 113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114 struct crypto_report_kpp { 115 char type[CRYPTO_MAX_NAME]; 116 }; 117 struct crypto_report_acomp { 118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 119 char type[CRYPTO_MAX_NAME]; 120 }; 121 #define CRYPTO_REPORT_MAXSIZE (sizeof(struct crypto_user_alg) + sizeof(struct crypto_report_blkcipher)) 122