blob: b749a1a46e227f923cb2dee9df0939e194954fe0 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
Dan Williams685784a2007-07-09 11:56:42 -07002# Generic algorithms support
3#
4config XOR_BLOCKS
5 tristate
6
7#
Linus Torvalds1da177e2005-04-16 15:20:36 -07008# Cryptographic API Configuration
9#
10
11menu "Cryptographic options"
12
13config CRYPTO
14 bool "Cryptographic API"
15 help
16 This option provides the core Cryptographic API.
17
Herbert Xucce9e062006-08-21 21:08:13 +100018if CRYPTO
19
20config CRYPTO_ALGAPI
21 tristate
22 help
23 This option provides the API for cryptographic algorithms.
24
Herbert Xub5b7f082007-04-16 20:48:54 +100025config CRYPTO_ABLKCIPHER
26 tristate
27 select CRYPTO_BLKCIPHER
28
Herbert Xu5cde0af2006-08-22 00:07:53 +100029config CRYPTO_BLKCIPHER
30 tristate
31 select CRYPTO_ALGAPI
32
Herbert Xu055bcee2006-08-19 22:24:23 +100033config CRYPTO_HASH
34 tristate
35 select CRYPTO_ALGAPI
36
Herbert Xu2b8c19d2006-09-21 11:31:44 +100037config CRYPTO_MANAGER
38 tristate "Cryptographic algorithm manager"
39 select CRYPTO_ALGAPI
Herbert Xu2b8c19d2006-09-21 11:31:44 +100040 help
41 Create default cryptographic template instantiations such as
42 cbc(aes).
43
Linus Torvalds1da177e2005-04-16 15:20:36 -070044config CRYPTO_HMAC
Herbert Xu84251652006-08-20 15:25:22 +100045 tristate "HMAC support"
Herbert Xu0796ae02006-08-21 20:50:52 +100046 select CRYPTO_HASH
Herbert Xu43518402006-10-16 21:28:58 +100047 select CRYPTO_MANAGER
Linus Torvalds1da177e2005-04-16 15:20:36 -070048 help
49 HMAC: Keyed-Hashing for Message Authentication (RFC2104).
50 This is required for IPSec.
51
Kazunori MIYAZAWA333b0d72006-10-28 13:15:24 +100052config CRYPTO_XCBC
53 tristate "XCBC support"
54 depends on EXPERIMENTAL
55 select CRYPTO_HASH
56 select CRYPTO_MANAGER
57 help
58 XCBC: Keyed-Hashing with encryption algorithm
59 http://www.ietf.org/rfc/rfc3566.txt
60 http://csrc.nist.gov/encryption/modes/proposedmodes/
61 xcbc-mac/xcbc-mac-spec.pdf
62
Linus Torvalds1da177e2005-04-16 15:20:36 -070063config CRYPTO_NULL
64 tristate "Null algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +100065 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -070066 help
67 These are 'Null' algorithms, used by IPsec, which do nothing.
68
69config CRYPTO_MD4
70 tristate "MD4 digest algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +100071 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -070072 help
73 MD4 message digest algorithm (RFC1320).
74
75config CRYPTO_MD5
76 tristate "MD5 digest algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +100077 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -070078 help
79 MD5 message digest algorithm (RFC1321).
80
81config CRYPTO_SHA1
82 tristate "SHA1 digest algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +100083 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -070084 help
85 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
86
Linus Torvalds1da177e2005-04-16 15:20:36 -070087config CRYPTO_SHA256
88 tristate "SHA256 digest algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +100089 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -070090 help
91 SHA256 secure hash standard (DFIPS 180-2).
92
93 This version of SHA implements a 256 bit hash with 128 bits of
94 security against collision attacks.
95
96config CRYPTO_SHA512
97 tristate "SHA384 and SHA512 digest algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +100098 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -070099 help
100 SHA512 secure hash standard (DFIPS 180-2).
101
102 This version of SHA implements a 512 bit hash with 256 bits of
103 security against collision attacks.
104
105 This code also includes SHA-384, a 384 bit hash with 192 bits
106 of security against collision attacks.
107
108config CRYPTO_WP512
109 tristate "Whirlpool digest algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +1000110 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700111 help
112 Whirlpool hash algorithm 512, 384 and 256-bit hashes
113
114 Whirlpool-512 is part of the NESSIE cryptographic primitives.
115 Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
116
117 See also:
118 <http://planeta.terra.com.br/informatica/paulobarreto/WhirlpoolPage.html>
119
120config CRYPTO_TGR192
121 tristate "Tiger digest algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +1000122 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700123 help
124 Tiger hash algorithm 192, 160 and 128-bit hashes
125
126 Tiger is a hash function optimized for 64-bit processors while
127 still having decent performance on 32-bit processors.
128 Tiger was developed by Ross Anderson and Eli Biham.
129
130 See also:
131 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
132
Rik Snelc494e072006-11-29 18:59:44 +1100133config CRYPTO_GF128MUL
134 tristate "GF(2^128) multiplication functions (EXPERIMENTAL)"
135 depends on EXPERIMENTAL
136 help
137 Efficient table driven implementation of multiplications in the
138 field GF(2^128). This is needed by some cypher modes. This
139 option will be selected automatically if you select such a
140 cipher mode. Only select this option by hand if you expect to load
141 an external module that requires these functions.
142
Herbert Xudb131ef2006-09-21 11:44:08 +1000143config CRYPTO_ECB
144 tristate "ECB support"
145 select CRYPTO_BLKCIPHER
Herbert Xu43518402006-10-16 21:28:58 +1000146 select CRYPTO_MANAGER
Herbert Xudb131ef2006-09-21 11:44:08 +1000147 default m
148 help
149 ECB: Electronic CodeBook mode
150 This is the simplest block cipher algorithm. It simply encrypts
151 the input block by block.
152
153config CRYPTO_CBC
154 tristate "CBC support"
155 select CRYPTO_BLKCIPHER
Herbert Xu43518402006-10-16 21:28:58 +1000156 select CRYPTO_MANAGER
Herbert Xudb131ef2006-09-21 11:44:08 +1000157 default m
158 help
159 CBC: Cipher Block Chaining mode
160 This block cipher algorithm is required for IPSec.
161
David Howells91652be2006-12-16 12:09:02 +1100162config CRYPTO_PCBC
163 tristate "PCBC support"
164 select CRYPTO_BLKCIPHER
165 select CRYPTO_MANAGER
166 default m
167 help
168 PCBC: Propagating Cipher Block Chaining mode
169 This block cipher algorithm is required for RxRPC.
170
Rik Snel64470f12006-11-26 09:43:10 +1100171config CRYPTO_LRW
172 tristate "LRW support (EXPERIMENTAL)"
173 depends on EXPERIMENTAL
174 select CRYPTO_BLKCIPHER
175 select CRYPTO_MANAGER
176 select CRYPTO_GF128MUL
177 help
178 LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
179 narrow block cipher mode for dm-crypt. Use it with cipher
180 specification string aes-lrw-benbi, the key must be 256, 320 or 384.
181 The first 128, 192 or 256 bits in the key are used for AES and the
182 rest is used to tie each cipher block to its logical position.
183
Herbert Xu124b53d2007-04-16 20:49:20 +1000184config CRYPTO_CRYPTD
185 tristate "Software async crypto daemon"
186 select CRYPTO_ABLKCIPHER
187 select CRYPTO_MANAGER
188 help
189 This is a generic software asynchronous crypto daemon that
190 converts an arbitrary synchronous software crypto algorithm
191 into an asynchronous algorithm that executes in a kernel thread.
192
Linus Torvalds1da177e2005-04-16 15:20:36 -0700193config CRYPTO_DES
194 tristate "DES and Triple DES EDE cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +1000195 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700196 help
197 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
198
David Howells90831632006-12-16 12:13:14 +1100199config CRYPTO_FCRYPT
200 tristate "FCrypt cipher algorithm"
201 select CRYPTO_ALGAPI
202 select CRYPTO_BLKCIPHER
203 help
204 FCrypt algorithm used by RxRPC.
205
Linus Torvalds1da177e2005-04-16 15:20:36 -0700206config CRYPTO_BLOWFISH
207 tristate "Blowfish cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000208 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700209 help
210 Blowfish cipher algorithm, by Bruce Schneier.
211
212 This is a variable key length cipher which can use keys from 32
213 bits to 448 bits in length. It's fast, simple and specifically
214 designed for use on "large microprocessors".
215
216 See also:
217 <http://www.schneier.com/blowfish.html>
218
219config CRYPTO_TWOFISH
220 tristate "Twofish cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000221 select CRYPTO_ALGAPI
Joachim Fritschi2729bb42006-06-20 20:37:23 +1000222 select CRYPTO_TWOFISH_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -0700223 help
224 Twofish cipher algorithm.
225
226 Twofish was submitted as an AES (Advanced Encryption Standard)
227 candidate cipher by researchers at CounterPane Systems. It is a
228 16 round block cipher supporting key sizes of 128, 192, and 256
229 bits.
230
231 See also:
232 <http://www.schneier.com/twofish.html>
233
Joachim Fritschi2729bb42006-06-20 20:37:23 +1000234config CRYPTO_TWOFISH_COMMON
235 tristate
Joachim Fritschi2729bb42006-06-20 20:37:23 +1000236 help
237 Common parts of the Twofish cipher algorithm shared by the
238 generic c and the assembler implementations.
239
Joachim Fritschib9f535f2006-06-20 20:59:16 +1000240config CRYPTO_TWOFISH_586
241 tristate "Twofish cipher algorithms (i586)"
Herbert Xucce9e062006-08-21 21:08:13 +1000242 depends on (X86 || UML_X86) && !64BIT
243 select CRYPTO_ALGAPI
Joachim Fritschib9f535f2006-06-20 20:59:16 +1000244 select CRYPTO_TWOFISH_COMMON
245 help
246 Twofish cipher algorithm.
247
248 Twofish was submitted as an AES (Advanced Encryption Standard)
249 candidate cipher by researchers at CounterPane Systems. It is a
250 16 round block cipher supporting key sizes of 128, 192, and 256
251 bits.
252
253 See also:
254 <http://www.schneier.com/twofish.html>
255
Joachim Fritschieaf44082006-06-20 21:12:02 +1000256config CRYPTO_TWOFISH_X86_64
257 tristate "Twofish cipher algorithm (x86_64)"
Herbert Xucce9e062006-08-21 21:08:13 +1000258 depends on (X86 || UML_X86) && 64BIT
259 select CRYPTO_ALGAPI
Joachim Fritschieaf44082006-06-20 21:12:02 +1000260 select CRYPTO_TWOFISH_COMMON
261 help
262 Twofish cipher algorithm (x86_64).
263
264 Twofish was submitted as an AES (Advanced Encryption Standard)
265 candidate cipher by researchers at CounterPane Systems. It is a
266 16 round block cipher supporting key sizes of 128, 192, and 256
267 bits.
268
269 See also:
270 <http://www.schneier.com/twofish.html>
271
Linus Torvalds1da177e2005-04-16 15:20:36 -0700272config CRYPTO_SERPENT
273 tristate "Serpent cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000274 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700275 help
276 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
277
278 Keys are allowed to be from 0 to 256 bits in length, in steps
279 of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
David Sterba3dde6ad2007-05-09 07:12:20 +0200280 variant of Serpent for compatibility with old kerneli.org code.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700281
282 See also:
283 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
284
285config CRYPTO_AES
286 tristate "AES cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +1000287 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700288 help
289 AES cipher algorithms (FIPS-197). AES uses the Rijndael
290 algorithm.
291
292 Rijndael appears to be consistently a very good performer in
293 both hardware and software across a wide range of computing
294 environments regardless of its use in feedback or non-feedback
295 modes. Its key setup time is excellent, and its key agility is
296 good. Rijndael's very low memory requirements make it very well
297 suited for restricted-space environments, in which it also
298 demonstrates excellent performance. Rijndael's operations are
299 among the easiest to defend against power and timing attacks.
300
301 The AES specifies three key sizes: 128, 192 and 256 bits
302
303 See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
304
305config CRYPTO_AES_586
306 tristate "AES cipher algorithms (i586)"
Herbert Xucce9e062006-08-21 21:08:13 +1000307 depends on (X86 || UML_X86) && !64BIT
308 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700309 help
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 The AES specifies three key sizes: 128, 192 and 256 bits
323
324 See <http://csrc.nist.gov/encryption/aes/> for more information.
325
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700326config CRYPTO_AES_X86_64
327 tristate "AES cipher algorithms (x86_64)"
Herbert Xucce9e062006-08-21 21:08:13 +1000328 depends on (X86 || UML_X86) && 64BIT
329 select CRYPTO_ALGAPI
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700330 help
331 AES cipher algorithms (FIPS-197). AES uses the Rijndael
332 algorithm.
333
334 Rijndael appears to be consistently a very good performer in
335 both hardware and software across a wide range of computing
336 environments regardless of its use in feedback or non-feedback
337 modes. Its key setup time is excellent, and its key agility is
338 good. Rijndael's very low memory requirements make it very well
339 suited for restricted-space environments, in which it also
340 demonstrates excellent performance. Rijndael's operations are
341 among the easiest to defend against power and timing attacks.
342
343 The AES specifies three key sizes: 128, 192 and 256 bits
344
345 See <http://csrc.nist.gov/encryption/aes/> for more information.
346
Linus Torvalds1da177e2005-04-16 15:20:36 -0700347config CRYPTO_CAST5
348 tristate "CAST5 (CAST-128) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000349 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700350 help
351 The CAST5 encryption algorithm (synonymous with CAST-128) is
352 described in RFC2144.
353
354config CRYPTO_CAST6
355 tristate "CAST6 (CAST-256) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000356 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700357 help
358 The CAST6 encryption algorithm (synonymous with CAST-256) is
359 described in RFC2612.
360
361config CRYPTO_TEA
Aaron Grothefb4f10e2005-09-01 17:42:46 -0700362 tristate "TEA, XTEA and XETA cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +1000363 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700364 help
365 TEA cipher algorithm.
366
367 Tiny Encryption Algorithm is a simple cipher that uses
368 many rounds for security. It is very fast and uses
369 little memory.
370
371 Xtendend Tiny Encryption Algorithm is a modification to
372 the TEA algorithm to address a potential key weakness
373 in the TEA algorithm.
374
Aaron Grothefb4f10e2005-09-01 17:42:46 -0700375 Xtendend Encryption Tiny Algorithm is a mis-implementation
376 of the XTEA algorithm for compatibility purposes.
377
Linus Torvalds1da177e2005-04-16 15:20:36 -0700378config CRYPTO_ARC4
379 tristate "ARC4 cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000380 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700381 help
382 ARC4 cipher algorithm.
383
384 ARC4 is a stream cipher using keys ranging from 8 bits to 2048
385 bits in length. This algorithm is required for driver-based
386 WEP, but it should not be for other purposes because of the
387 weakness of the algorithm.
388
389config CRYPTO_KHAZAD
390 tristate "Khazad cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000391 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700392 help
393 Khazad cipher algorithm.
394
395 Khazad was a finalist in the initial NESSIE competition. It is
396 an algorithm optimized for 64-bit processors with good performance
397 on 32-bit processors. Khazad uses an 128 bit key size.
398
399 See also:
400 <http://planeta.terra.com.br/informatica/paulobarreto/KhazadPage.html>
401
402config CRYPTO_ANUBIS
403 tristate "Anubis cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000404 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700405 help
406 Anubis cipher algorithm.
407
408 Anubis is a variable key length cipher which can use keys from
409 128 bits to 320 bits in length. It was evaluated as a entrant
410 in the NESSIE competition.
411
412 See also:
413 <https://www.cosic.esat.kuleuven.ac.be/nessie/reports/>
414 <http://planeta.terra.com.br/informatica/paulobarreto/AnubisPage.html>
415
416
417config CRYPTO_DEFLATE
418 tristate "Deflate compression algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000419 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700420 select ZLIB_INFLATE
421 select ZLIB_DEFLATE
422 help
423 This is the Deflate algorithm (RFC1951), specified for use in
424 IPSec with the IPCOMP protocol (RFC3173, RFC2394).
425
426 You will most probably want this if using IPSec.
427
428config CRYPTO_MICHAEL_MIC
429 tristate "Michael MIC keyed digest algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000430 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700431 help
432 Michael MIC is used for message integrity protection in TKIP
433 (IEEE 802.11i). This algorithm is required for TKIP, but it
434 should not be used for other purposes because of the weakness
435 of the algorithm.
436
437config CRYPTO_CRC32C
438 tristate "CRC32c CRC algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000439 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700440 select LIBCRC32C
441 help
442 Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
443 by iSCSI for header and data digests and by others.
444 See Castagnoli93. This implementation uses lib/libcrc32c.
445 Module will be crc32c.
446
Noriaki TAKAMIYA04ac7db2006-10-22 14:49:17 +1000447config CRYPTO_CAMELLIA
448 tristate "Camellia cipher algorithms"
449 depends on CRYPTO
450 select CRYPTO_ALGAPI
451 help
452 Camellia cipher algorithms module.
453
454 Camellia is a symmetric key block cipher developed jointly
455 at NTT and Mitsubishi Electric Corporation.
456
457 The Camellia specifies three key sizes: 128, 192 and 256 bits.
458
459 See also:
460 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
461
Linus Torvalds1da177e2005-04-16 15:20:36 -0700462config CRYPTO_TEST
463 tristate "Testing module"
Herbert Xucce9e062006-08-21 21:08:13 +1000464 depends on m
465 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700466 help
467 Quick & dirty crypto test module.
468
469source "drivers/crypto/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700470
Herbert Xucce9e062006-08-21 21:08:13 +1000471endif # if CRYPTO
472
473endmenu