blob: 981497c897529974338c2f1aa85c86587ab70c36 [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#
Dan Williams9bc89cd2007-01-02 11:10:44 -07008# async_tx api: hardware offloaded memory transfer/transform support
9#
10source "crypto/async_tx/Kconfig"
11
12#
Linus Torvalds1da177e2005-04-16 15:20:36 -070013# Cryptographic API Configuration
14#
Jan Engelhardt2e290f42007-05-18 15:11:01 +100015menuconfig CRYPTO
Linus Torvalds1da177e2005-04-16 15:20:36 -070016 bool "Cryptographic API"
17 help
18 This option provides the core Cryptographic API.
19
Herbert Xucce9e062006-08-21 21:08:13 +100020if CRYPTO
21
22config CRYPTO_ALGAPI
23 tristate
24 help
25 This option provides the API for cryptographic algorithms.
26
Herbert Xub5b7f082007-04-16 20:48:54 +100027config CRYPTO_ABLKCIPHER
28 tristate
29 select CRYPTO_BLKCIPHER
30
Herbert Xu5cde0af2006-08-22 00:07:53 +100031config CRYPTO_BLKCIPHER
32 tristate
33 select CRYPTO_ALGAPI
34
Herbert Xu055bcee2006-08-19 22:24:23 +100035config CRYPTO_HASH
36 tristate
37 select CRYPTO_ALGAPI
38
Herbert Xu2b8c19d2006-09-21 11:31:44 +100039config CRYPTO_MANAGER
40 tristate "Cryptographic algorithm manager"
41 select CRYPTO_ALGAPI
Herbert Xu2b8c19d2006-09-21 11:31:44 +100042 help
43 Create default cryptographic template instantiations such as
44 cbc(aes).
45
Linus Torvalds1da177e2005-04-16 15:20:36 -070046config CRYPTO_HMAC
Herbert Xu84251652006-08-20 15:25:22 +100047 tristate "HMAC support"
Herbert Xu0796ae02006-08-21 20:50:52 +100048 select CRYPTO_HASH
Herbert Xu43518402006-10-16 21:28:58 +100049 select CRYPTO_MANAGER
Linus Torvalds1da177e2005-04-16 15:20:36 -070050 help
51 HMAC: Keyed-Hashing for Message Authentication (RFC2104).
52 This is required for IPSec.
53
Kazunori MIYAZAWA333b0d72006-10-28 13:15:24 +100054config CRYPTO_XCBC
55 tristate "XCBC support"
56 depends on EXPERIMENTAL
57 select CRYPTO_HASH
58 select CRYPTO_MANAGER
59 help
60 XCBC: Keyed-Hashing with encryption algorithm
61 http://www.ietf.org/rfc/rfc3566.txt
62 http://csrc.nist.gov/encryption/modes/proposedmodes/
63 xcbc-mac/xcbc-mac-spec.pdf
64
Linus Torvalds1da177e2005-04-16 15:20:36 -070065config CRYPTO_NULL
66 tristate "Null algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +100067 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -070068 help
69 These are 'Null' algorithms, used by IPsec, which do nothing.
70
71config CRYPTO_MD4
72 tristate "MD4 digest algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +100073 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -070074 help
75 MD4 message digest algorithm (RFC1320).
76
77config CRYPTO_MD5
78 tristate "MD5 digest algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +100079 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -070080 help
81 MD5 message digest algorithm (RFC1321).
82
83config CRYPTO_SHA1
84 tristate "SHA1 digest algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +100085 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -070086 help
87 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
88
Linus Torvalds1da177e2005-04-16 15:20:36 -070089config CRYPTO_SHA256
90 tristate "SHA256 digest algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +100091 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -070092 help
93 SHA256 secure hash standard (DFIPS 180-2).
94
95 This version of SHA implements a 256 bit hash with 128 bits of
96 security against collision attacks.
97
98config CRYPTO_SHA512
99 tristate "SHA384 and SHA512 digest algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +1000100 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700101 help
102 SHA512 secure hash standard (DFIPS 180-2).
103
104 This version of SHA implements a 512 bit hash with 256 bits of
105 security against collision attacks.
106
107 This code also includes SHA-384, a 384 bit hash with 192 bits
108 of security against collision attacks.
109
110config CRYPTO_WP512
111 tristate "Whirlpool digest algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +1000112 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700113 help
114 Whirlpool hash algorithm 512, 384 and 256-bit hashes
115
116 Whirlpool-512 is part of the NESSIE cryptographic primitives.
117 Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
118
119 See also:
120 <http://planeta.terra.com.br/informatica/paulobarreto/WhirlpoolPage.html>
121
122config CRYPTO_TGR192
123 tristate "Tiger digest algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +1000124 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700125 help
126 Tiger hash algorithm 192, 160 and 128-bit hashes
127
128 Tiger is a hash function optimized for 64-bit processors while
129 still having decent performance on 32-bit processors.
130 Tiger was developed by Ross Anderson and Eli Biham.
131
132 See also:
133 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
134
Rik Snelc494e072006-11-29 18:59:44 +1100135config CRYPTO_GF128MUL
136 tristate "GF(2^128) multiplication functions (EXPERIMENTAL)"
137 depends on EXPERIMENTAL
138 help
139 Efficient table driven implementation of multiplications in the
140 field GF(2^128). This is needed by some cypher modes. This
141 option will be selected automatically if you select such a
142 cipher mode. Only select this option by hand if you expect to load
143 an external module that requires these functions.
144
Herbert Xudb131ef2006-09-21 11:44:08 +1000145config CRYPTO_ECB
146 tristate "ECB support"
147 select CRYPTO_BLKCIPHER
Herbert Xu43518402006-10-16 21:28:58 +1000148 select CRYPTO_MANAGER
Herbert Xudb131ef2006-09-21 11:44:08 +1000149 help
150 ECB: Electronic CodeBook mode
151 This is the simplest block cipher algorithm. It simply encrypts
152 the input block by block.
153
154config CRYPTO_CBC
155 tristate "CBC support"
156 select CRYPTO_BLKCIPHER
Herbert Xu43518402006-10-16 21:28:58 +1000157 select CRYPTO_MANAGER
Herbert Xudb131ef2006-09-21 11:44:08 +1000158 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
David Howells91652be2006-12-16 12:09:02 +1100166 help
167 PCBC: Propagating Cipher Block Chaining mode
168 This block cipher algorithm is required for RxRPC.
169
Rik Snel64470f12006-11-26 09:43:10 +1100170config CRYPTO_LRW
171 tristate "LRW support (EXPERIMENTAL)"
172 depends on EXPERIMENTAL
173 select CRYPTO_BLKCIPHER
174 select CRYPTO_MANAGER
175 select CRYPTO_GF128MUL
176 help
177 LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
178 narrow block cipher mode for dm-crypt. Use it with cipher
179 specification string aes-lrw-benbi, the key must be 256, 320 or 384.
180 The first 128, 192 or 256 bits in the key are used for AES and the
181 rest is used to tie each cipher block to its logical position.
182
Herbert Xu124b53d2007-04-16 20:49:20 +1000183config CRYPTO_CRYPTD
184 tristate "Software async crypto daemon"
185 select CRYPTO_ABLKCIPHER
186 select CRYPTO_MANAGER
187 help
188 This is a generic software asynchronous crypto daemon that
189 converts an arbitrary synchronous software crypto algorithm
190 into an asynchronous algorithm that executes in a kernel thread.
191
Linus Torvalds1da177e2005-04-16 15:20:36 -0700192config CRYPTO_DES
193 tristate "DES and Triple DES EDE cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +1000194 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700195 help
196 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
197
David Howells90831632006-12-16 12:13:14 +1100198config CRYPTO_FCRYPT
199 tristate "FCrypt cipher algorithm"
200 select CRYPTO_ALGAPI
201 select CRYPTO_BLKCIPHER
202 help
203 FCrypt algorithm used by RxRPC.
204
Linus Torvalds1da177e2005-04-16 15:20:36 -0700205config CRYPTO_BLOWFISH
206 tristate "Blowfish cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000207 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700208 help
209 Blowfish cipher algorithm, by Bruce Schneier.
210
211 This is a variable key length cipher which can use keys from 32
212 bits to 448 bits in length. It's fast, simple and specifically
213 designed for use on "large microprocessors".
214
215 See also:
216 <http://www.schneier.com/blowfish.html>
217
218config CRYPTO_TWOFISH
219 tristate "Twofish cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000220 select CRYPTO_ALGAPI
Joachim Fritschi2729bb42006-06-20 20:37:23 +1000221 select CRYPTO_TWOFISH_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -0700222 help
223 Twofish cipher algorithm.
224
225 Twofish was submitted as an AES (Advanced Encryption Standard)
226 candidate cipher by researchers at CounterPane Systems. It is a
227 16 round block cipher supporting key sizes of 128, 192, and 256
228 bits.
229
230 See also:
231 <http://www.schneier.com/twofish.html>
232
Joachim Fritschi2729bb42006-06-20 20:37:23 +1000233config CRYPTO_TWOFISH_COMMON
234 tristate
Joachim Fritschi2729bb42006-06-20 20:37:23 +1000235 help
236 Common parts of the Twofish cipher algorithm shared by the
237 generic c and the assembler implementations.
238
Joachim Fritschib9f535f2006-06-20 20:59:16 +1000239config CRYPTO_TWOFISH_586
240 tristate "Twofish cipher algorithms (i586)"
Herbert Xucce9e062006-08-21 21:08:13 +1000241 depends on (X86 || UML_X86) && !64BIT
242 select CRYPTO_ALGAPI
Joachim Fritschib9f535f2006-06-20 20:59:16 +1000243 select CRYPTO_TWOFISH_COMMON
244 help
245 Twofish cipher algorithm.
246
247 Twofish was submitted as an AES (Advanced Encryption Standard)
248 candidate cipher by researchers at CounterPane Systems. It is a
249 16 round block cipher supporting key sizes of 128, 192, and 256
250 bits.
251
252 See also:
253 <http://www.schneier.com/twofish.html>
254
Joachim Fritschieaf44082006-06-20 21:12:02 +1000255config CRYPTO_TWOFISH_X86_64
256 tristate "Twofish cipher algorithm (x86_64)"
Herbert Xucce9e062006-08-21 21:08:13 +1000257 depends on (X86 || UML_X86) && 64BIT
258 select CRYPTO_ALGAPI
Joachim Fritschieaf44082006-06-20 21:12:02 +1000259 select CRYPTO_TWOFISH_COMMON
260 help
261 Twofish cipher algorithm (x86_64).
262
263 Twofish was submitted as an AES (Advanced Encryption Standard)
264 candidate cipher by researchers at CounterPane Systems. It is a
265 16 round block cipher supporting key sizes of 128, 192, and 256
266 bits.
267
268 See also:
269 <http://www.schneier.com/twofish.html>
270
Linus Torvalds1da177e2005-04-16 15:20:36 -0700271config CRYPTO_SERPENT
272 tristate "Serpent cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000273 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700274 help
275 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
276
277 Keys are allowed to be from 0 to 256 bits in length, in steps
278 of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
David Sterba3dde6ad2007-05-09 07:12:20 +0200279 variant of Serpent for compatibility with old kerneli.org code.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700280
281 See also:
282 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
283
284config CRYPTO_AES
285 tristate "AES cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +1000286 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700287 help
288 AES cipher algorithms (FIPS-197). AES uses the Rijndael
289 algorithm.
290
291 Rijndael appears to be consistently a very good performer in
292 both hardware and software across a wide range of computing
293 environments regardless of its use in feedback or non-feedback
294 modes. Its key setup time is excellent, and its key agility is
295 good. Rijndael's very low memory requirements make it very well
296 suited for restricted-space environments, in which it also
297 demonstrates excellent performance. Rijndael's operations are
298 among the easiest to defend against power and timing attacks.
299
300 The AES specifies three key sizes: 128, 192 and 256 bits
301
302 See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
303
304config CRYPTO_AES_586
305 tristate "AES cipher algorithms (i586)"
Herbert Xucce9e062006-08-21 21:08:13 +1000306 depends on (X86 || UML_X86) && !64BIT
307 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700308 help
309 AES cipher algorithms (FIPS-197). AES uses the Rijndael
310 algorithm.
311
312 Rijndael appears to be consistently a very good performer in
313 both hardware and software across a wide range of computing
314 environments regardless of its use in feedback or non-feedback
315 modes. Its key setup time is excellent, and its key agility is
316 good. Rijndael's very low memory requirements make it very well
317 suited for restricted-space environments, in which it also
318 demonstrates excellent performance. Rijndael's operations are
319 among the easiest to defend against power and timing attacks.
320
321 The AES specifies three key sizes: 128, 192 and 256 bits
322
323 See <http://csrc.nist.gov/encryption/aes/> for more information.
324
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700325config CRYPTO_AES_X86_64
326 tristate "AES cipher algorithms (x86_64)"
Herbert Xucce9e062006-08-21 21:08:13 +1000327 depends on (X86 || UML_X86) && 64BIT
328 select CRYPTO_ALGAPI
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700329 help
330 AES cipher algorithms (FIPS-197). AES uses the Rijndael
331 algorithm.
332
333 Rijndael appears to be consistently a very good performer in
334 both hardware and software across a wide range of computing
335 environments regardless of its use in feedback or non-feedback
336 modes. Its key setup time is excellent, and its key agility is
337 good. Rijndael's very low memory requirements make it very well
338 suited for restricted-space environments, in which it also
339 demonstrates excellent performance. Rijndael's operations are
340 among the easiest to defend against power and timing attacks.
341
342 The AES specifies three key sizes: 128, 192 and 256 bits
343
344 See <http://csrc.nist.gov/encryption/aes/> for more information.
345
Linus Torvalds1da177e2005-04-16 15:20:36 -0700346config CRYPTO_CAST5
347 tristate "CAST5 (CAST-128) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000348 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700349 help
350 The CAST5 encryption algorithm (synonymous with CAST-128) is
351 described in RFC2144.
352
353config CRYPTO_CAST6
354 tristate "CAST6 (CAST-256) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000355 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700356 help
357 The CAST6 encryption algorithm (synonymous with CAST-256) is
358 described in RFC2612.
359
360config CRYPTO_TEA
Aaron Grothefb4f10e2005-09-01 17:42:46 -0700361 tristate "TEA, XTEA and XETA cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +1000362 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700363 help
364 TEA cipher algorithm.
365
366 Tiny Encryption Algorithm is a simple cipher that uses
367 many rounds for security. It is very fast and uses
368 little memory.
369
370 Xtendend Tiny Encryption Algorithm is a modification to
371 the TEA algorithm to address a potential key weakness
372 in the TEA algorithm.
373
Aaron Grothefb4f10e2005-09-01 17:42:46 -0700374 Xtendend Encryption Tiny Algorithm is a mis-implementation
375 of the XTEA algorithm for compatibility purposes.
376
Linus Torvalds1da177e2005-04-16 15:20:36 -0700377config CRYPTO_ARC4
378 tristate "ARC4 cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000379 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700380 help
381 ARC4 cipher algorithm.
382
383 ARC4 is a stream cipher using keys ranging from 8 bits to 2048
384 bits in length. This algorithm is required for driver-based
385 WEP, but it should not be for other purposes because of the
386 weakness of the algorithm.
387
388config CRYPTO_KHAZAD
389 tristate "Khazad cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000390 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700391 help
392 Khazad cipher algorithm.
393
394 Khazad was a finalist in the initial NESSIE competition. It is
395 an algorithm optimized for 64-bit processors with good performance
396 on 32-bit processors. Khazad uses an 128 bit key size.
397
398 See also:
399 <http://planeta.terra.com.br/informatica/paulobarreto/KhazadPage.html>
400
401config CRYPTO_ANUBIS
402 tristate "Anubis cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000403 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700404 help
405 Anubis cipher algorithm.
406
407 Anubis is a variable key length cipher which can use keys from
408 128 bits to 320 bits in length. It was evaluated as a entrant
409 in the NESSIE competition.
410
411 See also:
412 <https://www.cosic.esat.kuleuven.ac.be/nessie/reports/>
413 <http://planeta.terra.com.br/informatica/paulobarreto/AnubisPage.html>
414
Hye-Shik Change2ee95b2007-08-21 20:01:03 +0800415config CRYPTO_SEED
416 tristate "SEED cipher algorithm"
417 select CRYPTO_ALGAPI
418 help
419 SEED cipher algorithm (RFC4269).
420
421 SEED is a 128-bit symmetric key block cipher that has been
422 developed by KISA (Korea Information Security Agency) as a
423 national standard encryption algorithm of the Republic of Korea.
424 It is a 16 round block cipher with the key size of 128 bit.
425
426 See also:
427 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
428
Linus Torvalds1da177e2005-04-16 15:20:36 -0700429
430config CRYPTO_DEFLATE
431 tristate "Deflate compression algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000432 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700433 select ZLIB_INFLATE
434 select ZLIB_DEFLATE
435 help
436 This is the Deflate algorithm (RFC1951), specified for use in
437 IPSec with the IPCOMP protocol (RFC3173, RFC2394).
438
439 You will most probably want this if using IPSec.
440
441config CRYPTO_MICHAEL_MIC
442 tristate "Michael MIC keyed digest algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000443 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700444 help
445 Michael MIC is used for message integrity protection in TKIP
446 (IEEE 802.11i). This algorithm is required for TKIP, but it
447 should not be used for other purposes because of the weakness
448 of the algorithm.
449
450config CRYPTO_CRC32C
451 tristate "CRC32c CRC algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000452 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700453 select LIBCRC32C
454 help
455 Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
456 by iSCSI for header and data digests and by others.
457 See Castagnoli93. This implementation uses lib/libcrc32c.
458 Module will be crc32c.
459
Noriaki TAKAMIYA04ac7db2006-10-22 14:49:17 +1000460config CRYPTO_CAMELLIA
461 tristate "Camellia cipher algorithms"
462 depends on CRYPTO
463 select CRYPTO_ALGAPI
464 help
465 Camellia cipher algorithms module.
466
467 Camellia is a symmetric key block cipher developed jointly
468 at NTT and Mitsubishi Electric Corporation.
469
470 The Camellia specifies three key sizes: 128, 192 and 256 bits.
471
472 See also:
473 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
474
Linus Torvalds1da177e2005-04-16 15:20:36 -0700475config CRYPTO_TEST
476 tristate "Testing module"
Herbert Xucce9e062006-08-21 21:08:13 +1000477 depends on m
478 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700479 help
480 Quick & dirty crypto test module.
481
482source "drivers/crypto/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700483
Herbert Xucce9e062006-08-21 21:08:13 +1000484endif # if CRYPTO