Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cryptouser.h
Go to the documentation of this file.
1 /*
2  * Crypto user configuration API.
3  *
4  * Copyright (C) 2011 secunet Security Networks AG
5  * Copyright (C) 2011 Steffen Klassert <[email protected]>
6  *
7  * This program is free software; you can redistribute it and/or modify it
8  * under the terms and conditions of the GNU General Public License,
9  * version 2, as published by the Free Software Foundation.
10  *
11  * This program is distributed in the hope it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14  * more details.
15  *
16  * You should have received a copy of the GNU General Public License along with
17  * this program; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
19  */
20 
21 /* Netlink configuration messages. */
22 enum {
29 };
30 #define CRYPTO_MSG_MAX (__CRYPTO_MSG_MAX - 1)
31 #define CRYPTO_NR_MSGTYPES (CRYPTO_MSG_MAX + 1 - CRYPTO_MSG_BASE)
32 
33 #define CRYPTO_MAX_NAME CRYPTO_MAX_ALG_NAME
34 
35 /* Netlink message attributes. */
39  CRYPTOCFGA_REPORT_LARVAL, /* struct crypto_report_larval */
40  CRYPTOCFGA_REPORT_HASH, /* struct crypto_report_hash */
41  CRYPTOCFGA_REPORT_BLKCIPHER, /* struct crypto_report_blkcipher */
42  CRYPTOCFGA_REPORT_AEAD, /* struct crypto_report_aead */
43  CRYPTOCFGA_REPORT_COMPRESS, /* struct crypto_report_comp */
44  CRYPTOCFGA_REPORT_RNG, /* struct crypto_report_rng */
45  CRYPTOCFGA_REPORT_CIPHER, /* struct crypto_report_cipher */
46  __CRYPTOCFGA_MAX
47 
48 #define CRYPTOCFGA_MAX (__CRYPTOCFGA_MAX - 1)
49 };
50 
59 };
60 
63 };
64 
67  unsigned int blocksize;
68  unsigned int digestsize;
69 };
70 
73  unsigned int blocksize;
74  unsigned int min_keysize;
75  unsigned int max_keysize;
76 };
77 
81  unsigned int blocksize;
82  unsigned int min_keysize;
83  unsigned int max_keysize;
84  unsigned int ivsize;
85 };
86 
90  unsigned int blocksize;
91  unsigned int maxauthsize;
92  unsigned int ivsize;
93 };
94 
97 };
98 
101  unsigned int seedsize;
102 };
103 
104 #define CRYPTO_REPORT_MAXSIZE (sizeof(struct crypto_user_alg) + \
105  sizeof(struct crypto_report_blkcipher))