105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/**************************************************************************** 205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris **************************************************************************** 305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** 405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** This header was automatically generated from a Linux kernel header 505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** of the same name, to make information necessary for userspace to 605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** call into the kernel available to libc. It contains only constants, 705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** structures, and macros generated from the original header, and thus, 805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** contains no copyrightable information. 905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** 1005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** To edit the content of this header, modify the corresponding 1105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** source file (e.g. under external/kernel-headers/original/) then 1205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** run bionic/libc/kernel/tools/update_all.py 1305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** 1405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** Any manual change here will be lost the next time this script will 1505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** be run. You've been warned! 1605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** 1705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris **************************************************************************** 1805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris ****************************************************************************/ 19525ce914edf136d2bd02ac8c404d56c52e737f4dChristopher Ferris#include <linux/types.h> 2005d08e9716b5974d6ed08973f44930804890b902Christopher Ferrisenum { 2105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris CRYPTO_MSG_BASE = 0x10, 2205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris CRYPTO_MSG_NEWALG = 0x10, 2305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris CRYPTO_MSG_DELALG, 2405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris CRYPTO_MSG_UPDATEALG, 2505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris CRYPTO_MSG_GETALG, 2605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris CRYPTO_MSG_DELRNG, 2705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris __CRYPTO_MSG_MAX 2805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris}; 2905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define CRYPTO_MSG_MAX (__CRYPTO_MSG_MAX - 1) 3005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define CRYPTO_NR_MSGTYPES (CRYPTO_MSG_MAX + 1 - CRYPTO_MSG_BASE) 31525ce914edf136d2bd02ac8c404d56c52e737f4dChristopher Ferris#define CRYPTO_MAX_NAME 64 3205d08e9716b5974d6ed08973f44930804890b902Christopher Ferrisenum crypto_attr_type_t { 3305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris CRYPTOCFGA_UNSPEC, 3405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris CRYPTOCFGA_PRIORITY_VAL, 3505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris CRYPTOCFGA_REPORT_LARVAL, 3605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris CRYPTOCFGA_REPORT_HASH, 3705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris CRYPTOCFGA_REPORT_BLKCIPHER, 3805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris CRYPTOCFGA_REPORT_AEAD, 3905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris CRYPTOCFGA_REPORT_COMPRESS, 4005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris CRYPTOCFGA_REPORT_RNG, 4105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris CRYPTOCFGA_REPORT_CIPHER, 4205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris CRYPTOCFGA_REPORT_AKCIPHER, 4349f525c47bd383cd6a87db8f067cddb3ab620d17Christopher Ferris CRYPTOCFGA_REPORT_KPP, 4448af7cb2e205dcc2f09a1a1b8a1a37c93e1943f0Christopher Ferris CRYPTOCFGA_REPORT_ACOMP, 4549f525c47bd383cd6a87db8f067cddb3ab620d17Christopher Ferris __CRYPTOCFGA_MAX 4605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define CRYPTOCFGA_MAX (__CRYPTOCFGA_MAX - 1) 4705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris}; 4848af7cb2e205dcc2f09a1a1b8a1a37c93e1943f0Christopher Ferrisstruct crypto_user_alg { 49525ce914edf136d2bd02ac8c404d56c52e737f4dChristopher Ferris char cru_name[CRYPTO_MAX_NAME]; 50525ce914edf136d2bd02ac8c404d56c52e737f4dChristopher Ferris char cru_driver_name[CRYPTO_MAX_NAME]; 51525ce914edf136d2bd02ac8c404d56c52e737f4dChristopher Ferris char cru_module_name[CRYPTO_MAX_NAME]; 5248af7cb2e205dcc2f09a1a1b8a1a37c93e1943f0Christopher Ferris __u32 cru_type; 5349f525c47bd383cd6a87db8f067cddb3ab620d17Christopher Ferris __u32 cru_mask; 5405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris __u32 cru_refcnt; 5505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris __u32 cru_flags; 5648af7cb2e205dcc2f09a1a1b8a1a37c93e1943f0Christopher Ferris}; 5749f525c47bd383cd6a87db8f067cddb3ab620d17Christopher Ferrisstruct crypto_report_larval { 5805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris char type[CRYPTO_MAX_NAME]; 5905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris}; 6048af7cb2e205dcc2f09a1a1b8a1a37c93e1943f0Christopher Ferrisstruct crypto_report_hash { 6149f525c47bd383cd6a87db8f067cddb3ab620d17Christopher Ferris char type[CRYPTO_MAX_NAME]; 6205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned int blocksize; 6305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned int digestsize; 6448af7cb2e205dcc2f09a1a1b8a1a37c93e1943f0Christopher Ferris}; 6549f525c47bd383cd6a87db8f067cddb3ab620d17Christopher Ferrisstruct crypto_report_cipher { 66525ce914edf136d2bd02ac8c404d56c52e737f4dChristopher Ferris char type[CRYPTO_MAX_NAME]; 6705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned int blocksize; 6848af7cb2e205dcc2f09a1a1b8a1a37c93e1943f0Christopher Ferris unsigned int min_keysize; 6949f525c47bd383cd6a87db8f067cddb3ab620d17Christopher Ferris unsigned int max_keysize; 7005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris}; 7105d08e9716b5974d6ed08973f44930804890b902Christopher Ferrisstruct crypto_report_blkcipher { 7248af7cb2e205dcc2f09a1a1b8a1a37c93e1943f0Christopher Ferris char type[CRYPTO_MAX_NAME]; 7349f525c47bd383cd6a87db8f067cddb3ab620d17Christopher Ferris char geniv[CRYPTO_MAX_NAME]; 7405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned int blocksize; 7505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned int min_keysize; 7648af7cb2e205dcc2f09a1a1b8a1a37c93e1943f0Christopher Ferris unsigned int max_keysize; 7749f525c47bd383cd6a87db8f067cddb3ab620d17Christopher Ferris unsigned int ivsize; 7805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris}; 7905d08e9716b5974d6ed08973f44930804890b902Christopher Ferrisstruct crypto_report_aead { 8048af7cb2e205dcc2f09a1a1b8a1a37c93e1943f0Christopher Ferris char type[CRYPTO_MAX_NAME]; 8149f525c47bd383cd6a87db8f067cddb3ab620d17Christopher Ferris char geniv[CRYPTO_MAX_NAME]; 8205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned int blocksize; 8305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned int maxauthsize; 8448af7cb2e205dcc2f09a1a1b8a1a37c93e1943f0Christopher Ferris unsigned int ivsize; 8549f525c47bd383cd6a87db8f067cddb3ab620d17Christopher Ferris}; 8605d08e9716b5974d6ed08973f44930804890b902Christopher Ferrisstruct crypto_report_comp { 8705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris char type[CRYPTO_MAX_NAME]; 8848af7cb2e205dcc2f09a1a1b8a1a37c93e1943f0Christopher Ferris}; 8949f525c47bd383cd6a87db8f067cddb3ab620d17Christopher Ferrisstruct crypto_report_rng { 9005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris char type[CRYPTO_MAX_NAME]; 9105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned int seedsize; 9248af7cb2e205dcc2f09a1a1b8a1a37c93e1943f0Christopher Ferris}; 9305d08e9716b5974d6ed08973f44930804890b902Christopher Ferrisstruct crypto_report_akcipher { 9449f525c47bd383cd6a87db8f067cddb3ab620d17Christopher Ferris char type[CRYPTO_MAX_NAME]; 9549f525c47bd383cd6a87db8f067cddb3ab620d17Christopher Ferris}; 9649f525c47bd383cd6a87db8f067cddb3ab620d17Christopher Ferrisstruct crypto_report_kpp { 9748af7cb2e205dcc2f09a1a1b8a1a37c93e1943f0Christopher Ferris char type[CRYPTO_MAX_NAME]; 9848af7cb2e205dcc2f09a1a1b8a1a37c93e1943f0Christopher Ferris}; 9948af7cb2e205dcc2f09a1a1b8a1a37c93e1943f0Christopher Ferrisstruct crypto_report_acomp { 10005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris char type[CRYPTO_MAX_NAME]; 10105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris}; 10205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define CRYPTO_REPORT_MAXSIZE (sizeof(struct crypto_user_alg) + sizeof(struct crypto_report_blkcipher)) 103