IB/mthca: Recover from catastrophic errors
[linux-block.git] / crypto / Kconfig
CommitLineData
1da177e4
LT
1#
2# Cryptographic API Configuration
3#
4
5menu "Cryptographic options"
6
7config CRYPTO
8 bool "Cryptographic API"
9 help
10 This option provides the core Cryptographic API.
11
cce9e06d
HX
12if CRYPTO
13
14config CRYPTO_ALGAPI
15 tristate
16 help
17 This option provides the API for cryptographic algorithms.
18
5cde0af2
HX
19config CRYPTO_BLKCIPHER
20 tristate
21 select CRYPTO_ALGAPI
22
055bcee3
HX
23config CRYPTO_HASH
24 tristate
25 select CRYPTO_ALGAPI
26
2b8c19db
HX
27config CRYPTO_MANAGER
28 tristate "Cryptographic algorithm manager"
29 select CRYPTO_ALGAPI
30 default m
31 help
32 Create default cryptographic template instantiations such as
33 cbc(aes).
34
1da177e4 35config CRYPTO_HMAC
8425165d 36 tristate "HMAC support"
0796ae06 37 select CRYPTO_HASH
1da177e4
LT
38 help
39 HMAC: Keyed-Hashing for Message Authentication (RFC2104).
40 This is required for IPSec.
41
42config CRYPTO_NULL
43 tristate "Null algorithms"
cce9e06d 44 select CRYPTO_ALGAPI
1da177e4
LT
45 help
46 These are 'Null' algorithms, used by IPsec, which do nothing.
47
48config CRYPTO_MD4
49 tristate "MD4 digest algorithm"
cce9e06d 50 select CRYPTO_ALGAPI
1da177e4
LT
51 help
52 MD4 message digest algorithm (RFC1320).
53
54config CRYPTO_MD5
55 tristate "MD5 digest algorithm"
cce9e06d 56 select CRYPTO_ALGAPI
1da177e4
LT
57 help
58 MD5 message digest algorithm (RFC1321).
59
60config CRYPTO_SHA1
61 tristate "SHA1 digest algorithm"
cce9e06d 62 select CRYPTO_ALGAPI
1da177e4
LT
63 help
64 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
65
c1e26e1e
JG
66config CRYPTO_SHA1_S390
67 tristate "SHA1 digest algorithm (s390)"
cce9e06d
HX
68 depends on S390
69 select CRYPTO_ALGAPI
1da177e4 70 help
0a497c17 71 This is the s390 hardware accelerated implementation of the
1da177e4
LT
72 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
73
74config CRYPTO_SHA256
75 tristate "SHA256 digest algorithm"
cce9e06d 76 select CRYPTO_ALGAPI
1da177e4
LT
77 help
78 SHA256 secure hash standard (DFIPS 180-2).
79
80 This version of SHA implements a 256 bit hash with 128 bits of
81 security against collision attacks.
82
0a497c17
JG
83config CRYPTO_SHA256_S390
84 tristate "SHA256 digest algorithm (s390)"
cce9e06d
HX
85 depends on S390
86 select CRYPTO_ALGAPI
0a497c17
JG
87 help
88 This is the s390 hardware accelerated implementation of the
89 SHA256 secure hash standard (DFIPS 180-2).
90
91 This version of SHA implements a 256 bit hash with 128 bits of
92 security against collision attacks.
93
1da177e4
LT
94config CRYPTO_SHA512
95 tristate "SHA384 and SHA512 digest algorithms"
cce9e06d 96 select CRYPTO_ALGAPI
1da177e4
LT
97 help
98 SHA512 secure hash standard (DFIPS 180-2).
99
100 This version of SHA implements a 512 bit hash with 256 bits of
101 security against collision attacks.
102
103 This code also includes SHA-384, a 384 bit hash with 192 bits
104 of security against collision attacks.
105
106config CRYPTO_WP512
107 tristate "Whirlpool digest algorithms"
cce9e06d 108 select CRYPTO_ALGAPI
1da177e4
LT
109 help
110 Whirlpool hash algorithm 512, 384 and 256-bit hashes
111
112 Whirlpool-512 is part of the NESSIE cryptographic primitives.
113 Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
114
115 See also:
116 <http://planeta.terra.com.br/informatica/paulobarreto/WhirlpoolPage.html>
117
118config CRYPTO_TGR192
119 tristate "Tiger digest algorithms"
cce9e06d 120 select CRYPTO_ALGAPI
1da177e4
LT
121 help
122 Tiger hash algorithm 192, 160 and 128-bit hashes
123
124 Tiger is a hash function optimized for 64-bit processors while
125 still having decent performance on 32-bit processors.
126 Tiger was developed by Ross Anderson and Eli Biham.
127
128 See also:
129 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
130
db131ef9
HX
131config CRYPTO_ECB
132 tristate "ECB support"
133 select CRYPTO_BLKCIPHER
134 default m
135 help
136 ECB: Electronic CodeBook mode
137 This is the simplest block cipher algorithm. It simply encrypts
138 the input block by block.
139
140config CRYPTO_CBC
141 tristate "CBC support"
142 select CRYPTO_BLKCIPHER
143 default m
144 help
145 CBC: Cipher Block Chaining mode
146 This block cipher algorithm is required for IPSec.
147
1da177e4
LT
148config CRYPTO_DES
149 tristate "DES and Triple DES EDE cipher algorithms"
cce9e06d 150 select CRYPTO_ALGAPI
1da177e4
LT
151 help
152 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
153
c1e26e1e
JG
154config CRYPTO_DES_S390
155 tristate "DES and Triple DES cipher algorithms (s390)"
cce9e06d
HX
156 depends on S390
157 select CRYPTO_ALGAPI
a9e62fad 158 select CRYPTO_BLKCIPHER
1da177e4
LT
159 help
160 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
161
162config CRYPTO_BLOWFISH
163 tristate "Blowfish cipher algorithm"
cce9e06d 164 select CRYPTO_ALGAPI
1da177e4
LT
165 help
166 Blowfish cipher algorithm, by Bruce Schneier.
167
168 This is a variable key length cipher which can use keys from 32
169 bits to 448 bits in length. It's fast, simple and specifically
170 designed for use on "large microprocessors".
171
172 See also:
173 <http://www.schneier.com/blowfish.html>
174
175config CRYPTO_TWOFISH
176 tristate "Twofish cipher algorithm"
cce9e06d 177 select CRYPTO_ALGAPI
2729bb42 178 select CRYPTO_TWOFISH_COMMON
1da177e4
LT
179 help
180 Twofish cipher algorithm.
181
182 Twofish was submitted as an AES (Advanced Encryption Standard)
183 candidate cipher by researchers at CounterPane Systems. It is a
184 16 round block cipher supporting key sizes of 128, 192, and 256
185 bits.
186
187 See also:
188 <http://www.schneier.com/twofish.html>
189
2729bb42
JF
190config CRYPTO_TWOFISH_COMMON
191 tristate
2729bb42
JF
192 help
193 Common parts of the Twofish cipher algorithm shared by the
194 generic c and the assembler implementations.
195
b9f535ff
JF
196config CRYPTO_TWOFISH_586
197 tristate "Twofish cipher algorithms (i586)"
cce9e06d
HX
198 depends on (X86 || UML_X86) && !64BIT
199 select CRYPTO_ALGAPI
b9f535ff
JF
200 select CRYPTO_TWOFISH_COMMON
201 help
202 Twofish cipher algorithm.
203
204 Twofish was submitted as an AES (Advanced Encryption Standard)
205 candidate cipher by researchers at CounterPane Systems. It is a
206 16 round block cipher supporting key sizes of 128, 192, and 256
207 bits.
208
209 See also:
210 <http://www.schneier.com/twofish.html>
211
eaf44088
JF
212config CRYPTO_TWOFISH_X86_64
213 tristate "Twofish cipher algorithm (x86_64)"
cce9e06d
HX
214 depends on (X86 || UML_X86) && 64BIT
215 select CRYPTO_ALGAPI
eaf44088
JF
216 select CRYPTO_TWOFISH_COMMON
217 help
218 Twofish cipher algorithm (x86_64).
219
220 Twofish was submitted as an AES (Advanced Encryption Standard)
221 candidate cipher by researchers at CounterPane Systems. It is a
222 16 round block cipher supporting key sizes of 128, 192, and 256
223 bits.
224
225 See also:
226 <http://www.schneier.com/twofish.html>
227
1da177e4
LT
228config CRYPTO_SERPENT
229 tristate "Serpent cipher algorithm"
cce9e06d 230 select CRYPTO_ALGAPI
1da177e4
LT
231 help
232 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
233
234 Keys are allowed to be from 0 to 256 bits in length, in steps
235 of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
236 variant of Serpent for compatibility with old kerneli code.
237
238 See also:
239 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
240
241config CRYPTO_AES
242 tristate "AES cipher algorithms"
cce9e06d 243 select CRYPTO_ALGAPI
1da177e4
LT
244 help
245 AES cipher algorithms (FIPS-197). AES uses the Rijndael
246 algorithm.
247
248 Rijndael appears to be consistently a very good performer in
249 both hardware and software across a wide range of computing
250 environments regardless of its use in feedback or non-feedback
251 modes. Its key setup time is excellent, and its key agility is
252 good. Rijndael's very low memory requirements make it very well
253 suited for restricted-space environments, in which it also
254 demonstrates excellent performance. Rijndael's operations are
255 among the easiest to defend against power and timing attacks.
256
257 The AES specifies three key sizes: 128, 192 and 256 bits
258
259 See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
260
261config CRYPTO_AES_586
262 tristate "AES cipher algorithms (i586)"
cce9e06d
HX
263 depends on (X86 || UML_X86) && !64BIT
264 select CRYPTO_ALGAPI
1da177e4
LT
265 help
266 AES cipher algorithms (FIPS-197). AES uses the Rijndael
267 algorithm.
268
269 Rijndael appears to be consistently a very good performer in
270 both hardware and software across a wide range of computing
271 environments regardless of its use in feedback or non-feedback
272 modes. Its key setup time is excellent, and its key agility is
273 good. Rijndael's very low memory requirements make it very well
274 suited for restricted-space environments, in which it also
275 demonstrates excellent performance. Rijndael's operations are
276 among the easiest to defend against power and timing attacks.
277
278 The AES specifies three key sizes: 128, 192 and 256 bits
a2a892a2
AS
279
280 See <http://csrc.nist.gov/encryption/aes/> for more information.
281
282config CRYPTO_AES_X86_64
283 tristate "AES cipher algorithms (x86_64)"
cce9e06d
HX
284 depends on (X86 || UML_X86) && 64BIT
285 select CRYPTO_ALGAPI
a2a892a2
AS
286 help
287 AES cipher algorithms (FIPS-197). AES uses the Rijndael
288 algorithm.
289
290 Rijndael appears to be consistently a very good performer in
291 both hardware and software across a wide range of computing
292 environments regardless of its use in feedback or non-feedback
293 modes. Its key setup time is excellent, and its key agility is
294 good. Rijndael's very low memory requirements make it very well
295 suited for restricted-space environments, in which it also
296 demonstrates excellent performance. Rijndael's operations are
297 among the easiest to defend against power and timing attacks.
298
299 The AES specifies three key sizes: 128, 192 and 256 bits
1da177e4
LT
300
301 See <http://csrc.nist.gov/encryption/aes/> for more information.
302
bf754ae8
JG
303config CRYPTO_AES_S390
304 tristate "AES cipher algorithms (s390)"
cce9e06d
HX
305 depends on S390
306 select CRYPTO_ALGAPI
a9e62fad 307 select CRYPTO_BLKCIPHER
bf754ae8
JG
308 help
309 This is the s390 hardware accelerated implementation of the
310 AES cipher algorithms (FIPS-197). AES uses the Rijndael
311 algorithm.
312
313 Rijndael appears to be consistently a very good performer in
314 both hardware and software across a wide range of computing
315 environments regardless of its use in feedback or non-feedback
316 modes. Its key setup time is excellent, and its key agility is
317 good. Rijndael's very low memory requirements make it very well
318 suited for restricted-space environments, in which it also
319 demonstrates excellent performance. Rijndael's operations are
320 among the easiest to defend against power and timing attacks.
321
322 On s390 the System z9-109 currently only supports the key size
323 of 128 bit.
324
1da177e4
LT
325config CRYPTO_CAST5
326 tristate "CAST5 (CAST-128) cipher algorithm"
cce9e06d 327 select CRYPTO_ALGAPI
1da177e4
LT
328 help
329 The CAST5 encryption algorithm (synonymous with CAST-128) is
330 described in RFC2144.
331
332config CRYPTO_CAST6
333 tristate "CAST6 (CAST-256) cipher algorithm"
cce9e06d 334 select CRYPTO_ALGAPI
1da177e4
LT
335 help
336 The CAST6 encryption algorithm (synonymous with CAST-256) is
337 described in RFC2612.
338
339config CRYPTO_TEA
fb4f10ed 340 tristate "TEA, XTEA and XETA cipher algorithms"
cce9e06d 341 select CRYPTO_ALGAPI
1da177e4
LT
342 help
343 TEA cipher algorithm.
344
345 Tiny Encryption Algorithm is a simple cipher that uses
346 many rounds for security. It is very fast and uses
347 little memory.
348
349 Xtendend Tiny Encryption Algorithm is a modification to
350 the TEA algorithm to address a potential key weakness
351 in the TEA algorithm.
352
fb4f10ed
AG
353 Xtendend Encryption Tiny Algorithm is a mis-implementation
354 of the XTEA algorithm for compatibility purposes.
355
1da177e4
LT
356config CRYPTO_ARC4
357 tristate "ARC4 cipher algorithm"
cce9e06d 358 select CRYPTO_ALGAPI
1da177e4
LT
359 help
360 ARC4 cipher algorithm.
361
362 ARC4 is a stream cipher using keys ranging from 8 bits to 2048
363 bits in length. This algorithm is required for driver-based
364 WEP, but it should not be for other purposes because of the
365 weakness of the algorithm.
366
367config CRYPTO_KHAZAD
368 tristate "Khazad cipher algorithm"
cce9e06d 369 select CRYPTO_ALGAPI
1da177e4
LT
370 help
371 Khazad cipher algorithm.
372
373 Khazad was a finalist in the initial NESSIE competition. It is
374 an algorithm optimized for 64-bit processors with good performance
375 on 32-bit processors. Khazad uses an 128 bit key size.
376
377 See also:
378 <http://planeta.terra.com.br/informatica/paulobarreto/KhazadPage.html>
379
380config CRYPTO_ANUBIS
381 tristate "Anubis cipher algorithm"
cce9e06d 382 select CRYPTO_ALGAPI
1da177e4
LT
383 help
384 Anubis cipher algorithm.
385
386 Anubis is a variable key length cipher which can use keys from
387 128 bits to 320 bits in length. It was evaluated as a entrant
388 in the NESSIE competition.
389
390 See also:
391 <https://www.cosic.esat.kuleuven.ac.be/nessie/reports/>
392 <http://planeta.terra.com.br/informatica/paulobarreto/AnubisPage.html>
393
394
395config CRYPTO_DEFLATE
396 tristate "Deflate compression algorithm"
cce9e06d 397 select CRYPTO_ALGAPI
1da177e4
LT
398 select ZLIB_INFLATE
399 select ZLIB_DEFLATE
400 help
401 This is the Deflate algorithm (RFC1951), specified for use in
402 IPSec with the IPCOMP protocol (RFC3173, RFC2394).
403
404 You will most probably want this if using IPSec.
405
406config CRYPTO_MICHAEL_MIC
407 tristate "Michael MIC keyed digest algorithm"
cce9e06d 408 select CRYPTO_ALGAPI
1da177e4
LT
409 help
410 Michael MIC is used for message integrity protection in TKIP
411 (IEEE 802.11i). This algorithm is required for TKIP, but it
412 should not be used for other purposes because of the weakness
413 of the algorithm.
414
415config CRYPTO_CRC32C
416 tristate "CRC32c CRC algorithm"
cce9e06d 417 select CRYPTO_ALGAPI
1da177e4
LT
418 select LIBCRC32C
419 help
420 Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
421 by iSCSI for header and data digests and by others.
422 See Castagnoli93. This implementation uses lib/libcrc32c.
423 Module will be crc32c.
424
425config CRYPTO_TEST
426 tristate "Testing module"
cce9e06d
HX
427 depends on m
428 select CRYPTO_ALGAPI
1da177e4
LT
429 help
430 Quick & dirty crypto test module.
431
432source "drivers/crypto/Kconfig"
1da177e4 433
cce9e06d
HX
434endif # if CRYPTO
435
436endmenu