~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/cryptouser.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/uapi/linux/cryptouser.h (Version linux-6.11.5) and /include/uapi/linux/cryptouser.h (Version linux-3.10.108)


  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux      1 
  2 /*                                                
  3  * Crypto user configuration API.                 
  4  *                                                
  5  * Copyright (C) 2011 secunet Security Network    
  6  * Copyright (C) 2011 Steffen Klassert <steffe    
  7  *                                                
  8  * This program is free software; you can redi    
  9  * under the terms and conditions of the GNU G    
 10  * version 2, as published by the Free Softwar    
 11  *                                                
 12  * This program is distributed in the hope it     
 13  * ANY WARRANTY; without even the implied warr    
 14  * FITNESS FOR A PARTICULAR PURPOSE.  See the     
 15  * more details.                                  
 16  *                                                
 17  * You should have received a copy of the GNU     
 18  * this program; if not, write to the Free Sof    
 19  * 51 Franklin St - Fifth Floor, Boston, MA 02    
 20  */                                               
 21                                                   
 22 #ifndef _UAPI_LINUX_CRYPTOUSER_H                  
 23 #define _UAPI_LINUX_CRYPTOUSER_H                  
 24                                                   
 25 #include <linux/types.h>                          
 26                                                   
 27 /* Netlink configuration messages.  */            
 28 enum {                                            
 29         CRYPTO_MSG_BASE = 0x10,                   
 30         CRYPTO_MSG_NEWALG = 0x10,                 
 31         CRYPTO_MSG_DELALG,                        
 32         CRYPTO_MSG_UPDATEALG,                     
 33         CRYPTO_MSG_GETALG,                        
 34         CRYPTO_MSG_DELRNG,                        
 35         CRYPTO_MSG_GETSTAT, /* No longer suppo    
 36         __CRYPTO_MSG_MAX                          
 37 };                                                
 38 #define CRYPTO_MSG_MAX (__CRYPTO_MSG_MAX - 1)     
 39 #define CRYPTO_NR_MSGTYPES (CRYPTO_MSG_MAX + 1    
 40                                                   
 41 #define CRYPTO_MAX_NAME 64                        
 42                                                   
 43 /* Netlink message attributes.  */                
 44 enum crypto_attr_type_t {                         
 45         CRYPTOCFGA_UNSPEC,                        
 46         CRYPTOCFGA_PRIORITY_VAL,        /* __u    
 47         CRYPTOCFGA_REPORT_LARVAL,       /* str    
 48         CRYPTOCFGA_REPORT_HASH,         /* str    
 49         CRYPTOCFGA_REPORT_BLKCIPHER,    /* str    
 50         CRYPTOCFGA_REPORT_AEAD,         /* str    
 51         CRYPTOCFGA_REPORT_COMPRESS,     /* str    
 52         CRYPTOCFGA_REPORT_RNG,          /* str    
 53         CRYPTOCFGA_REPORT_CIPHER,       /* str    
 54         CRYPTOCFGA_REPORT_AKCIPHER,     /* str    
 55         CRYPTOCFGA_REPORT_KPP,          /* str    
 56         CRYPTOCFGA_REPORT_ACOMP,        /* str    
 57         CRYPTOCFGA_STAT_LARVAL,         /* No     
 58         CRYPTOCFGA_STAT_HASH,           /* No     
 59         CRYPTOCFGA_STAT_BLKCIPHER,      /* No     
 60         CRYPTOCFGA_STAT_AEAD,           /* No     
 61         CRYPTOCFGA_STAT_COMPRESS,       /* No     
 62         CRYPTOCFGA_STAT_RNG,            /* No     
 63         CRYPTOCFGA_STAT_CIPHER,         /* No     
 64         CRYPTOCFGA_STAT_AKCIPHER,       /* No     
 65         CRYPTOCFGA_STAT_KPP,            /* No     
 66         CRYPTOCFGA_STAT_ACOMP,          /* No     
 67         __CRYPTOCFGA_MAX                          
 68                                                   
 69 #define CRYPTOCFGA_MAX (__CRYPTOCFGA_MAX - 1)     
 70 };                                                
 71                                                   
 72 struct crypto_user_alg {                          
 73         char cru_name[CRYPTO_MAX_NAME];           
 74         char cru_driver_name[CRYPTO_MAX_NAME];    
 75         char cru_module_name[CRYPTO_MAX_NAME];    
 76         __u32 cru_type;                           
 77         __u32 cru_mask;                           
 78         __u32 cru_refcnt;                         
 79         __u32 cru_flags;                          
 80 };                                                
 81                                                   
 82 /* No longer supported, do not use. */            
 83 struct crypto_stat_aead {                         
 84         char type[CRYPTO_MAX_NAME];               
 85         __u64 stat_encrypt_cnt;                   
 86         __u64 stat_encrypt_tlen;                  
 87         __u64 stat_decrypt_cnt;                   
 88         __u64 stat_decrypt_tlen;                  
 89         __u64 stat_err_cnt;                       
 90 };                                                
 91                                                   
 92 /* No longer supported, do not use. */            
 93 struct crypto_stat_akcipher {                     
 94         char type[CRYPTO_MAX_NAME];               
 95         __u64 stat_encrypt_cnt;                   
 96         __u64 stat_encrypt_tlen;                  
 97         __u64 stat_decrypt_cnt;                   
 98         __u64 stat_decrypt_tlen;                  
 99         __u64 stat_verify_cnt;                    
100         __u64 stat_sign_cnt;                      
101         __u64 stat_err_cnt;                       
102 };                                                
103                                                   
104 /* No longer supported, do not use. */            
105 struct crypto_stat_cipher {                       
106         char type[CRYPTO_MAX_NAME];               
107         __u64 stat_encrypt_cnt;                   
108         __u64 stat_encrypt_tlen;                  
109         __u64 stat_decrypt_cnt;                   
110         __u64 stat_decrypt_tlen;                  
111         __u64 stat_err_cnt;                       
112 };                                                
113                                                   
114 /* No longer supported, do not use. */            
115 struct crypto_stat_compress {                     
116         char type[CRYPTO_MAX_NAME];               
117         __u64 stat_compress_cnt;                  
118         __u64 stat_compress_tlen;                 
119         __u64 stat_decompress_cnt;                
120         __u64 stat_decompress_tlen;               
121         __u64 stat_err_cnt;                       
122 };                                                
123                                                   
124 /* No longer supported, do not use. */            
125 struct crypto_stat_hash {                         
126         char type[CRYPTO_MAX_NAME];               
127         __u64 stat_hash_cnt;                      
128         __u64 stat_hash_tlen;                     
129         __u64 stat_err_cnt;                       
130 };                                                
131                                                   
132 /* No longer supported, do not use. */            
133 struct crypto_stat_kpp {                          
134         char type[CRYPTO_MAX_NAME];               
135         __u64 stat_setsecret_cnt;                 
136         __u64 stat_generate_public_key_cnt;       
137         __u64 stat_compute_shared_secret_cnt;     
138         __u64 stat_err_cnt;                       
139 };                                                
140                                                   
141 /* No longer supported, do not use. */            
142 struct crypto_stat_rng {                          
143         char type[CRYPTO_MAX_NAME];               
144         __u64 stat_generate_cnt;                  
145         __u64 stat_generate_tlen;                 
146         __u64 stat_seed_cnt;                      
147         __u64 stat_err_cnt;                       
148 };                                                
149                                                   
150 /* No longer supported, do not use. */            
151 struct crypto_stat_larval {                       
152         char type[CRYPTO_MAX_NAME];               
153 };                                                
154                                                   
155 struct crypto_report_larval {                     
156         char type[CRYPTO_MAX_NAME];               
157 };                                                
158                                                   
159 struct crypto_report_hash {                       
160         char type[CRYPTO_MAX_NAME];               
161         unsigned int blocksize;                   
162         unsigned int digestsize;                  
163 };                                                
164                                                   
165 struct crypto_report_cipher {                     
166         char type[CRYPTO_MAX_NAME];               
167         unsigned int blocksize;                   
168         unsigned int min_keysize;                 
169         unsigned int max_keysize;                 
170 };                                                
171                                                   
172 struct crypto_report_blkcipher {                  
173         char type[CRYPTO_MAX_NAME];               
174         char geniv[CRYPTO_MAX_NAME];              
175         unsigned int blocksize;                   
176         unsigned int min_keysize;                 
177         unsigned int max_keysize;                 
178         unsigned int ivsize;                      
179 };                                                
180                                                   
181 struct crypto_report_aead {                       
182         char type[CRYPTO_MAX_NAME];               
183         char geniv[CRYPTO_MAX_NAME];              
184         unsigned int blocksize;                   
185         unsigned int maxauthsize;                 
186         unsigned int ivsize;                      
187 };                                                
188                                                   
189 struct crypto_report_comp {                       
190         char type[CRYPTO_MAX_NAME];               
191 };                                                
192                                                   
193 struct crypto_report_rng {                        
194         char type[CRYPTO_MAX_NAME];               
195         unsigned int seedsize;                    
196 };                                                
197                                                   
198 struct crypto_report_akcipher {                   
199         char type[CRYPTO_MAX_NAME];               
200 };                                                
201                                                   
202 struct crypto_report_kpp {                        
203         char type[CRYPTO_MAX_NAME];               
204 };                                                
205                                                   
206 struct crypto_report_acomp {                      
207         char type[CRYPTO_MAX_NAME];               
208 };                                                
209                                                   
210 #define CRYPTO_REPORT_MAXSIZE (sizeof(struct c    
211                                sizeof(struct c    
212                                                   
213 #endif /* _UAPI_LINUX_CRYPTOUSER_H */             
214                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php