Commit | Line | Data |
---|---|---|
685784aa DW |
1 | # |
2 | # Generic algorithms support | |
3 | # | |
4 | config XOR_BLOCKS | |
5 | tristate | |
6 | ||
1da177e4 | 7 | # |
9bc89cd8 | 8 | # async_tx api: hardware offloaded memory transfer/transform support |
1da177e4 | 9 | # |
9bc89cd8 | 10 | source "crypto/async_tx/Kconfig" |
1da177e4 | 11 | |
9bc89cd8 DW |
12 | # |
13 | # Cryptographic API Configuration | |
14 | # | |
2e290f43 | 15 | menuconfig CRYPTO |
1da177e4 LT |
16 | bool "Cryptographic API" |
17 | help | |
18 | This option provides the core Cryptographic API. | |
19 | ||
cce9e06d HX |
20 | if CRYPTO |
21 | ||
22 | config CRYPTO_ALGAPI | |
23 | tristate | |
24 | help | |
25 | This option provides the API for cryptographic algorithms. | |
26 | ||
b5b7f088 HX |
27 | config CRYPTO_ABLKCIPHER |
28 | tristate | |
29 | select CRYPTO_BLKCIPHER | |
30 | ||
5cde0af2 HX |
31 | config CRYPTO_BLKCIPHER |
32 | tristate | |
33 | select CRYPTO_ALGAPI | |
34 | ||
055bcee3 HX |
35 | config CRYPTO_HASH |
36 | tristate | |
37 | select CRYPTO_ALGAPI | |
38 | ||
2b8c19db HX |
39 | config CRYPTO_MANAGER |
40 | tristate "Cryptographic algorithm manager" | |
41 | select CRYPTO_ALGAPI | |
2b8c19db HX |
42 | help |
43 | Create default cryptographic template instantiations such as | |
44 | cbc(aes). | |
45 | ||
1da177e4 | 46 | config CRYPTO_HMAC |
8425165d | 47 | tristate "HMAC support" |
0796ae06 | 48 | select CRYPTO_HASH |
43518407 | 49 | select CRYPTO_MANAGER |
1da177e4 LT |
50 | help |
51 | HMAC: Keyed-Hashing for Message Authentication (RFC2104). | |
52 | This is required for IPSec. | |
53 | ||
333b0d7e KM |
54 | config 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 | ||
1da177e4 LT |
65 | config CRYPTO_NULL |
66 | tristate "Null algorithms" | |
cce9e06d | 67 | select CRYPTO_ALGAPI |
1da177e4 LT |
68 | help |
69 | These are 'Null' algorithms, used by IPsec, which do nothing. | |
70 | ||
71 | config CRYPTO_MD4 | |
72 | tristate "MD4 digest algorithm" | |
cce9e06d | 73 | select CRYPTO_ALGAPI |
1da177e4 LT |
74 | help |
75 | MD4 message digest algorithm (RFC1320). | |
76 | ||
77 | config CRYPTO_MD5 | |
78 | tristate "MD5 digest algorithm" | |
cce9e06d | 79 | select CRYPTO_ALGAPI |
1da177e4 LT |
80 | help |
81 | MD5 message digest algorithm (RFC1321). | |
82 | ||
83 | config CRYPTO_SHA1 | |
84 | tristate "SHA1 digest algorithm" | |
cce9e06d | 85 | select CRYPTO_ALGAPI |
1da177e4 LT |
86 | help |
87 | SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2). | |
88 | ||
1da177e4 LT |
89 | config CRYPTO_SHA256 |
90 | tristate "SHA256 digest algorithm" | |
cce9e06d | 91 | select CRYPTO_ALGAPI |
1da177e4 LT |
92 | 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 | ||
98 | config CRYPTO_SHA512 | |
99 | tristate "SHA384 and SHA512 digest algorithms" | |
cce9e06d | 100 | select CRYPTO_ALGAPI |
1da177e4 LT |
101 | 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 | ||
110 | config CRYPTO_WP512 | |
111 | tristate "Whirlpool digest algorithms" | |
cce9e06d | 112 | select CRYPTO_ALGAPI |
1da177e4 LT |
113 | 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 | ||
122 | config CRYPTO_TGR192 | |
123 | tristate "Tiger digest algorithms" | |
cce9e06d | 124 | select CRYPTO_ALGAPI |
1da177e4 LT |
125 | 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 | ||
c494e070 RS |
135 | config 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 | ||
db131ef9 HX |
145 | config CRYPTO_ECB |
146 | tristate "ECB support" | |
147 | select CRYPTO_BLKCIPHER | |
43518407 | 148 | select CRYPTO_MANAGER |
db131ef9 HX |
149 | help |
150 | ECB: Electronic CodeBook mode | |
151 | This is the simplest block cipher algorithm. It simply encrypts | |
152 | the input block by block. | |
153 | ||
154 | config CRYPTO_CBC | |
155 | tristate "CBC support" | |
156 | select CRYPTO_BLKCIPHER | |
43518407 | 157 | select CRYPTO_MANAGER |
db131ef9 HX |
158 | help |
159 | CBC: Cipher Block Chaining mode | |
160 | This block cipher algorithm is required for IPSec. | |
161 | ||
91652be5 DH |
162 | config CRYPTO_PCBC |
163 | tristate "PCBC support" | |
164 | select CRYPTO_BLKCIPHER | |
165 | select CRYPTO_MANAGER | |
91652be5 DH |
166 | help |
167 | PCBC: Propagating Cipher Block Chaining mode | |
168 | This block cipher algorithm is required for RxRPC. | |
169 | ||
64470f1b RS |
170 | config 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 | ||
124b53d0 HX |
183 | config 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 | ||
1da177e4 LT |
192 | config CRYPTO_DES |
193 | tristate "DES and Triple DES EDE cipher algorithms" | |
cce9e06d | 194 | select CRYPTO_ALGAPI |
1da177e4 LT |
195 | help |
196 | DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3). | |
197 | ||
90831639 DH |
198 | config CRYPTO_FCRYPT |
199 | tristate "FCrypt cipher algorithm" | |
200 | select CRYPTO_ALGAPI | |
201 | select CRYPTO_BLKCIPHER | |
202 | help | |
203 | FCrypt algorithm used by RxRPC. | |
204 | ||
1da177e4 LT |
205 | config CRYPTO_BLOWFISH |
206 | tristate "Blowfish cipher algorithm" | |
cce9e06d | 207 | select CRYPTO_ALGAPI |
1da177e4 LT |
208 | 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 | ||
218 | config CRYPTO_TWOFISH | |
219 | tristate "Twofish cipher algorithm" | |
cce9e06d | 220 | select CRYPTO_ALGAPI |
2729bb42 | 221 | select CRYPTO_TWOFISH_COMMON |
1da177e4 LT |
222 | 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 | ||
2729bb42 JF |
233 | config CRYPTO_TWOFISH_COMMON |
234 | tristate | |
2729bb42 JF |
235 | help |
236 | Common parts of the Twofish cipher algorithm shared by the | |
237 | generic c and the assembler implementations. | |
238 | ||
b9f535ff JF |
239 | config CRYPTO_TWOFISH_586 |
240 | tristate "Twofish cipher algorithms (i586)" | |
cce9e06d HX |
241 | depends on (X86 || UML_X86) && !64BIT |
242 | select CRYPTO_ALGAPI | |
b9f535ff JF |
243 | 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 | ||
eaf44088 JF |
255 | config CRYPTO_TWOFISH_X86_64 |
256 | tristate "Twofish cipher algorithm (x86_64)" | |
cce9e06d HX |
257 | depends on (X86 || UML_X86) && 64BIT |
258 | select CRYPTO_ALGAPI | |
eaf44088 JF |
259 | 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 | ||
1da177e4 LT |
271 | config CRYPTO_SERPENT |
272 | tristate "Serpent cipher algorithm" | |
cce9e06d | 273 | select CRYPTO_ALGAPI |
1da177e4 LT |
274 | 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 | |
3dde6ad8 | 279 | variant of Serpent for compatibility with old kerneli.org code. |
1da177e4 LT |
280 | |
281 | See also: | |
282 | <http://www.cl.cam.ac.uk/~rja14/serpent.html> | |
283 | ||
284 | config CRYPTO_AES | |
285 | tristate "AES cipher algorithms" | |
cce9e06d | 286 | select CRYPTO_ALGAPI |
1da177e4 LT |
287 | 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 | ||
304 | config CRYPTO_AES_586 | |
305 | tristate "AES cipher algorithms (i586)" | |
cce9e06d HX |
306 | depends on (X86 || UML_X86) && !64BIT |
307 | select CRYPTO_ALGAPI | |
1da177e4 LT |
308 | 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 | |
a2a892a2 AS |
322 | |
323 | See <http://csrc.nist.gov/encryption/aes/> for more information. | |
324 | ||
325 | config CRYPTO_AES_X86_64 | |
326 | tristate "AES cipher algorithms (x86_64)" | |
cce9e06d HX |
327 | depends on (X86 || UML_X86) && 64BIT |
328 | select CRYPTO_ALGAPI | |
a2a892a2 AS |
329 | 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 | |
1da177e4 LT |
343 | |
344 | See <http://csrc.nist.gov/encryption/aes/> for more information. | |
345 | ||
346 | config CRYPTO_CAST5 | |
347 | tristate "CAST5 (CAST-128) cipher algorithm" | |
cce9e06d | 348 | select CRYPTO_ALGAPI |
1da177e4 LT |
349 | help |
350 | The CAST5 encryption algorithm (synonymous with CAST-128) is | |
351 | described in RFC2144. | |
352 | ||
353 | config CRYPTO_CAST6 | |
354 | tristate "CAST6 (CAST-256) cipher algorithm" | |
cce9e06d | 355 | select CRYPTO_ALGAPI |
1da177e4 LT |
356 | help |
357 | The CAST6 encryption algorithm (synonymous with CAST-256) is | |
358 | described in RFC2612. | |
359 | ||
360 | config CRYPTO_TEA | |
fb4f10ed | 361 | tristate "TEA, XTEA and XETA cipher algorithms" |
cce9e06d | 362 | select CRYPTO_ALGAPI |
1da177e4 LT |
363 | 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 | ||
fb4f10ed AG |
374 | Xtendend Encryption Tiny Algorithm is a mis-implementation |
375 | of the XTEA algorithm for compatibility purposes. | |
376 | ||
1da177e4 LT |
377 | config CRYPTO_ARC4 |
378 | tristate "ARC4 cipher algorithm" | |
cce9e06d | 379 | select CRYPTO_ALGAPI |
1da177e4 LT |
380 | 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 | ||
388 | config CRYPTO_KHAZAD | |
389 | tristate "Khazad cipher algorithm" | |
cce9e06d | 390 | select CRYPTO_ALGAPI |
1da177e4 LT |
391 | 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 | ||
401 | config CRYPTO_ANUBIS | |
402 | tristate "Anubis cipher algorithm" | |
cce9e06d | 403 | select CRYPTO_ALGAPI |
1da177e4 LT |
404 | 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 | ||
e2ee95b8 HSC |
415 | config 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 | ||
1da177e4 LT |
429 | |
430 | config CRYPTO_DEFLATE | |
431 | tristate "Deflate compression algorithm" | |
cce9e06d | 432 | select CRYPTO_ALGAPI |
1da177e4 LT |
433 | 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 | ||
441 | config CRYPTO_MICHAEL_MIC | |
442 | tristate "Michael MIC keyed digest algorithm" | |
cce9e06d | 443 | select CRYPTO_ALGAPI |
1da177e4 LT |
444 | 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 | ||
450 | config CRYPTO_CRC32C | |
451 | tristate "CRC32c CRC algorithm" | |
cce9e06d | 452 | select CRYPTO_ALGAPI |
1da177e4 LT |
453 | 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 | ||
04ac7db3 NT |
460 | config 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 | ||
1da177e4 LT |
475 | config CRYPTO_TEST |
476 | tristate "Testing module" | |
cce9e06d HX |
477 | depends on m |
478 | select CRYPTO_ALGAPI | |
1da177e4 LT |
479 | help |
480 | Quick & dirty crypto test module. | |
481 | ||
482 | source "drivers/crypto/Kconfig" | |
1da177e4 | 483 | |
cce9e06d | 484 | endif # if CRYPTO |