blob: eb0aca45d430aa168a26903eea50488023a27588 [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
Herbert Xu401e4232015-06-03 14:49:31 +080081config CRYPTO_RNG_DEFAULT
82 tristate
83 select CRYPTO_DRBG_MENU
84
Geert Uytterhoevena1d2f092009-03-04 15:05:33 +080085config CRYPTO_PCOMP
86 tristate
Herbert Xubc94e592010-06-03 20:33:06 +100087 select CRYPTO_PCOMP2
88 select CRYPTO_ALGAPI
89
90config CRYPTO_PCOMP2
91 tristate
Geert Uytterhoevena1d2f092009-03-04 15:05:33 +080092 select CRYPTO_ALGAPI2
93
Tadeusz Struk3c339ab2015-06-16 10:30:55 -070094config CRYPTO_AKCIPHER2
95 tristate
96 select CRYPTO_ALGAPI2
97
98config CRYPTO_AKCIPHER
99 tristate
100 select CRYPTO_AKCIPHER2
101 select CRYPTO_ALGAPI
102
Herbert Xu2b8c19d2006-09-21 11:31:44 +1000103config CRYPTO_MANAGER
104 tristate "Cryptographic algorithm manager"
Herbert Xu6a0fcbb2008-12-10 23:29:44 +1100105 select CRYPTO_MANAGER2
Herbert Xu2b8c19d2006-09-21 11:31:44 +1000106 help
107 Create default cryptographic template instantiations such as
108 cbc(aes).
109
Herbert Xu6a0fcbb2008-12-10 23:29:44 +1100110config CRYPTO_MANAGER2
111 def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y)
112 select CRYPTO_AEAD2
113 select CRYPTO_HASH2
114 select CRYPTO_BLKCIPHER2
Herbert Xubc94e592010-06-03 20:33:06 +1000115 select CRYPTO_PCOMP2
Herbert Xu6a0fcbb2008-12-10 23:29:44 +1100116
Steffen Klasserta38f7902011-09-27 07:23:50 +0200117config CRYPTO_USER
118 tristate "Userspace cryptographic algorithm configuration"
Herbert Xu5db017a2011-11-01 12:12:43 +1100119 depends on NET
Steffen Klasserta38f7902011-09-27 07:23:50 +0200120 select CRYPTO_MANAGER
121 help
Valdis.Kletnieks@vt.edud19978f2011-11-09 01:29:20 -0500122 Userspace configuration for cryptographic instantiations such as
Steffen Klasserta38f7902011-09-27 07:23:50 +0200123 cbc(aes).
124
Herbert Xu326a6342010-08-06 09:40:28 +0800125config CRYPTO_MANAGER_DISABLE_TESTS
126 bool "Disable run-time self tests"
Herbert Xu00ca28a2010-08-06 10:34:00 +0800127 default y
128 depends on CRYPTO_MANAGER2
Alexander Shishkin0b767f92010-06-03 20:53:43 +1000129 help
Herbert Xu326a6342010-08-06 09:40:28 +0800130 Disable run-time self tests that normally take place at
131 algorithm registration.
Alexander Shishkin0b767f92010-06-03 20:53:43 +1000132
Rik Snelc494e072006-11-29 18:59:44 +1100133config CRYPTO_GF128MUL
Jussi Kivilinna08c70fc2011-12-13 12:53:22 +0200134 tristate "GF(2^128) multiplication functions"
Rik Snelc494e072006-11-29 18:59:44 +1100135 help
136 Efficient table driven implementation of multiplications in the
137 field GF(2^128). This is needed by some cypher modes. This
138 option will be selected automatically if you select such a
139 cipher mode. Only select this option by hand if you expect to load
140 an external module that requires these functions.
141
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800142config CRYPTO_NULL
143 tristate "Null algorithms"
144 select CRYPTO_ALGAPI
145 select CRYPTO_BLKCIPHER
Herbert Xud35d2452008-11-08 08:09:56 +0800146 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800147 help
148 These are 'Null' algorithms, used by IPsec, which do nothing.
149
Steffen Klassert5068c7a2010-01-07 15:57:19 +1100150config CRYPTO_PCRYPT
Kees Cook3b4afaf2012-10-02 11:16:49 -0700151 tristate "Parallel crypto engine"
152 depends on SMP
Steffen Klassert5068c7a2010-01-07 15:57:19 +1100153 select PADATA
154 select CRYPTO_MANAGER
155 select CRYPTO_AEAD
156 help
157 This converts an arbitrary crypto algorithm into a parallel
158 algorithm that executes in kernel threads.
159
Huang Ying25c38d32009-02-19 14:33:40 +0800160config CRYPTO_WORKQUEUE
161 tristate
162
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800163config CRYPTO_CRYPTD
164 tristate "Software async crypto daemon"
Herbert Xudb131ef2006-09-21 11:44:08 +1000165 select CRYPTO_BLKCIPHER
Loc Hob8a28252008-05-14 21:23:00 +0800166 select CRYPTO_HASH
Herbert Xu43518402006-10-16 21:28:58 +1000167 select CRYPTO_MANAGER
Huang Ying254eff72009-02-19 14:42:19 +0800168 select CRYPTO_WORKQUEUE
Herbert Xudb131ef2006-09-21 11:44:08 +1000169 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800170 This is a generic software asynchronous crypto daemon that
171 converts an arbitrary synchronous software crypto algorithm
172 into an asynchronous algorithm that executes in a kernel thread.
173
Tim Chen1e65b812014-07-31 10:29:51 -0700174config CRYPTO_MCRYPTD
175 tristate "Software async multi-buffer crypto daemon"
176 select CRYPTO_BLKCIPHER
177 select CRYPTO_HASH
178 select CRYPTO_MANAGER
179 select CRYPTO_WORKQUEUE
180 help
181 This is a generic software asynchronous crypto daemon that
182 provides the kernel thread to assist multi-buffer crypto
183 algorithms for submitting jobs and flushing jobs in multi-buffer
184 crypto algorithms. Multi-buffer crypto algorithms are executed
185 in the context of this kernel thread and drivers can post
Ted Percival0e566732014-09-04 15:18:21 +0800186 their crypto request asynchronously to be processed by this daemon.
Tim Chen1e65b812014-07-31 10:29:51 -0700187
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800188config CRYPTO_AUTHENC
189 tristate "Authenc support"
190 select CRYPTO_AEAD
191 select CRYPTO_BLKCIPHER
192 select CRYPTO_MANAGER
193 select CRYPTO_HASH
194 help
195 Authenc: Combined mode wrapper for IPsec.
196 This is required for IPSec.
197
198config CRYPTO_TEST
199 tristate "Testing module"
200 depends on m
Herbert Xuda7f0332008-07-31 17:08:25 +0800201 select CRYPTO_MANAGER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800202 help
203 Quick & dirty crypto test module.
204
Ard Biesheuvela62b01c2013-09-20 09:55:40 +0200205config CRYPTO_ABLK_HELPER
Jussi Kivilinnaffaf9152012-06-18 14:06:58 +0300206 tristate
Jussi Kivilinnaffaf9152012-06-18 14:06:58 +0300207 select CRYPTO_CRYPTD
208
Jussi Kivilinna596d8752012-06-18 14:07:19 +0300209config CRYPTO_GLUE_HELPER_X86
210 tristate
211 depends on X86
212 select CRYPTO_ALGAPI
213
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800214comment "Authenticated Encryption with Associated Data"
215
216config CRYPTO_CCM
217 tristate "CCM support"
218 select CRYPTO_CTR
219 select CRYPTO_AEAD
220 help
221 Support for Counter with CBC MAC. Required for IPsec.
222
223config CRYPTO_GCM
224 tristate "GCM/GMAC support"
225 select CRYPTO_CTR
226 select CRYPTO_AEAD
Huang Ying9382d972009-08-06 15:34:26 +1000227 select CRYPTO_GHASH
Jussi Kivilinna9489667d2013-04-07 16:43:41 +0300228 select CRYPTO_NULL
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800229 help
230 Support for Galois/Counter Mode (GCM) and Galois Message
231 Authentication Code (GMAC). Required for IPSec.
232
Martin Willi71ebc4d2015-06-01 13:44:00 +0200233config CRYPTO_CHACHA20POLY1305
234 tristate "ChaCha20-Poly1305 AEAD support"
235 select CRYPTO_CHACHA20
236 select CRYPTO_POLY1305
237 select CRYPTO_AEAD
238 help
239 ChaCha20-Poly1305 AEAD support, RFC7539.
240
241 Support for the AEAD wrapper using the ChaCha20 stream cipher combined
242 with the Poly1305 authenticator. It is defined in RFC7539 for use in
243 IETF protocols.
244
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800245config CRYPTO_SEQIV
246 tristate "Sequence Number IV Generator"
247 select CRYPTO_AEAD
248 select CRYPTO_BLKCIPHER
Herbert Xu856e3f402015-05-21 15:11:13 +0800249 select CRYPTO_NULL
Herbert Xu401e4232015-06-03 14:49:31 +0800250 select CRYPTO_RNG_DEFAULT
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800251 help
252 This IV generator generates an IV based on a sequence number by
253 xoring it with a salt. This algorithm is mainly useful for CTR
254
Herbert Xua10f5542015-05-21 15:11:15 +0800255config CRYPTO_ECHAINIV
256 tristate "Encrypted Chain IV Generator"
257 select CRYPTO_AEAD
258 select CRYPTO_NULL
Herbert Xu401e4232015-06-03 14:49:31 +0800259 select CRYPTO_RNG_DEFAULT
Herbert Xu34912442015-06-03 14:49:29 +0800260 default m
Herbert Xua10f5542015-05-21 15:11:15 +0800261 help
262 This IV generator generates an IV based on the encryption of
263 a sequence number xored with a salt. This is the default
264 algorithm for CBC.
265
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800266comment "Block modes"
Herbert Xudb131ef2006-09-21 11:44:08 +1000267
268config CRYPTO_CBC
269 tristate "CBC support"
270 select CRYPTO_BLKCIPHER
Herbert Xu43518402006-10-16 21:28:58 +1000271 select CRYPTO_MANAGER
Herbert Xudb131ef2006-09-21 11:44:08 +1000272 help
273 CBC: Cipher Block Chaining mode
274 This block cipher algorithm is required for IPSec.
275
Joy Latten23e353c2007-10-23 08:50:32 +0800276config CRYPTO_CTR
277 tristate "CTR support"
278 select CRYPTO_BLKCIPHER
Herbert Xu0a270322007-11-30 21:38:37 +1100279 select CRYPTO_SEQIV
Joy Latten23e353c2007-10-23 08:50:32 +0800280 select CRYPTO_MANAGER
Joy Latten23e353c2007-10-23 08:50:32 +0800281 help
282 CTR: Counter mode
283 This block cipher algorithm is required for IPSec.
284
Kevin Coffman76cb9522008-03-24 21:26:16 +0800285config CRYPTO_CTS
286 tristate "CTS support"
287 select CRYPTO_BLKCIPHER
288 help
289 CTS: Cipher Text Stealing
290 This is the Cipher Text Stealing mode as described by
291 Section 8 of rfc2040 and referenced by rfc3962.
292 (rfc3962 includes errata information in its Appendix A)
293 This mode is required for Kerberos gss mechanism support
294 for AES encryption.
295
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800296config CRYPTO_ECB
297 tristate "ECB support"
Herbert Xu653ebd9c2007-11-27 19:48:27 +0800298 select CRYPTO_BLKCIPHER
Herbert Xu124b53d2007-04-16 20:49:20 +1000299 select CRYPTO_MANAGER
300 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800301 ECB: Electronic CodeBook mode
302 This is the simplest block cipher algorithm. It simply encrypts
303 the input block by block.
Herbert Xu124b53d2007-04-16 20:49:20 +1000304
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800305config CRYPTO_LRW
Jussi Kivilinna2470a2b2011-12-13 12:52:51 +0200306 tristate "LRW support"
David Howells90831632006-12-16 12:13:14 +1100307 select CRYPTO_BLKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800308 select CRYPTO_MANAGER
309 select CRYPTO_GF128MUL
David Howells90831632006-12-16 12:13:14 +1100310 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800311 LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
312 narrow block cipher mode for dm-crypt. Use it with cipher
313 specification string aes-lrw-benbi, the key must be 256, 320 or 384.
314 The first 128, 192 or 256 bits in the key are used for AES and the
315 rest is used to tie each cipher block to its logical position.
David Howells90831632006-12-16 12:13:14 +1100316
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800317config CRYPTO_PCBC
318 tristate "PCBC support"
319 select CRYPTO_BLKCIPHER
320 select CRYPTO_MANAGER
321 help
322 PCBC: Propagating Cipher Block Chaining mode
323 This block cipher algorithm is required for RxRPC.
324
325config CRYPTO_XTS
Jussi Kivilinna5bcf8e62011-12-13 12:52:56 +0200326 tristate "XTS support"
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800327 select CRYPTO_BLKCIPHER
328 select CRYPTO_MANAGER
329 select CRYPTO_GF128MUL
330 help
331 XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
332 key size 256, 384 or 512 bits. This implementation currently
333 can't handle a sectorsize which is not a multiple of 16 bytes.
334
335comment "Hash modes"
336
Jussi Kivilinna93b5e862013-04-08 10:48:44 +0300337config CRYPTO_CMAC
338 tristate "CMAC support"
339 select CRYPTO_HASH
340 select CRYPTO_MANAGER
341 help
342 Cipher-based Message Authentication Code (CMAC) specified by
343 The National Institute of Standards and Technology (NIST).
344
345 https://tools.ietf.org/html/rfc4493
346 http://csrc.nist.gov/publications/nistpubs/800-38B/SP_800-38B.pdf
347
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800348config CRYPTO_HMAC
349 tristate "HMAC support"
350 select CRYPTO_HASH
351 select CRYPTO_MANAGER
352 help
353 HMAC: Keyed-Hashing for Message Authentication (RFC2104).
354 This is required for IPSec.
355
356config CRYPTO_XCBC
357 tristate "XCBC support"
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800358 select CRYPTO_HASH
359 select CRYPTO_MANAGER
360 help
361 XCBC: Keyed-Hashing with encryption algorithm
362 http://www.ietf.org/rfc/rfc3566.txt
363 http://csrc.nist.gov/encryption/modes/proposedmodes/
364 xcbc-mac/xcbc-mac-spec.pdf
365
Shane Wangf1939f72009-09-02 20:05:22 +1000366config CRYPTO_VMAC
367 tristate "VMAC support"
Shane Wangf1939f72009-09-02 20:05:22 +1000368 select CRYPTO_HASH
369 select CRYPTO_MANAGER
370 help
371 VMAC is a message authentication algorithm designed for
372 very high speed on 64-bit architectures.
373
374 See also:
375 <http://fastcrypto.org/vmac>
376
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800377comment "Digest"
378
379config CRYPTO_CRC32C
380 tristate "CRC32c CRC algorithm"
Herbert Xu5773a3e2008-07-08 20:54:28 +0800381 select CRYPTO_HASH
Darrick J. Wong6a0962b2012-03-23 15:02:25 -0700382 select CRC32
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800383 help
384 Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
385 by iSCSI for header and data digests and by others.
Herbert Xu69c35ef2008-11-07 15:11:47 +0800386 See Castagnoli93. Module will be crc32c.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800387
Austin Zhang8cb51ba2008-08-07 09:57:03 +0800388config CRYPTO_CRC32C_INTEL
389 tristate "CRC32c INTEL hardware acceleration"
390 depends on X86
391 select CRYPTO_HASH
392 help
393 In Intel processor with SSE4.2 supported, the processor will
394 support CRC32C implementation using hardware accelerated CRC32
395 instruction. This option will create 'crc32c-intel' module,
396 which will enable any routine to use the CRC32 instruction to
397 gain performance compared with software implementation.
398 Module will be crc32c-intel.
399
David S. Miller442a7c42012-08-22 20:47:36 -0700400config CRYPTO_CRC32C_SPARC64
401 tristate "CRC32c CRC algorithm (SPARC64)"
402 depends on SPARC64
403 select CRYPTO_HASH
404 select CRC32
405 help
406 CRC32c CRC algorithm implemented using sparc64 crypto instructions,
407 when available.
408
Alexander Boyko78c37d12013-01-10 18:54:59 +0400409config CRYPTO_CRC32
410 tristate "CRC32 CRC algorithm"
411 select CRYPTO_HASH
412 select CRC32
413 help
414 CRC-32-IEEE 802.3 cyclic redundancy-check algorithm.
415 Shash crypto api wrappers to crc32_le function.
416
417config CRYPTO_CRC32_PCLMUL
418 tristate "CRC32 PCLMULQDQ hardware acceleration"
419 depends on X86
420 select CRYPTO_HASH
421 select CRC32
422 help
423 From Intel Westmere and AMD Bulldozer processor with SSE4.2
424 and PCLMULQDQ supported, the processor will support
425 CRC32 PCLMULQDQ implementation using hardware accelerated PCLMULQDQ
426 instruction. This option will create 'crc32-plcmul' module,
427 which will enable any routine to use the CRC-32-IEEE 802.3 checksum
428 and gain better performance as compared with the table implementation.
429
Herbert Xu684115212013-09-07 12:56:26 +1000430config CRYPTO_CRCT10DIF
431 tristate "CRCT10DIF algorithm"
432 select CRYPTO_HASH
433 help
434 CRC T10 Data Integrity Field computation is being cast as
435 a crypto transform. This allows for faster crc t10 diff
436 transforms to be used if they are available.
437
438config CRYPTO_CRCT10DIF_PCLMUL
439 tristate "CRCT10DIF PCLMULQDQ hardware acceleration"
440 depends on X86 && 64BIT && CRC_T10DIF
441 select CRYPTO_HASH
442 help
443 For x86_64 processors with SSE4.2 and PCLMULQDQ supported,
444 CRC T10 DIF PCLMULQDQ computation can be hardware
445 accelerated PCLMULQDQ instruction. This option will create
446 'crct10dif-plcmul' module, which is faster when computing the
447 crct10dif checksum as compared with the generic table implementation.
448
Huang Ying2cdc6892009-08-06 15:32:38 +1000449config CRYPTO_GHASH
450 tristate "GHASH digest algorithm"
Huang Ying2cdc6892009-08-06 15:32:38 +1000451 select CRYPTO_GF128MUL
452 help
453 GHASH is message digest algorithm for GCM (Galois/Counter Mode).
454
Martin Willif979e012015-06-01 13:43:58 +0200455config CRYPTO_POLY1305
456 tristate "Poly1305 authenticator algorithm"
457 help
458 Poly1305 authenticator algorithm, RFC7539.
459
460 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
461 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
462 in IETF protocols. This is the portable C implementation of Poly1305.
463
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800464config CRYPTO_MD4
465 tristate "MD4 digest algorithm"
Adrian-Ken Rueegsegger808a1762008-12-03 19:55:27 +0800466 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700467 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800468 MD4 message digest algorithm (RFC1320).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700469
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800470config CRYPTO_MD5
471 tristate "MD5 digest algorithm"
Adrian-Ken Rueegsegger14b75ba2008-12-03 19:57:12 +0800472 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700473 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800474 MD5 message digest algorithm (RFC1321).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700475
Aaro Koskinend69e75d2014-12-21 22:54:02 +0200476config CRYPTO_MD5_OCTEON
477 tristate "MD5 digest algorithm (OCTEON)"
478 depends on CPU_CAVIUM_OCTEON
479 select CRYPTO_MD5
480 select CRYPTO_HASH
481 help
482 MD5 message digest algorithm (RFC1321) implemented
483 using OCTEON crypto instructions, when available.
484
Markus Stockhausene8e59952015-03-01 19:30:46 +0100485config CRYPTO_MD5_PPC
486 tristate "MD5 digest algorithm (PPC)"
487 depends on PPC
488 select CRYPTO_HASH
489 help
490 MD5 message digest algorithm (RFC1321) implemented
491 in PPC assembler.
492
David S. Millerfa4dfed2012-08-19 21:51:26 -0700493config CRYPTO_MD5_SPARC64
494 tristate "MD5 digest algorithm (SPARC64)"
495 depends on SPARC64
496 select CRYPTO_MD5
497 select CRYPTO_HASH
498 help
499 MD5 message digest algorithm (RFC1321) implemented
500 using sparc64 crypto instructions, when available.
501
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800502config CRYPTO_MICHAEL_MIC
503 tristate "Michael MIC keyed digest algorithm"
Adrian-Ken Rueegsegger19e2bf12008-12-07 19:35:38 +0800504 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800505 help
506 Michael MIC is used for message integrity protection in TKIP
507 (IEEE 802.11i). This algorithm is required for TKIP, but it
508 should not be used for other purposes because of the weakness
509 of the algorithm.
510
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800511config CRYPTO_RMD128
Adrian Bunkb6d44342008-07-16 19:28:00 +0800512 tristate "RIPEMD-128 digest algorithm"
Herbert Xu7c4468b2008-11-08 09:10:40 +0800513 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800514 help
515 RIPEMD-128 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800516
Adrian Bunkb6d44342008-07-16 19:28:00 +0800517 RIPEMD-128 is a 128-bit cryptographic hash function. It should only
Michael Witten35ed4b32011-07-09 04:02:31 +0000518 be used as a secure replacement for RIPEMD. For other use cases,
Adrian Bunkb6d44342008-07-16 19:28:00 +0800519 RIPEMD-160 should be used.
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800520
Adrian Bunkb6d44342008-07-16 19:28:00 +0800521 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800522 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800523
524config CRYPTO_RMD160
Adrian Bunkb6d44342008-07-16 19:28:00 +0800525 tristate "RIPEMD-160 digest algorithm"
Herbert Xue5835fb2008-11-08 09:18:51 +0800526 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800527 help
528 RIPEMD-160 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800529
Adrian Bunkb6d44342008-07-16 19:28:00 +0800530 RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
531 to be used as a secure replacement for the 128-bit hash functions
532 MD4, MD5 and it's predecessor RIPEMD
533 (not to be confused with RIPEMD-128).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800534
Adrian Bunkb6d44342008-07-16 19:28:00 +0800535 It's speed is comparable to SHA1 and there are no known attacks
536 against RIPEMD-160.
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800537
Adrian Bunkb6d44342008-07-16 19:28:00 +0800538 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800539 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800540
541config CRYPTO_RMD256
Adrian Bunkb6d44342008-07-16 19:28:00 +0800542 tristate "RIPEMD-256 digest algorithm"
Herbert Xud8a5e2e2008-11-08 09:58:10 +0800543 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800544 help
545 RIPEMD-256 is an optional extension of RIPEMD-128 with a
546 256 bit hash. It is intended for applications that require
547 longer hash-results, without needing a larger security level
548 (than RIPEMD-128).
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800549
Adrian Bunkb6d44342008-07-16 19:28:00 +0800550 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800551 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800552
553config CRYPTO_RMD320
Adrian Bunkb6d44342008-07-16 19:28:00 +0800554 tristate "RIPEMD-320 digest algorithm"
Herbert Xu3b8efb42008-11-08 10:11:09 +0800555 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800556 help
557 RIPEMD-320 is an optional extension of RIPEMD-160 with a
558 320 bit hash. It is intended for applications that require
559 longer hash-results, without needing a larger security level
560 (than RIPEMD-160).
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800561
Adrian Bunkb6d44342008-07-16 19:28:00 +0800562 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800563 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800564
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800565config CRYPTO_SHA1
566 tristate "SHA1 digest algorithm"
Adrian-Ken Rueegsegger54ccb362008-12-02 21:08:20 +0800567 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800568 help
569 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
570
Mathias Krause66be8952011-08-04 20:19:25 +0200571config CRYPTO_SHA1_SSSE3
chandramouli narayanan7c1da8d2014-03-20 15:14:00 -0700572 tristate "SHA1 digest algorithm (SSSE3/AVX/AVX2)"
Mathias Krause66be8952011-08-04 20:19:25 +0200573 depends on X86 && 64BIT
574 select CRYPTO_SHA1
575 select CRYPTO_HASH
576 help
577 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
578 using Supplemental SSE3 (SSSE3) instructions or Advanced Vector
chandramouli narayanan7c1da8d2014-03-20 15:14:00 -0700579 Extensions (AVX/AVX2), when available.
Mathias Krause66be8952011-08-04 20:19:25 +0200580
Tim Chen8275d1a2013-03-26 13:59:17 -0700581config CRYPTO_SHA256_SSSE3
582 tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2)"
583 depends on X86 && 64BIT
584 select CRYPTO_SHA256
585 select CRYPTO_HASH
586 help
587 SHA-256 secure hash standard (DFIPS 180-2) implemented
588 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
589 Extensions version 1 (AVX1), or Advanced Vector Extensions
590 version 2 (AVX2) instructions, when available.
591
Tim Chen87de4572013-03-26 14:00:02 -0700592config CRYPTO_SHA512_SSSE3
593 tristate "SHA512 digest algorithm (SSSE3/AVX/AVX2)"
594 depends on X86 && 64BIT
595 select CRYPTO_SHA512
596 select CRYPTO_HASH
597 help
598 SHA-512 secure hash standard (DFIPS 180-2) implemented
599 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
600 Extensions version 1 (AVX1), or Advanced Vector Extensions
601 version 2 (AVX2) instructions, when available.
602
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200603config CRYPTO_SHA1_OCTEON
604 tristate "SHA1 digest algorithm (OCTEON)"
605 depends on CPU_CAVIUM_OCTEON
606 select CRYPTO_SHA1
607 select CRYPTO_HASH
608 help
609 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
610 using OCTEON crypto instructions, when available.
611
David S. Miller4ff28d42012-08-19 15:41:53 -0700612config CRYPTO_SHA1_SPARC64
613 tristate "SHA1 digest algorithm (SPARC64)"
614 depends on SPARC64
615 select CRYPTO_SHA1
616 select CRYPTO_HASH
617 help
618 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
619 using sparc64 crypto instructions, when available.
620
Michael Ellerman323a6bf2012-09-13 23:00:49 +0000621config CRYPTO_SHA1_PPC
622 tristate "SHA1 digest algorithm (powerpc)"
623 depends on PPC
624 help
625 This is the powerpc hardware accelerated implementation of the
626 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
627
Markus Stockhausend9850fc2015-02-24 20:36:50 +0100628config CRYPTO_SHA1_PPC_SPE
629 tristate "SHA1 digest algorithm (PPC SPE)"
630 depends on PPC && SPE
631 help
632 SHA-1 secure hash standard (DFIPS 180-4) implemented
633 using powerpc SPE SIMD instruction set.
634
Tim Chen1e65b812014-07-31 10:29:51 -0700635config CRYPTO_SHA1_MB
636 tristate "SHA1 digest algorithm (x86_64 Multi-Buffer, Experimental)"
637 depends on X86 && 64BIT
638 select CRYPTO_SHA1
639 select CRYPTO_HASH
640 select CRYPTO_MCRYPTD
641 help
642 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
643 using multi-buffer technique. This algorithm computes on
644 multiple data lanes concurrently with SIMD instructions for
645 better throughput. It should not be enabled by default but
646 used when there is significant amount of work to keep the keep
647 the data lanes filled to get performance benefit. If the data
648 lanes remain unfilled, a flush operation will be initiated to
649 process the crypto jobs, adding a slight latency.
650
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800651config CRYPTO_SHA256
652 tristate "SHA224 and SHA256 digest algorithm"
Adrian-Ken Rueegsegger50e109b52008-12-03 19:57:49 +0800653 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800654 help
655 SHA256 secure hash standard (DFIPS 180-2).
656
657 This version of SHA implements a 256 bit hash with 128 bits of
658 security against collision attacks.
659
Adrian Bunkb6d44342008-07-16 19:28:00 +0800660 This code also includes SHA-224, a 224 bit hash with 112 bits
661 of security against collision attacks.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800662
Markus Stockhausen2ecc1e92015-01-30 15:39:34 +0100663config CRYPTO_SHA256_PPC_SPE
664 tristate "SHA224 and SHA256 digest algorithm (PPC SPE)"
665 depends on PPC && SPE
666 select CRYPTO_SHA256
667 select CRYPTO_HASH
668 help
669 SHA224 and SHA256 secure hash standard (DFIPS 180-2)
670 implemented using powerpc SPE SIMD instruction set.
671
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200672config CRYPTO_SHA256_OCTEON
673 tristate "SHA224 and SHA256 digest algorithm (OCTEON)"
674 depends on CPU_CAVIUM_OCTEON
675 select CRYPTO_SHA256
676 select CRYPTO_HASH
677 help
678 SHA-256 secure hash standard (DFIPS 180-2) implemented
679 using OCTEON crypto instructions, when available.
680
David S. Miller86c93b22012-08-19 17:11:37 -0700681config CRYPTO_SHA256_SPARC64
682 tristate "SHA224 and SHA256 digest algorithm (SPARC64)"
683 depends on SPARC64
684 select CRYPTO_SHA256
685 select CRYPTO_HASH
686 help
687 SHA-256 secure hash standard (DFIPS 180-2) implemented
688 using sparc64 crypto instructions, when available.
689
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800690config CRYPTO_SHA512
691 tristate "SHA384 and SHA512 digest algorithms"
Adrian-Ken Rueegseggerbd9d20d2008-12-17 16:49:02 +1100692 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800693 help
694 SHA512 secure hash standard (DFIPS 180-2).
695
696 This version of SHA implements a 512 bit hash with 256 bits of
697 security against collision attacks.
698
699 This code also includes SHA-384, a 384 bit hash with 192 bits
700 of security against collision attacks.
701
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200702config CRYPTO_SHA512_OCTEON
703 tristate "SHA384 and SHA512 digest algorithms (OCTEON)"
704 depends on CPU_CAVIUM_OCTEON
705 select CRYPTO_SHA512
706 select CRYPTO_HASH
707 help
708 SHA-512 secure hash standard (DFIPS 180-2) implemented
709 using OCTEON crypto instructions, when available.
710
David S. Miller775e0c62012-08-19 17:37:56 -0700711config CRYPTO_SHA512_SPARC64
712 tristate "SHA384 and SHA512 digest algorithm (SPARC64)"
713 depends on SPARC64
714 select CRYPTO_SHA512
715 select CRYPTO_HASH
716 help
717 SHA-512 secure hash standard (DFIPS 180-2) implemented
718 using sparc64 crypto instructions, when available.
719
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800720config CRYPTO_TGR192
721 tristate "Tiger digest algorithms"
Adrian-Ken Rueegseggerf63fbd32008-12-03 19:58:32 +0800722 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800723 help
724 Tiger hash algorithm 192, 160 and 128-bit hashes
725
726 Tiger is a hash function optimized for 64-bit processors while
727 still having decent performance on 32-bit processors.
728 Tiger was developed by Ross Anderson and Eli Biham.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700729
730 See also:
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800731 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
732
733config CRYPTO_WP512
734 tristate "Whirlpool digest algorithms"
Adrian-Ken Rueegsegger49465102008-12-07 19:34:37 +0800735 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800736 help
737 Whirlpool hash algorithm 512, 384 and 256-bit hashes
738
739 Whirlpool-512 is part of the NESSIE cryptographic primitives.
740 Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
741
742 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800743 <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html>
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800744
Huang Ying0e1227d2009-10-19 11:53:06 +0900745config CRYPTO_GHASH_CLMUL_NI_INTEL
746 tristate "GHASH digest algorithm (CLMUL-NI accelerated)"
Richard Weinberger8af00862011-06-08 20:56:29 +0800747 depends on X86 && 64BIT
Huang Ying0e1227d2009-10-19 11:53:06 +0900748 select CRYPTO_CRYPTD
749 help
750 GHASH is message digest algorithm for GCM (Galois/Counter Mode).
751 The implementation is accelerated by CLMUL-NI of Intel.
752
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800753comment "Ciphers"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700754
755config CRYPTO_AES
756 tristate "AES cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +1000757 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -0700758 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800759 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Linus Torvalds1da177e2005-04-16 15:20:36 -0700760 algorithm.
761
762 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800763 both hardware and software across a wide range of computing
764 environments regardless of its use in feedback or non-feedback
765 modes. Its key setup time is excellent, and its key agility is
766 good. Rijndael's very low memory requirements make it very well
767 suited for restricted-space environments, in which it also
768 demonstrates excellent performance. Rijndael's operations are
769 among the easiest to defend against power and timing attacks.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700770
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800771 The AES specifies three key sizes: 128, 192 and 256 bits
Linus Torvalds1da177e2005-04-16 15:20:36 -0700772
773 See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
774
775config CRYPTO_AES_586
776 tristate "AES cipher algorithms (i586)"
Herbert Xucce9e062006-08-21 21:08:13 +1000777 depends on (X86 || UML_X86) && !64BIT
778 select CRYPTO_ALGAPI
Sebastian Siewior5157dea2007-11-10 19:07:16 +0800779 select CRYPTO_AES
Linus Torvalds1da177e2005-04-16 15:20:36 -0700780 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800781 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Linus Torvalds1da177e2005-04-16 15:20:36 -0700782 algorithm.
783
784 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800785 both hardware and software across a wide range of computing
786 environments regardless of its use in feedback or non-feedback
787 modes. Its key setup time is excellent, and its key agility is
788 good. Rijndael's very low memory requirements make it very well
789 suited for restricted-space environments, in which it also
790 demonstrates excellent performance. Rijndael's operations are
791 among the easiest to defend against power and timing attacks.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700792
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800793 The AES specifies three key sizes: 128, 192 and 256 bits
Linus Torvalds1da177e2005-04-16 15:20:36 -0700794
795 See <http://csrc.nist.gov/encryption/aes/> for more information.
796
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700797config CRYPTO_AES_X86_64
798 tristate "AES cipher algorithms (x86_64)"
Herbert Xucce9e062006-08-21 21:08:13 +1000799 depends on (X86 || UML_X86) && 64BIT
800 select CRYPTO_ALGAPI
Sebastian Siewior81190b32007-11-08 21:25:04 +0800801 select CRYPTO_AES
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700802 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800803 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700804 algorithm.
805
806 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800807 both hardware and software across a wide range of computing
808 environments regardless of its use in feedback or non-feedback
809 modes. Its key setup time is excellent, and its key agility is
810 good. Rijndael's very low memory requirements make it very well
811 suited for restricted-space environments, in which it also
812 demonstrates excellent performance. Rijndael's operations are
813 among the easiest to defend against power and timing attacks.
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700814
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800815 The AES specifies three key sizes: 128, 192 and 256 bits
Andreas Steinmetza2a892a2005-07-06 13:55:00 -0700816
817 See <http://csrc.nist.gov/encryption/aes/> for more information.
818
Huang Ying54b6a1b2009-01-18 16:28:34 +1100819config CRYPTO_AES_NI_INTEL
820 tristate "AES cipher algorithms (AES-NI)"
Richard Weinberger8af00862011-06-08 20:56:29 +0800821 depends on X86
Mathias Krause0d258ef2010-11-27 16:34:46 +0800822 select CRYPTO_AES_X86_64 if 64BIT
823 select CRYPTO_AES_586 if !64BIT
Huang Ying54b6a1b2009-01-18 16:28:34 +1100824 select CRYPTO_CRYPTD
Ard Biesheuvel801201a2013-09-20 09:55:41 +0200825 select CRYPTO_ABLK_HELPER
Huang Ying54b6a1b2009-01-18 16:28:34 +1100826 select CRYPTO_ALGAPI
Jussi Kivilinna7643a112013-04-10 18:39:20 +0300827 select CRYPTO_GLUE_HELPER_X86 if 64BIT
Jussi Kivilinna023af602012-07-22 18:18:37 +0300828 select CRYPTO_LRW
829 select CRYPTO_XTS
Huang Ying54b6a1b2009-01-18 16:28:34 +1100830 help
831 Use Intel AES-NI instructions for AES algorithm.
832
833 AES cipher algorithms (FIPS-197). AES uses the Rijndael
834 algorithm.
835
836 Rijndael appears to be consistently a very good performer in
837 both hardware and software across a wide range of computing
838 environments regardless of its use in feedback or non-feedback
839 modes. Its key setup time is excellent, and its key agility is
840 good. Rijndael's very low memory requirements make it very well
841 suited for restricted-space environments, in which it also
842 demonstrates excellent performance. Rijndael's operations are
843 among the easiest to defend against power and timing attacks.
844
845 The AES specifies three key sizes: 128, 192 and 256 bits
846
847 See <http://csrc.nist.gov/encryption/aes/> for more information.
848
Mathias Krause0d258ef2010-11-27 16:34:46 +0800849 In addition to AES cipher algorithm support, the acceleration
850 for some popular block cipher mode is supported too, including
851 ECB, CBC, LRW, PCBC, XTS. The 64 bit version has additional
852 acceleration for CTR.
Huang Ying2cf4ac82009-03-29 15:41:20 +0800853
David S. Miller9bf48522012-08-21 03:58:13 -0700854config CRYPTO_AES_SPARC64
855 tristate "AES cipher algorithms (SPARC64)"
856 depends on SPARC64
857 select CRYPTO_CRYPTD
858 select CRYPTO_ALGAPI
859 help
860 Use SPARC64 crypto opcodes for AES algorithm.
861
862 AES cipher algorithms (FIPS-197). AES uses the Rijndael
863 algorithm.
864
865 Rijndael appears to be consistently a very good performer in
866 both hardware and software across a wide range of computing
867 environments regardless of its use in feedback or non-feedback
868 modes. Its key setup time is excellent, and its key agility is
869 good. Rijndael's very low memory requirements make it very well
870 suited for restricted-space environments, in which it also
871 demonstrates excellent performance. Rijndael's operations are
872 among the easiest to defend against power and timing attacks.
873
874 The AES specifies three key sizes: 128, 192 and 256 bits
875
876 See <http://csrc.nist.gov/encryption/aes/> for more information.
877
878 In addition to AES cipher algorithm support, the acceleration
879 for some popular block cipher mode is supported too, including
880 ECB and CBC.
881
Markus Stockhausen504c6142015-02-22 10:00:10 +0100882config CRYPTO_AES_PPC_SPE
883 tristate "AES cipher algorithms (PPC SPE)"
884 depends on PPC && SPE
885 help
886 AES cipher algorithms (FIPS-197). Additionally the acceleration
887 for popular block cipher modes ECB, CBC, CTR and XTS is supported.
888 This module should only be used for low power (router) devices
889 without hardware AES acceleration (e.g. caam crypto). It reduces the
890 size of the AES tables from 16KB to 8KB + 256 bytes and mitigates
891 timining attacks. Nevertheless it might be not as secure as other
892 architecture specific assembler implementations that work on 1KB
893 tables or 256 bytes S-boxes.
894
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800895config CRYPTO_ANUBIS
896 tristate "Anubis cipher algorithm"
897 select CRYPTO_ALGAPI
898 help
899 Anubis cipher algorithm.
900
901 Anubis is a variable key length cipher which can use keys from
902 128 bits to 320 bits in length. It was evaluated as a entrant
903 in the NESSIE competition.
904
905 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800906 <https://www.cosic.esat.kuleuven.be/nessie/reports/>
907 <http://www.larc.usp.br/~pbarreto/AnubisPage.html>
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800908
909config CRYPTO_ARC4
910 tristate "ARC4 cipher algorithm"
Sebastian Andrzej Siewiorb9b0f082012-06-26 18:13:46 +0200911 select CRYPTO_BLKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800912 help
913 ARC4 cipher algorithm.
914
915 ARC4 is a stream cipher using keys ranging from 8 bits to 2048
916 bits in length. This algorithm is required for driver-based
917 WEP, but it should not be for other purposes because of the
918 weakness of the algorithm.
919
920config CRYPTO_BLOWFISH
921 tristate "Blowfish cipher algorithm"
922 select CRYPTO_ALGAPI
Jussi Kivilinna52ba8672011-09-02 01:45:07 +0300923 select CRYPTO_BLOWFISH_COMMON
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800924 help
925 Blowfish cipher algorithm, by Bruce Schneier.
926
927 This is a variable key length cipher which can use keys from 32
928 bits to 448 bits in length. It's fast, simple and specifically
929 designed for use on "large microprocessors".
930
931 See also:
932 <http://www.schneier.com/blowfish.html>
933
Jussi Kivilinna52ba8672011-09-02 01:45:07 +0300934config CRYPTO_BLOWFISH_COMMON
935 tristate
936 help
937 Common parts of the Blowfish cipher algorithm shared by the
938 generic c and the assembler implementations.
939
940 See also:
941 <http://www.schneier.com/blowfish.html>
942
Jussi Kivilinna64b94ce2011-09-02 01:45:22 +0300943config CRYPTO_BLOWFISH_X86_64
944 tristate "Blowfish cipher algorithm (x86_64)"
Al Virof21a7c12012-04-08 20:31:22 -0400945 depends on X86 && 64BIT
Jussi Kivilinna64b94ce2011-09-02 01:45:22 +0300946 select CRYPTO_ALGAPI
947 select CRYPTO_BLOWFISH_COMMON
948 help
949 Blowfish cipher algorithm (x86_64), by Bruce Schneier.
950
951 This is a variable key length cipher which can use keys from 32
952 bits to 448 bits in length. It's fast, simple and specifically
953 designed for use on "large microprocessors".
954
955 See also:
956 <http://www.schneier.com/blowfish.html>
957
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800958config CRYPTO_CAMELLIA
959 tristate "Camellia cipher algorithms"
960 depends on CRYPTO
961 select CRYPTO_ALGAPI
962 help
963 Camellia cipher algorithms module.
964
965 Camellia is a symmetric key block cipher developed jointly
966 at NTT and Mitsubishi Electric Corporation.
967
968 The Camellia specifies three key sizes: 128, 192 and 256 bits.
969
970 See also:
971 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
972
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +0200973config CRYPTO_CAMELLIA_X86_64
974 tristate "Camellia cipher algorithm (x86_64)"
Al Virof21a7c12012-04-08 20:31:22 -0400975 depends on X86 && 64BIT
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +0200976 depends on CRYPTO
977 select CRYPTO_ALGAPI
Jussi Kivilinna964263a2012-06-18 14:07:29 +0300978 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +0200979 select CRYPTO_LRW
980 select CRYPTO_XTS
981 help
982 Camellia cipher algorithm module (x86_64).
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
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +0300992config CRYPTO_CAMELLIA_AESNI_AVX_X86_64
993 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)"
994 depends on X86 && 64BIT
995 depends on CRYPTO
996 select CRYPTO_ALGAPI
997 select CRYPTO_CRYPTD
Ard Biesheuvel801201a2013-09-20 09:55:41 +0200998 select CRYPTO_ABLK_HELPER
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +0300999 select CRYPTO_GLUE_HELPER_X86
1000 select CRYPTO_CAMELLIA_X86_64
1001 select CRYPTO_LRW
1002 select CRYPTO_XTS
1003 help
1004 Camellia cipher algorithm module (x86_64/AES-NI/AVX).
1005
1006 Camellia is a symmetric key block cipher developed jointly
1007 at NTT and Mitsubishi Electric Corporation.
1008
1009 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1010
1011 See also:
1012 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1013
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001014config CRYPTO_CAMELLIA_AESNI_AVX2_X86_64
1015 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX2)"
1016 depends on X86 && 64BIT
1017 depends on CRYPTO
1018 select CRYPTO_ALGAPI
1019 select CRYPTO_CRYPTD
Ard Biesheuvel801201a2013-09-20 09:55:41 +02001020 select CRYPTO_ABLK_HELPER
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001021 select CRYPTO_GLUE_HELPER_X86
1022 select CRYPTO_CAMELLIA_X86_64
1023 select CRYPTO_CAMELLIA_AESNI_AVX_X86_64
1024 select CRYPTO_LRW
1025 select CRYPTO_XTS
1026 help
1027 Camellia cipher algorithm module (x86_64/AES-NI/AVX2).
1028
1029 Camellia is a symmetric key block cipher developed jointly
1030 at NTT and Mitsubishi Electric Corporation.
1031
1032 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1033
1034 See also:
1035 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1036
David S. Miller81658ad2012-08-28 12:05:54 -07001037config CRYPTO_CAMELLIA_SPARC64
1038 tristate "Camellia cipher algorithm (SPARC64)"
1039 depends on SPARC64
1040 depends on CRYPTO
1041 select CRYPTO_ALGAPI
1042 help
1043 Camellia cipher algorithm module (SPARC64).
1044
1045 Camellia is a symmetric key block cipher developed jointly
1046 at NTT and Mitsubishi Electric Corporation.
1047
1048 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1049
1050 See also:
1051 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1052
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001053config CRYPTO_CAST_COMMON
1054 tristate
1055 help
1056 Common parts of the CAST cipher algorithms shared by the
1057 generic c and the assembler implementations.
1058
Linus Torvalds1da177e2005-04-16 15:20:36 -07001059config CRYPTO_CAST5
1060 tristate "CAST5 (CAST-128) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001061 select CRYPTO_ALGAPI
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001062 select CRYPTO_CAST_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -07001063 help
1064 The CAST5 encryption algorithm (synonymous with CAST-128) is
1065 described in RFC2144.
1066
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001067config CRYPTO_CAST5_AVX_X86_64
1068 tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)"
1069 depends on X86 && 64BIT
1070 select CRYPTO_ALGAPI
1071 select CRYPTO_CRYPTD
Ard Biesheuvel801201a2013-09-20 09:55:41 +02001072 select CRYPTO_ABLK_HELPER
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001073 select CRYPTO_CAST_COMMON
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001074 select CRYPTO_CAST5
1075 help
1076 The CAST5 encryption algorithm (synonymous with CAST-128) is
1077 described in RFC2144.
1078
1079 This module provides the Cast5 cipher algorithm that processes
1080 sixteen blocks parallel using the AVX instruction set.
1081
Linus Torvalds1da177e2005-04-16 15:20:36 -07001082config CRYPTO_CAST6
1083 tristate "CAST6 (CAST-256) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001084 select CRYPTO_ALGAPI
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001085 select CRYPTO_CAST_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -07001086 help
1087 The CAST6 encryption algorithm (synonymous with CAST-256) is
1088 described in RFC2612.
1089
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001090config CRYPTO_CAST6_AVX_X86_64
1091 tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)"
1092 depends on X86 && 64BIT
1093 select CRYPTO_ALGAPI
1094 select CRYPTO_CRYPTD
Ard Biesheuvel801201a2013-09-20 09:55:41 +02001095 select CRYPTO_ABLK_HELPER
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001096 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001097 select CRYPTO_CAST_COMMON
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001098 select CRYPTO_CAST6
1099 select CRYPTO_LRW
1100 select CRYPTO_XTS
1101 help
1102 The CAST6 encryption algorithm (synonymous with CAST-256) is
1103 described in RFC2612.
1104
1105 This module provides the Cast6 cipher algorithm that processes
1106 eight blocks parallel using the AVX instruction set.
1107
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001108config CRYPTO_DES
1109 tristate "DES and Triple DES EDE cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +10001110 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -07001111 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001112 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
Linus Torvalds1da177e2005-04-16 15:20:36 -07001113
David S. Millerc5aac2d2012-08-25 22:37:23 -07001114config CRYPTO_DES_SPARC64
1115 tristate "DES and Triple DES EDE cipher algorithms (SPARC64)"
Dave Jones97da37b2012-10-02 17:13:20 -04001116 depends on SPARC64
David S. Millerc5aac2d2012-08-25 22:37:23 -07001117 select CRYPTO_ALGAPI
1118 select CRYPTO_DES
1119 help
1120 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3),
1121 optimized using SPARC64 crypto opcodes.
1122
Jussi Kivilinna6574e6c2014-06-09 20:59:54 +03001123config CRYPTO_DES3_EDE_X86_64
1124 tristate "Triple DES EDE cipher algorithm (x86-64)"
1125 depends on X86 && 64BIT
1126 select CRYPTO_ALGAPI
1127 select CRYPTO_DES
1128 help
1129 Triple DES EDE (FIPS 46-3) algorithm.
1130
1131 This module provides implementation of the Triple DES EDE cipher
1132 algorithm that is optimized for x86-64 processors. Two versions of
1133 algorithm are provided; regular processing one input block and
1134 one that processes three blocks parallel.
1135
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001136config CRYPTO_FCRYPT
1137 tristate "FCrypt cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001138 select CRYPTO_ALGAPI
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001139 select CRYPTO_BLKCIPHER
Linus Torvalds1da177e2005-04-16 15:20:36 -07001140 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001141 FCrypt algorithm used by RxRPC.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001142
1143config CRYPTO_KHAZAD
1144 tristate "Khazad cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001145 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -07001146 help
1147 Khazad cipher algorithm.
1148
1149 Khazad was a finalist in the initial NESSIE competition. It is
1150 an algorithm optimized for 64-bit processors with good performance
1151 on 32-bit processors. Khazad uses an 128 bit key size.
1152
1153 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001154 <http://www.larc.usp.br/~pbarreto/KhazadPage.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -07001155
Tan Swee Heng2407d602007-11-23 19:45:00 +08001156config CRYPTO_SALSA20
Kees Cook3b4afaf2012-10-02 11:16:49 -07001157 tristate "Salsa20 stream cipher algorithm"
Tan Swee Heng2407d602007-11-23 19:45:00 +08001158 select CRYPTO_BLKCIPHER
1159 help
1160 Salsa20 stream cipher algorithm.
1161
1162 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1163 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1164
1165 The Salsa20 stream cipher algorithm is designed by Daniel J.
1166 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -07001167
Tan Swee Heng974e4b72007-12-10 15:52:56 +08001168config CRYPTO_SALSA20_586
Kees Cook3b4afaf2012-10-02 11:16:49 -07001169 tristate "Salsa20 stream cipher algorithm (i586)"
Tan Swee Heng974e4b72007-12-10 15:52:56 +08001170 depends on (X86 || UML_X86) && !64BIT
Tan Swee Heng974e4b72007-12-10 15:52:56 +08001171 select CRYPTO_BLKCIPHER
Tan Swee Heng974e4b72007-12-10 15:52:56 +08001172 help
1173 Salsa20 stream cipher algorithm.
1174
1175 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1176 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1177
1178 The Salsa20 stream cipher algorithm is designed by Daniel J.
1179 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
1180
Tan Swee Heng9a7dafb2007-12-18 00:04:40 +08001181config CRYPTO_SALSA20_X86_64
Kees Cook3b4afaf2012-10-02 11:16:49 -07001182 tristate "Salsa20 stream cipher algorithm (x86_64)"
Tan Swee Heng9a7dafb2007-12-18 00:04:40 +08001183 depends on (X86 || UML_X86) && 64BIT
Tan Swee Heng9a7dafb2007-12-18 00:04:40 +08001184 select CRYPTO_BLKCIPHER
Tan Swee Heng9a7dafb2007-12-18 00:04:40 +08001185 help
1186 Salsa20 stream cipher algorithm.
1187
1188 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1189 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1190
1191 The Salsa20 stream cipher algorithm is designed by Daniel J.
1192 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
1193
Martin Willic08d0e62015-06-01 13:43:56 +02001194config CRYPTO_CHACHA20
1195 tristate "ChaCha20 cipher algorithm"
1196 select CRYPTO_BLKCIPHER
1197 help
1198 ChaCha20 cipher algorithm, RFC7539.
1199
1200 ChaCha20 is a 256-bit high-speed stream cipher designed by Daniel J.
1201 Bernstein and further specified in RFC7539 for use in IETF protocols.
1202 This is the portable C implementation of ChaCha20.
1203
1204 See also:
1205 <http://cr.yp.to/chacha/chacha-20080128.pdf>
1206
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001207config CRYPTO_SEED
1208 tristate "SEED cipher algorithm"
1209 select CRYPTO_ALGAPI
1210 help
1211 SEED cipher algorithm (RFC4269).
1212
1213 SEED is a 128-bit symmetric key block cipher that has been
1214 developed by KISA (Korea Information Security Agency) as a
1215 national standard encryption algorithm of the Republic of Korea.
1216 It is a 16 round block cipher with the key size of 128 bit.
1217
1218 See also:
1219 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
1220
1221config CRYPTO_SERPENT
1222 tristate "Serpent cipher algorithm"
1223 select CRYPTO_ALGAPI
1224 help
1225 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1226
1227 Keys are allowed to be from 0 to 256 bits in length, in steps
1228 of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
1229 variant of Serpent for compatibility with old kerneli.org code.
1230
1231 See also:
1232 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1233
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001234config CRYPTO_SERPENT_SSE2_X86_64
1235 tristate "Serpent cipher algorithm (x86_64/SSE2)"
1236 depends on X86 && 64BIT
1237 select CRYPTO_ALGAPI
Jussi Kivilinna341975b2011-11-24 08:37:41 +02001238 select CRYPTO_CRYPTD
Ard Biesheuvel801201a2013-09-20 09:55:41 +02001239 select CRYPTO_ABLK_HELPER
Jussi Kivilinna596d8752012-06-18 14:07:19 +03001240 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001241 select CRYPTO_SERPENT
Jussi Kivilinnafeaf0cf2011-12-13 12:53:12 +02001242 select CRYPTO_LRW
1243 select CRYPTO_XTS
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001244 help
1245 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1246
1247 Keys are allowed to be from 0 to 256 bits in length, in steps
1248 of 8 bits.
1249
Masanari Iida1e6232f2015-04-04 00:20:30 +09001250 This module provides Serpent cipher algorithm that processes eight
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001251 blocks parallel using SSE2 instruction set.
1252
1253 See also:
1254 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1255
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001256config CRYPTO_SERPENT_SSE2_586
1257 tristate "Serpent cipher algorithm (i586/SSE2)"
1258 depends on X86 && !64BIT
1259 select CRYPTO_ALGAPI
Jussi Kivilinna341975b2011-11-24 08:37:41 +02001260 select CRYPTO_CRYPTD
Ard Biesheuvel801201a2013-09-20 09:55:41 +02001261 select CRYPTO_ABLK_HELPER
Jussi Kivilinna596d8752012-06-18 14:07:19 +03001262 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001263 select CRYPTO_SERPENT
Jussi Kivilinnafeaf0cf2011-12-13 12:53:12 +02001264 select CRYPTO_LRW
1265 select CRYPTO_XTS
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001266 help
1267 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1268
1269 Keys are allowed to be from 0 to 256 bits in length, in steps
1270 of 8 bits.
1271
1272 This module provides Serpent cipher algorithm that processes four
1273 blocks parallel using SSE2 instruction set.
1274
1275 See also:
1276 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1277
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001278config CRYPTO_SERPENT_AVX_X86_64
1279 tristate "Serpent cipher algorithm (x86_64/AVX)"
1280 depends on X86 && 64BIT
1281 select CRYPTO_ALGAPI
1282 select CRYPTO_CRYPTD
Ard Biesheuvel801201a2013-09-20 09:55:41 +02001283 select CRYPTO_ABLK_HELPER
Jussi Kivilinna1d0debb2012-06-18 14:07:24 +03001284 select CRYPTO_GLUE_HELPER_X86
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001285 select CRYPTO_SERPENT
1286 select CRYPTO_LRW
1287 select CRYPTO_XTS
1288 help
1289 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1290
1291 Keys are allowed to be from 0 to 256 bits in length, in steps
1292 of 8 bits.
1293
1294 This module provides the Serpent cipher algorithm that processes
1295 eight blocks parallel using the AVX instruction set.
1296
1297 See also:
1298 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1299
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001300config CRYPTO_SERPENT_AVX2_X86_64
1301 tristate "Serpent cipher algorithm (x86_64/AVX2)"
1302 depends on X86 && 64BIT
1303 select CRYPTO_ALGAPI
1304 select CRYPTO_CRYPTD
Ard Biesheuvel801201a2013-09-20 09:55:41 +02001305 select CRYPTO_ABLK_HELPER
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001306 select CRYPTO_GLUE_HELPER_X86
1307 select CRYPTO_SERPENT
1308 select CRYPTO_SERPENT_AVX_X86_64
1309 select CRYPTO_LRW
1310 select CRYPTO_XTS
1311 help
1312 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1313
1314 Keys are allowed to be from 0 to 256 bits in length, in steps
1315 of 8 bits.
1316
1317 This module provides Serpent cipher algorithm that processes 16
1318 blocks parallel using AVX2 instruction set.
1319
1320 See also:
1321 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1322
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001323config CRYPTO_TEA
1324 tristate "TEA, XTEA and XETA cipher algorithms"
1325 select CRYPTO_ALGAPI
1326 help
1327 TEA cipher algorithm.
1328
1329 Tiny Encryption Algorithm is a simple cipher that uses
1330 many rounds for security. It is very fast and uses
1331 little memory.
1332
1333 Xtendend Tiny Encryption Algorithm is a modification to
1334 the TEA algorithm to address a potential key weakness
1335 in the TEA algorithm.
1336
1337 Xtendend Encryption Tiny Algorithm is a mis-implementation
1338 of the XTEA algorithm for compatibility purposes.
1339
1340config CRYPTO_TWOFISH
1341 tristate "Twofish cipher algorithm"
1342 select CRYPTO_ALGAPI
1343 select CRYPTO_TWOFISH_COMMON
1344 help
1345 Twofish cipher algorithm.
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 See also:
1353 <http://www.schneier.com/twofish.html>
1354
1355config CRYPTO_TWOFISH_COMMON
1356 tristate
1357 help
1358 Common parts of the Twofish cipher algorithm shared by the
1359 generic c and the assembler implementations.
1360
1361config CRYPTO_TWOFISH_586
1362 tristate "Twofish cipher algorithms (i586)"
1363 depends on (X86 || UML_X86) && !64BIT
1364 select CRYPTO_ALGAPI
1365 select CRYPTO_TWOFISH_COMMON
1366 help
1367 Twofish cipher algorithm.
1368
1369 Twofish was submitted as an AES (Advanced Encryption Standard)
1370 candidate cipher by researchers at CounterPane Systems. It is a
1371 16 round block cipher supporting key sizes of 128, 192, and 256
1372 bits.
1373
1374 See also:
1375 <http://www.schneier.com/twofish.html>
1376
1377config CRYPTO_TWOFISH_X86_64
1378 tristate "Twofish cipher algorithm (x86_64)"
1379 depends on (X86 || UML_X86) && 64BIT
1380 select CRYPTO_ALGAPI
1381 select CRYPTO_TWOFISH_COMMON
1382 help
1383 Twofish cipher algorithm (x86_64).
1384
1385 Twofish was submitted as an AES (Advanced Encryption Standard)
1386 candidate cipher by researchers at CounterPane Systems. It is a
1387 16 round block cipher supporting key sizes of 128, 192, and 256
1388 bits.
1389
1390 See also:
1391 <http://www.schneier.com/twofish.html>
1392
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001393config CRYPTO_TWOFISH_X86_64_3WAY
1394 tristate "Twofish cipher algorithm (x86_64, 3-way parallel)"
Al Virof21a7c12012-04-08 20:31:22 -04001395 depends on X86 && 64BIT
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001396 select CRYPTO_ALGAPI
1397 select CRYPTO_TWOFISH_COMMON
1398 select CRYPTO_TWOFISH_X86_64
Jussi Kivilinna414cb5e2012-06-18 14:07:34 +03001399 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinnae7cda5d2011-12-13 12:53:01 +02001400 select CRYPTO_LRW
1401 select CRYPTO_XTS
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001402 help
1403 Twofish cipher algorithm (x86_64, 3-way parallel).
1404
1405 Twofish was submitted as an AES (Advanced Encryption Standard)
1406 candidate cipher by researchers at CounterPane Systems. It is a
1407 16 round block cipher supporting key sizes of 128, 192, and 256
1408 bits.
1409
1410 This module provides Twofish cipher algorithm that processes three
1411 blocks parallel, utilizing resources of out-of-order CPUs better.
1412
1413 See also:
1414 <http://www.schneier.com/twofish.html>
1415
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001416config CRYPTO_TWOFISH_AVX_X86_64
1417 tristate "Twofish cipher algorithm (x86_64/AVX)"
1418 depends on X86 && 64BIT
1419 select CRYPTO_ALGAPI
1420 select CRYPTO_CRYPTD
Ard Biesheuvel801201a2013-09-20 09:55:41 +02001421 select CRYPTO_ABLK_HELPER
Jussi Kivilinnaa7378d42012-06-18 14:07:39 +03001422 select CRYPTO_GLUE_HELPER_X86
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001423 select CRYPTO_TWOFISH_COMMON
1424 select CRYPTO_TWOFISH_X86_64
1425 select CRYPTO_TWOFISH_X86_64_3WAY
1426 select CRYPTO_LRW
1427 select CRYPTO_XTS
1428 help
1429 Twofish cipher algorithm (x86_64/AVX).
1430
1431 Twofish was submitted as an AES (Advanced Encryption Standard)
1432 candidate cipher by researchers at CounterPane Systems. It is a
1433 16 round block cipher supporting key sizes of 128, 192, and 256
1434 bits.
1435
1436 This module provides the Twofish cipher algorithm that processes
1437 eight blocks parallel using the AVX Instruction Set.
1438
1439 See also:
1440 <http://www.schneier.com/twofish.html>
1441
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001442comment "Compression"
1443
Linus Torvalds1da177e2005-04-16 15:20:36 -07001444config CRYPTO_DEFLATE
1445 tristate "Deflate compression algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001446 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -07001447 select ZLIB_INFLATE
1448 select ZLIB_DEFLATE
1449 help
1450 This is the Deflate algorithm (RFC1951), specified for use in
1451 IPSec with the IPCOMP protocol (RFC3173, RFC2394).
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001452
Linus Torvalds1da177e2005-04-16 15:20:36 -07001453 You will most probably want this if using IPSec.
1454
Geert Uytterhoevenbf68e652009-03-04 15:15:49 +08001455config CRYPTO_ZLIB
1456 tristate "Zlib compression algorithm"
1457 select CRYPTO_PCOMP
1458 select ZLIB_INFLATE
1459 select ZLIB_DEFLATE
1460 select NLATTR
1461 help
1462 This is the zlib algorithm.
1463
Zoltan Sogor0b77abb2007-12-07 16:53:23 +08001464config CRYPTO_LZO
1465 tristate "LZO compression algorithm"
1466 select CRYPTO_ALGAPI
1467 select LZO_COMPRESS
1468 select LZO_DECOMPRESS
1469 help
1470 This is the LZO algorithm.
1471
Seth Jennings35a1fc12012-07-19 09:42:41 -05001472config CRYPTO_842
1473 tristate "842 compression algorithm"
Dan Streetman2062c5b2015-05-07 13:49:15 -04001474 select CRYPTO_ALGAPI
1475 select 842_COMPRESS
1476 select 842_DECOMPRESS
Seth Jennings35a1fc12012-07-19 09:42:41 -05001477 help
1478 This is the 842 algorithm.
1479
Chanho Min0ea85302013-07-08 16:01:51 -07001480config CRYPTO_LZ4
1481 tristate "LZ4 compression algorithm"
1482 select CRYPTO_ALGAPI
1483 select LZ4_COMPRESS
1484 select LZ4_DECOMPRESS
1485 help
1486 This is the LZ4 algorithm.
1487
1488config CRYPTO_LZ4HC
1489 tristate "LZ4HC compression algorithm"
1490 select CRYPTO_ALGAPI
1491 select LZ4HC_COMPRESS
1492 select LZ4_DECOMPRESS
1493 help
1494 This is the LZ4 high compression mode algorithm.
1495
Neil Horman17f0f4a2008-08-14 22:15:52 +10001496comment "Random Number Generation"
1497
1498config CRYPTO_ANSI_CPRNG
1499 tristate "Pseudo Random Number Generation for Cryptographic modules"
1500 select CRYPTO_AES
1501 select CRYPTO_RNG
Neil Horman17f0f4a2008-08-14 22:15:52 +10001502 help
1503 This option enables the generic pseudo random number generator
1504 for cryptographic modules. Uses the Algorithm specified in
Jiri Kosina7dd607e2010-01-27 01:00:10 +01001505 ANSI X9.31 A.2.4. Note that this option must be enabled if
1506 CRYPTO_FIPS is selected
Neil Horman17f0f4a2008-08-14 22:15:52 +10001507
Herbert Xuf2c89a12014-07-04 22:15:08 +08001508menuconfig CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001509 tristate "NIST SP800-90A DRBG"
Stephan Mueller419090c2014-05-31 17:22:31 +02001510 help
1511 NIST SP800-90A compliant DRBG. In the following submenu, one or
1512 more of the DRBG types must be selected.
1513
Herbert Xuf2c89a12014-07-04 22:15:08 +08001514if CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001515
1516config CRYPTO_DRBG_HMAC
Herbert Xu401e4232015-06-03 14:49:31 +08001517 bool
Stephan Mueller419090c2014-05-31 17:22:31 +02001518 default y
Stephan Mueller419090c2014-05-31 17:22:31 +02001519 select CRYPTO_HMAC
Herbert Xu826775b2015-06-11 08:55:10 +08001520 select CRYPTO_SHA256
Stephan Mueller419090c2014-05-31 17:22:31 +02001521
1522config CRYPTO_DRBG_HASH
1523 bool "Enable Hash DRBG"
Herbert Xu826775b2015-06-11 08:55:10 +08001524 select CRYPTO_SHA256
Stephan Mueller419090c2014-05-31 17:22:31 +02001525 help
1526 Enable the Hash DRBG variant as defined in NIST SP800-90A.
1527
1528config CRYPTO_DRBG_CTR
1529 bool "Enable CTR DRBG"
Stephan Mueller419090c2014-05-31 17:22:31 +02001530 select CRYPTO_AES
1531 help
1532 Enable the CTR DRBG variant as defined in NIST SP800-90A.
1533
Herbert Xuf2c89a12014-07-04 22:15:08 +08001534config CRYPTO_DRBG
1535 tristate
Herbert Xu401e4232015-06-03 14:49:31 +08001536 default CRYPTO_DRBG_MENU
Herbert Xuf2c89a12014-07-04 22:15:08 +08001537 select CRYPTO_RNG
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001538 select CRYPTO_JITTERENTROPY
Herbert Xuf2c89a12014-07-04 22:15:08 +08001539
1540endif # if CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001541
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001542config CRYPTO_JITTERENTROPY
1543 tristate "Jitterentropy Non-Deterministic Random Number Generator"
1544 help
1545 The Jitterentropy RNG is a noise that is intended
1546 to provide seed to another RNG. The RNG does not
1547 perform any cryptographic whitening of the generated
1548 random numbers. This Jitterentropy RNG registers with
1549 the kernel crypto API and can be used by any caller.
1550
Herbert Xu03c8efc2010-10-19 21:12:39 +08001551config CRYPTO_USER_API
1552 tristate
1553
Herbert Xufe869cd2010-10-19 21:23:00 +08001554config CRYPTO_USER_API_HASH
1555 tristate "User-space interface for hash algorithms"
Herbert Xu74517082010-11-29 22:56:03 +08001556 depends on NET
Herbert Xufe869cd2010-10-19 21:23:00 +08001557 select CRYPTO_HASH
1558 select CRYPTO_USER_API
1559 help
1560 This option enables the user-spaces interface for hash
1561 algorithms.
1562
Herbert Xu8ff59092010-10-19 21:31:55 +08001563config CRYPTO_USER_API_SKCIPHER
1564 tristate "User-space interface for symmetric key cipher algorithms"
Herbert Xu74517082010-11-29 22:56:03 +08001565 depends on NET
Herbert Xu8ff59092010-10-19 21:31:55 +08001566 select CRYPTO_BLKCIPHER
1567 select CRYPTO_USER_API
1568 help
1569 This option enables the user-spaces interface for symmetric
1570 key cipher algorithms.
1571
Stephan Mueller2f3755382014-12-25 23:00:39 +01001572config CRYPTO_USER_API_RNG
1573 tristate "User-space interface for random number generator algorithms"
1574 depends on NET
1575 select CRYPTO_RNG
1576 select CRYPTO_USER_API
1577 help
1578 This option enables the user-spaces interface for random
1579 number generator algorithms.
1580
Herbert Xub64a2d92015-05-28 11:30:35 +08001581config CRYPTO_USER_API_AEAD
1582 tristate "User-space interface for AEAD cipher algorithms"
1583 depends on NET
1584 select CRYPTO_AEAD
1585 select CRYPTO_USER_API
1586 help
1587 This option enables the user-spaces interface for AEAD
1588 cipher algorithms.
1589
Dmitry Kasatkinee089972013-05-06 15:40:01 +03001590config CRYPTO_HASH_INFO
1591 bool
1592
Linus Torvalds1da177e2005-04-16 15:20:36 -07001593source "drivers/crypto/Kconfig"
David Howells964f3b32012-09-13 15:17:21 +01001594source crypto/asymmetric_keys/Kconfig
Linus Torvalds1da177e2005-04-16 15:20:36 -07001595
Herbert Xucce9e062006-08-21 21:08:13 +10001596endif # if CRYPTO