blob: fd6871102b601ce100d8b982cc511cba39813968 [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"
Neil Horman4e4ed832009-08-20 17:54:16 +100026 depends on CRYPTO_ANSI_CPRNG
Neil Hormanccb778e2008-08-05 14:13:08 +080027 help
28 This options enables the fips boot option which is
29 required if you want to system to operate in a FIPS 200
30 certification. You should say no unless you know what
Neil Horman4e4ed832009-08-20 17:54:16 +100031 this is. Note that CRYPTO_ANSI_CPRNG is requred if this
32 option is selected
Neil Hormanccb778e2008-08-05 14:13:08 +080033
Herbert Xucce9e062006-08-21 21:08:13 +100034config CRYPTO_ALGAPI
35 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110036 select CRYPTO_ALGAPI2
Herbert Xucce9e062006-08-21 21:08:13 +100037 help
38 This option provides the API for cryptographic algorithms.
39
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110040config CRYPTO_ALGAPI2
41 tristate
42
Herbert Xu1ae97822007-08-30 15:36:14 +080043config CRYPTO_AEAD
44 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110045 select CRYPTO_AEAD2
Herbert Xu1ae97822007-08-30 15:36:14 +080046 select CRYPTO_ALGAPI
47
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110048config CRYPTO_AEAD2
49 tristate
50 select CRYPTO_ALGAPI2
51
Herbert Xu5cde0af2006-08-22 00:07:53 +100052config CRYPTO_BLKCIPHER
53 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110054 select CRYPTO_BLKCIPHER2
Herbert Xu5cde0af2006-08-22 00:07:53 +100055 select CRYPTO_ALGAPI
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110056
57config CRYPTO_BLKCIPHER2
58 tristate
59 select CRYPTO_ALGAPI2
60 select CRYPTO_RNG2
Huang Ying0a2e8212009-02-19 14:44:02 +080061 select CRYPTO_WORKQUEUE
Herbert Xu5cde0af2006-08-22 00:07:53 +100062
Herbert Xu055bcee2006-08-19 22:24:23 +100063config CRYPTO_HASH
64 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110065 select CRYPTO_HASH2
Herbert Xu055bcee2006-08-19 22:24:23 +100066 select CRYPTO_ALGAPI
67
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110068config CRYPTO_HASH2
69 tristate
70 select CRYPTO_ALGAPI2
71
Neil Horman17f0f4a2008-08-14 22:15:52 +100072config CRYPTO_RNG
73 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110074 select CRYPTO_RNG2
Neil Horman17f0f4a2008-08-14 22:15:52 +100075 select CRYPTO_ALGAPI
76
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110077config CRYPTO_RNG2
78 tristate
79 select CRYPTO_ALGAPI2
80
Geert Uytterhoevena1d2f092009-03-04 15:05:33 +080081config CRYPTO_PCOMP
82 tristate
83 select CRYPTO_ALGAPI2
84
Herbert Xu2b8c19d2006-09-21 11:31:44 +100085config CRYPTO_MANAGER
86 tristate "Cryptographic algorithm manager"
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110087 select CRYPTO_MANAGER2
Herbert Xu2b8c19d2006-09-21 11:31:44 +100088 help
89 Create default cryptographic template instantiations such as
90 cbc(aes).
91
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110092config CRYPTO_MANAGER2
93 def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y)
94 select CRYPTO_AEAD2
95 select CRYPTO_HASH2
96 select CRYPTO_BLKCIPHER2
Geert Uytterhoeven0c01aed2009-03-04 15:42:15 +080097 select CRYPTO_PCOMP
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110098
Rik Snelc494e072006-11-29 18:59:44 +110099config CRYPTO_GF128MUL
100 tristate "GF(2^128) multiplication functions (EXPERIMENTAL)"
101 depends on EXPERIMENTAL
102 help
103 Efficient table driven implementation of multiplications in the
104 field GF(2^128). This is needed by some cypher modes. This
105 option will be selected automatically if you select such a
106 cipher mode. Only select this option by hand if you expect to load
107 an external module that requires these functions.
108
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800109config CRYPTO_NULL
110 tristate "Null algorithms"
111 select CRYPTO_ALGAPI
112 select CRYPTO_BLKCIPHER
Herbert Xud35d2452008-11-08 08:09:56 +0800113 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800114 help
115 These are 'Null' algorithms, used by IPsec, which do nothing.
116
Huang Ying25c38d3f2009-02-19 14:33:40 +0800117config CRYPTO_WORKQUEUE
118 tristate
119
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800120config CRYPTO_CRYPTD
121 tristate "Software async crypto daemon"
Herbert Xudb131ef2006-09-21 11:44:08 +1000122 select CRYPTO_BLKCIPHER
Loc Hob8a28252008-05-14 21:23:00 +0800123 select CRYPTO_HASH
Herbert Xu43518402006-10-16 21:28:58 +1000124 select CRYPTO_MANAGER
Huang Ying254eff72009-02-19 14:42:19 +0800125 select CRYPTO_WORKQUEUE
Herbert Xudb131ef2006-09-21 11:44:08 +1000126 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800127 This is a generic software asynchronous crypto daemon that
128 converts an arbitrary synchronous software crypto algorithm
129 into an asynchronous algorithm that executes in a kernel thread.
130
131config CRYPTO_AUTHENC
132 tristate "Authenc support"
133 select CRYPTO_AEAD
134 select CRYPTO_BLKCIPHER
135 select CRYPTO_MANAGER
136 select CRYPTO_HASH
137 help
138 Authenc: Combined mode wrapper for IPsec.
139 This is required for IPSec.
140
141config CRYPTO_TEST
142 tristate "Testing module"
143 depends on m
Herbert Xuda7f0332008-07-31 17:08:25 +0800144 select CRYPTO_MANAGER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800145 help
146 Quick & dirty crypto test module.
147
148comment "Authenticated Encryption with Associated Data"
149
150config CRYPTO_CCM
151 tristate "CCM support"
152 select CRYPTO_CTR
153 select CRYPTO_AEAD
154 help
155 Support for Counter with CBC MAC. Required for IPsec.
156
157config CRYPTO_GCM
158 tristate "GCM/GMAC support"
159 select CRYPTO_CTR
160 select CRYPTO_AEAD
Huang Ying9382d972009-08-06 15:34:26 +1000161 select CRYPTO_GHASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800162 help
163 Support for Galois/Counter Mode (GCM) and Galois Message
164 Authentication Code (GMAC). Required for IPSec.
165
166config CRYPTO_SEQIV
167 tristate "Sequence Number IV Generator"
168 select CRYPTO_AEAD
169 select CRYPTO_BLKCIPHER
Herbert Xua0f000e2008-08-14 22:21:31 +1000170 select CRYPTO_RNG
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800171 help
172 This IV generator generates an IV based on a sequence number by
173 xoring it with a salt. This algorithm is mainly useful for CTR
174
175comment "Block modes"
Herbert Xudb131ef2006-09-21 11:44:08 +1000176
177config CRYPTO_CBC
178 tristate "CBC support"
179 select CRYPTO_BLKCIPHER
Herbert Xu43518402006-10-16 21:28:58 +1000180 select CRYPTO_MANAGER
Herbert Xudb131ef2006-09-21 11:44:08 +1000181 help
182 CBC: Cipher Block Chaining mode
183 This block cipher algorithm is required for IPSec.
184
Joy Latten23e353c2007-10-23 08:50:32 +0800185config CRYPTO_CTR
186 tristate "CTR support"
187 select CRYPTO_BLKCIPHER
Herbert Xu0a270322007-11-30 21:38:37 +1100188 select CRYPTO_SEQIV
Joy Latten23e353c2007-10-23 08:50:32 +0800189 select CRYPTO_MANAGER
Joy Latten23e353c2007-10-23 08:50:32 +0800190 help
191 CTR: Counter mode
192 This block cipher algorithm is required for IPSec.
193
Kevin Coffman76cb9522008-03-24 21:26:16 +0800194config CRYPTO_CTS
195 tristate "CTS support"
196 select CRYPTO_BLKCIPHER
197 help
198 CTS: Cipher Text Stealing
199 This is the Cipher Text Stealing mode as described by
200 Section 8 of rfc2040 and referenced by rfc3962.
201 (rfc3962 includes errata information in its Appendix A)
202 This mode is required for Kerberos gss mechanism support
203 for AES encryption.
204
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800205config CRYPTO_ECB
206 tristate "ECB support"
Herbert Xu653ebd9c2007-11-27 19:48:27 +0800207 select CRYPTO_BLKCIPHER
Herbert Xu124b53d2007-04-16 20:49:20 +1000208 select CRYPTO_MANAGER
209 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800210 ECB: Electronic CodeBook mode
211 This is the simplest block cipher algorithm. It simply encrypts
212 the input block by block.
Herbert Xu124b53d2007-04-16 20:49:20 +1000213
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800214config CRYPTO_LRW
215 tristate "LRW support (EXPERIMENTAL)"
216 depends on EXPERIMENTAL
David Howells90831632006-12-16 12:13:14 +1100217 select CRYPTO_BLKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800218 select CRYPTO_MANAGER
219 select CRYPTO_GF128MUL
David Howells90831632006-12-16 12:13:14 +1100220 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800221 LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
222 narrow block cipher mode for dm-crypt. Use it with cipher
223 specification string aes-lrw-benbi, the key must be 256, 320 or 384.
224 The first 128, 192 or 256 bits in the key are used for AES and the
225 rest is used to tie each cipher block to its logical position.
David Howells90831632006-12-16 12:13:14 +1100226
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800227config CRYPTO_PCBC
228 tristate "PCBC support"
229 select CRYPTO_BLKCIPHER
230 select CRYPTO_MANAGER
231 help
232 PCBC: Propagating Cipher Block Chaining mode
233 This block cipher algorithm is required for RxRPC.
234
235config CRYPTO_XTS
236 tristate "XTS support (EXPERIMENTAL)"
237 depends on EXPERIMENTAL
238 select CRYPTO_BLKCIPHER
239 select CRYPTO_MANAGER
240 select CRYPTO_GF128MUL
241 help
242 XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
243 key size 256, 384 or 512 bits. This implementation currently
244 can't handle a sectorsize which is not a multiple of 16 bytes.
245
Huang Ying150c7e82009-03-29 15:39:02 +0800246config CRYPTO_FPU
247 tristate
248 select CRYPTO_BLKCIPHER
249 select CRYPTO_MANAGER
250
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800251comment "Hash modes"
252
253config CRYPTO_HMAC
254 tristate "HMAC support"
255 select CRYPTO_HASH
256 select CRYPTO_MANAGER
257 help
258 HMAC: Keyed-Hashing for Message Authentication (RFC2104).
259 This is required for IPSec.
260
261config CRYPTO_XCBC
262 tristate "XCBC support"
263 depends on EXPERIMENTAL
264 select CRYPTO_HASH
265 select CRYPTO_MANAGER
266 help
267 XCBC: Keyed-Hashing with encryption algorithm
268 http://www.ietf.org/rfc/rfc3566.txt
269 http://csrc.nist.gov/encryption/modes/proposedmodes/
270 xcbc-mac/xcbc-mac-spec.pdf
271
Shane Wangf1939f72009-09-02 20:05:22 +1000272config CRYPTO_VMAC
273 tristate "VMAC support"
274 depends on EXPERIMENTAL
275 select CRYPTO_HASH
276 select CRYPTO_MANAGER
277 help
278 VMAC is a message authentication algorithm designed for
279 very high speed on 64-bit architectures.
280
281 See also:
282 <http://fastcrypto.org/vmac>
283
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800284comment "Digest"
285
286config CRYPTO_CRC32C
287 tristate "CRC32c CRC algorithm"
Herbert Xu5773a3e2008-07-08 20:54:28 +0800288 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800289 help
290 Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
291 by iSCSI for header and data digests and by others.
Herbert Xu69c35ef2008-11-07 15:11:47 +0800292 See Castagnoli93. Module will be crc32c.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800293
Austin Zhang8cb51ba2008-08-07 09:57:03 +0800294config CRYPTO_CRC32C_INTEL
295 tristate "CRC32c INTEL hardware acceleration"
296 depends on X86
297 select CRYPTO_HASH
298 help
299 In Intel processor with SSE4.2 supported, the processor will
300 support CRC32C implementation using hardware accelerated CRC32
301 instruction. This option will create 'crc32c-intel' module,
302 which will enable any routine to use the CRC32 instruction to
303 gain performance compared with software implementation.
304 Module will be crc32c-intel.
305
Huang Ying2cdc6892009-08-06 15:32:38 +1000306config CRYPTO_GHASH
307 tristate "GHASH digest algorithm"
308 select CRYPTO_SHASH
309 select CRYPTO_GF128MUL
310 help
311 GHASH is message digest algorithm for GCM (Galois/Counter Mode).
312
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800313config CRYPTO_MD4
314 tristate "MD4 digest algorithm"
Adrian-Ken Rueegsegger808a1762008-12-03 19:55:27 +0800315 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700316 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800317 MD4 message digest algorithm (RFC1320).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700318
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800319config CRYPTO_MD5
320 tristate "MD5 digest algorithm"
Adrian-Ken Rueegsegger14b75ba2008-12-03 19:57:12 +0800321 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700322 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800323 MD5 message digest algorithm (RFC1321).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700324
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800325config CRYPTO_MICHAEL_MIC
326 tristate "Michael MIC keyed digest algorithm"
Adrian-Ken Rueegsegger19e2bf12008-12-07 19:35:38 +0800327 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800328 help
329 Michael MIC is used for message integrity protection in TKIP
330 (IEEE 802.11i). This algorithm is required for TKIP, but it
331 should not be used for other purposes because of the weakness
332 of the algorithm.
333
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800334config CRYPTO_RMD128
Adrian Bunkb6d44342008-07-16 19:28:00 +0800335 tristate "RIPEMD-128 digest algorithm"
Herbert Xu7c4468b2008-11-08 09:10:40 +0800336 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800337 help
338 RIPEMD-128 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800339
Adrian Bunkb6d44342008-07-16 19:28:00 +0800340 RIPEMD-128 is a 128-bit cryptographic hash function. It should only
341 to be used as a secure replacement for RIPEMD. For other use cases
342 RIPEMD-160 should be used.
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800343
Adrian Bunkb6d44342008-07-16 19:28:00 +0800344 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
345 See <http://home.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800346
347config CRYPTO_RMD160
Adrian Bunkb6d44342008-07-16 19:28:00 +0800348 tristate "RIPEMD-160 digest algorithm"
Herbert Xue5835fb2008-11-08 09:18:51 +0800349 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800350 help
351 RIPEMD-160 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800352
Adrian Bunkb6d44342008-07-16 19:28:00 +0800353 RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
354 to be used as a secure replacement for the 128-bit hash functions
355 MD4, MD5 and it's predecessor RIPEMD
356 (not to be confused with RIPEMD-128).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800357
Adrian Bunkb6d44342008-07-16 19:28:00 +0800358 It's speed is comparable to SHA1 and there are no known attacks
359 against RIPEMD-160.
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800360
Adrian Bunkb6d44342008-07-16 19:28:00 +0800361 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
362 See <http://home.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800363
364config CRYPTO_RMD256
Adrian Bunkb6d44342008-07-16 19:28:00 +0800365 tristate "RIPEMD-256 digest algorithm"
Herbert Xud8a5e2e2008-11-08 09:58:10 +0800366 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800367 help
368 RIPEMD-256 is an optional extension of RIPEMD-128 with a
369 256 bit hash. It is intended for applications that require
370 longer hash-results, without needing a larger security level
371 (than RIPEMD-128).
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800372
Adrian Bunkb6d44342008-07-16 19:28:00 +0800373 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
374 See <http://home.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800375
376config CRYPTO_RMD320
Adrian Bunkb6d44342008-07-16 19:28:00 +0800377 tristate "RIPEMD-320 digest algorithm"
Herbert Xu3b8efb42008-11-08 10:11:09 +0800378 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800379 help
380 RIPEMD-320 is an optional extension of RIPEMD-160 with a
381 320 bit hash. It is intended for applications that require
382 longer hash-results, without needing a larger security level
383 (than RIPEMD-160).
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800384
Adrian Bunkb6d44342008-07-16 19:28:00 +0800385 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
386 See <http://home.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800387
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800388config CRYPTO_SHA1
389 tristate "SHA1 digest algorithm"
Adrian-Ken Rueegsegger54ccb362008-12-02 21:08:20 +0800390 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800391 help
392 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
393
394config CRYPTO_SHA256
395 tristate "SHA224 and SHA256 digest algorithm"
Adrian-Ken Rueegsegger50e109b52008-12-03 19:57:49 +0800396 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800397 help
398 SHA256 secure hash standard (DFIPS 180-2).
399
400 This version of SHA implements a 256 bit hash with 128 bits of
401 security against collision attacks.
402
Adrian Bunkb6d44342008-07-16 19:28:00 +0800403 This code also includes SHA-224, a 224 bit hash with 112 bits
404 of security against collision attacks.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800405
406config CRYPTO_SHA512
407 tristate "SHA384 and SHA512 digest algorithms"
Adrian-Ken Rueegseggerbd9d20d2008-12-17 16:49:02 +1100408 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800409 help
410 SHA512 secure hash standard (DFIPS 180-2).
411
412 This version of SHA implements a 512 bit hash with 256 bits of
413 security against collision attacks.
414
415 This code also includes SHA-384, a 384 bit hash with 192 bits
416 of security against collision attacks.
417
418config CRYPTO_TGR192
419 tristate "Tiger digest algorithms"
Adrian-Ken Rueegseggerf63fbd32008-12-03 19:58:32 +0800420 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800421 help
422 Tiger hash algorithm 192, 160 and 128-bit hashes
423
424 Tiger is a hash function optimized for 64-bit processors while
425 still having decent performance on 32-bit processors.
426 Tiger was developed by Ross Anderson and Eli Biham.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700427
428 See also:
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800429 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
430
431config CRYPTO_WP512
432 tristate "Whirlpool digest algorithms"
Adrian-Ken Rueegsegger49465102008-12-07 19:34:37 +0800433 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800434 help
435 Whirlpool hash algorithm 512, 384 and 256-bit hashes
436
437 Whirlpool-512 is part of the NESSIE cryptographic primitives.
438 Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
439
440 See also:
441 <http://planeta.terra.com.br/informatica/paulobarreto/WhirlpoolPage.html>
442
Huang Ying0e1227d2009-10-19 11:53:06 +0900443config CRYPTO_GHASH_CLMUL_NI_INTEL
444 tristate "GHASH digest algorithm (CLMUL-NI accelerated)"
445 select CRYPTO_SHASH
446 select CRYPTO_CRYPTD
447 help
448 GHASH is message digest algorithm for GCM (Galois/Counter Mode).
449 The implementation is accelerated by CLMUL-NI of Intel.
450
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800451comment "Ciphers"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700452
453config CRYPTO_AES
454 tristate "AES cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +1000455 select CRYPTO_ALGAPI
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/CryptoToolkit/aes/> for more information.
472
473config CRYPTO_AES_586
474 tristate "AES cipher algorithms (i586)"
Herbert Xucce9e062006-08-21 21:08:13 +1000475 depends on (X86 || UML_X86) && !64BIT
476 select CRYPTO_ALGAPI
Sebastian Siewior5157dea2007-11-10 19:07:16 +0800477 select CRYPTO_AES
Linus Torvalds1da177e2005-04-16 15:20:36 -0700478 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800479 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Linus Torvalds1da177e2005-04-16 15:20:36 -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.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700490
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800491 The AES specifies three key sizes: 128, 192 and 256 bits
Linus Torvalds1da177e2005-04-16 15:20:36 -0700492
493 See <http://csrc.nist.gov/encryption/aes/> for more information.
494
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700495config CRYPTO_AES_X86_64
496 tristate "AES cipher algorithms (x86_64)"
Herbert Xucce9e062006-08-21 21:08:13 +1000497 depends on (X86 || UML_X86) && 64BIT
498 select CRYPTO_ALGAPI
Sebastian Siewior81190b32007-11-08 21:25:04 +0800499 select CRYPTO_AES
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700500 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800501 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700502 algorithm.
503
504 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800505 both hardware and software across a wide range of computing
506 environments regardless of its use in feedback or non-feedback
507 modes. Its key setup time is excellent, and its key agility is
508 good. Rijndael's very low memory requirements make it very well
509 suited for restricted-space environments, in which it also
510 demonstrates excellent performance. Rijndael's operations are
511 among the easiest to defend against power and timing attacks.
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700512
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800513 The AES specifies three key sizes: 128, 192 and 256 bits
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700514
515 See <http://csrc.nist.gov/encryption/aes/> for more information.
516
Huang Ying54b6a1b2009-01-18 16:28:34 +1100517config CRYPTO_AES_NI_INTEL
518 tristate "AES cipher algorithms (AES-NI)"
519 depends on (X86 || UML_X86) && 64BIT
520 select CRYPTO_AES_X86_64
521 select CRYPTO_CRYPTD
522 select CRYPTO_ALGAPI
Huang Ying2cf4ac82009-03-29 15:41:20 +0800523 select CRYPTO_FPU
Huang Ying54b6a1b2009-01-18 16:28:34 +1100524 help
525 Use Intel AES-NI instructions for AES algorithm.
526
527 AES cipher algorithms (FIPS-197). AES uses the Rijndael
528 algorithm.
529
530 Rijndael appears to be consistently a very good performer in
531 both hardware and software across a wide range of computing
532 environments regardless of its use in feedback or non-feedback
533 modes. Its key setup time is excellent, and its key agility is
534 good. Rijndael's very low memory requirements make it very well
535 suited for restricted-space environments, in which it also
536 demonstrates excellent performance. Rijndael's operations are
537 among the easiest to defend against power and timing attacks.
538
539 The AES specifies three key sizes: 128, 192 and 256 bits
540
541 See <http://csrc.nist.gov/encryption/aes/> for more information.
542
Huang Ying2cf4ac82009-03-29 15:41:20 +0800543 In addition to AES cipher algorithm support, the
544 acceleration for some popular block cipher mode is supported
545 too, including ECB, CBC, CTR, LRW, PCBC, XTS.
546
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800547config CRYPTO_ANUBIS
548 tristate "Anubis cipher algorithm"
549 select CRYPTO_ALGAPI
550 help
551 Anubis cipher algorithm.
552
553 Anubis is a variable key length cipher which can use keys from
554 128 bits to 320 bits in length. It was evaluated as a entrant
555 in the NESSIE competition.
556
557 See also:
558 <https://www.cosic.esat.kuleuven.ac.be/nessie/reports/>
559 <http://planeta.terra.com.br/informatica/paulobarreto/AnubisPage.html>
560
561config CRYPTO_ARC4
562 tristate "ARC4 cipher algorithm"
563 select CRYPTO_ALGAPI
564 help
565 ARC4 cipher algorithm.
566
567 ARC4 is a stream cipher using keys ranging from 8 bits to 2048
568 bits in length. This algorithm is required for driver-based
569 WEP, but it should not be for other purposes because of the
570 weakness of the algorithm.
571
572config CRYPTO_BLOWFISH
573 tristate "Blowfish cipher algorithm"
574 select CRYPTO_ALGAPI
575 help
576 Blowfish cipher algorithm, by Bruce Schneier.
577
578 This is a variable key length cipher which can use keys from 32
579 bits to 448 bits in length. It's fast, simple and specifically
580 designed for use on "large microprocessors".
581
582 See also:
583 <http://www.schneier.com/blowfish.html>
584
585config CRYPTO_CAMELLIA
586 tristate "Camellia cipher algorithms"
587 depends on CRYPTO
588 select CRYPTO_ALGAPI
589 help
590 Camellia cipher algorithms module.
591
592 Camellia is a symmetric key block cipher developed jointly
593 at NTT and Mitsubishi Electric Corporation.
594
595 The Camellia specifies three key sizes: 128, 192 and 256 bits.
596
597 See also:
598 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
599
Linus Torvalds1da177e2005-04-16 15:20:36 -0700600config CRYPTO_CAST5
601 tristate "CAST5 (CAST-128) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000602 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700603 help
604 The CAST5 encryption algorithm (synonymous with CAST-128) is
605 described in RFC2144.
606
607config CRYPTO_CAST6
608 tristate "CAST6 (CAST-256) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000609 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700610 help
611 The CAST6 encryption algorithm (synonymous with CAST-256) is
612 described in RFC2612.
613
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800614config CRYPTO_DES
615 tristate "DES and Triple DES EDE cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +1000616 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700617 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800618 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700619
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800620config CRYPTO_FCRYPT
621 tristate "FCrypt cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000622 select CRYPTO_ALGAPI
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800623 select CRYPTO_BLKCIPHER
Linus Torvalds1da177e2005-04-16 15:20:36 -0700624 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800625 FCrypt algorithm used by RxRPC.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700626
627config CRYPTO_KHAZAD
628 tristate "Khazad cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000629 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700630 help
631 Khazad cipher algorithm.
632
633 Khazad was a finalist in the initial NESSIE competition. It is
634 an algorithm optimized for 64-bit processors with good performance
635 on 32-bit processors. Khazad uses an 128 bit key size.
636
637 See also:
638 <http://planeta.terra.com.br/informatica/paulobarreto/KhazadPage.html>
639
Tan Swee Heng2407d602007-11-23 19:45:00 +0800640config CRYPTO_SALSA20
641 tristate "Salsa20 stream cipher algorithm (EXPERIMENTAL)"
642 depends on EXPERIMENTAL
643 select CRYPTO_BLKCIPHER
644 help
645 Salsa20 stream cipher algorithm.
646
647 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
648 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
649
650 The Salsa20 stream cipher algorithm is designed by Daniel J.
651 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -0700652
Tan Swee Heng974e4b72007-12-10 15:52:56 +0800653config CRYPTO_SALSA20_586
654 tristate "Salsa20 stream cipher algorithm (i586) (EXPERIMENTAL)"
655 depends on (X86 || UML_X86) && !64BIT
656 depends on EXPERIMENTAL
657 select CRYPTO_BLKCIPHER
Tan Swee Heng974e4b72007-12-10 15:52:56 +0800658 help
659 Salsa20 stream cipher algorithm.
660
661 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
662 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
663
664 The Salsa20 stream cipher algorithm is designed by Daniel J.
665 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
666
Tan Swee Heng9a7dafb2007-12-18 00:04:40 +0800667config CRYPTO_SALSA20_X86_64
668 tristate "Salsa20 stream cipher algorithm (x86_64) (EXPERIMENTAL)"
669 depends on (X86 || UML_X86) && 64BIT
670 depends on EXPERIMENTAL
671 select CRYPTO_BLKCIPHER
Tan Swee Heng9a7dafb2007-12-18 00:04:40 +0800672 help
673 Salsa20 stream cipher algorithm.
674
675 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
676 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
677
678 The Salsa20 stream cipher algorithm is designed by Daniel J.
679 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
680
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800681config CRYPTO_SEED
682 tristate "SEED cipher algorithm"
683 select CRYPTO_ALGAPI
684 help
685 SEED cipher algorithm (RFC4269).
686
687 SEED is a 128-bit symmetric key block cipher that has been
688 developed by KISA (Korea Information Security Agency) as a
689 national standard encryption algorithm of the Republic of Korea.
690 It is a 16 round block cipher with the key size of 128 bit.
691
692 See also:
693 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
694
695config CRYPTO_SERPENT
696 tristate "Serpent cipher algorithm"
697 select CRYPTO_ALGAPI
698 help
699 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
700
701 Keys are allowed to be from 0 to 256 bits in length, in steps
702 of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
703 variant of Serpent for compatibility with old kerneli.org code.
704
705 See also:
706 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
707
708config CRYPTO_TEA
709 tristate "TEA, XTEA and XETA cipher algorithms"
710 select CRYPTO_ALGAPI
711 help
712 TEA cipher algorithm.
713
714 Tiny Encryption Algorithm is a simple cipher that uses
715 many rounds for security. It is very fast and uses
716 little memory.
717
718 Xtendend Tiny Encryption Algorithm is a modification to
719 the TEA algorithm to address a potential key weakness
720 in the TEA algorithm.
721
722 Xtendend Encryption Tiny Algorithm is a mis-implementation
723 of the XTEA algorithm for compatibility purposes.
724
725config CRYPTO_TWOFISH
726 tristate "Twofish cipher algorithm"
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_COMMON
741 tristate
742 help
743 Common parts of the Twofish cipher algorithm shared by the
744 generic c and the assembler implementations.
745
746config CRYPTO_TWOFISH_586
747 tristate "Twofish cipher algorithms (i586)"
748 depends on (X86 || UML_X86) && !64BIT
749 select CRYPTO_ALGAPI
750 select CRYPTO_TWOFISH_COMMON
751 help
752 Twofish cipher algorithm.
753
754 Twofish was submitted as an AES (Advanced Encryption Standard)
755 candidate cipher by researchers at CounterPane Systems. It is a
756 16 round block cipher supporting key sizes of 128, 192, and 256
757 bits.
758
759 See also:
760 <http://www.schneier.com/twofish.html>
761
762config CRYPTO_TWOFISH_X86_64
763 tristate "Twofish cipher algorithm (x86_64)"
764 depends on (X86 || UML_X86) && 64BIT
765 select CRYPTO_ALGAPI
766 select CRYPTO_TWOFISH_COMMON
767 help
768 Twofish cipher algorithm (x86_64).
769
770 Twofish was submitted as an AES (Advanced Encryption Standard)
771 candidate cipher by researchers at CounterPane Systems. It is a
772 16 round block cipher supporting key sizes of 128, 192, and 256
773 bits.
774
775 See also:
776 <http://www.schneier.com/twofish.html>
777
778comment "Compression"
779
Linus Torvalds1da177e2005-04-16 15:20:36 -0700780config CRYPTO_DEFLATE
781 tristate "Deflate compression algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +1000782 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700783 select ZLIB_INFLATE
784 select ZLIB_DEFLATE
785 help
786 This is the Deflate algorithm (RFC1951), specified for use in
787 IPSec with the IPCOMP protocol (RFC3173, RFC2394).
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800788
Linus Torvalds1da177e2005-04-16 15:20:36 -0700789 You will most probably want this if using IPSec.
790
Geert Uytterhoevenbf68e652009-03-04 15:15:49 +0800791config CRYPTO_ZLIB
792 tristate "Zlib compression algorithm"
793 select CRYPTO_PCOMP
794 select ZLIB_INFLATE
795 select ZLIB_DEFLATE
796 select NLATTR
797 help
798 This is the zlib algorithm.
799
Zoltan Sogor0b77abb2007-12-07 16:53:23 +0800800config CRYPTO_LZO
801 tristate "LZO compression algorithm"
802 select CRYPTO_ALGAPI
803 select LZO_COMPRESS
804 select LZO_DECOMPRESS
805 help
806 This is the LZO algorithm.
807
Neil Horman17f0f4a2008-08-14 22:15:52 +1000808comment "Random Number Generation"
809
810config CRYPTO_ANSI_CPRNG
811 tristate "Pseudo Random Number Generation for Cryptographic modules"
Neil Horman4e4ed832009-08-20 17:54:16 +1000812 default m
Neil Horman17f0f4a2008-08-14 22:15:52 +1000813 select CRYPTO_AES
814 select CRYPTO_RNG
Neil Horman17f0f4a2008-08-14 22:15:52 +1000815 help
816 This option enables the generic pseudo random number generator
817 for cryptographic modules. Uses the Algorithm specified in
Neil Horman4e4ed832009-08-20 17:54:16 +1000818 ANSI X9.31 A.2.4. Not this option must be enabled if CRYPTO_FIPS
819 is selected
Neil Horman17f0f4a2008-08-14 22:15:52 +1000820
Linus Torvalds1da177e2005-04-16 15:20:36 -0700821source "drivers/crypto/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700822
Herbert Xucce9e062006-08-21 21:08:13 +1000823endif # if CRYPTO