]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - crypto/Kconfig
[CRYPTO] ablkcipher: Add distinct ABLKCIPHER type
[mirror_ubuntu-bionic-kernel.git] / crypto / Kconfig
CommitLineData
685784aa
DW
1#
2# Generic algorithms support
3#
4config XOR_BLOCKS
5 tristate
6
1da177e4 7#
9bc89cd8 8# async_tx api: hardware offloaded memory transfer/transform support
1da177e4 9#
9bc89cd8 10source "crypto/async_tx/Kconfig"
1da177e4 11
9bc89cd8
DW
12#
13# Cryptographic API Configuration
14#
2e290f43 15menuconfig CRYPTO
1da177e4
LT
16 bool "Cryptographic API"
17 help
18 This option provides the core Cryptographic API.
19
cce9e06d
HX
20if CRYPTO
21
22config CRYPTO_ALGAPI
23 tristate
24 help
25 This option provides the API for cryptographic algorithms.
26
b5b7f088
HX
27config CRYPTO_ABLKCIPHER
28 tristate
29 select CRYPTO_BLKCIPHER
30
1ae97820
HX
31config CRYPTO_AEAD
32 tristate
33 select CRYPTO_ALGAPI
34
5cde0af2
HX
35config CRYPTO_BLKCIPHER
36 tristate
37 select CRYPTO_ALGAPI
38
055bcee3
HX
39config CRYPTO_HASH
40 tristate
41 select CRYPTO_ALGAPI
42
2b8c19db
HX
43config CRYPTO_MANAGER
44 tristate "Cryptographic algorithm manager"
45 select CRYPTO_ALGAPI
2b8c19db
HX
46 help
47 Create default cryptographic template instantiations such as
48 cbc(aes).
49
1da177e4 50config CRYPTO_HMAC
8425165d 51 tristate "HMAC support"
0796ae06 52 select CRYPTO_HASH
43518407 53 select CRYPTO_MANAGER
1da177e4
LT
54 help
55 HMAC: Keyed-Hashing for Message Authentication (RFC2104).
56 This is required for IPSec.
57
333b0d7e
KM
58config CRYPTO_XCBC
59 tristate "XCBC support"
60 depends on EXPERIMENTAL
61 select CRYPTO_HASH
62 select CRYPTO_MANAGER
63 help
64 XCBC: Keyed-Hashing with encryption algorithm
65 http://www.ietf.org/rfc/rfc3566.txt
66 http://csrc.nist.gov/encryption/modes/proposedmodes/
67 xcbc-mac/xcbc-mac-spec.pdf
68
1da177e4
LT
69config CRYPTO_NULL
70 tristate "Null algorithms"
cce9e06d 71 select CRYPTO_ALGAPI
1da177e4
LT
72 help
73 These are 'Null' algorithms, used by IPsec, which do nothing.
74
75config CRYPTO_MD4
76 tristate "MD4 digest algorithm"
cce9e06d 77 select CRYPTO_ALGAPI
1da177e4
LT
78 help
79 MD4 message digest algorithm (RFC1320).
80
81config CRYPTO_MD5
82 tristate "MD5 digest algorithm"
cce9e06d 83 select CRYPTO_ALGAPI
1da177e4
LT
84 help
85 MD5 message digest algorithm (RFC1321).
86
87config CRYPTO_SHA1
88 tristate "SHA1 digest algorithm"
cce9e06d 89 select CRYPTO_ALGAPI
1da177e4
LT
90 help
91 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
92
1da177e4 93config CRYPTO_SHA256
cd12fb90 94 tristate "SHA224 and SHA256 digest algorithm"
cce9e06d 95 select CRYPTO_ALGAPI
1da177e4
LT
96 help
97 SHA256 secure hash standard (DFIPS 180-2).
98
99 This version of SHA implements a 256 bit hash with 128 bits of
100 security against collision attacks.
101
cd12fb90
JL
102 This code also includes SHA-224, a 224 bit hash with 112 bits
103 of security against collision attacks.
104
1da177e4
LT
105config CRYPTO_SHA512
106 tristate "SHA384 and SHA512 digest algorithms"
cce9e06d 107 select CRYPTO_ALGAPI
1da177e4
LT
108 help
109 SHA512 secure hash standard (DFIPS 180-2).
110
111 This version of SHA implements a 512 bit hash with 256 bits of
112 security against collision attacks.
113
114 This code also includes SHA-384, a 384 bit hash with 192 bits
115 of security against collision attacks.
116
117config CRYPTO_WP512
118 tristate "Whirlpool digest algorithms"
cce9e06d 119 select CRYPTO_ALGAPI
1da177e4
LT
120 help
121 Whirlpool hash algorithm 512, 384 and 256-bit hashes
122
123 Whirlpool-512 is part of the NESSIE cryptographic primitives.
124 Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
125
126 See also:
127 <http://planeta.terra.com.br/informatica/paulobarreto/WhirlpoolPage.html>
128
129config CRYPTO_TGR192
130 tristate "Tiger digest algorithms"
cce9e06d 131 select CRYPTO_ALGAPI
1da177e4
LT
132 help
133 Tiger hash algorithm 192, 160 and 128-bit hashes
134
135 Tiger is a hash function optimized for 64-bit processors while
136 still having decent performance on 32-bit processors.
137 Tiger was developed by Ross Anderson and Eli Biham.
138
139 See also:
140 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
141
c494e070
RS
142config CRYPTO_GF128MUL
143 tristate "GF(2^128) multiplication functions (EXPERIMENTAL)"
144 depends on EXPERIMENTAL
145 help
146 Efficient table driven implementation of multiplications in the
147 field GF(2^128). This is needed by some cypher modes. This
148 option will be selected automatically if you select such a
149 cipher mode. Only select this option by hand if you expect to load
150 an external module that requires these functions.
151
db131ef9
HX
152config CRYPTO_ECB
153 tristate "ECB support"
154 select CRYPTO_BLKCIPHER
43518407 155 select CRYPTO_MANAGER
db131ef9
HX
156 help
157 ECB: Electronic CodeBook mode
158 This is the simplest block cipher algorithm. It simply encrypts
159 the input block by block.
160
161config CRYPTO_CBC
162 tristate "CBC support"
163 select CRYPTO_BLKCIPHER
43518407 164 select CRYPTO_MANAGER
db131ef9
HX
165 help
166 CBC: Cipher Block Chaining mode
167 This block cipher algorithm is required for IPSec.
168
91652be5
DH
169config CRYPTO_PCBC
170 tristate "PCBC support"
171 select CRYPTO_BLKCIPHER
172 select CRYPTO_MANAGER
91652be5
DH
173 help
174 PCBC: Propagating Cipher Block Chaining mode
175 This block cipher algorithm is required for RxRPC.
176
64470f1b
RS
177config CRYPTO_LRW
178 tristate "LRW support (EXPERIMENTAL)"
179 depends on EXPERIMENTAL
180 select CRYPTO_BLKCIPHER
181 select CRYPTO_MANAGER
182 select CRYPTO_GF128MUL
183 help
184 LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
185 narrow block cipher mode for dm-crypt. Use it with cipher
186 specification string aes-lrw-benbi, the key must be 256, 320 or 384.
187 The first 128, 192 or 256 bits in the key are used for AES and the
188 rest is used to tie each cipher block to its logical position.
189
f19f5111
RS
190config CRYPTO_XTS
191 tristate "XTS support (EXPERIMENTAL)"
192 depends on EXPERIMENTAL
193 select CRYPTO_BLKCIPHER
194 select CRYPTO_MANAGER
195 select CRYPTO_GF128MUL
196 help
197 XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
198 key size 256, 384 or 512 bits. This implementation currently
199 can't handle a sectorsize which is not a multiple of 16 bytes.
200
23e353c8
JL
201config CRYPTO_CTR
202 tristate "CTR support"
203 select CRYPTO_BLKCIPHER
204 select CRYPTO_MANAGER
23e353c8
JL
205 help
206 CTR: Counter mode
207 This block cipher algorithm is required for IPSec.
208
124b53d0
HX
209config CRYPTO_CRYPTD
210 tristate "Software async crypto daemon"
211 select CRYPTO_ABLKCIPHER
212 select CRYPTO_MANAGER
213 help
214 This is a generic software asynchronous crypto daemon that
215 converts an arbitrary synchronous software crypto algorithm
216 into an asynchronous algorithm that executes in a kernel thread.
217
1da177e4
LT
218config CRYPTO_DES
219 tristate "DES and Triple DES EDE cipher algorithms"
cce9e06d 220 select CRYPTO_ALGAPI
1da177e4
LT
221 help
222 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
223
90831639
DH
224config CRYPTO_FCRYPT
225 tristate "FCrypt cipher algorithm"
226 select CRYPTO_ALGAPI
227 select CRYPTO_BLKCIPHER
228 help
229 FCrypt algorithm used by RxRPC.
230
1da177e4
LT
231config CRYPTO_BLOWFISH
232 tristate "Blowfish cipher algorithm"
cce9e06d 233 select CRYPTO_ALGAPI
1da177e4
LT
234 help
235 Blowfish cipher algorithm, by Bruce Schneier.
236
237 This is a variable key length cipher which can use keys from 32
238 bits to 448 bits in length. It's fast, simple and specifically
239 designed for use on "large microprocessors".
240
241 See also:
242 <http://www.schneier.com/blowfish.html>
243
244config CRYPTO_TWOFISH
245 tristate "Twofish cipher algorithm"
cce9e06d 246 select CRYPTO_ALGAPI
2729bb42 247 select CRYPTO_TWOFISH_COMMON
1da177e4
LT
248 help
249 Twofish cipher algorithm.
250
251 Twofish was submitted as an AES (Advanced Encryption Standard)
252 candidate cipher by researchers at CounterPane Systems. It is a
253 16 round block cipher supporting key sizes of 128, 192, and 256
254 bits.
255
256 See also:
257 <http://www.schneier.com/twofish.html>
258
2729bb42
JF
259config CRYPTO_TWOFISH_COMMON
260 tristate
2729bb42
JF
261 help
262 Common parts of the Twofish cipher algorithm shared by the
263 generic c and the assembler implementations.
264
b9f535ff
JF
265config CRYPTO_TWOFISH_586
266 tristate "Twofish cipher algorithms (i586)"
cce9e06d
HX
267 depends on (X86 || UML_X86) && !64BIT
268 select CRYPTO_ALGAPI
b9f535ff
JF
269 select CRYPTO_TWOFISH_COMMON
270 help
271 Twofish cipher algorithm.
272
273 Twofish was submitted as an AES (Advanced Encryption Standard)
274 candidate cipher by researchers at CounterPane Systems. It is a
275 16 round block cipher supporting key sizes of 128, 192, and 256
276 bits.
277
278 See also:
279 <http://www.schneier.com/twofish.html>
280
eaf44088
JF
281config CRYPTO_TWOFISH_X86_64
282 tristate "Twofish cipher algorithm (x86_64)"
cce9e06d
HX
283 depends on (X86 || UML_X86) && 64BIT
284 select CRYPTO_ALGAPI
eaf44088
JF
285 select CRYPTO_TWOFISH_COMMON
286 help
287 Twofish cipher algorithm (x86_64).
288
289 Twofish was submitted as an AES (Advanced Encryption Standard)
290 candidate cipher by researchers at CounterPane Systems. It is a
291 16 round block cipher supporting key sizes of 128, 192, and 256
292 bits.
293
294 See also:
295 <http://www.schneier.com/twofish.html>
296
1da177e4
LT
297config CRYPTO_SERPENT
298 tristate "Serpent cipher algorithm"
cce9e06d 299 select CRYPTO_ALGAPI
1da177e4
LT
300 help
301 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
302
303 Keys are allowed to be from 0 to 256 bits in length, in steps
304 of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
3dde6ad8 305 variant of Serpent for compatibility with old kerneli.org code.
1da177e4
LT
306
307 See also:
308 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
309
310config CRYPTO_AES
311 tristate "AES cipher algorithms"
cce9e06d 312 select CRYPTO_ALGAPI
1da177e4
LT
313 help
314 AES cipher algorithms (FIPS-197). AES uses the Rijndael
315 algorithm.
316
317 Rijndael appears to be consistently a very good performer in
318 both hardware and software across a wide range of computing
319 environments regardless of its use in feedback or non-feedback
320 modes. Its key setup time is excellent, and its key agility is
321 good. Rijndael's very low memory requirements make it very well
322 suited for restricted-space environments, in which it also
323 demonstrates excellent performance. Rijndael's operations are
324 among the easiest to defend against power and timing attacks.
325
326 The AES specifies three key sizes: 128, 192 and 256 bits
327
328 See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
329
330config CRYPTO_AES_586
331 tristate "AES cipher algorithms (i586)"
cce9e06d
HX
332 depends on (X86 || UML_X86) && !64BIT
333 select CRYPTO_ALGAPI
5157dea8 334 select CRYPTO_AES
1da177e4
LT
335 help
336 AES cipher algorithms (FIPS-197). AES uses the Rijndael
337 algorithm.
338
339 Rijndael appears to be consistently a very good performer in
340 both hardware and software across a wide range of computing
341 environments regardless of its use in feedback or non-feedback
342 modes. Its key setup time is excellent, and its key agility is
343 good. Rijndael's very low memory requirements make it very well
344 suited for restricted-space environments, in which it also
345 demonstrates excellent performance. Rijndael's operations are
346 among the easiest to defend against power and timing attacks.
347
348 The AES specifies three key sizes: 128, 192 and 256 bits
a2a892a2
AS
349
350 See <http://csrc.nist.gov/encryption/aes/> for more information.
351
352config CRYPTO_AES_X86_64
353 tristate "AES cipher algorithms (x86_64)"
cce9e06d
HX
354 depends on (X86 || UML_X86) && 64BIT
355 select CRYPTO_ALGAPI
81190b32 356 select CRYPTO_AES
a2a892a2
AS
357 help
358 AES cipher algorithms (FIPS-197). AES uses the Rijndael
359 algorithm.
360
361 Rijndael appears to be consistently a very good performer in
362 both hardware and software across a wide range of computing
363 environments regardless of its use in feedback or non-feedback
364 modes. Its key setup time is excellent, and its key agility is
365 good. Rijndael's very low memory requirements make it very well
366 suited for restricted-space environments, in which it also
367 demonstrates excellent performance. Rijndael's operations are
368 among the easiest to defend against power and timing attacks.
369
370 The AES specifies three key sizes: 128, 192 and 256 bits
1da177e4
LT
371
372 See <http://csrc.nist.gov/encryption/aes/> for more information.
373
374config CRYPTO_CAST5
375 tristate "CAST5 (CAST-128) cipher algorithm"
cce9e06d 376 select CRYPTO_ALGAPI
1da177e4
LT
377 help
378 The CAST5 encryption algorithm (synonymous with CAST-128) is
379 described in RFC2144.
380
381config CRYPTO_CAST6
382 tristate "CAST6 (CAST-256) cipher algorithm"
cce9e06d 383 select CRYPTO_ALGAPI
1da177e4
LT
384 help
385 The CAST6 encryption algorithm (synonymous with CAST-256) is
386 described in RFC2612.
387
388config CRYPTO_TEA
fb4f10ed 389 tristate "TEA, XTEA and XETA cipher algorithms"
cce9e06d 390 select CRYPTO_ALGAPI
1da177e4
LT
391 help
392 TEA cipher algorithm.
393
394 Tiny Encryption Algorithm is a simple cipher that uses
395 many rounds for security. It is very fast and uses
396 little memory.
397
398 Xtendend Tiny Encryption Algorithm is a modification to
399 the TEA algorithm to address a potential key weakness
400 in the TEA algorithm.
401
fb4f10ed
AG
402 Xtendend Encryption Tiny Algorithm is a mis-implementation
403 of the XTEA algorithm for compatibility purposes.
404
1da177e4
LT
405config CRYPTO_ARC4
406 tristate "ARC4 cipher algorithm"
cce9e06d 407 select CRYPTO_ALGAPI
1da177e4
LT
408 help
409 ARC4 cipher algorithm.
410
411 ARC4 is a stream cipher using keys ranging from 8 bits to 2048
412 bits in length. This algorithm is required for driver-based
413 WEP, but it should not be for other purposes because of the
414 weakness of the algorithm.
415
416config CRYPTO_KHAZAD
417 tristate "Khazad cipher algorithm"
cce9e06d 418 select CRYPTO_ALGAPI
1da177e4
LT
419 help
420 Khazad cipher algorithm.
421
422 Khazad was a finalist in the initial NESSIE competition. It is
423 an algorithm optimized for 64-bit processors with good performance
424 on 32-bit processors. Khazad uses an 128 bit key size.
425
426 See also:
427 <http://planeta.terra.com.br/informatica/paulobarreto/KhazadPage.html>
428
429config CRYPTO_ANUBIS
430 tristate "Anubis cipher algorithm"
cce9e06d 431 select CRYPTO_ALGAPI
1da177e4
LT
432 help
433 Anubis cipher algorithm.
434
435 Anubis is a variable key length cipher which can use keys from
436 128 bits to 320 bits in length. It was evaluated as a entrant
437 in the NESSIE competition.
438
439 See also:
440 <https://www.cosic.esat.kuleuven.ac.be/nessie/reports/>
441 <http://planeta.terra.com.br/informatica/paulobarreto/AnubisPage.html>
442
e2ee95b8
HSC
443config CRYPTO_SEED
444 tristate "SEED cipher algorithm"
445 select CRYPTO_ALGAPI
446 help
447 SEED cipher algorithm (RFC4269).
448
449 SEED is a 128-bit symmetric key block cipher that has been
450 developed by KISA (Korea Information Security Agency) as a
451 national standard encryption algorithm of the Republic of Korea.
452 It is a 16 round block cipher with the key size of 128 bit.
453
454 See also:
455 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
456
1da177e4
LT
457
458config CRYPTO_DEFLATE
459 tristate "Deflate compression algorithm"
cce9e06d 460 select CRYPTO_ALGAPI
1da177e4
LT
461 select ZLIB_INFLATE
462 select ZLIB_DEFLATE
463 help
464 This is the Deflate algorithm (RFC1951), specified for use in
465 IPSec with the IPCOMP protocol (RFC3173, RFC2394).
466
467 You will most probably want this if using IPSec.
468
469config CRYPTO_MICHAEL_MIC
470 tristate "Michael MIC keyed digest algorithm"
cce9e06d 471 select CRYPTO_ALGAPI
1da177e4
LT
472 help
473 Michael MIC is used for message integrity protection in TKIP
474 (IEEE 802.11i). This algorithm is required for TKIP, but it
475 should not be used for other purposes because of the weakness
476 of the algorithm.
477
478config CRYPTO_CRC32C
479 tristate "CRC32c CRC algorithm"
cce9e06d 480 select CRYPTO_ALGAPI
1da177e4
LT
481 select LIBCRC32C
482 help
483 Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
484 by iSCSI for header and data digests and by others.
485 See Castagnoli93. This implementation uses lib/libcrc32c.
486 Module will be crc32c.
487
04ac7db3
NT
488config CRYPTO_CAMELLIA
489 tristate "Camellia cipher algorithms"
490 depends on CRYPTO
491 select CRYPTO_ALGAPI
492 help
493 Camellia cipher algorithms module.
494
495 Camellia is a symmetric key block cipher developed jointly
496 at NTT and Mitsubishi Electric Corporation.
497
498 The Camellia specifies three key sizes: 128, 192 and 256 bits.
499
500 See also:
501 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
502
1da177e4
LT
503config CRYPTO_TEST
504 tristate "Testing module"
cce9e06d
HX
505 depends on m
506 select CRYPTO_ALGAPI
1da177e4
LT
507 help
508 Quick & dirty crypto test module.
509
3c09f17c
HX
510config CRYPTO_AUTHENC
511 tristate "Authenc support"
512 select CRYPTO_AEAD
513 select CRYPTO_MANAGER
514 help
515 Authenc: Combined mode wrapper for IPsec.
516 This is required for IPSec.
517
1da177e4 518source "drivers/crypto/Kconfig"
1da177e4 519
cce9e06d 520endif # if CRYPTO