1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef _LINUX_IF_ALG_H 8 #define _LINUX_IF_ALG_H 9 #include <linux/types.h> 10 struct sockaddr_alg { 11 __u16 salg_family; 12 __u8 salg_type[14]; 13 __u32 salg_feat; 14 __u32 salg_mask; 15 __u8 salg_name[64]; 16 }; 17 struct sockaddr_alg_new { 18 __u16 salg_family; 19 __u8 salg_type[14]; 20 __u32 salg_feat; 21 __u32 salg_mask; 22 __u8 salg_name[]; 23 }; 24 struct af_alg_iv { 25 __u32 ivlen; 26 __u8 iv[]; 27 }; 28 #define ALG_SET_KEY 1 29 #define ALG_SET_IV 2 30 #define ALG_SET_OP 3 31 #define ALG_SET_AEAD_ASSOCLEN 4 32 #define ALG_SET_AEAD_AUTHSIZE 5 33 #define ALG_SET_DRBG_ENTROPY 6 34 #define ALG_SET_KEY_BY_KEY_SERIAL 7 35 #define ALG_OP_DECRYPT 0 36 #define ALG_OP_ENCRYPT 1 37 #endif 38