cryptouser.h revision 49f525c47bd383cd6a87db8f067cddb3ab620d17
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 ****************************************************************************/ 19enum { 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 */ 34enum 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_MAX 50#define CRYPTOCFGA_MAX (__CRYPTOCFGA_MAX - 1) 51}; 52struct crypto_user_alg { 53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 char cru_name[CRYPTO_MAX_ALG_NAME]; 55 char cru_driver_name[CRYPTO_MAX_ALG_NAME]; 56 char cru_module_name[CRYPTO_MAX_ALG_NAME]; 57 __u32 cru_type; 58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 __u32 cru_mask; 60 __u32 cru_refcnt; 61 __u32 cru_flags; 62}; 63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64struct crypto_report_larval { 65 char type[CRYPTO_MAX_NAME]; 66}; 67struct crypto_report_hash { 68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 char type[CRYPTO_MAX_NAME]; 70 unsigned int blocksize; 71 unsigned int digestsize; 72}; 73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74struct crypto_report_cipher { 75 char type[CRYPTO_MAX_ALG_NAME]; 76 unsigned int blocksize; 77 unsigned int min_keysize; 78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 unsigned int max_keysize; 80}; 81struct crypto_report_blkcipher { 82 char type[CRYPTO_MAX_NAME]; 83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 char geniv[CRYPTO_MAX_NAME]; 85 unsigned int blocksize; 86 unsigned int min_keysize; 87 unsigned int max_keysize; 88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 unsigned int ivsize; 90}; 91struct crypto_report_aead { 92 char type[CRYPTO_MAX_NAME]; 93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 char geniv[CRYPTO_MAX_NAME]; 95 unsigned int blocksize; 96 unsigned int maxauthsize; 97 unsigned int ivsize; 98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99}; 100struct crypto_report_comp { 101 char type[CRYPTO_MAX_NAME]; 102}; 103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104struct crypto_report_rng { 105 char type[CRYPTO_MAX_NAME]; 106 unsigned int seedsize; 107}; 108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109struct crypto_report_akcipher { 110 char type[CRYPTO_MAX_NAME]; 111}; 112struct crypto_report_kpp { 113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114 char type[CRYPTO_MAX_NAME]; 115}; 116#define CRYPTO_REPORT_MAXSIZE (sizeof(struct crypto_user_alg) + sizeof(struct crypto_report_blkcipher)) 117