blob: 657bb82acd513d88250c1140b91496cf200d6315 [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"
Herbert Xuf2c89a12014-07-04 22:15:08 +080026 depends on (CRYPTO_ANSI_CPRNG || CRYPTO_DRBG) && !CRYPTO_MANAGER_DISABLE_TESTS
Jarod Wilson002c77a2014-07-02 15:37:30 -040027 depends on MODULE_SIG
Neil Hormanccb778e2008-08-05 14:13:08 +080028 help
29 This options enables the fips boot option which is
30 required if you want to system to operate in a FIPS 200
31 certification. You should say no unless you know what
Chuck Ebberte84c5482010-09-03 19:17:49 +080032 this is.
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
Herbert Xubc94e592010-06-03 20:33:06 +100083 select CRYPTO_PCOMP2
84 select CRYPTO_ALGAPI
85
86config CRYPTO_PCOMP2
87 tristate
Geert Uytterhoevena1d2f092009-03-04 15:05:33 +080088 select CRYPTO_ALGAPI2
89
Herbert Xu2b8c19d2006-09-21 11:31:44 +100090config CRYPTO_MANAGER
91 tristate "Cryptographic algorithm manager"
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110092 select CRYPTO_MANAGER2
Herbert Xu2b8c19d2006-09-21 11:31:44 +100093 help
94 Create default cryptographic template instantiations such as
95 cbc(aes).
96
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110097config CRYPTO_MANAGER2
98 def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y)
99 select CRYPTO_AEAD2
100 select CRYPTO_HASH2
101 select CRYPTO_BLKCIPHER2
Herbert Xubc94e592010-06-03 20:33:06 +1000102 select CRYPTO_PCOMP2
Herbert Xu6a0fcbb2008-12-10 23:29:44 +1100103
Steffen Klasserta38f7902011-09-27 07:23:50 +0200104config CRYPTO_USER
105 tristate "Userspace cryptographic algorithm configuration"
Herbert Xu5db017a2011-11-01 12:12:43 +1100106 depends on NET
Steffen Klasserta38f7902011-09-27 07:23:50 +0200107 select CRYPTO_MANAGER
108 help
Valdis.Kletnieks@vt.edud19978f2011-11-09 01:29:20 -0500109 Userspace configuration for cryptographic instantiations such as
Steffen Klasserta38f7902011-09-27 07:23:50 +0200110 cbc(aes).
111
Herbert Xu326a6342010-08-06 09:40:28 +0800112config CRYPTO_MANAGER_DISABLE_TESTS
113 bool "Disable run-time self tests"
Herbert Xu00ca28a2010-08-06 10:34:00 +0800114 default y
115 depends on CRYPTO_MANAGER2
Alexander Shishkin0b767f92010-06-03 20:53:43 +1000116 help
Herbert Xu326a6342010-08-06 09:40:28 +0800117 Disable run-time self tests that normally take place at
118 algorithm registration.
Alexander Shishkin0b767f92010-06-03 20:53:43 +1000119
Rik Snelc494e072006-11-29 18:59:44 +1100120config CRYPTO_GF128MUL
Jussi Kivilinna08c70fc2011-12-13 12:53:22 +0200121 tristate "GF(2^128) multiplication functions"
Rik Snelc494e072006-11-29 18:59:44 +1100122 help
123 Efficient table driven implementation of multiplications in the
124 field GF(2^128). This is needed by some cypher modes. This
125 option will be selected automatically if you select such a
126 cipher mode. Only select this option by hand if you expect to load
127 an external module that requires these functions.
128
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800129config CRYPTO_NULL
130 tristate "Null algorithms"
131 select CRYPTO_ALGAPI
132 select CRYPTO_BLKCIPHER
Herbert Xud35d2452008-11-08 08:09:56 +0800133 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800134 help
135 These are 'Null' algorithms, used by IPsec, which do nothing.
136
Steffen Klassert5068c7a2010-01-07 15:57:19 +1100137config CRYPTO_PCRYPT
Kees Cook3b4afaf2012-10-02 11:16:49 -0700138 tristate "Parallel crypto engine"
139 depends on SMP
Steffen Klassert5068c7a2010-01-07 15:57:19 +1100140 select PADATA
141 select CRYPTO_MANAGER
142 select CRYPTO_AEAD
143 help
144 This converts an arbitrary crypto algorithm into a parallel
145 algorithm that executes in kernel threads.
146
Huang Ying25c38d32009-02-19 14:33:40 +0800147config CRYPTO_WORKQUEUE
148 tristate
149
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800150config CRYPTO_CRYPTD
151 tristate "Software async crypto daemon"
Herbert Xudb131ef2006-09-21 11:44:08 +1000152 select CRYPTO_BLKCIPHER
Loc Hob8a28252008-05-14 21:23:00 +0800153 select CRYPTO_HASH
Herbert Xu43518402006-10-16 21:28:58 +1000154 select CRYPTO_MANAGER
Huang Ying254eff72009-02-19 14:42:19 +0800155 select CRYPTO_WORKQUEUE
Herbert Xudb131ef2006-09-21 11:44:08 +1000156 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800157 This is a generic software asynchronous crypto daemon that
158 converts an arbitrary synchronous software crypto algorithm
159 into an asynchronous algorithm that executes in a kernel thread.
160
Tim Chen1e65b812014-07-31 10:29:51 -0700161config CRYPTO_MCRYPTD
162 tristate "Software async multi-buffer crypto daemon"
163 select CRYPTO_BLKCIPHER
164 select CRYPTO_HASH
165 select CRYPTO_MANAGER
166 select CRYPTO_WORKQUEUE
167 help
168 This is a generic software asynchronous crypto daemon that
169 provides the kernel thread to assist multi-buffer crypto
170 algorithms for submitting jobs and flushing jobs in multi-buffer
171 crypto algorithms. Multi-buffer crypto algorithms are executed
172 in the context of this kernel thread and drivers can post
Ted Percival0e566732014-09-04 15:18:21 +0800173 their crypto request asynchronously to be processed by this daemon.
Tim Chen1e65b812014-07-31 10:29:51 -0700174
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800175config CRYPTO_AUTHENC
176 tristate "Authenc support"
177 select CRYPTO_AEAD
178 select CRYPTO_BLKCIPHER
179 select CRYPTO_MANAGER
180 select CRYPTO_HASH
181 help
182 Authenc: Combined mode wrapper for IPsec.
183 This is required for IPSec.
184
185config CRYPTO_TEST
186 tristate "Testing module"
187 depends on m
Herbert Xuda7f0332008-07-31 17:08:25 +0800188 select CRYPTO_MANAGER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800189 help
190 Quick & dirty crypto test module.
191
Ard Biesheuvela62b01c2013-09-20 09:55:40 +0200192config CRYPTO_ABLK_HELPER
Jussi Kivilinnaffaf9152012-06-18 14:06:58 +0300193 tristate
Jussi Kivilinnaffaf9152012-06-18 14:06:58 +0300194 select CRYPTO_CRYPTD
195
Jussi Kivilinna596d8752012-06-18 14:07:19 +0300196config CRYPTO_GLUE_HELPER_X86
197 tristate
198 depends on X86
199 select CRYPTO_ALGAPI
200
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800201comment "Authenticated Encryption with Associated Data"
202
203config CRYPTO_CCM
204 tristate "CCM support"
205 select CRYPTO_CTR
206 select CRYPTO_AEAD
207 help
208 Support for Counter with CBC MAC. Required for IPsec.
209
210config CRYPTO_GCM
211 tristate "GCM/GMAC support"
212 select CRYPTO_CTR
213 select CRYPTO_AEAD
Huang Ying9382d972009-08-06 15:34:26 +1000214 select CRYPTO_GHASH
Jussi Kivilinna9489667d2013-04-07 16:43:41 +0300215 select CRYPTO_NULL
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800216 help
217 Support for Galois/Counter Mode (GCM) and Galois Message
218 Authentication Code (GMAC). Required for IPSec.
219
220config CRYPTO_SEQIV
221 tristate "Sequence Number IV Generator"
222 select CRYPTO_AEAD
223 select CRYPTO_BLKCIPHER
Herbert Xu856e3f402015-05-21 15:11:13 +0800224 select CRYPTO_NULL
Herbert Xua0f000e2008-08-14 22:21:31 +1000225 select CRYPTO_RNG
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800226 help
227 This IV generator generates an IV based on a sequence number by
228 xoring it with a salt. This algorithm is mainly useful for CTR
229
230comment "Block modes"
Herbert Xudb131ef2006-09-21 11:44:08 +1000231
232config CRYPTO_CBC
233 tristate "CBC support"
234 select CRYPTO_BLKCIPHER
Herbert Xu43518402006-10-16 21:28:58 +1000235 select CRYPTO_MANAGER
Herbert Xudb131ef2006-09-21 11:44:08 +1000236 help
237 CBC: Cipher Block Chaining mode
238 This block cipher algorithm is required for IPSec.
239
Joy Latten23e353c2007-10-23 08:50:32 +0800240config CRYPTO_CTR
241 tristate "CTR support"
242 select CRYPTO_BLKCIPHER
Herbert Xu0a270322007-11-30 21:38:37 +1100243 select CRYPTO_SEQIV
Joy Latten23e353c2007-10-23 08:50:32 +0800244 select CRYPTO_MANAGER
Joy Latten23e353c2007-10-23 08:50:32 +0800245 help
246 CTR: Counter mode
247 This block cipher algorithm is required for IPSec.
248
Kevin Coffman76cb9522008-03-24 21:26:16 +0800249config CRYPTO_CTS
250 tristate "CTS support"
251 select CRYPTO_BLKCIPHER
252 help
253 CTS: Cipher Text Stealing
254 This is the Cipher Text Stealing mode as described by
255 Section 8 of rfc2040 and referenced by rfc3962.
256 (rfc3962 includes errata information in its Appendix A)
257 This mode is required for Kerberos gss mechanism support
258 for AES encryption.
259
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800260config CRYPTO_ECB
261 tristate "ECB support"
Herbert Xu653ebd92007-11-27 19:48:27 +0800262 select CRYPTO_BLKCIPHER
Herbert Xu124b53d2007-04-16 20:49:20 +1000263 select CRYPTO_MANAGER
264 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800265 ECB: Electronic CodeBook mode
266 This is the simplest block cipher algorithm. It simply encrypts
267 the input block by block.
Herbert Xu124b53d2007-04-16 20:49:20 +1000268
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800269config CRYPTO_LRW
Jussi Kivilinna2470a2b2011-12-13 12:52:51 +0200270 tristate "LRW support"
David Howells90831632006-12-16 12:13:14 +1100271 select CRYPTO_BLKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800272 select CRYPTO_MANAGER
273 select CRYPTO_GF128MUL
David Howells90831632006-12-16 12:13:14 +1100274 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800275 LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
276 narrow block cipher mode for dm-crypt. Use it with cipher
277 specification string aes-lrw-benbi, the key must be 256, 320 or 384.
278 The first 128, 192 or 256 bits in the key are used for AES and the
279 rest is used to tie each cipher block to its logical position.
David Howells90831632006-12-16 12:13:14 +1100280
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800281config CRYPTO_PCBC
282 tristate "PCBC support"
283 select CRYPTO_BLKCIPHER
284 select CRYPTO_MANAGER
285 help
286 PCBC: Propagating Cipher Block Chaining mode
287 This block cipher algorithm is required for RxRPC.
288
289config CRYPTO_XTS
Jussi Kivilinna5bcf8e62011-12-13 12:52:56 +0200290 tristate "XTS support"
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800291 select CRYPTO_BLKCIPHER
292 select CRYPTO_MANAGER
293 select CRYPTO_GF128MUL
294 help
295 XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
296 key size 256, 384 or 512 bits. This implementation currently
297 can't handle a sectorsize which is not a multiple of 16 bytes.
298
299comment "Hash modes"
300
Jussi Kivilinna93b5e862013-04-08 10:48:44 +0300301config CRYPTO_CMAC
302 tristate "CMAC support"
303 select CRYPTO_HASH
304 select CRYPTO_MANAGER
305 help
306 Cipher-based Message Authentication Code (CMAC) specified by
307 The National Institute of Standards and Technology (NIST).
308
309 https://tools.ietf.org/html/rfc4493
310 http://csrc.nist.gov/publications/nistpubs/800-38B/SP_800-38B.pdf
311
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800312config CRYPTO_HMAC
313 tristate "HMAC support"
314 select CRYPTO_HASH
315 select CRYPTO_MANAGER
316 help
317 HMAC: Keyed-Hashing for Message Authentication (RFC2104).
318 This is required for IPSec.
319
320config CRYPTO_XCBC
321 tristate "XCBC support"
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800322 select CRYPTO_HASH
323 select CRYPTO_MANAGER
324 help
325 XCBC: Keyed-Hashing with encryption algorithm
326 http://www.ietf.org/rfc/rfc3566.txt
327 http://csrc.nist.gov/encryption/modes/proposedmodes/
328 xcbc-mac/xcbc-mac-spec.pdf
329
Shane Wangf1939f72009-09-02 20:05:22 +1000330config CRYPTO_VMAC
331 tristate "VMAC support"
Shane Wangf1939f72009-09-02 20:05:22 +1000332 select CRYPTO_HASH
333 select CRYPTO_MANAGER
334 help
335 VMAC is a message authentication algorithm designed for
336 very high speed on 64-bit architectures.
337
338 See also:
339 <http://fastcrypto.org/vmac>
340
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800341comment "Digest"
342
343config CRYPTO_CRC32C
344 tristate "CRC32c CRC algorithm"
Herbert Xu5773a3e2008-07-08 20:54:28 +0800345 select CRYPTO_HASH
Darrick J. Wong6a0962b2012-03-23 15:02:25 -0700346 select CRC32
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800347 help
348 Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
349 by iSCSI for header and data digests and by others.
Herbert Xu69c35ef2008-11-07 15:11:47 +0800350 See Castagnoli93. Module will be crc32c.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800351
Austin Zhang8cb51ba2008-08-07 09:57:03 +0800352config CRYPTO_CRC32C_INTEL
353 tristate "CRC32c INTEL hardware acceleration"
354 depends on X86
355 select CRYPTO_HASH
356 help
357 In Intel processor with SSE4.2 supported, the processor will
358 support CRC32C implementation using hardware accelerated CRC32
359 instruction. This option will create 'crc32c-intel' module,
360 which will enable any routine to use the CRC32 instruction to
361 gain performance compared with software implementation.
362 Module will be crc32c-intel.
363
David S. Miller442a7c42012-08-22 20:47:36 -0700364config CRYPTO_CRC32C_SPARC64
365 tristate "CRC32c CRC algorithm (SPARC64)"
366 depends on SPARC64
367 select CRYPTO_HASH
368 select CRC32
369 help
370 CRC32c CRC algorithm implemented using sparc64 crypto instructions,
371 when available.
372
Alexander Boyko78c37d12013-01-10 18:54:59 +0400373config CRYPTO_CRC32
374 tristate "CRC32 CRC algorithm"
375 select CRYPTO_HASH
376 select CRC32
377 help
378 CRC-32-IEEE 802.3 cyclic redundancy-check algorithm.
379 Shash crypto api wrappers to crc32_le function.
380
381config CRYPTO_CRC32_PCLMUL
382 tristate "CRC32 PCLMULQDQ hardware acceleration"
383 depends on X86
384 select CRYPTO_HASH
385 select CRC32
386 help
387 From Intel Westmere and AMD Bulldozer processor with SSE4.2
388 and PCLMULQDQ supported, the processor will support
389 CRC32 PCLMULQDQ implementation using hardware accelerated PCLMULQDQ
390 instruction. This option will create 'crc32-plcmul' module,
391 which will enable any routine to use the CRC-32-IEEE 802.3 checksum
392 and gain better performance as compared with the table implementation.
393
Herbert Xu684115212013-09-07 12:56:26 +1000394config CRYPTO_CRCT10DIF
395 tristate "CRCT10DIF algorithm"
396 select CRYPTO_HASH
397 help
398 CRC T10 Data Integrity Field computation is being cast as
399 a crypto transform. This allows for faster crc t10 diff
400 transforms to be used if they are available.
401
402config CRYPTO_CRCT10DIF_PCLMUL
403 tristate "CRCT10DIF PCLMULQDQ hardware acceleration"
404 depends on X86 && 64BIT && CRC_T10DIF
405 select CRYPTO_HASH
406 help
407 For x86_64 processors with SSE4.2 and PCLMULQDQ supported,
408 CRC T10 DIF PCLMULQDQ computation can be hardware
409 accelerated PCLMULQDQ instruction. This option will create
410 'crct10dif-plcmul' module, which is faster when computing the
411 crct10dif checksum as compared with the generic table implementation.
412
Huang Ying2cdc6892009-08-06 15:32:38 +1000413config CRYPTO_GHASH
414 tristate "GHASH digest algorithm"
Huang Ying2cdc6892009-08-06 15:32:38 +1000415 select CRYPTO_GF128MUL
416 help
417 GHASH is message digest algorithm for GCM (Galois/Counter Mode).
418
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800419config CRYPTO_MD4
420 tristate "MD4 digest algorithm"
Adrian-Ken Rueegsegger808a1762008-12-03 19:55:27 +0800421 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700422 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800423 MD4 message digest algorithm (RFC1320).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700424
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800425config CRYPTO_MD5
426 tristate "MD5 digest algorithm"
Adrian-Ken Rueegsegger14b75ba2008-12-03 19:57:12 +0800427 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700428 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800429 MD5 message digest algorithm (RFC1321).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700430
Aaro Koskinend69e75d2014-12-21 22:54:02 +0200431config CRYPTO_MD5_OCTEON
432 tristate "MD5 digest algorithm (OCTEON)"
433 depends on CPU_CAVIUM_OCTEON
434 select CRYPTO_MD5
435 select CRYPTO_HASH
436 help
437 MD5 message digest algorithm (RFC1321) implemented
438 using OCTEON crypto instructions, when available.
439
Markus Stockhausene8e59952015-03-01 19:30:46 +0100440config CRYPTO_MD5_PPC
441 tristate "MD5 digest algorithm (PPC)"
442 depends on PPC
443 select CRYPTO_HASH
444 help
445 MD5 message digest algorithm (RFC1321) implemented
446 in PPC assembler.
447
David S. Millerfa4dfed2012-08-19 21:51:26 -0700448config CRYPTO_MD5_SPARC64
449 tristate "MD5 digest algorithm (SPARC64)"
450 depends on SPARC64
451 select CRYPTO_MD5
452 select CRYPTO_HASH
453 help
454 MD5 message digest algorithm (RFC1321) implemented
455 using sparc64 crypto instructions, when available.
456
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800457config CRYPTO_MICHAEL_MIC
458 tristate "Michael MIC keyed digest algorithm"
Adrian-Ken Rueegsegger19e2bf12008-12-07 19:35:38 +0800459 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800460 help
461 Michael MIC is used for message integrity protection in TKIP
462 (IEEE 802.11i). This algorithm is required for TKIP, but it
463 should not be used for other purposes because of the weakness
464 of the algorithm.
465
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800466config CRYPTO_RMD128
Adrian Bunkb6d44342008-07-16 19:28:00 +0800467 tristate "RIPEMD-128 digest algorithm"
Herbert Xu7c4468b2008-11-08 09:10:40 +0800468 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800469 help
470 RIPEMD-128 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800471
Adrian Bunkb6d44342008-07-16 19:28:00 +0800472 RIPEMD-128 is a 128-bit cryptographic hash function. It should only
Michael Witten35ed4b32011-07-09 04:02:31 +0000473 be used as a secure replacement for RIPEMD. For other use cases,
Adrian Bunkb6d44342008-07-16 19:28:00 +0800474 RIPEMD-160 should be used.
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800475
Adrian Bunkb6d44342008-07-16 19:28:00 +0800476 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800477 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800478
479config CRYPTO_RMD160
Adrian Bunkb6d44342008-07-16 19:28:00 +0800480 tristate "RIPEMD-160 digest algorithm"
Herbert Xue5835fb2008-11-08 09:18:51 +0800481 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800482 help
483 RIPEMD-160 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800484
Adrian Bunkb6d44342008-07-16 19:28:00 +0800485 RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
486 to be used as a secure replacement for the 128-bit hash functions
487 MD4, MD5 and it's predecessor RIPEMD
488 (not to be confused with RIPEMD-128).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800489
Adrian Bunkb6d44342008-07-16 19:28:00 +0800490 It's speed is comparable to SHA1 and there are no known attacks
491 against RIPEMD-160.
Adrian-Ken Rueegsegger534fe2c2008-05-09 21:30:27 +0800492
Adrian Bunkb6d44342008-07-16 19:28:00 +0800493 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800494 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c2008-05-09 21:30:27 +0800495
496config CRYPTO_RMD256
Adrian Bunkb6d44342008-07-16 19:28:00 +0800497 tristate "RIPEMD-256 digest algorithm"
Herbert Xud8a5e2e2008-11-08 09:58:10 +0800498 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800499 help
500 RIPEMD-256 is an optional extension of RIPEMD-128 with a
501 256 bit hash. It is intended for applications that require
502 longer hash-results, without needing a larger security level
503 (than RIPEMD-128).
Adrian-Ken Rueegsegger534fe2c2008-05-09 21:30:27 +0800504
Adrian Bunkb6d44342008-07-16 19:28:00 +0800505 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800506 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c2008-05-09 21:30:27 +0800507
508config CRYPTO_RMD320
Adrian Bunkb6d44342008-07-16 19:28:00 +0800509 tristate "RIPEMD-320 digest algorithm"
Herbert Xu3b8efb42008-11-08 10:11:09 +0800510 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800511 help
512 RIPEMD-320 is an optional extension of RIPEMD-160 with a
513 320 bit hash. It is intended for applications that require
514 longer hash-results, without needing a larger security level
515 (than RIPEMD-160).
Adrian-Ken Rueegsegger534fe2c2008-05-09 21:30:27 +0800516
Adrian Bunkb6d44342008-07-16 19:28:00 +0800517 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800518 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800519
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800520config CRYPTO_SHA1
521 tristate "SHA1 digest algorithm"
Adrian-Ken Rueegsegger54ccb362008-12-02 21:08:20 +0800522 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800523 help
524 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
525
Mathias Krause66be8952011-08-04 20:19:25 +0200526config CRYPTO_SHA1_SSSE3
chandramouli narayanan7c1da8d2014-03-20 15:14:00 -0700527 tristate "SHA1 digest algorithm (SSSE3/AVX/AVX2)"
Mathias Krause66be8952011-08-04 20:19:25 +0200528 depends on X86 && 64BIT
529 select CRYPTO_SHA1
530 select CRYPTO_HASH
531 help
532 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
533 using Supplemental SSE3 (SSSE3) instructions or Advanced Vector
chandramouli narayanan7c1da8d2014-03-20 15:14:00 -0700534 Extensions (AVX/AVX2), when available.
Mathias Krause66be8952011-08-04 20:19:25 +0200535
Tim Chen8275d1a2013-03-26 13:59:17 -0700536config CRYPTO_SHA256_SSSE3
537 tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2)"
538 depends on X86 && 64BIT
539 select CRYPTO_SHA256
540 select CRYPTO_HASH
541 help
542 SHA-256 secure hash standard (DFIPS 180-2) implemented
543 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
544 Extensions version 1 (AVX1), or Advanced Vector Extensions
545 version 2 (AVX2) instructions, when available.
546
Tim Chen87de4572013-03-26 14:00:02 -0700547config CRYPTO_SHA512_SSSE3
548 tristate "SHA512 digest algorithm (SSSE3/AVX/AVX2)"
549 depends on X86 && 64BIT
550 select CRYPTO_SHA512
551 select CRYPTO_HASH
552 help
553 SHA-512 secure hash standard (DFIPS 180-2) implemented
554 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
555 Extensions version 1 (AVX1), or Advanced Vector Extensions
556 version 2 (AVX2) instructions, when available.
557
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200558config CRYPTO_SHA1_OCTEON
559 tristate "SHA1 digest algorithm (OCTEON)"
560 depends on CPU_CAVIUM_OCTEON
561 select CRYPTO_SHA1
562 select CRYPTO_HASH
563 help
564 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
565 using OCTEON crypto instructions, when available.
566
David S. Miller4ff28d42012-08-19 15:41:53 -0700567config CRYPTO_SHA1_SPARC64
568 tristate "SHA1 digest algorithm (SPARC64)"
569 depends on SPARC64
570 select CRYPTO_SHA1
571 select CRYPTO_HASH
572 help
573 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
574 using sparc64 crypto instructions, when available.
575
Michael Ellerman323a6bf2012-09-13 23:00:49 +0000576config CRYPTO_SHA1_PPC
577 tristate "SHA1 digest algorithm (powerpc)"
578 depends on PPC
579 help
580 This is the powerpc hardware accelerated implementation of the
581 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
582
Markus Stockhausend9850fc2015-02-24 20:36:50 +0100583config CRYPTO_SHA1_PPC_SPE
584 tristate "SHA1 digest algorithm (PPC SPE)"
585 depends on PPC && SPE
586 help
587 SHA-1 secure hash standard (DFIPS 180-4) implemented
588 using powerpc SPE SIMD instruction set.
589
Tim Chen1e65b812014-07-31 10:29:51 -0700590config CRYPTO_SHA1_MB
591 tristate "SHA1 digest algorithm (x86_64 Multi-Buffer, Experimental)"
592 depends on X86 && 64BIT
593 select CRYPTO_SHA1
594 select CRYPTO_HASH
595 select CRYPTO_MCRYPTD
596 help
597 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
598 using multi-buffer technique. This algorithm computes on
599 multiple data lanes concurrently with SIMD instructions for
600 better throughput. It should not be enabled by default but
601 used when there is significant amount of work to keep the keep
602 the data lanes filled to get performance benefit. If the data
603 lanes remain unfilled, a flush operation will be initiated to
604 process the crypto jobs, adding a slight latency.
605
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800606config CRYPTO_SHA256
607 tristate "SHA224 and SHA256 digest algorithm"
Adrian-Ken Rueegsegger50e109b52008-12-03 19:57:49 +0800608 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800609 help
610 SHA256 secure hash standard (DFIPS 180-2).
611
612 This version of SHA implements a 256 bit hash with 128 bits of
613 security against collision attacks.
614
Adrian Bunkb6d44342008-07-16 19:28:00 +0800615 This code also includes SHA-224, a 224 bit hash with 112 bits
616 of security against collision attacks.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800617
Markus Stockhausen2ecc1e92015-01-30 15:39:34 +0100618config CRYPTO_SHA256_PPC_SPE
619 tristate "SHA224 and SHA256 digest algorithm (PPC SPE)"
620 depends on PPC && SPE
621 select CRYPTO_SHA256
622 select CRYPTO_HASH
623 help
624 SHA224 and SHA256 secure hash standard (DFIPS 180-2)
625 implemented using powerpc SPE SIMD instruction set.
626
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200627config CRYPTO_SHA256_OCTEON
628 tristate "SHA224 and SHA256 digest algorithm (OCTEON)"
629 depends on CPU_CAVIUM_OCTEON
630 select CRYPTO_SHA256
631 select CRYPTO_HASH
632 help
633 SHA-256 secure hash standard (DFIPS 180-2) implemented
634 using OCTEON crypto instructions, when available.
635
David S. Miller86c93b22012-08-19 17:11:37 -0700636config CRYPTO_SHA256_SPARC64
637 tristate "SHA224 and SHA256 digest algorithm (SPARC64)"
638 depends on SPARC64
639 select CRYPTO_SHA256
640 select CRYPTO_HASH
641 help
642 SHA-256 secure hash standard (DFIPS 180-2) implemented
643 using sparc64 crypto instructions, when available.
644
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800645config CRYPTO_SHA512
646 tristate "SHA384 and SHA512 digest algorithms"
Adrian-Ken Rueegseggerbd9d20d2008-12-17 16:49:02 +1100647 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800648 help
649 SHA512 secure hash standard (DFIPS 180-2).
650
651 This version of SHA implements a 512 bit hash with 256 bits of
652 security against collision attacks.
653
654 This code also includes SHA-384, a 384 bit hash with 192 bits
655 of security against collision attacks.
656
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200657config CRYPTO_SHA512_OCTEON
658 tristate "SHA384 and SHA512 digest algorithms (OCTEON)"
659 depends on CPU_CAVIUM_OCTEON
660 select CRYPTO_SHA512
661 select CRYPTO_HASH
662 help
663 SHA-512 secure hash standard (DFIPS 180-2) implemented
664 using OCTEON crypto instructions, when available.
665
David S. Miller775e0c62012-08-19 17:37:56 -0700666config CRYPTO_SHA512_SPARC64
667 tristate "SHA384 and SHA512 digest algorithm (SPARC64)"
668 depends on SPARC64
669 select CRYPTO_SHA512
670 select CRYPTO_HASH
671 help
672 SHA-512 secure hash standard (DFIPS 180-2) implemented
673 using sparc64 crypto instructions, when available.
674
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800675config CRYPTO_TGR192
676 tristate "Tiger digest algorithms"
Adrian-Ken Rueegseggerf63fbd32008-12-03 19:58:32 +0800677 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800678 help
679 Tiger hash algorithm 192, 160 and 128-bit hashes
680
681 Tiger is a hash function optimized for 64-bit processors while
682 still having decent performance on 32-bit processors.
683 Tiger was developed by Ross Anderson and Eli Biham.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700684
685 See also:
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800686 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
687
688config CRYPTO_WP512
689 tristate "Whirlpool digest algorithms"
Adrian-Ken Rueegsegger49465102008-12-07 19:34:37 +0800690 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800691 help
692 Whirlpool hash algorithm 512, 384 and 256-bit hashes
693
694 Whirlpool-512 is part of the NESSIE cryptographic primitives.
695 Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
696
697 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800698 <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html>
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800699
Huang Ying0e1227d2009-10-19 11:53:06 +0900700config CRYPTO_GHASH_CLMUL_NI_INTEL
701 tristate "GHASH digest algorithm (CLMUL-NI accelerated)"
Richard Weinberger8af00862011-06-08 20:56:29 +0800702 depends on X86 && 64BIT
Huang Ying0e1227d2009-10-19 11:53:06 +0900703 select CRYPTO_CRYPTD
704 help
705 GHASH is message digest algorithm for GCM (Galois/Counter Mode).
706 The implementation is accelerated by CLMUL-NI of Intel.
707
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800708comment "Ciphers"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700709
710config CRYPTO_AES
711 tristate "AES cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +1000712 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700713 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800714 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Linus Torvalds1da177e2005-04-16 15:20:36 -0700715 algorithm.
716
717 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800718 both hardware and software across a wide range of computing
719 environments regardless of its use in feedback or non-feedback
720 modes. Its key setup time is excellent, and its key agility is
721 good. Rijndael's very low memory requirements make it very well
722 suited for restricted-space environments, in which it also
723 demonstrates excellent performance. Rijndael's operations are
724 among the easiest to defend against power and timing attacks.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700725
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800726 The AES specifies three key sizes: 128, 192 and 256 bits
Linus Torvalds1da177e2005-04-16 15:20:36 -0700727
728 See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
729
730config CRYPTO_AES_586
731 tristate "AES cipher algorithms (i586)"
Herbert Xucce9e062006-08-21 21:08:13 +1000732 depends on (X86 || UML_X86) && !64BIT
733 select CRYPTO_ALGAPI
Sebastian Siewior5157dea2007-11-10 19:07:16 +0800734 select CRYPTO_AES
Linus Torvalds1da177e2005-04-16 15:20:36 -0700735 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800736 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Linus Torvalds1da177e2005-04-16 15:20:36 -0700737 algorithm.
738
739 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800740 both hardware and software across a wide range of computing
741 environments regardless of its use in feedback or non-feedback
742 modes. Its key setup time is excellent, and its key agility is
743 good. Rijndael's very low memory requirements make it very well
744 suited for restricted-space environments, in which it also
745 demonstrates excellent performance. Rijndael's operations are
746 among the easiest to defend against power and timing attacks.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700747
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800748 The AES specifies three key sizes: 128, 192 and 256 bits
Linus Torvalds1da177e2005-04-16 15:20:36 -0700749
750 See <http://csrc.nist.gov/encryption/aes/> for more information.
751
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700752config CRYPTO_AES_X86_64
753 tristate "AES cipher algorithms (x86_64)"
Herbert Xucce9e062006-08-21 21:08:13 +1000754 depends on (X86 || UML_X86) && 64BIT
755 select CRYPTO_ALGAPI
Sebastian Siewior81190b32007-11-08 21:25:04 +0800756 select CRYPTO_AES
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700757 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800758 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700759 algorithm.
760
761 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800762 both hardware and software across a wide range of computing
763 environments regardless of its use in feedback or non-feedback
764 modes. Its key setup time is excellent, and its key agility is
765 good. Rijndael's very low memory requirements make it very well
766 suited for restricted-space environments, in which it also
767 demonstrates excellent performance. Rijndael's operations are
768 among the easiest to defend against power and timing attacks.
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700769
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800770 The AES specifies three key sizes: 128, 192 and 256 bits
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700771
772 See <http://csrc.nist.gov/encryption/aes/> for more information.
773
Huang Ying54b6a1b2009-01-18 16:28:34 +1100774config CRYPTO_AES_NI_INTEL
775 tristate "AES cipher algorithms (AES-NI)"
Richard Weinberger8af00862011-06-08 20:56:29 +0800776 depends on X86
Mathias Krause0d258ef2010-11-27 16:34:46 +0800777 select CRYPTO_AES_X86_64 if 64BIT
778 select CRYPTO_AES_586 if !64BIT
Huang Ying54b6a1b2009-01-18 16:28:34 +1100779 select CRYPTO_CRYPTD
Ard Biesheuvel801201a2013-09-20 09:55:41 +0200780 select CRYPTO_ABLK_HELPER
Huang Ying54b6a1b2009-01-18 16:28:34 +1100781 select CRYPTO_ALGAPI
Jussi Kivilinna7643a112013-04-10 18:39:20 +0300782 select CRYPTO_GLUE_HELPER_X86 if 64BIT
Jussi Kivilinna023af602012-07-22 18:18:37 +0300783 select CRYPTO_LRW
784 select CRYPTO_XTS
Huang Ying54b6a1b2009-01-18 16:28:34 +1100785 help
786 Use Intel AES-NI instructions for AES algorithm.
787
788 AES cipher algorithms (FIPS-197). AES uses the Rijndael
789 algorithm.
790
791 Rijndael appears to be consistently a very good performer in
792 both hardware and software across a wide range of computing
793 environments regardless of its use in feedback or non-feedback
794 modes. Its key setup time is excellent, and its key agility is
795 good. Rijndael's very low memory requirements make it very well
796 suited for restricted-space environments, in which it also
797 demonstrates excellent performance. Rijndael's operations are
798 among the easiest to defend against power and timing attacks.
799
800 The AES specifies three key sizes: 128, 192 and 256 bits
801
802 See <http://csrc.nist.gov/encryption/aes/> for more information.
803
Mathias Krause0d258ef2010-11-27 16:34:46 +0800804 In addition to AES cipher algorithm support, the acceleration
805 for some popular block cipher mode is supported too, including
806 ECB, CBC, LRW, PCBC, XTS. The 64 bit version has additional
807 acceleration for CTR.
Huang Ying2cf4ac82009-03-29 15:41:20 +0800808
David S. Miller9bf48522012-08-21 03:58:13 -0700809config CRYPTO_AES_SPARC64
810 tristate "AES cipher algorithms (SPARC64)"
811 depends on SPARC64
812 select CRYPTO_CRYPTD
813 select CRYPTO_ALGAPI
814 help
815 Use SPARC64 crypto opcodes for AES algorithm.
816
817 AES cipher algorithms (FIPS-197). AES uses the Rijndael
818 algorithm.
819
820 Rijndael appears to be consistently a very good performer in
821 both hardware and software across a wide range of computing
822 environments regardless of its use in feedback or non-feedback
823 modes. Its key setup time is excellent, and its key agility is
824 good. Rijndael's very low memory requirements make it very well
825 suited for restricted-space environments, in which it also
826 demonstrates excellent performance. Rijndael's operations are
827 among the easiest to defend against power and timing attacks.
828
829 The AES specifies three key sizes: 128, 192 and 256 bits
830
831 See <http://csrc.nist.gov/encryption/aes/> for more information.
832
833 In addition to AES cipher algorithm support, the acceleration
834 for some popular block cipher mode is supported too, including
835 ECB and CBC.
836
Markus Stockhausen504c6142015-02-22 10:00:10 +0100837config CRYPTO_AES_PPC_SPE
838 tristate "AES cipher algorithms (PPC SPE)"
839 depends on PPC && SPE
840 help
841 AES cipher algorithms (FIPS-197). Additionally the acceleration
842 for popular block cipher modes ECB, CBC, CTR and XTS is supported.
843 This module should only be used for low power (router) devices
844 without hardware AES acceleration (e.g. caam crypto). It reduces the
845 size of the AES tables from 16KB to 8KB + 256 bytes and mitigates
846 timining attacks. Nevertheless it might be not as secure as other
847 architecture specific assembler implementations that work on 1KB
848 tables or 256 bytes S-boxes.
849
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800850config CRYPTO_ANUBIS
851 tristate "Anubis cipher algorithm"
852 select CRYPTO_ALGAPI
853 help
854 Anubis cipher algorithm.
855
856 Anubis is a variable key length cipher which can use keys from
857 128 bits to 320 bits in length. It was evaluated as a entrant
858 in the NESSIE competition.
859
860 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800861 <https://www.cosic.esat.kuleuven.be/nessie/reports/>
862 <http://www.larc.usp.br/~pbarreto/AnubisPage.html>
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800863
864config CRYPTO_ARC4
865 tristate "ARC4 cipher algorithm"
Sebastian Andrzej Siewiorb9b0f082012-06-26 18:13:46 +0200866 select CRYPTO_BLKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800867 help
868 ARC4 cipher algorithm.
869
870 ARC4 is a stream cipher using keys ranging from 8 bits to 2048
871 bits in length. This algorithm is required for driver-based
872 WEP, but it should not be for other purposes because of the
873 weakness of the algorithm.
874
875config CRYPTO_BLOWFISH
876 tristate "Blowfish cipher algorithm"
877 select CRYPTO_ALGAPI
Jussi Kivilinna52ba8672011-09-02 01:45:07 +0300878 select CRYPTO_BLOWFISH_COMMON
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800879 help
880 Blowfish cipher algorithm, by Bruce Schneier.
881
882 This is a variable key length cipher which can use keys from 32
883 bits to 448 bits in length. It's fast, simple and specifically
884 designed for use on "large microprocessors".
885
886 See also:
887 <http://www.schneier.com/blowfish.html>
888
Jussi Kivilinna52ba8672011-09-02 01:45:07 +0300889config CRYPTO_BLOWFISH_COMMON
890 tristate
891 help
892 Common parts of the Blowfish cipher algorithm shared by the
893 generic c and the assembler implementations.
894
895 See also:
896 <http://www.schneier.com/blowfish.html>
897
Jussi Kivilinna64b94ce2011-09-02 01:45:22 +0300898config CRYPTO_BLOWFISH_X86_64
899 tristate "Blowfish cipher algorithm (x86_64)"
Al Virof21a7c12012-04-08 20:31:22 -0400900 depends on X86 && 64BIT
Jussi Kivilinna64b94ce2011-09-02 01:45:22 +0300901 select CRYPTO_ALGAPI
902 select CRYPTO_BLOWFISH_COMMON
903 help
904 Blowfish cipher algorithm (x86_64), by Bruce Schneier.
905
906 This is a variable key length cipher which can use keys from 32
907 bits to 448 bits in length. It's fast, simple and specifically
908 designed for use on "large microprocessors".
909
910 See also:
911 <http://www.schneier.com/blowfish.html>
912
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800913config CRYPTO_CAMELLIA
914 tristate "Camellia cipher algorithms"
915 depends on CRYPTO
916 select CRYPTO_ALGAPI
917 help
918 Camellia cipher algorithms module.
919
920 Camellia is a symmetric key block cipher developed jointly
921 at NTT and Mitsubishi Electric Corporation.
922
923 The Camellia specifies three key sizes: 128, 192 and 256 bits.
924
925 See also:
926 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
927
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +0200928config CRYPTO_CAMELLIA_X86_64
929 tristate "Camellia cipher algorithm (x86_64)"
Al Virof21a7c12012-04-08 20:31:22 -0400930 depends on X86 && 64BIT
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +0200931 depends on CRYPTO
932 select CRYPTO_ALGAPI
Jussi Kivilinna964263a2012-06-18 14:07:29 +0300933 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +0200934 select CRYPTO_LRW
935 select CRYPTO_XTS
936 help
937 Camellia cipher algorithm module (x86_64).
938
939 Camellia is a symmetric key block cipher developed jointly
940 at NTT and Mitsubishi Electric Corporation.
941
942 The Camellia specifies three key sizes: 128, 192 and 256 bits.
943
944 See also:
945 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
946
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +0300947config CRYPTO_CAMELLIA_AESNI_AVX_X86_64
948 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)"
949 depends on X86 && 64BIT
950 depends on CRYPTO
951 select CRYPTO_ALGAPI
952 select CRYPTO_CRYPTD
Ard Biesheuvel801201a2013-09-20 09:55:41 +0200953 select CRYPTO_ABLK_HELPER
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +0300954 select CRYPTO_GLUE_HELPER_X86
955 select CRYPTO_CAMELLIA_X86_64
956 select CRYPTO_LRW
957 select CRYPTO_XTS
958 help
959 Camellia cipher algorithm module (x86_64/AES-NI/AVX).
960
961 Camellia is a symmetric key block cipher developed jointly
962 at NTT and Mitsubishi Electric Corporation.
963
964 The Camellia specifies three key sizes: 128, 192 and 256 bits.
965
966 See also:
967 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
968
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +0300969config CRYPTO_CAMELLIA_AESNI_AVX2_X86_64
970 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX2)"
971 depends on X86 && 64BIT
972 depends on CRYPTO
973 select CRYPTO_ALGAPI
974 select CRYPTO_CRYPTD
Ard Biesheuvel801201a2013-09-20 09:55:41 +0200975 select CRYPTO_ABLK_HELPER
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +0300976 select CRYPTO_GLUE_HELPER_X86
977 select CRYPTO_CAMELLIA_X86_64
978 select CRYPTO_CAMELLIA_AESNI_AVX_X86_64
979 select CRYPTO_LRW
980 select CRYPTO_XTS
981 help
982 Camellia cipher algorithm module (x86_64/AES-NI/AVX2).
983
984 Camellia is a symmetric key block cipher developed jointly
985 at NTT and Mitsubishi Electric Corporation.
986
987 The Camellia specifies three key sizes: 128, 192 and 256 bits.
988
989 See also:
990 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
991
David S. Miller81658ad2012-08-28 12:05:54 -0700992config CRYPTO_CAMELLIA_SPARC64
993 tristate "Camellia cipher algorithm (SPARC64)"
994 depends on SPARC64
995 depends on CRYPTO
996 select CRYPTO_ALGAPI
997 help
998 Camellia cipher algorithm module (SPARC64).
999
1000 Camellia is a symmetric key block cipher developed jointly
1001 at NTT and Mitsubishi Electric Corporation.
1002
1003 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1004
1005 See also:
1006 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1007
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001008config CRYPTO_CAST_COMMON
1009 tristate
1010 help
1011 Common parts of the CAST cipher algorithms shared by the
1012 generic c and the assembler implementations.
1013
Linus Torvalds1da177e2005-04-16 15:20:36 -07001014config CRYPTO_CAST5
1015 tristate "CAST5 (CAST-128) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001016 select CRYPTO_ALGAPI
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001017 select CRYPTO_CAST_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -07001018 help
1019 The CAST5 encryption algorithm (synonymous with CAST-128) is
1020 described in RFC2144.
1021
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001022config CRYPTO_CAST5_AVX_X86_64
1023 tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)"
1024 depends on X86 && 64BIT
1025 select CRYPTO_ALGAPI
1026 select CRYPTO_CRYPTD
Ard Biesheuvel801201a2013-09-20 09:55:41 +02001027 select CRYPTO_ABLK_HELPER
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001028 select CRYPTO_CAST_COMMON
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001029 select CRYPTO_CAST5
1030 help
1031 The CAST5 encryption algorithm (synonymous with CAST-128) is
1032 described in RFC2144.
1033
1034 This module provides the Cast5 cipher algorithm that processes
1035 sixteen blocks parallel using the AVX instruction set.
1036
Linus Torvalds1da177e2005-04-16 15:20:36 -07001037config CRYPTO_CAST6
1038 tristate "CAST6 (CAST-256) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001039 select CRYPTO_ALGAPI
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001040 select CRYPTO_CAST_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -07001041 help
1042 The CAST6 encryption algorithm (synonymous with CAST-256) is
1043 described in RFC2612.
1044
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001045config CRYPTO_CAST6_AVX_X86_64
1046 tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)"
1047 depends on X86 && 64BIT
1048 select CRYPTO_ALGAPI
1049 select CRYPTO_CRYPTD
Ard Biesheuvel801201a2013-09-20 09:55:41 +02001050 select CRYPTO_ABLK_HELPER
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001051 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001052 select CRYPTO_CAST_COMMON
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001053 select CRYPTO_CAST6
1054 select CRYPTO_LRW
1055 select CRYPTO_XTS
1056 help
1057 The CAST6 encryption algorithm (synonymous with CAST-256) is
1058 described in RFC2612.
1059
1060 This module provides the Cast6 cipher algorithm that processes
1061 eight blocks parallel using the AVX instruction set.
1062
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001063config CRYPTO_DES
1064 tristate "DES and Triple DES EDE cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +10001065 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -07001066 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001067 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
Linus Torvalds1da177e2005-04-16 15:20:36 -07001068
David S. Millerc5aac2d2012-08-25 22:37:23 -07001069config CRYPTO_DES_SPARC64
1070 tristate "DES and Triple DES EDE cipher algorithms (SPARC64)"
Dave Jones97da37b2012-10-02 17:13:20 -04001071 depends on SPARC64
David S. Millerc5aac2d2012-08-25 22:37:23 -07001072 select CRYPTO_ALGAPI
1073 select CRYPTO_DES
1074 help
1075 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3),
1076 optimized using SPARC64 crypto opcodes.
1077
Jussi Kivilinna6574e6c2014-06-09 20:59:54 +03001078config CRYPTO_DES3_EDE_X86_64
1079 tristate "Triple DES EDE cipher algorithm (x86-64)"
1080 depends on X86 && 64BIT
1081 select CRYPTO_ALGAPI
1082 select CRYPTO_DES
1083 help
1084 Triple DES EDE (FIPS 46-3) algorithm.
1085
1086 This module provides implementation of the Triple DES EDE cipher
1087 algorithm that is optimized for x86-64 processors. Two versions of
1088 algorithm are provided; regular processing one input block and
1089 one that processes three blocks parallel.
1090
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001091config CRYPTO_FCRYPT
1092 tristate "FCrypt cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001093 select CRYPTO_ALGAPI
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001094 select CRYPTO_BLKCIPHER
Linus Torvalds1da177e2005-04-16 15:20:36 -07001095 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001096 FCrypt algorithm used by RxRPC.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001097
1098config CRYPTO_KHAZAD
1099 tristate "Khazad cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001100 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -07001101 help
1102 Khazad cipher algorithm.
1103
1104 Khazad was a finalist in the initial NESSIE competition. It is
1105 an algorithm optimized for 64-bit processors with good performance
1106 on 32-bit processors. Khazad uses an 128 bit key size.
1107
1108 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001109 <http://www.larc.usp.br/~pbarreto/KhazadPage.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -07001110
Tan Swee Heng2407d602007-11-23 19:45:00 +08001111config CRYPTO_SALSA20
Kees Cook3b4afaf2012-10-02 11:16:49 -07001112 tristate "Salsa20 stream cipher algorithm"
Tan Swee Heng2407d602007-11-23 19:45:00 +08001113 select CRYPTO_BLKCIPHER
1114 help
1115 Salsa20 stream cipher algorithm.
1116
1117 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1118 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1119
1120 The Salsa20 stream cipher algorithm is designed by Daniel J.
1121 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -07001122
Tan Swee Heng974e4b72007-12-10 15:52:56 +08001123config CRYPTO_SALSA20_586
Kees Cook3b4afaf2012-10-02 11:16:49 -07001124 tristate "Salsa20 stream cipher algorithm (i586)"
Tan Swee Heng974e4b72007-12-10 15:52:56 +08001125 depends on (X86 || UML_X86) && !64BIT
Tan Swee Heng974e4b72007-12-10 15:52:56 +08001126 select CRYPTO_BLKCIPHER
Tan Swee Heng974e4b72007-12-10 15:52:56 +08001127 help
1128 Salsa20 stream cipher algorithm.
1129
1130 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1131 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1132
1133 The Salsa20 stream cipher algorithm is designed by Daniel J.
1134 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
1135
Tan Swee Heng9a7dafb2007-12-18 00:04:40 +08001136config CRYPTO_SALSA20_X86_64
Kees Cook3b4afaf2012-10-02 11:16:49 -07001137 tristate "Salsa20 stream cipher algorithm (x86_64)"
Tan Swee Heng9a7dafb2007-12-18 00:04:40 +08001138 depends on (X86 || UML_X86) && 64BIT
Tan Swee Heng9a7dafb2007-12-18 00:04:40 +08001139 select CRYPTO_BLKCIPHER
Tan Swee Heng9a7dafb2007-12-18 00:04:40 +08001140 help
1141 Salsa20 stream cipher algorithm.
1142
1143 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1144 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1145
1146 The Salsa20 stream cipher algorithm is designed by Daniel J.
1147 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
1148
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001149config CRYPTO_SEED
1150 tristate "SEED cipher algorithm"
1151 select CRYPTO_ALGAPI
1152 help
1153 SEED cipher algorithm (RFC4269).
1154
1155 SEED is a 128-bit symmetric key block cipher that has been
1156 developed by KISA (Korea Information Security Agency) as a
1157 national standard encryption algorithm of the Republic of Korea.
1158 It is a 16 round block cipher with the key size of 128 bit.
1159
1160 See also:
1161 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
1162
1163config CRYPTO_SERPENT
1164 tristate "Serpent cipher algorithm"
1165 select CRYPTO_ALGAPI
1166 help
1167 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1168
1169 Keys are allowed to be from 0 to 256 bits in length, in steps
1170 of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
1171 variant of Serpent for compatibility with old kerneli.org code.
1172
1173 See also:
1174 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1175
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001176config CRYPTO_SERPENT_SSE2_X86_64
1177 tristate "Serpent cipher algorithm (x86_64/SSE2)"
1178 depends on X86 && 64BIT
1179 select CRYPTO_ALGAPI
Jussi Kivilinna341975b2011-11-24 08:37:41 +02001180 select CRYPTO_CRYPTD
Ard Biesheuvel801201a2013-09-20 09:55:41 +02001181 select CRYPTO_ABLK_HELPER
Jussi Kivilinna596d8752012-06-18 14:07:19 +03001182 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001183 select CRYPTO_SERPENT
Jussi Kivilinnafeaf0cf2011-12-13 12:53:12 +02001184 select CRYPTO_LRW
1185 select CRYPTO_XTS
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001186 help
1187 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1188
1189 Keys are allowed to be from 0 to 256 bits in length, in steps
1190 of 8 bits.
1191
Masanari Iida1e6232f2015-04-04 00:20:30 +09001192 This module provides Serpent cipher algorithm that processes eight
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001193 blocks parallel using SSE2 instruction set.
1194
1195 See also:
1196 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1197
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001198config CRYPTO_SERPENT_SSE2_586
1199 tristate "Serpent cipher algorithm (i586/SSE2)"
1200 depends on X86 && !64BIT
1201 select CRYPTO_ALGAPI
Jussi Kivilinna341975b2011-11-24 08:37:41 +02001202 select CRYPTO_CRYPTD
Ard Biesheuvel801201a2013-09-20 09:55:41 +02001203 select CRYPTO_ABLK_HELPER
Jussi Kivilinna596d8752012-06-18 14:07:19 +03001204 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001205 select CRYPTO_SERPENT
Jussi Kivilinnafeaf0cf2011-12-13 12:53:12 +02001206 select CRYPTO_LRW
1207 select CRYPTO_XTS
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001208 help
1209 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1210
1211 Keys are allowed to be from 0 to 256 bits in length, in steps
1212 of 8 bits.
1213
1214 This module provides Serpent cipher algorithm that processes four
1215 blocks parallel using SSE2 instruction set.
1216
1217 See also:
1218 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1219
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001220config CRYPTO_SERPENT_AVX_X86_64
1221 tristate "Serpent cipher algorithm (x86_64/AVX)"
1222 depends on X86 && 64BIT
1223 select CRYPTO_ALGAPI
1224 select CRYPTO_CRYPTD
Ard Biesheuvel801201a2013-09-20 09:55:41 +02001225 select CRYPTO_ABLK_HELPER
Jussi Kivilinna1d0debb2012-06-18 14:07:24 +03001226 select CRYPTO_GLUE_HELPER_X86
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001227 select CRYPTO_SERPENT
1228 select CRYPTO_LRW
1229 select CRYPTO_XTS
1230 help
1231 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1232
1233 Keys are allowed to be from 0 to 256 bits in length, in steps
1234 of 8 bits.
1235
1236 This module provides the Serpent cipher algorithm that processes
1237 eight blocks parallel using the AVX instruction set.
1238
1239 See also:
1240 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1241
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001242config CRYPTO_SERPENT_AVX2_X86_64
1243 tristate "Serpent cipher algorithm (x86_64/AVX2)"
1244 depends on X86 && 64BIT
1245 select CRYPTO_ALGAPI
1246 select CRYPTO_CRYPTD
Ard Biesheuvel801201a2013-09-20 09:55:41 +02001247 select CRYPTO_ABLK_HELPER
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001248 select CRYPTO_GLUE_HELPER_X86
1249 select CRYPTO_SERPENT
1250 select CRYPTO_SERPENT_AVX_X86_64
1251 select CRYPTO_LRW
1252 select CRYPTO_XTS
1253 help
1254 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1255
1256 Keys are allowed to be from 0 to 256 bits in length, in steps
1257 of 8 bits.
1258
1259 This module provides Serpent cipher algorithm that processes 16
1260 blocks parallel using AVX2 instruction set.
1261
1262 See also:
1263 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1264
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001265config CRYPTO_TEA
1266 tristate "TEA, XTEA and XETA cipher algorithms"
1267 select CRYPTO_ALGAPI
1268 help
1269 TEA cipher algorithm.
1270
1271 Tiny Encryption Algorithm is a simple cipher that uses
1272 many rounds for security. It is very fast and uses
1273 little memory.
1274
1275 Xtendend Tiny Encryption Algorithm is a modification to
1276 the TEA algorithm to address a potential key weakness
1277 in the TEA algorithm.
1278
1279 Xtendend Encryption Tiny Algorithm is a mis-implementation
1280 of the XTEA algorithm for compatibility purposes.
1281
1282config CRYPTO_TWOFISH
1283 tristate "Twofish cipher algorithm"
1284 select CRYPTO_ALGAPI
1285 select CRYPTO_TWOFISH_COMMON
1286 help
1287 Twofish cipher algorithm.
1288
1289 Twofish was submitted as an AES (Advanced Encryption Standard)
1290 candidate cipher by researchers at CounterPane Systems. It is a
1291 16 round block cipher supporting key sizes of 128, 192, and 256
1292 bits.
1293
1294 See also:
1295 <http://www.schneier.com/twofish.html>
1296
1297config CRYPTO_TWOFISH_COMMON
1298 tristate
1299 help
1300 Common parts of the Twofish cipher algorithm shared by the
1301 generic c and the assembler implementations.
1302
1303config CRYPTO_TWOFISH_586
1304 tristate "Twofish cipher algorithms (i586)"
1305 depends on (X86 || UML_X86) && !64BIT
1306 select CRYPTO_ALGAPI
1307 select CRYPTO_TWOFISH_COMMON
1308 help
1309 Twofish cipher algorithm.
1310
1311 Twofish was submitted as an AES (Advanced Encryption Standard)
1312 candidate cipher by researchers at CounterPane Systems. It is a
1313 16 round block cipher supporting key sizes of 128, 192, and 256
1314 bits.
1315
1316 See also:
1317 <http://www.schneier.com/twofish.html>
1318
1319config CRYPTO_TWOFISH_X86_64
1320 tristate "Twofish cipher algorithm (x86_64)"
1321 depends on (X86 || UML_X86) && 64BIT
1322 select CRYPTO_ALGAPI
1323 select CRYPTO_TWOFISH_COMMON
1324 help
1325 Twofish cipher algorithm (x86_64).
1326
1327 Twofish was submitted as an AES (Advanced Encryption Standard)
1328 candidate cipher by researchers at CounterPane Systems. It is a
1329 16 round block cipher supporting key sizes of 128, 192, and 256
1330 bits.
1331
1332 See also:
1333 <http://www.schneier.com/twofish.html>
1334
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001335config CRYPTO_TWOFISH_X86_64_3WAY
1336 tristate "Twofish cipher algorithm (x86_64, 3-way parallel)"
Al Virof21a7c12012-04-08 20:31:22 -04001337 depends on X86 && 64BIT
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001338 select CRYPTO_ALGAPI
1339 select CRYPTO_TWOFISH_COMMON
1340 select CRYPTO_TWOFISH_X86_64
Jussi Kivilinna414cb5e2012-06-18 14:07:34 +03001341 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinnae7cda5d2011-12-13 12:53:01 +02001342 select CRYPTO_LRW
1343 select CRYPTO_XTS
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001344 help
1345 Twofish cipher algorithm (x86_64, 3-way parallel).
1346
1347 Twofish was submitted as an AES (Advanced Encryption Standard)
1348 candidate cipher by researchers at CounterPane Systems. It is a
1349 16 round block cipher supporting key sizes of 128, 192, and 256
1350 bits.
1351
1352 This module provides Twofish cipher algorithm that processes three
1353 blocks parallel, utilizing resources of out-of-order CPUs better.
1354
1355 See also:
1356 <http://www.schneier.com/twofish.html>
1357
Johannes Goetzfried107778b2012-05-28 15:54:24 +02001358config CRYPTO_TWOFISH_AVX_X86_64
1359 tristate "Twofish cipher algorithm (x86_64/AVX)"
1360 depends on X86 && 64BIT
1361 select CRYPTO_ALGAPI
1362 select CRYPTO_CRYPTD
Ard Biesheuvel801201a2013-09-20 09:55:41 +02001363 select CRYPTO_ABLK_HELPER
Jussi Kivilinnaa7378d42012-06-18 14:07:39 +03001364 select CRYPTO_GLUE_HELPER_X86
Johannes Goetzfried107778b2012-05-28 15:54:24 +02001365 select CRYPTO_TWOFISH_COMMON
1366 select CRYPTO_TWOFISH_X86_64
1367 select CRYPTO_TWOFISH_X86_64_3WAY
1368 select CRYPTO_LRW
1369 select CRYPTO_XTS
1370 help
1371 Twofish cipher algorithm (x86_64/AVX).
1372
1373 Twofish was submitted as an AES (Advanced Encryption Standard)
1374 candidate cipher by researchers at CounterPane Systems. It is a
1375 16 round block cipher supporting key sizes of 128, 192, and 256
1376 bits.
1377
1378 This module provides the Twofish cipher algorithm that processes
1379 eight blocks parallel using the AVX Instruction Set.
1380
1381 See also:
1382 <http://www.schneier.com/twofish.html>
1383
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001384comment "Compression"
1385
Linus Torvalds1da177e2005-04-16 15:20:36 -07001386config CRYPTO_DEFLATE
1387 tristate "Deflate compression algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001388 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -07001389 select ZLIB_INFLATE
1390 select ZLIB_DEFLATE
1391 help
1392 This is the Deflate algorithm (RFC1951), specified for use in
1393 IPSec with the IPCOMP protocol (RFC3173, RFC2394).
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001394
Linus Torvalds1da177e2005-04-16 15:20:36 -07001395 You will most probably want this if using IPSec.
1396
Geert Uytterhoevenbf68e652009-03-04 15:15:49 +08001397config CRYPTO_ZLIB
1398 tristate "Zlib compression algorithm"
1399 select CRYPTO_PCOMP
1400 select ZLIB_INFLATE
1401 select ZLIB_DEFLATE
1402 select NLATTR
1403 help
1404 This is the zlib algorithm.
1405
Zoltan Sogor0b77abb2007-12-07 16:53:23 +08001406config CRYPTO_LZO
1407 tristate "LZO compression algorithm"
1408 select CRYPTO_ALGAPI
1409 select LZO_COMPRESS
1410 select LZO_DECOMPRESS
1411 help
1412 This is the LZO algorithm.
1413
Seth Jennings35a1fc12012-07-19 09:42:41 -05001414config CRYPTO_842
1415 tristate "842 compression algorithm"
Dan Streetman2062c5b2015-05-07 13:49:15 -04001416 select CRYPTO_ALGAPI
1417 select 842_COMPRESS
1418 select 842_DECOMPRESS
Seth Jennings35a1fc12012-07-19 09:42:41 -05001419 help
1420 This is the 842 algorithm.
1421
Chanho Min0ea85302013-07-08 16:01:51 -07001422config CRYPTO_LZ4
1423 tristate "LZ4 compression algorithm"
1424 select CRYPTO_ALGAPI
1425 select LZ4_COMPRESS
1426 select LZ4_DECOMPRESS
1427 help
1428 This is the LZ4 algorithm.
1429
1430config CRYPTO_LZ4HC
1431 tristate "LZ4HC compression algorithm"
1432 select CRYPTO_ALGAPI
1433 select LZ4HC_COMPRESS
1434 select LZ4_DECOMPRESS
1435 help
1436 This is the LZ4 high compression mode algorithm.
1437
Neil Horman17f0f4a2008-08-14 22:15:52 +10001438comment "Random Number Generation"
1439
1440config CRYPTO_ANSI_CPRNG
1441 tristate "Pseudo Random Number Generation for Cryptographic modules"
Neil Horman4e4ed832009-08-20 17:54:16 +10001442 default m
Neil Horman17f0f4a2008-08-14 22:15:52 +10001443 select CRYPTO_AES
1444 select CRYPTO_RNG
Neil Horman17f0f4a2008-08-14 22:15:52 +10001445 help
1446 This option enables the generic pseudo random number generator
1447 for cryptographic modules. Uses the Algorithm specified in
Jiri Kosina7dd607e2010-01-27 01:00:10 +01001448 ANSI X9.31 A.2.4. Note that this option must be enabled if
1449 CRYPTO_FIPS is selected
Neil Horman17f0f4a2008-08-14 22:15:52 +10001450
Herbert Xuf2c89a12014-07-04 22:15:08 +08001451menuconfig CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001452 tristate "NIST SP800-90A DRBG"
Stephan Mueller419090c2014-05-31 17:22:31 +02001453 help
1454 NIST SP800-90A compliant DRBG. In the following submenu, one or
1455 more of the DRBG types must be selected.
1456
Herbert Xuf2c89a12014-07-04 22:15:08 +08001457if CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001458
1459config CRYPTO_DRBG_HMAC
1460 bool "Enable HMAC DRBG"
1461 default y
Stephan Mueller419090c2014-05-31 17:22:31 +02001462 select CRYPTO_HMAC
1463 help
1464 Enable the HMAC DRBG variant as defined in NIST SP800-90A.
1465
1466config CRYPTO_DRBG_HASH
1467 bool "Enable Hash DRBG"
Stephan Mueller419090c2014-05-31 17:22:31 +02001468 select CRYPTO_HASH
1469 help
1470 Enable the Hash DRBG variant as defined in NIST SP800-90A.
1471
1472config CRYPTO_DRBG_CTR
1473 bool "Enable CTR DRBG"
Stephan Mueller419090c2014-05-31 17:22:31 +02001474 select CRYPTO_AES
1475 help
1476 Enable the CTR DRBG variant as defined in NIST SP800-90A.
1477
Herbert Xuf2c89a12014-07-04 22:15:08 +08001478config CRYPTO_DRBG
1479 tristate
1480 default CRYPTO_DRBG_MENU if (CRYPTO_DRBG_HMAC || CRYPTO_DRBG_HASH || CRYPTO_DRBG_CTR)
1481 select CRYPTO_RNG
1482
1483endif # if CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001484
Herbert Xu03c8efc2010-10-19 21:12:39 +08001485config CRYPTO_USER_API
1486 tristate
1487
Herbert Xufe869cd2010-10-19 21:23:00 +08001488config CRYPTO_USER_API_HASH
1489 tristate "User-space interface for hash algorithms"
Herbert Xu74517082010-11-29 22:56:03 +08001490 depends on NET
Herbert Xufe869cd2010-10-19 21:23:00 +08001491 select CRYPTO_HASH
1492 select CRYPTO_USER_API
1493 help
1494 This option enables the user-spaces interface for hash
1495 algorithms.
1496
Herbert Xu8ff59092010-10-19 21:31:55 +08001497config CRYPTO_USER_API_SKCIPHER
1498 tristate "User-space interface for symmetric key cipher algorithms"
Herbert Xu74517082010-11-29 22:56:03 +08001499 depends on NET
Herbert Xu8ff59092010-10-19 21:31:55 +08001500 select CRYPTO_BLKCIPHER
1501 select CRYPTO_USER_API
1502 help
1503 This option enables the user-spaces interface for symmetric
1504 key cipher algorithms.
1505
Stephan Mueller2f3755382014-12-25 23:00:39 +01001506config CRYPTO_USER_API_RNG
1507 tristate "User-space interface for random number generator algorithms"
1508 depends on NET
1509 select CRYPTO_RNG
1510 select CRYPTO_USER_API
1511 help
1512 This option enables the user-spaces interface for random
1513 number generator algorithms.
1514
Stephan Mueller44cac4f2015-02-28 20:50:40 +01001515config CRYPTO_USER_API_AEAD
1516 tristate "User-space interface for AEAD cipher algorithms"
1517 depends on NET
1518 select CRYPTO_AEAD
1519 select CRYPTO_USER_API
1520 help
1521 This option enables the user-spaces interface for AEAD
1522 cipher algorithms.
1523
Dmitry Kasatkinee089972013-05-06 15:40:01 +03001524config CRYPTO_HASH_INFO
1525 bool
1526
Linus Torvalds1da177e2005-04-16 15:20:36 -07001527source "drivers/crypto/Kconfig"
David Howells964f3b32012-09-13 15:17:21 +01001528source crypto/asymmetric_keys/Kconfig
Linus Torvalds1da177e2005-04-16 15:20:36 -07001529
Herbert Xucce9e062006-08-21 21:08:13 +10001530endif # if CRYPTO