blob: 1db09958eb713f452f88239f5f149f05026e8fe0 [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
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110034 select CRYPTO_ALGAPI2
Herbert Xucce9e062006-08-21 21:08:13 +100035 help
36 This option provides the API for cryptographic algorithms.
37
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110038config CRYPTO_ALGAPI2
39 tristate
40
Herbert Xu1ae97822007-08-30 15:36:14 +080041config CRYPTO_AEAD
42 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110043 select CRYPTO_AEAD2
Herbert Xu1ae97822007-08-30 15:36:14 +080044 select CRYPTO_ALGAPI
45
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110046config CRYPTO_AEAD2
47 tristate
48 select CRYPTO_ALGAPI2
49
Herbert Xu5cde0af2006-08-22 00:07:53 +100050config CRYPTO_BLKCIPHER
51 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110052 select CRYPTO_BLKCIPHER2
Herbert Xu5cde0af2006-08-22 00:07:53 +100053 select CRYPTO_ALGAPI
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110054
55config CRYPTO_BLKCIPHER2
56 tristate
57 select CRYPTO_ALGAPI2
58 select CRYPTO_RNG2
Huang Ying0a2e8212009-02-19 14:44:02 +080059 select CRYPTO_WORKQUEUE
Herbert Xu5cde0af2006-08-22 00:07:53 +100060
Herbert Xu055bcee2006-08-19 22:24:23 +100061config CRYPTO_HASH
62 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110063 select CRYPTO_HASH2
Herbert Xu055bcee2006-08-19 22:24:23 +100064 select CRYPTO_ALGAPI
65
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110066config CRYPTO_HASH2
67 tristate
68 select CRYPTO_ALGAPI2
69
Neil Horman17f0f4a2008-08-14 22:15:52 +100070config CRYPTO_RNG
71 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110072 select CRYPTO_RNG2
Neil Horman17f0f4a2008-08-14 22:15:52 +100073 select CRYPTO_ALGAPI
74
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110075config CRYPTO_RNG2
76 tristate
77 select CRYPTO_ALGAPI2
78
Geert Uytterhoevena1d2f092009-03-04 15:05:33 +080079config CRYPTO_PCOMP
80 tristate
81 select CRYPTO_ALGAPI2
82
Herbert Xu2b8c19d2006-09-21 11:31:44 +100083config CRYPTO_MANAGER
84 tristate "Cryptographic algorithm manager"
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110085 select CRYPTO_MANAGER2
Herbert Xu2b8c19d2006-09-21 11:31:44 +100086 help
87 Create default cryptographic template instantiations such as
88 cbc(aes).
89
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110090config CRYPTO_MANAGER2
91 def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y)
92 select CRYPTO_AEAD2
93 select CRYPTO_HASH2
94 select CRYPTO_BLKCIPHER2
Geert Uytterhoeven0c01aed2009-03-04 15:42:15 +080095 select CRYPTO_PCOMP
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110096
Rik Snelc494e072006-11-29 18:59:44 +110097config CRYPTO_GF128MUL
98 tristate "GF(2^128) multiplication functions (EXPERIMENTAL)"
99 depends on EXPERIMENTAL
100 help
101 Efficient table driven implementation of multiplications in the
102 field GF(2^128). This is needed by some cypher modes. This
103 option will be selected automatically if you select such a
104 cipher mode. Only select this option by hand if you expect to load
105 an external module that requires these functions.
106
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800107config CRYPTO_NULL
108 tristate "Null algorithms"
109 select CRYPTO_ALGAPI
110 select CRYPTO_BLKCIPHER
Herbert Xud35d2452008-11-08 08:09:56 +0800111 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800112 help
113 These are 'Null' algorithms, used by IPsec, which do nothing.
114
Huang Ying25c38d32009-02-19 14:33:40 +0800115config CRYPTO_WORKQUEUE
116 tristate
117
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800118config CRYPTO_CRYPTD
119 tristate "Software async crypto daemon"
Herbert Xudb131ef2006-09-21 11:44:08 +1000120 select CRYPTO_BLKCIPHER
Loc Hob8a28252008-05-14 21:23:00 +0800121 select CRYPTO_HASH
Herbert Xu43518402006-10-16 21:28:58 +1000122 select CRYPTO_MANAGER
Huang Ying254eff72009-02-19 14:42:19 +0800123 select CRYPTO_WORKQUEUE
Herbert Xudb131ef2006-09-21 11:44:08 +1000124 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800125 This is a generic software asynchronous crypto daemon that
126 converts an arbitrary synchronous software crypto algorithm
127 into an asynchronous algorithm that executes in a kernel thread.
128
129config CRYPTO_AUTHENC
130 tristate "Authenc support"
131 select CRYPTO_AEAD
132 select CRYPTO_BLKCIPHER
133 select CRYPTO_MANAGER
134 select CRYPTO_HASH
135 help
136 Authenc: Combined mode wrapper for IPsec.
137 This is required for IPSec.
138
139config CRYPTO_TEST
140 tristate "Testing module"
141 depends on m
Herbert Xuda7f0332008-07-31 17:08:25 +0800142 select CRYPTO_MANAGER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800143 help
144 Quick & dirty crypto test module.
145
146comment "Authenticated Encryption with Associated Data"
147
148config CRYPTO_CCM
149 tristate "CCM support"
150 select CRYPTO_CTR
151 select CRYPTO_AEAD
152 help
153 Support for Counter with CBC MAC. Required for IPsec.
154
155config CRYPTO_GCM
156 tristate "GCM/GMAC support"
157 select CRYPTO_CTR
158 select CRYPTO_AEAD
Huang Ying9382d972009-08-06 15:34:26 +1000159 select CRYPTO_GHASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800160 help
161 Support for Galois/Counter Mode (GCM) and Galois Message
162 Authentication Code (GMAC). Required for IPSec.
163
164config CRYPTO_SEQIV
165 tristate "Sequence Number IV Generator"
166 select CRYPTO_AEAD
167 select CRYPTO_BLKCIPHER
Herbert Xua0f000e2008-08-14 22:21:31 +1000168 select CRYPTO_RNG
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800169 help
170 This IV generator generates an IV based on a sequence number by
171 xoring it with a salt. This algorithm is mainly useful for CTR
172
173comment "Block modes"
Herbert Xudb131ef2006-09-21 11:44:08 +1000174
175config CRYPTO_CBC
176 tristate "CBC support"
177 select CRYPTO_BLKCIPHER
Herbert Xu43518402006-10-16 21:28:58 +1000178 select CRYPTO_MANAGER
Herbert Xudb131ef2006-09-21 11:44:08 +1000179 help
180 CBC: Cipher Block Chaining mode
181 This block cipher algorithm is required for IPSec.
182
Joy Latten23e353c2007-10-23 08:50:32 +0800183config CRYPTO_CTR
184 tristate "CTR support"
185 select CRYPTO_BLKCIPHER
Herbert Xu0a270322007-11-30 21:38:37 +1100186 select CRYPTO_SEQIV
Joy Latten23e353c2007-10-23 08:50:32 +0800187 select CRYPTO_MANAGER
Joy Latten23e353c2007-10-23 08:50:32 +0800188 help
189 CTR: Counter mode
190 This block cipher algorithm is required for IPSec.
191
Kevin Coffman76cb9522008-03-24 21:26:16 +0800192config CRYPTO_CTS
193 tristate "CTS support"
194 select CRYPTO_BLKCIPHER
195 help
196 CTS: Cipher Text Stealing
197 This is the Cipher Text Stealing mode as described by
198 Section 8 of rfc2040 and referenced by rfc3962.
199 (rfc3962 includes errata information in its Appendix A)
200 This mode is required for Kerberos gss mechanism support
201 for AES encryption.
202
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800203config CRYPTO_ECB
204 tristate "ECB support"
Herbert Xu653ebd9c2007-11-27 19:48:27 +0800205 select CRYPTO_BLKCIPHER
Herbert Xu124b53d2007-04-16 20:49:20 +1000206 select CRYPTO_MANAGER
207 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800208 ECB: Electronic CodeBook mode
209 This is the simplest block cipher algorithm. It simply encrypts
210 the input block by block.
Herbert Xu124b53d2007-04-16 20:49:20 +1000211
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800212config CRYPTO_LRW
213 tristate "LRW support (EXPERIMENTAL)"
214 depends on EXPERIMENTAL
David Howells90831632006-12-16 12:13:14 +1100215 select CRYPTO_BLKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800216 select CRYPTO_MANAGER
217 select CRYPTO_GF128MUL
David Howells90831632006-12-16 12:13:14 +1100218 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800219 LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
220 narrow block cipher mode for dm-crypt. Use it with cipher
221 specification string aes-lrw-benbi, the key must be 256, 320 or 384.
222 The first 128, 192 or 256 bits in the key are used for AES and the
223 rest is used to tie each cipher block to its logical position.
David Howells90831632006-12-16 12:13:14 +1100224
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800225config CRYPTO_PCBC
226 tristate "PCBC support"
227 select CRYPTO_BLKCIPHER
228 select CRYPTO_MANAGER
229 help
230 PCBC: Propagating Cipher Block Chaining mode
231 This block cipher algorithm is required for RxRPC.
232
233config CRYPTO_XTS
234 tristate "XTS support (EXPERIMENTAL)"
235 depends on EXPERIMENTAL
236 select CRYPTO_BLKCIPHER
237 select CRYPTO_MANAGER
238 select CRYPTO_GF128MUL
239 help
240 XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
241 key size 256, 384 or 512 bits. This implementation currently
242 can't handle a sectorsize which is not a multiple of 16 bytes.
243
Huang Ying150c7e82009-03-29 15:39:02 +0800244config CRYPTO_FPU
245 tristate
246 select CRYPTO_BLKCIPHER
247 select CRYPTO_MANAGER
248
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800249comment "Hash modes"
250
251config CRYPTO_HMAC
252 tristate "HMAC support"
253 select CRYPTO_HASH
254 select CRYPTO_MANAGER
255 help
256 HMAC: Keyed-Hashing for Message Authentication (RFC2104).
257 This is required for IPSec.
258
259config CRYPTO_XCBC
260 tristate "XCBC support"
261 depends on EXPERIMENTAL
262 select CRYPTO_HASH
263 select CRYPTO_MANAGER
264 help
265 XCBC: Keyed-Hashing with encryption algorithm
266 http://www.ietf.org/rfc/rfc3566.txt
267 http://csrc.nist.gov/encryption/modes/proposedmodes/
268 xcbc-mac/xcbc-mac-spec.pdf
269
270comment "Digest"
271
272config CRYPTO_CRC32C
273 tristate "CRC32c CRC algorithm"
Herbert Xu5773a3e2008-07-08 20:54:28 +0800274 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800275 help
276 Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
277 by iSCSI for header and data digests and by others.
Herbert Xu69c35ef2008-11-07 15:11:47 +0800278 See Castagnoli93. Module will be crc32c.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800279
Austin Zhang8cb51ba2008-08-07 09:57:03 +0800280config CRYPTO_CRC32C_INTEL
281 tristate "CRC32c INTEL hardware acceleration"
282 depends on X86
283 select CRYPTO_HASH
284 help
285 In Intel processor with SSE4.2 supported, the processor will
286 support CRC32C implementation using hardware accelerated CRC32
287 instruction. This option will create 'crc32c-intel' module,
288 which will enable any routine to use the CRC32 instruction to
289 gain performance compared with software implementation.
290 Module will be crc32c-intel.
291
Huang Ying2cdc6892009-08-06 15:32:38 +1000292config CRYPTO_GHASH
293 tristate "GHASH digest algorithm"
294 select CRYPTO_SHASH
295 select CRYPTO_GF128MUL
296 help
297 GHASH is message digest algorithm for GCM (Galois/Counter Mode).
298
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800299config CRYPTO_MD4
300 tristate "MD4 digest algorithm"
Adrian-Ken Rueegsegger808a1762008-12-03 19:55:27 +0800301 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700302 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800303 MD4 message digest algorithm (RFC1320).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700304
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800305config CRYPTO_MD5
306 tristate "MD5 digest algorithm"
Adrian-Ken Rueegsegger14b75ba2008-12-03 19:57:12 +0800307 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700308 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800309 MD5 message digest algorithm (RFC1321).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700310
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800311config CRYPTO_MICHAEL_MIC
312 tristate "Michael MIC keyed digest algorithm"
Adrian-Ken Rueegsegger19e2bf12008-12-07 19:35:38 +0800313 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800314 help
315 Michael MIC is used for message integrity protection in TKIP
316 (IEEE 802.11i). This algorithm is required for TKIP, but it
317 should not be used for other purposes because of the weakness
318 of the algorithm.
319
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800320config CRYPTO_RMD128
Adrian Bunkb6d44342008-07-16 19:28:00 +0800321 tristate "RIPEMD-128 digest algorithm"
Herbert Xu7c4468b2008-11-08 09:10:40 +0800322 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800323 help
324 RIPEMD-128 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800325
Adrian Bunkb6d44342008-07-16 19:28:00 +0800326 RIPEMD-128 is a 128-bit cryptographic hash function. It should only
327 to be used as a secure replacement for RIPEMD. For other use cases
328 RIPEMD-160 should be used.
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800329
Adrian Bunkb6d44342008-07-16 19:28:00 +0800330 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
331 See <http://home.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800332
333config CRYPTO_RMD160
Adrian Bunkb6d44342008-07-16 19:28:00 +0800334 tristate "RIPEMD-160 digest algorithm"
Herbert Xue5835fb2008-11-08 09:18:51 +0800335 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800336 help
337 RIPEMD-160 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800338
Adrian Bunkb6d44342008-07-16 19:28:00 +0800339 RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
340 to be used as a secure replacement for the 128-bit hash functions
341 MD4, MD5 and it's predecessor RIPEMD
342 (not to be confused with RIPEMD-128).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800343
Adrian Bunkb6d44342008-07-16 19:28:00 +0800344 It's speed is comparable to SHA1 and there are no known attacks
345 against RIPEMD-160.
Adrian-Ken Rueegsegger534fe2c2008-05-09 21:30:27 +0800346
Adrian Bunkb6d44342008-07-16 19:28:00 +0800347 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
348 See <http://home.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c2008-05-09 21:30:27 +0800349
350config CRYPTO_RMD256
Adrian Bunkb6d44342008-07-16 19:28:00 +0800351 tristate "RIPEMD-256 digest algorithm"
Herbert Xud8a5e2e2008-11-08 09:58:10 +0800352 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800353 help
354 RIPEMD-256 is an optional extension of RIPEMD-128 with a
355 256 bit hash. It is intended for applications that require
356 longer hash-results, without needing a larger security level
357 (than RIPEMD-128).
Adrian-Ken Rueegsegger534fe2c2008-05-09 21:30:27 +0800358
Adrian Bunkb6d44342008-07-16 19:28:00 +0800359 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
360 See <http://home.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c2008-05-09 21:30:27 +0800361
362config CRYPTO_RMD320
Adrian Bunkb6d44342008-07-16 19:28:00 +0800363 tristate "RIPEMD-320 digest algorithm"
Herbert Xu3b8efb42008-11-08 10:11:09 +0800364 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800365 help
366 RIPEMD-320 is an optional extension of RIPEMD-160 with a
367 320 bit hash. It is intended for applications that require
368 longer hash-results, without needing a larger security level
369 (than RIPEMD-160).
Adrian-Ken Rueegsegger534fe2c2008-05-09 21:30:27 +0800370
Adrian Bunkb6d44342008-07-16 19:28:00 +0800371 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
372 See <http://home.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800373
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800374config CRYPTO_SHA1
375 tristate "SHA1 digest algorithm"
Adrian-Ken Rueegsegger54ccb362008-12-02 21:08:20 +0800376 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800377 help
378 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
379
380config CRYPTO_SHA256
381 tristate "SHA224 and SHA256 digest algorithm"
Adrian-Ken Rueegsegger50e109b52008-12-03 19:57:49 +0800382 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800383 help
384 SHA256 secure hash standard (DFIPS 180-2).
385
386 This version of SHA implements a 256 bit hash with 128 bits of
387 security against collision attacks.
388
Adrian Bunkb6d44342008-07-16 19:28:00 +0800389 This code also includes SHA-224, a 224 bit hash with 112 bits
390 of security against collision attacks.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800391
392config CRYPTO_SHA512
393 tristate "SHA384 and SHA512 digest algorithms"
Adrian-Ken Rueegseggerbd9d20d2008-12-17 16:49:02 +1100394 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800395 help
396 SHA512 secure hash standard (DFIPS 180-2).
397
398 This version of SHA implements a 512 bit hash with 256 bits of
399 security against collision attacks.
400
401 This code also includes SHA-384, a 384 bit hash with 192 bits
402 of security against collision attacks.
403
404config CRYPTO_TGR192
405 tristate "Tiger digest algorithms"
Adrian-Ken Rueegseggerf63fbd32008-12-03 19:58:32 +0800406 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800407 help
408 Tiger hash algorithm 192, 160 and 128-bit hashes
409
410 Tiger is a hash function optimized for 64-bit processors while
411 still having decent performance on 32-bit processors.
412 Tiger was developed by Ross Anderson and Eli Biham.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700413
414 See also:
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800415 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
416
417config CRYPTO_WP512
418 tristate "Whirlpool digest algorithms"
Adrian-Ken Rueegsegger49465102008-12-07 19:34:37 +0800419 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800420 help
421 Whirlpool hash algorithm 512, 384 and 256-bit hashes
422
423 Whirlpool-512 is part of the NESSIE cryptographic primitives.
424 Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
425
426 See also:
427 <http://planeta.terra.com.br/informatica/paulobarreto/WhirlpoolPage.html>
428
429comment "Ciphers"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700430
431config CRYPTO_AES
432 tristate "AES cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +1000433 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700434 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800435 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Linus Torvalds1da177e2005-04-16 15:20:36 -0700436 algorithm.
437
438 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800439 both hardware and software across a wide range of computing
440 environments regardless of its use in feedback or non-feedback
441 modes. Its key setup time is excellent, and its key agility is
442 good. Rijndael's very low memory requirements make it very well
443 suited for restricted-space environments, in which it also
444 demonstrates excellent performance. Rijndael's operations are
445 among the easiest to defend against power and timing attacks.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700446
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800447 The AES specifies three key sizes: 128, 192 and 256 bits
Linus Torvalds1da177e2005-04-16 15:20:36 -0700448
449 See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
450
451config CRYPTO_AES_586
452 tristate "AES cipher algorithms (i586)"
Herbert Xucce9e062006-08-21 21:08:13 +1000453 depends on (X86 || UML_X86) && !64BIT
454 select CRYPTO_ALGAPI
Sebastian Siewior5157dea2007-11-10 19:07:16 +0800455 select CRYPTO_AES
Linus Torvalds1da177e2005-04-16 15:20:36 -0700456 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800457 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Linus Torvalds1da177e2005-04-16 15:20:36 -0700458 algorithm.
459
460 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800461 both hardware and software across a wide range of computing
462 environments regardless of its use in feedback or non-feedback
463 modes. Its key setup time is excellent, and its key agility is
464 good. Rijndael's very low memory requirements make it very well
465 suited for restricted-space environments, in which it also
466 demonstrates excellent performance. Rijndael's operations are
467 among the easiest to defend against power and timing attacks.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700468
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800469 The AES specifies three key sizes: 128, 192 and 256 bits
Linus Torvalds1da177e2005-04-16 15:20:36 -0700470
471 See <http://csrc.nist.gov/encryption/aes/> for more information.
472
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700473config CRYPTO_AES_X86_64
474 tristate "AES cipher algorithms (x86_64)"
Herbert Xucce9e062006-08-21 21:08:13 +1000475 depends on (X86 || UML_X86) && 64BIT
476 select CRYPTO_ALGAPI
Sebastian Siewior81190b32007-11-08 21:25:04 +0800477 select CRYPTO_AES
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700478 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800479 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700480 algorithm.
481
482 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800483 both hardware and software across a wide range of computing
484 environments regardless of its use in feedback or non-feedback
485 modes. Its key setup time is excellent, and its key agility is
486 good. Rijndael's very low memory requirements make it very well
487 suited for restricted-space environments, in which it also
488 demonstrates excellent performance. Rijndael's operations are
489 among the easiest to defend against power and timing attacks.
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700490
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800491 The AES specifies three key sizes: 128, 192 and 256 bits
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700492
493 See <http://csrc.nist.gov/encryption/aes/> for more information.
494
Huang Ying54b6a1b2009-01-18 16:28:34 +1100495config CRYPTO_AES_NI_INTEL
496 tristate "AES cipher algorithms (AES-NI)"
497 depends on (X86 || UML_X86) && 64BIT
498 select CRYPTO_AES_X86_64
499 select CRYPTO_CRYPTD
500 select CRYPTO_ALGAPI
Huang Ying2cf4ac82009-03-29 15:41:20 +0800501 select CRYPTO_FPU
Huang Ying54b6a1b2009-01-18 16:28:34 +1100502 help
503 Use Intel AES-NI instructions for AES algorithm.
504
505 AES cipher algorithms (FIPS-197). AES uses the Rijndael
506 algorithm.
507
508 Rijndael appears to be consistently a very good performer in
509 both hardware and software across a wide range of computing
510 environments regardless of its use in feedback or non-feedback
511 modes. Its key setup time is excellent, and its key agility is
512 good. Rijndael's very low memory requirements make it very well
513 suited for restricted-space environments, in which it also
514 demonstrates excellent performance. Rijndael's operations are
515 among the easiest to defend against power and timing attacks.
516
517 The AES specifies three key sizes: 128, 192 and 256 bits
518
519 See <http://csrc.nist.gov/encryption/aes/> for more information.
520
Huang Ying2cf4ac82009-03-29 15:41:20 +0800521 In addition to AES cipher algorithm support, the
522 acceleration for some popular block cipher mode is supported
523 too, including ECB, CBC, CTR, LRW, PCBC, XTS.
524
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800525config CRYPTO_ANUBIS
526 tristate "Anubis cipher algorithm"
527 select CRYPTO_ALGAPI
528 help
529 Anubis cipher algorithm.
530
531 Anubis is a variable key length cipher which can use keys from
532 128 bits to 320 bits in length. It was evaluated as a entrant
533 in the NESSIE competition.
534
535 See also:
536 <https://www.cosic.esat.kuleuven.ac.be/nessie/reports/>
537 <http://planeta.terra.com.br/informatica/paulobarreto/AnubisPage.html>
538
539config CRYPTO_ARC4
540 tristate "ARC4 cipher algorithm"
541 select CRYPTO_ALGAPI
542 help
543 ARC4 cipher algorithm.
544
545 ARC4 is a stream cipher using keys ranging from 8 bits to 2048
546 bits in length. This algorithm is required for driver-based
547 WEP, but it should not be for other purposes because of the
548 weakness of the algorithm.
549
550config CRYPTO_BLOWFISH
551 tristate "Blowfish cipher algorithm"
552 select CRYPTO_ALGAPI
553 help
554 Blowfish cipher algorithm, by Bruce Schneier.
555
556 This is a variable key length cipher which can use keys from 32
557 bits to 448 bits in length. It's fast, simple and specifically
558 designed for use on "large microprocessors".
559
560 See also:
561 <http://www.schneier.com/blowfish.html>
562
563config CRYPTO_CAMELLIA
564 tristate "Camellia cipher algorithms"
565 depends on CRYPTO
566 select CRYPTO_ALGAPI
567 help
568 Camellia cipher algorithms module.
569
570 Camellia is a symmetric key block cipher developed jointly
571 at NTT and Mitsubishi Electric Corporation.
572
573 The Camellia specifies three key sizes: 128, 192 and 256 bits.
574
575 See also:
576 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
577
Linus Torvalds1da177e2005-04-16 15:20:36 -0700578config CRYPTO_CAST5
579 tristate "CAST5 (CAST-128) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000580 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700581 help
582 The CAST5 encryption algorithm (synonymous with CAST-128) is
583 described in RFC2144.
584
585config CRYPTO_CAST6
586 tristate "CAST6 (CAST-256) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000587 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700588 help
589 The CAST6 encryption algorithm (synonymous with CAST-256) is
590 described in RFC2612.
591
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800592config CRYPTO_DES
593 tristate "DES and Triple DES EDE cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +1000594 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700595 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800596 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700597
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800598config CRYPTO_FCRYPT
599 tristate "FCrypt cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000600 select CRYPTO_ALGAPI
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800601 select CRYPTO_BLKCIPHER
Linus Torvalds1da177e2005-04-16 15:20:36 -0700602 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800603 FCrypt algorithm used by RxRPC.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700604
605config CRYPTO_KHAZAD
606 tristate "Khazad cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000607 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700608 help
609 Khazad cipher algorithm.
610
611 Khazad was a finalist in the initial NESSIE competition. It is
612 an algorithm optimized for 64-bit processors with good performance
613 on 32-bit processors. Khazad uses an 128 bit key size.
614
615 See also:
616 <http://planeta.terra.com.br/informatica/paulobarreto/KhazadPage.html>
617
Tan Swee Heng2407d602007-11-23 19:45:00 +0800618config CRYPTO_SALSA20
619 tristate "Salsa20 stream cipher algorithm (EXPERIMENTAL)"
620 depends on EXPERIMENTAL
621 select CRYPTO_BLKCIPHER
622 help
623 Salsa20 stream cipher algorithm.
624
625 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
626 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
627
628 The Salsa20 stream cipher algorithm is designed by Daniel J.
629 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -0700630
Tan Swee Heng974e4b72007-12-10 15:52:56 +0800631config CRYPTO_SALSA20_586
632 tristate "Salsa20 stream cipher algorithm (i586) (EXPERIMENTAL)"
633 depends on (X86 || UML_X86) && !64BIT
634 depends on EXPERIMENTAL
635 select CRYPTO_BLKCIPHER
Tan Swee Heng974e4b72007-12-10 15:52:56 +0800636 help
637 Salsa20 stream cipher algorithm.
638
639 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
640 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
641
642 The Salsa20 stream cipher algorithm is designed by Daniel J.
643 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
644
Tan Swee Heng9a7dafb2007-12-18 00:04:40 +0800645config CRYPTO_SALSA20_X86_64
646 tristate "Salsa20 stream cipher algorithm (x86_64) (EXPERIMENTAL)"
647 depends on (X86 || UML_X86) && 64BIT
648 depends on EXPERIMENTAL
649 select CRYPTO_BLKCIPHER
Tan Swee Heng9a7dafb2007-12-18 00:04:40 +0800650 help
651 Salsa20 stream cipher algorithm.
652
653 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
654 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
655
656 The Salsa20 stream cipher algorithm is designed by Daniel J.
657 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
658
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800659config CRYPTO_SEED
660 tristate "SEED cipher algorithm"
661 select CRYPTO_ALGAPI
662 help
663 SEED cipher algorithm (RFC4269).
664
665 SEED is a 128-bit symmetric key block cipher that has been
666 developed by KISA (Korea Information Security Agency) as a
667 national standard encryption algorithm of the Republic of Korea.
668 It is a 16 round block cipher with the key size of 128 bit.
669
670 See also:
671 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
672
673config CRYPTO_SERPENT
674 tristate "Serpent cipher algorithm"
675 select CRYPTO_ALGAPI
676 help
677 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
678
679 Keys are allowed to be from 0 to 256 bits in length, in steps
680 of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
681 variant of Serpent for compatibility with old kerneli.org code.
682
683 See also:
684 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
685
686config CRYPTO_TEA
687 tristate "TEA, XTEA and XETA cipher algorithms"
688 select CRYPTO_ALGAPI
689 help
690 TEA cipher algorithm.
691
692 Tiny Encryption Algorithm is a simple cipher that uses
693 many rounds for security. It is very fast and uses
694 little memory.
695
696 Xtendend Tiny Encryption Algorithm is a modification to
697 the TEA algorithm to address a potential key weakness
698 in the TEA algorithm.
699
700 Xtendend Encryption Tiny Algorithm is a mis-implementation
701 of the XTEA algorithm for compatibility purposes.
702
703config CRYPTO_TWOFISH
704 tristate "Twofish cipher algorithm"
705 select CRYPTO_ALGAPI
706 select CRYPTO_TWOFISH_COMMON
707 help
708 Twofish cipher algorithm.
709
710 Twofish was submitted as an AES (Advanced Encryption Standard)
711 candidate cipher by researchers at CounterPane Systems. It is a
712 16 round block cipher supporting key sizes of 128, 192, and 256
713 bits.
714
715 See also:
716 <http://www.schneier.com/twofish.html>
717
718config CRYPTO_TWOFISH_COMMON
719 tristate
720 help
721 Common parts of the Twofish cipher algorithm shared by the
722 generic c and the assembler implementations.
723
724config CRYPTO_TWOFISH_586
725 tristate "Twofish cipher algorithms (i586)"
726 depends on (X86 || UML_X86) && !64BIT
727 select CRYPTO_ALGAPI
728 select CRYPTO_TWOFISH_COMMON
729 help
730 Twofish cipher algorithm.
731
732 Twofish was submitted as an AES (Advanced Encryption Standard)
733 candidate cipher by researchers at CounterPane Systems. It is a
734 16 round block cipher supporting key sizes of 128, 192, and 256
735 bits.
736
737 See also:
738 <http://www.schneier.com/twofish.html>
739
740config CRYPTO_TWOFISH_X86_64
741 tristate "Twofish cipher algorithm (x86_64)"
742 depends on (X86 || UML_X86) && 64BIT
743 select CRYPTO_ALGAPI
744 select CRYPTO_TWOFISH_COMMON
745 help
746 Twofish cipher algorithm (x86_64).
747
748 Twofish was submitted as an AES (Advanced Encryption Standard)
749 candidate cipher by researchers at CounterPane Systems. It is a
750 16 round block cipher supporting key sizes of 128, 192, and 256
751 bits.
752
753 See also:
754 <http://www.schneier.com/twofish.html>
755
756comment "Compression"
757
Linus Torvalds1da177e2005-04-16 15:20:36 -0700758config CRYPTO_DEFLATE
759 tristate "Deflate compression algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000760 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700761 select ZLIB_INFLATE
762 select ZLIB_DEFLATE
763 help
764 This is the Deflate algorithm (RFC1951), specified for use in
765 IPSec with the IPCOMP protocol (RFC3173, RFC2394).
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800766
Linus Torvalds1da177e2005-04-16 15:20:36 -0700767 You will most probably want this if using IPSec.
768
Geert Uytterhoevenbf68e652009-03-04 15:15:49 +0800769config CRYPTO_ZLIB
770 tristate "Zlib compression algorithm"
771 select CRYPTO_PCOMP
772 select ZLIB_INFLATE
773 select ZLIB_DEFLATE
774 select NLATTR
775 help
776 This is the zlib algorithm.
777
Zoltan Sogor0b77abb2007-12-07 16:53:23 +0800778config CRYPTO_LZO
779 tristate "LZO compression algorithm"
780 select CRYPTO_ALGAPI
781 select LZO_COMPRESS
782 select LZO_DECOMPRESS
783 help
784 This is the LZO algorithm.
785
Neil Horman17f0f4a2008-08-14 22:15:52 +1000786comment "Random Number Generation"
787
788config CRYPTO_ANSI_CPRNG
789 tristate "Pseudo Random Number Generation for Cryptographic modules"
790 select CRYPTO_AES
791 select CRYPTO_RNG
Neil Horman17f0f4a2008-08-14 22:15:52 +1000792 help
793 This option enables the generic pseudo random number generator
794 for cryptographic modules. Uses the Algorithm specified in
795 ANSI X9.31 A.2.4
796
Linus Torvalds1da177e2005-04-16 15:20:36 -0700797source "drivers/crypto/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700798
Herbert Xucce9e062006-08-21 21:08:13 +1000799endif # if CRYPTO