blob: 2274293e71e1162112ade645c41cc3aecba0daf1 [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
Sebastian Siewiorc3715cb92008-03-30 16:36:09 +080016 tristate "Cryptographic API"
Linus Torvalds1da177e2005-04-16 15:20:36 -070017 help
18 This option provides the core Cryptographic API.
19
Herbert Xucce9e062006-08-21 21:08:13 +100020if CRYPTO
21
Sebastian Siewior584fffc2008-04-05 21:04:48 +080022comment "Crypto core or helper"
23
Neil Hormanccb778e2008-08-05 14:13:08 +080024config CRYPTO_FIPS
25 bool "FIPS 200 compliance"
26 help
27 This options enables the fips boot option which is
28 required if you want to system to operate in a FIPS 200
29 certification. You should say no unless you know what
30 this is.
31
Herbert Xucce9e062006-08-21 21:08:13 +100032config CRYPTO_ALGAPI
33 tristate
34 help
35 This option provides the API for cryptographic algorithms.
36
Herbert Xu1ae97822007-08-30 15:36:14 +080037config CRYPTO_AEAD
38 tristate
39 select CRYPTO_ALGAPI
40
Herbert Xu5cde0af2006-08-22 00:07:53 +100041config CRYPTO_BLKCIPHER
42 tristate
43 select CRYPTO_ALGAPI
44
Herbert Xu055bcee2006-08-19 22:24:23 +100045config CRYPTO_HASH
46 tristate
47 select CRYPTO_ALGAPI
48
Neil Horman17f0f4a2008-08-14 22:15:52 +100049config CRYPTO_RNG
50 tristate
51 select CRYPTO_ALGAPI
52
Herbert Xu2b8c19d2006-09-21 11:31:44 +100053config CRYPTO_MANAGER
54 tristate "Cryptographic algorithm manager"
Herbert Xuda7f0332008-07-31 17:08:25 +080055 select CRYPTO_AEAD
56 select CRYPTO_HASH
57 select CRYPTO_BLKCIPHER
Herbert Xu2b8c19d2006-09-21 11:31:44 +100058 help
59 Create default cryptographic template instantiations such as
60 cbc(aes).
61
Rik Snelc494e072006-11-29 18:59:44 +110062config CRYPTO_GF128MUL
63 tristate "GF(2^128) multiplication functions (EXPERIMENTAL)"
64 depends on EXPERIMENTAL
65 help
66 Efficient table driven implementation of multiplications in the
67 field GF(2^128). This is needed by some cypher modes. This
68 option will be selected automatically if you select such a
69 cipher mode. Only select this option by hand if you expect to load
70 an external module that requires these functions.
71
Sebastian Siewior584fffc2008-04-05 21:04:48 +080072config CRYPTO_NULL
73 tristate "Null algorithms"
74 select CRYPTO_ALGAPI
75 select CRYPTO_BLKCIPHER
76 help
77 These are 'Null' algorithms, used by IPsec, which do nothing.
78
79config CRYPTO_CRYPTD
80 tristate "Software async crypto daemon"
Herbert Xudb131ef2006-09-21 11:44:08 +100081 select CRYPTO_BLKCIPHER
Loc Hob8a28252008-05-14 21:23:00 +080082 select CRYPTO_HASH
Herbert Xu43518402006-10-16 21:28:58 +100083 select CRYPTO_MANAGER
Herbert Xudb131ef2006-09-21 11:44:08 +100084 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +080085 This is a generic software asynchronous crypto daemon that
86 converts an arbitrary synchronous software crypto algorithm
87 into an asynchronous algorithm that executes in a kernel thread.
88
89config CRYPTO_AUTHENC
90 tristate "Authenc support"
91 select CRYPTO_AEAD
92 select CRYPTO_BLKCIPHER
93 select CRYPTO_MANAGER
94 select CRYPTO_HASH
95 help
96 Authenc: Combined mode wrapper for IPsec.
97 This is required for IPSec.
98
99config CRYPTO_TEST
100 tristate "Testing module"
101 depends on m
Herbert Xuda7f0332008-07-31 17:08:25 +0800102 select CRYPTO_MANAGER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800103 help
104 Quick & dirty crypto test module.
105
106comment "Authenticated Encryption with Associated Data"
107
108config CRYPTO_CCM
109 tristate "CCM support"
110 select CRYPTO_CTR
111 select CRYPTO_AEAD
112 help
113 Support for Counter with CBC MAC. Required for IPsec.
114
115config CRYPTO_GCM
116 tristate "GCM/GMAC support"
117 select CRYPTO_CTR
118 select CRYPTO_AEAD
119 select CRYPTO_GF128MUL
120 help
121 Support for Galois/Counter Mode (GCM) and Galois Message
122 Authentication Code (GMAC). Required for IPSec.
123
124config CRYPTO_SEQIV
125 tristate "Sequence Number IV Generator"
126 select CRYPTO_AEAD
127 select CRYPTO_BLKCIPHER
128 help
129 This IV generator generates an IV based on a sequence number by
130 xoring it with a salt. This algorithm is mainly useful for CTR
131
132comment "Block modes"
Herbert Xudb131ef2006-09-21 11:44:08 +1000133
134config CRYPTO_CBC
135 tristate "CBC support"
136 select CRYPTO_BLKCIPHER
Herbert Xu43518402006-10-16 21:28:58 +1000137 select CRYPTO_MANAGER
Herbert Xudb131ef2006-09-21 11:44:08 +1000138 help
139 CBC: Cipher Block Chaining mode
140 This block cipher algorithm is required for IPSec.
141
Joy Latten23e353c2007-10-23 08:50:32 +0800142config CRYPTO_CTR
143 tristate "CTR support"
144 select CRYPTO_BLKCIPHER
Herbert Xu0a270322007-11-30 21:38:37 +1100145 select CRYPTO_SEQIV
Joy Latten23e353c2007-10-23 08:50:32 +0800146 select CRYPTO_MANAGER
Joy Latten23e353c2007-10-23 08:50:32 +0800147 help
148 CTR: Counter mode
149 This block cipher algorithm is required for IPSec.
150
Kevin Coffman76cb9522008-03-24 21:26:16 +0800151config CRYPTO_CTS
152 tristate "CTS support"
153 select CRYPTO_BLKCIPHER
154 help
155 CTS: Cipher Text Stealing
156 This is the Cipher Text Stealing mode as described by
157 Section 8 of rfc2040 and referenced by rfc3962.
158 (rfc3962 includes errata information in its Appendix A)
159 This mode is required for Kerberos gss mechanism support
160 for AES encryption.
161
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800162config CRYPTO_ECB
163 tristate "ECB support"
Herbert Xu653ebd9c2007-11-27 19:48:27 +0800164 select CRYPTO_BLKCIPHER
Herbert Xu124b53d2007-04-16 20:49:20 +1000165 select CRYPTO_MANAGER
166 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800167 ECB: Electronic CodeBook mode
168 This is the simplest block cipher algorithm. It simply encrypts
169 the input block by block.
Herbert Xu124b53d2007-04-16 20:49:20 +1000170
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800171config CRYPTO_LRW
172 tristate "LRW support (EXPERIMENTAL)"
173 depends on EXPERIMENTAL
David Howells90831632006-12-16 12:13:14 +1100174 select CRYPTO_BLKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800175 select CRYPTO_MANAGER
176 select CRYPTO_GF128MUL
David Howells90831632006-12-16 12:13:14 +1100177 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800178 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.
David Howells90831632006-12-16 12:13:14 +1100183
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800184config CRYPTO_PCBC
185 tristate "PCBC support"
186 select CRYPTO_BLKCIPHER
187 select CRYPTO_MANAGER
188 help
189 PCBC: Propagating Cipher Block Chaining mode
190 This block cipher algorithm is required for RxRPC.
191
192config CRYPTO_XTS
193 tristate "XTS support (EXPERIMENTAL)"
194 depends on EXPERIMENTAL
195 select CRYPTO_BLKCIPHER
196 select CRYPTO_MANAGER
197 select CRYPTO_GF128MUL
198 help
199 XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
200 key size 256, 384 or 512 bits. This implementation currently
201 can't handle a sectorsize which is not a multiple of 16 bytes.
202
203comment "Hash modes"
204
205config CRYPTO_HMAC
206 tristate "HMAC support"
207 select CRYPTO_HASH
208 select CRYPTO_MANAGER
209 help
210 HMAC: Keyed-Hashing for Message Authentication (RFC2104).
211 This is required for IPSec.
212
213config CRYPTO_XCBC
214 tristate "XCBC support"
215 depends on EXPERIMENTAL
216 select CRYPTO_HASH
217 select CRYPTO_MANAGER
218 help
219 XCBC: Keyed-Hashing with encryption algorithm
220 http://www.ietf.org/rfc/rfc3566.txt
221 http://csrc.nist.gov/encryption/modes/proposedmodes/
222 xcbc-mac/xcbc-mac-spec.pdf
223
224comment "Digest"
225
226config CRYPTO_CRC32C
227 tristate "CRC32c CRC algorithm"
Herbert Xu5773a3e2008-07-08 20:54:28 +0800228 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800229 select LIBCRC32C
230 help
231 Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
232 by iSCSI for header and data digests and by others.
233 See Castagnoli93. This implementation uses lib/libcrc32c.
Adrian Bunkb6d44342008-07-16 19:28:00 +0800234 Module will be crc32c.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800235
Austin Zhang8cb51ba2008-08-07 09:57:03 +0800236config CRYPTO_CRC32C_INTEL
237 tristate "CRC32c INTEL hardware acceleration"
238 depends on X86
239 select CRYPTO_HASH
240 help
241 In Intel processor with SSE4.2 supported, the processor will
242 support CRC32C implementation using hardware accelerated CRC32
243 instruction. This option will create 'crc32c-intel' module,
244 which will enable any routine to use the CRC32 instruction to
245 gain performance compared with software implementation.
246 Module will be crc32c-intel.
247
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800248config CRYPTO_MD4
249 tristate "MD4 digest algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000250 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700251 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800252 MD4 message digest algorithm (RFC1320).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700253
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800254config CRYPTO_MD5
255 tristate "MD5 digest algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000256 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700257 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800258 MD5 message digest algorithm (RFC1321).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700259
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800260config CRYPTO_MICHAEL_MIC
261 tristate "Michael MIC keyed digest algorithm"
262 select CRYPTO_ALGAPI
263 help
264 Michael MIC is used for message integrity protection in TKIP
265 (IEEE 802.11i). This algorithm is required for TKIP, but it
266 should not be used for other purposes because of the weakness
267 of the algorithm.
268
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800269config CRYPTO_RMD128
Adrian Bunkb6d44342008-07-16 19:28:00 +0800270 tristate "RIPEMD-128 digest algorithm"
271 select CRYPTO_ALGAPI
272 help
273 RIPEMD-128 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800274
Adrian Bunkb6d44342008-07-16 19:28:00 +0800275 RIPEMD-128 is a 128-bit cryptographic hash function. It should only
276 to be used as a secure replacement for RIPEMD. For other use cases
277 RIPEMD-160 should be used.
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800278
Adrian Bunkb6d44342008-07-16 19:28:00 +0800279 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
280 See <http://home.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800281
282config CRYPTO_RMD160
Adrian Bunkb6d44342008-07-16 19:28:00 +0800283 tristate "RIPEMD-160 digest algorithm"
284 select CRYPTO_ALGAPI
285 help
286 RIPEMD-160 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800287
Adrian Bunkb6d44342008-07-16 19:28:00 +0800288 RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
289 to be used as a secure replacement for the 128-bit hash functions
290 MD4, MD5 and it's predecessor RIPEMD
291 (not to be confused with RIPEMD-128).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800292
Adrian Bunkb6d44342008-07-16 19:28:00 +0800293 It's speed is comparable to SHA1 and there are no known attacks
294 against RIPEMD-160.
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800295
Adrian Bunkb6d44342008-07-16 19:28:00 +0800296 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
297 See <http://home.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800298
299config CRYPTO_RMD256
Adrian Bunkb6d44342008-07-16 19:28:00 +0800300 tristate "RIPEMD-256 digest algorithm"
301 select CRYPTO_ALGAPI
302 help
303 RIPEMD-256 is an optional extension of RIPEMD-128 with a
304 256 bit hash. It is intended for applications that require
305 longer hash-results, without needing a larger security level
306 (than RIPEMD-128).
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800307
Adrian Bunkb6d44342008-07-16 19:28:00 +0800308 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
309 See <http://home.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800310
311config CRYPTO_RMD320
Adrian Bunkb6d44342008-07-16 19:28:00 +0800312 tristate "RIPEMD-320 digest algorithm"
313 select CRYPTO_ALGAPI
314 help
315 RIPEMD-320 is an optional extension of RIPEMD-160 with a
316 320 bit hash. It is intended for applications that require
317 longer hash-results, without needing a larger security level
318 (than RIPEMD-160).
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800319
Adrian Bunkb6d44342008-07-16 19:28:00 +0800320 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
321 See <http://home.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800322
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800323config CRYPTO_SHA1
324 tristate "SHA1 digest algorithm"
325 select CRYPTO_ALGAPI
326 help
327 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
328
329config CRYPTO_SHA256
330 tristate "SHA224 and SHA256 digest algorithm"
331 select CRYPTO_ALGAPI
332 help
333 SHA256 secure hash standard (DFIPS 180-2).
334
335 This version of SHA implements a 256 bit hash with 128 bits of
336 security against collision attacks.
337
Adrian Bunkb6d44342008-07-16 19:28:00 +0800338 This code also includes SHA-224, a 224 bit hash with 112 bits
339 of security against collision attacks.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800340
341config CRYPTO_SHA512
342 tristate "SHA384 and SHA512 digest algorithms"
343 select CRYPTO_ALGAPI
344 help
345 SHA512 secure hash standard (DFIPS 180-2).
346
347 This version of SHA implements a 512 bit hash with 256 bits of
348 security against collision attacks.
349
350 This code also includes SHA-384, a 384 bit hash with 192 bits
351 of security against collision attacks.
352
353config CRYPTO_TGR192
354 tristate "Tiger digest algorithms"
355 select CRYPTO_ALGAPI
356 help
357 Tiger hash algorithm 192, 160 and 128-bit hashes
358
359 Tiger is a hash function optimized for 64-bit processors while
360 still having decent performance on 32-bit processors.
361 Tiger was developed by Ross Anderson and Eli Biham.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700362
363 See also:
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800364 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
365
366config CRYPTO_WP512
367 tristate "Whirlpool digest algorithms"
368 select CRYPTO_ALGAPI
369 help
370 Whirlpool hash algorithm 512, 384 and 256-bit hashes
371
372 Whirlpool-512 is part of the NESSIE cryptographic primitives.
373 Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
374
375 See also:
376 <http://planeta.terra.com.br/informatica/paulobarreto/WhirlpoolPage.html>
377
378comment "Ciphers"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700379
380config CRYPTO_AES
381 tristate "AES cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +1000382 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700383 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800384 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Linus Torvalds1da177e2005-04-16 15:20:36 -0700385 algorithm.
386
387 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800388 both hardware and software across a wide range of computing
389 environments regardless of its use in feedback or non-feedback
390 modes. Its key setup time is excellent, and its key agility is
391 good. Rijndael's very low memory requirements make it very well
392 suited for restricted-space environments, in which it also
393 demonstrates excellent performance. Rijndael's operations are
394 among the easiest to defend against power and timing attacks.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700395
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800396 The AES specifies three key sizes: 128, 192 and 256 bits
Linus Torvalds1da177e2005-04-16 15:20:36 -0700397
398 See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
399
400config CRYPTO_AES_586
401 tristate "AES cipher algorithms (i586)"
Herbert Xucce9e062006-08-21 21:08:13 +1000402 depends on (X86 || UML_X86) && !64BIT
403 select CRYPTO_ALGAPI
Sebastian Siewior5157dea2007-11-10 19:07:16 +0800404 select CRYPTO_AES
Linus Torvalds1da177e2005-04-16 15:20:36 -0700405 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800406 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Linus Torvalds1da177e2005-04-16 15:20:36 -0700407 algorithm.
408
409 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800410 both hardware and software across a wide range of computing
411 environments regardless of its use in feedback or non-feedback
412 modes. Its key setup time is excellent, and its key agility is
413 good. Rijndael's very low memory requirements make it very well
414 suited for restricted-space environments, in which it also
415 demonstrates excellent performance. Rijndael's operations are
416 among the easiest to defend against power and timing attacks.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700417
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800418 The AES specifies three key sizes: 128, 192 and 256 bits
Linus Torvalds1da177e2005-04-16 15:20:36 -0700419
420 See <http://csrc.nist.gov/encryption/aes/> for more information.
421
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700422config CRYPTO_AES_X86_64
423 tristate "AES cipher algorithms (x86_64)"
Herbert Xucce9e062006-08-21 21:08:13 +1000424 depends on (X86 || UML_X86) && 64BIT
425 select CRYPTO_ALGAPI
Sebastian Siewior81190b32007-11-08 21:25:04 +0800426 select CRYPTO_AES
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700427 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800428 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700429 algorithm.
430
431 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800432 both hardware and software across a wide range of computing
433 environments regardless of its use in feedback or non-feedback
434 modes. Its key setup time is excellent, and its key agility is
435 good. Rijndael's very low memory requirements make it very well
436 suited for restricted-space environments, in which it also
437 demonstrates excellent performance. Rijndael's operations are
438 among the easiest to defend against power and timing attacks.
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700439
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800440 The AES specifies three key sizes: 128, 192 and 256 bits
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700441
442 See <http://csrc.nist.gov/encryption/aes/> for more information.
443
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800444config CRYPTO_ANUBIS
445 tristate "Anubis cipher algorithm"
446 select CRYPTO_ALGAPI
447 help
448 Anubis cipher algorithm.
449
450 Anubis is a variable key length cipher which can use keys from
451 128 bits to 320 bits in length. It was evaluated as a entrant
452 in the NESSIE competition.
453
454 See also:
455 <https://www.cosic.esat.kuleuven.ac.be/nessie/reports/>
456 <http://planeta.terra.com.br/informatica/paulobarreto/AnubisPage.html>
457
458config CRYPTO_ARC4
459 tristate "ARC4 cipher algorithm"
460 select CRYPTO_ALGAPI
461 help
462 ARC4 cipher algorithm.
463
464 ARC4 is a stream cipher using keys ranging from 8 bits to 2048
465 bits in length. This algorithm is required for driver-based
466 WEP, but it should not be for other purposes because of the
467 weakness of the algorithm.
468
469config CRYPTO_BLOWFISH
470 tristate "Blowfish cipher algorithm"
471 select CRYPTO_ALGAPI
472 help
473 Blowfish cipher algorithm, by Bruce Schneier.
474
475 This is a variable key length cipher which can use keys from 32
476 bits to 448 bits in length. It's fast, simple and specifically
477 designed for use on "large microprocessors".
478
479 See also:
480 <http://www.schneier.com/blowfish.html>
481
482config CRYPTO_CAMELLIA
483 tristate "Camellia cipher algorithms"
484 depends on CRYPTO
485 select CRYPTO_ALGAPI
486 help
487 Camellia cipher algorithms module.
488
489 Camellia is a symmetric key block cipher developed jointly
490 at NTT and Mitsubishi Electric Corporation.
491
492 The Camellia specifies three key sizes: 128, 192 and 256 bits.
493
494 See also:
495 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
496
Linus Torvalds1da177e2005-04-16 15:20:36 -0700497config CRYPTO_CAST5
498 tristate "CAST5 (CAST-128) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000499 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700500 help
501 The CAST5 encryption algorithm (synonymous with CAST-128) is
502 described in RFC2144.
503
504config CRYPTO_CAST6
505 tristate "CAST6 (CAST-256) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000506 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700507 help
508 The CAST6 encryption algorithm (synonymous with CAST-256) is
509 described in RFC2612.
510
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800511config CRYPTO_DES
512 tristate "DES and Triple DES EDE cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +1000513 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700514 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800515 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700516
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800517config CRYPTO_FCRYPT
518 tristate "FCrypt cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000519 select CRYPTO_ALGAPI
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800520 select CRYPTO_BLKCIPHER
Linus Torvalds1da177e2005-04-16 15:20:36 -0700521 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800522 FCrypt algorithm used by RxRPC.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700523
524config CRYPTO_KHAZAD
525 tristate "Khazad cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000526 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700527 help
528 Khazad cipher algorithm.
529
530 Khazad was a finalist in the initial NESSIE competition. It is
531 an algorithm optimized for 64-bit processors with good performance
532 on 32-bit processors. Khazad uses an 128 bit key size.
533
534 See also:
535 <http://planeta.terra.com.br/informatica/paulobarreto/KhazadPage.html>
536
Tan Swee Heng2407d602007-11-23 19:45:00 +0800537config CRYPTO_SALSA20
538 tristate "Salsa20 stream cipher algorithm (EXPERIMENTAL)"
539 depends on EXPERIMENTAL
540 select CRYPTO_BLKCIPHER
541 help
542 Salsa20 stream cipher algorithm.
543
544 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
545 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
546
547 The Salsa20 stream cipher algorithm is designed by Daniel J.
548 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -0700549
Tan Swee Heng974e4b72007-12-10 15:52:56 +0800550config CRYPTO_SALSA20_586
551 tristate "Salsa20 stream cipher algorithm (i586) (EXPERIMENTAL)"
552 depends on (X86 || UML_X86) && !64BIT
553 depends on EXPERIMENTAL
554 select CRYPTO_BLKCIPHER
Tan Swee Heng974e4b72007-12-10 15:52:56 +0800555 help
556 Salsa20 stream cipher algorithm.
557
558 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
559 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
560
561 The Salsa20 stream cipher algorithm is designed by Daniel J.
562 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
563
Tan Swee Heng9a7dafb2007-12-18 00:04:40 +0800564config CRYPTO_SALSA20_X86_64
565 tristate "Salsa20 stream cipher algorithm (x86_64) (EXPERIMENTAL)"
566 depends on (X86 || UML_X86) && 64BIT
567 depends on EXPERIMENTAL
568 select CRYPTO_BLKCIPHER
Tan Swee Heng9a7dafb2007-12-18 00:04:40 +0800569 help
570 Salsa20 stream cipher algorithm.
571
572 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
573 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
574
575 The Salsa20 stream cipher algorithm is designed by Daniel J.
576 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
577
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800578config CRYPTO_SEED
579 tristate "SEED cipher algorithm"
580 select CRYPTO_ALGAPI
581 help
582 SEED cipher algorithm (RFC4269).
583
584 SEED is a 128-bit symmetric key block cipher that has been
585 developed by KISA (Korea Information Security Agency) as a
586 national standard encryption algorithm of the Republic of Korea.
587 It is a 16 round block cipher with the key size of 128 bit.
588
589 See also:
590 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
591
592config CRYPTO_SERPENT
593 tristate "Serpent cipher algorithm"
594 select CRYPTO_ALGAPI
595 help
596 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
597
598 Keys are allowed to be from 0 to 256 bits in length, in steps
599 of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
600 variant of Serpent for compatibility with old kerneli.org code.
601
602 See also:
603 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
604
605config CRYPTO_TEA
606 tristate "TEA, XTEA and XETA cipher algorithms"
607 select CRYPTO_ALGAPI
608 help
609 TEA cipher algorithm.
610
611 Tiny Encryption Algorithm is a simple cipher that uses
612 many rounds for security. It is very fast and uses
613 little memory.
614
615 Xtendend Tiny Encryption Algorithm is a modification to
616 the TEA algorithm to address a potential key weakness
617 in the TEA algorithm.
618
619 Xtendend Encryption Tiny Algorithm is a mis-implementation
620 of the XTEA algorithm for compatibility purposes.
621
622config CRYPTO_TWOFISH
623 tristate "Twofish cipher algorithm"
624 select CRYPTO_ALGAPI
625 select CRYPTO_TWOFISH_COMMON
626 help
627 Twofish cipher algorithm.
628
629 Twofish was submitted as an AES (Advanced Encryption Standard)
630 candidate cipher by researchers at CounterPane Systems. It is a
631 16 round block cipher supporting key sizes of 128, 192, and 256
632 bits.
633
634 See also:
635 <http://www.schneier.com/twofish.html>
636
637config CRYPTO_TWOFISH_COMMON
638 tristate
639 help
640 Common parts of the Twofish cipher algorithm shared by the
641 generic c and the assembler implementations.
642
643config CRYPTO_TWOFISH_586
644 tristate "Twofish cipher algorithms (i586)"
645 depends on (X86 || UML_X86) && !64BIT
646 select CRYPTO_ALGAPI
647 select CRYPTO_TWOFISH_COMMON
648 help
649 Twofish cipher algorithm.
650
651 Twofish was submitted as an AES (Advanced Encryption Standard)
652 candidate cipher by researchers at CounterPane Systems. It is a
653 16 round block cipher supporting key sizes of 128, 192, and 256
654 bits.
655
656 See also:
657 <http://www.schneier.com/twofish.html>
658
659config CRYPTO_TWOFISH_X86_64
660 tristate "Twofish cipher algorithm (x86_64)"
661 depends on (X86 || UML_X86) && 64BIT
662 select CRYPTO_ALGAPI
663 select CRYPTO_TWOFISH_COMMON
664 help
665 Twofish cipher algorithm (x86_64).
666
667 Twofish was submitted as an AES (Advanced Encryption Standard)
668 candidate cipher by researchers at CounterPane Systems. It is a
669 16 round block cipher supporting key sizes of 128, 192, and 256
670 bits.
671
672 See also:
673 <http://www.schneier.com/twofish.html>
674
675comment "Compression"
676
Linus Torvalds1da177e2005-04-16 15:20:36 -0700677config CRYPTO_DEFLATE
678 tristate "Deflate compression algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000679 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700680 select ZLIB_INFLATE
681 select ZLIB_DEFLATE
682 help
683 This is the Deflate algorithm (RFC1951), specified for use in
684 IPSec with the IPCOMP protocol (RFC3173, RFC2394).
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800685
Linus Torvalds1da177e2005-04-16 15:20:36 -0700686 You will most probably want this if using IPSec.
687
Zoltan Sogor0b77abb2007-12-07 16:53:23 +0800688config CRYPTO_LZO
689 tristate "LZO compression algorithm"
690 select CRYPTO_ALGAPI
691 select LZO_COMPRESS
692 select LZO_DECOMPRESS
693 help
694 This is the LZO algorithm.
695
Neil Horman17f0f4a2008-08-14 22:15:52 +1000696comment "Random Number Generation"
697
698config CRYPTO_ANSI_CPRNG
699 tristate "Pseudo Random Number Generation for Cryptographic modules"
700 select CRYPTO_AES
701 select CRYPTO_RNG
702 select CRYPTO_FIPS
703 help
704 This option enables the generic pseudo random number generator
705 for cryptographic modules. Uses the Algorithm specified in
706 ANSI X9.31 A.2.4
707
Linus Torvalds1da177e2005-04-16 15:20:36 -0700708source "drivers/crypto/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700709
Herbert Xucce9e062006-08-21 21:08:13 +1000710endif # if CRYPTO