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