blob: ecb697b4151f0f26d837cb685295a839f4b3db2e [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#
Dan Williams685784a2007-07-09 11:56:42 -07003# Generic algorithms support
4#
5config XOR_BLOCKS
6 tristate
7
8#
Dan Williams9bc89cd2007-01-02 11:10:44 -07009# async_tx api: hardware offloaded memory transfer/transform support
10#
11source "crypto/async_tx/Kconfig"
12
13#
Linus Torvalds1da177e2005-04-16 15:20:36 -070014# Cryptographic API Configuration
15#
Jan Engelhardt2e290f42007-05-18 15:11:01 +100016menuconfig CRYPTO
Sebastian Siewiorc3715cb92008-03-30 16:36:09 +080017 tristate "Cryptographic API"
Linus Torvalds1da177e2005-04-16 15:20:36 -070018 help
19 This option provides the core Cryptographic API.
20
Herbert Xucce9e062006-08-21 21:08:13 +100021if CRYPTO
22
Sebastian Siewior584fffc2008-04-05 21:04:48 +080023comment "Crypto core or helper"
24
Neil Hormanccb778e2008-08-05 14:13:08 +080025config CRYPTO_FIPS
26 bool "FIPS 200 compliance"
Herbert Xuf2c89a12014-07-04 22:15:08 +080027 depends on (CRYPTO_ANSI_CPRNG || CRYPTO_DRBG) && !CRYPTO_MANAGER_DISABLE_TESTS
Alec Ari1f696092016-10-04 19:34:30 -030028 depends on (MODULE_SIG || !MODULES)
Neil Hormanccb778e2008-08-05 14:13:08 +080029 help
Geert Uytterhoevend99324c2019-03-20 11:41:03 +010030 This option enables the fips boot option which is
31 required if you want the system to operate in a FIPS 200
Neil Hormanccb778e2008-08-05 14:13:08 +080032 certification. You should say no unless you know what
Chuck Ebberte84c5482010-09-03 19:17:49 +080033 this is.
Neil Hormanccb778e2008-08-05 14:13:08 +080034
Herbert Xucce9e062006-08-21 21:08:13 +100035config CRYPTO_ALGAPI
36 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110037 select CRYPTO_ALGAPI2
Herbert Xucce9e062006-08-21 21:08:13 +100038 help
39 This option provides the API for cryptographic algorithms.
40
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110041config CRYPTO_ALGAPI2
42 tristate
43
Herbert Xu1ae97822007-08-30 15:36:14 +080044config CRYPTO_AEAD
45 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110046 select CRYPTO_AEAD2
Herbert Xu1ae97822007-08-30 15:36:14 +080047 select CRYPTO_ALGAPI
48
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110049config CRYPTO_AEAD2
50 tristate
51 select CRYPTO_ALGAPI2
Herbert Xu149a3972015-08-13 17:28:58 +080052 select CRYPTO_NULL2
53 select CRYPTO_RNG2
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110054
Herbert Xu5cde0af2006-08-22 00:07:53 +100055config CRYPTO_BLKCIPHER
56 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110057 select CRYPTO_BLKCIPHER2
Herbert Xu5cde0af2006-08-22 00:07:53 +100058 select CRYPTO_ALGAPI
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110059
60config CRYPTO_BLKCIPHER2
61 tristate
62 select CRYPTO_ALGAPI2
63 select CRYPTO_RNG2
Huang Ying0a2e8212009-02-19 14:44:02 +080064 select CRYPTO_WORKQUEUE
Herbert Xu5cde0af2006-08-22 00:07:53 +100065
Herbert Xu055bcee2006-08-19 22:24:23 +100066config CRYPTO_HASH
67 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110068 select CRYPTO_HASH2
Herbert Xu055bcee2006-08-19 22:24:23 +100069 select CRYPTO_ALGAPI
70
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110071config CRYPTO_HASH2
72 tristate
73 select CRYPTO_ALGAPI2
74
Neil Horman17f0f4a2008-08-14 22:15:52 +100075config CRYPTO_RNG
76 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110077 select CRYPTO_RNG2
Neil Horman17f0f4a2008-08-14 22:15:52 +100078 select CRYPTO_ALGAPI
79
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110080config CRYPTO_RNG2
81 tristate
82 select CRYPTO_ALGAPI2
83
Herbert Xu401e4232015-06-03 14:49:31 +080084config CRYPTO_RNG_DEFAULT
85 tristate
86 select CRYPTO_DRBG_MENU
87
Tadeusz Struk3c339ab2015-06-16 10:30:55 -070088config CRYPTO_AKCIPHER2
89 tristate
90 select CRYPTO_ALGAPI2
91
92config CRYPTO_AKCIPHER
93 tristate
94 select CRYPTO_AKCIPHER2
95 select CRYPTO_ALGAPI
96
Salvatore Benedetto4e5f2c42016-06-22 17:49:13 +010097config CRYPTO_KPP2
98 tristate
99 select CRYPTO_ALGAPI2
100
101config CRYPTO_KPP
102 tristate
103 select CRYPTO_ALGAPI
104 select CRYPTO_KPP2
105
Giovanni Cabiddu2ebda742016-10-21 13:19:47 +0100106config CRYPTO_ACOMP2
107 tristate
108 select CRYPTO_ALGAPI2
Bart Van Assche8cd579d2018-01-05 08:26:47 -0800109 select SGL_ALLOC
Giovanni Cabiddu2ebda742016-10-21 13:19:47 +0100110
111config CRYPTO_ACOMP
112 tristate
113 select CRYPTO_ALGAPI
114 select CRYPTO_ACOMP2
115
Herbert Xu2b8c19d2006-09-21 11:31:44 +1000116config CRYPTO_MANAGER
117 tristate "Cryptographic algorithm manager"
Herbert Xu6a0fcbb2008-12-10 23:29:44 +1100118 select CRYPTO_MANAGER2
Herbert Xu2b8c19d2006-09-21 11:31:44 +1000119 help
120 Create default cryptographic template instantiations such as
121 cbc(aes).
122
Herbert Xu6a0fcbb2008-12-10 23:29:44 +1100123config CRYPTO_MANAGER2
124 def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y)
125 select CRYPTO_AEAD2
126 select CRYPTO_HASH2
127 select CRYPTO_BLKCIPHER2
Tadeusz Struk946cc462015-06-16 10:31:06 -0700128 select CRYPTO_AKCIPHER2
Salvatore Benedetto4e5f2c42016-06-22 17:49:13 +0100129 select CRYPTO_KPP2
Giovanni Cabiddu2ebda742016-10-21 13:19:47 +0100130 select CRYPTO_ACOMP2
Herbert Xu6a0fcbb2008-12-10 23:29:44 +1100131
Steffen Klasserta38f7902011-09-27 07:23:50 +0200132config CRYPTO_USER
133 tristate "Userspace cryptographic algorithm configuration"
Herbert Xu5db017a2011-11-01 12:12:43 +1100134 depends on NET
Steffen Klasserta38f7902011-09-27 07:23:50 +0200135 select CRYPTO_MANAGER
136 help
Valdis.Kletnieks@vt.edud19978f2011-11-09 01:29:20 -0500137 Userspace configuration for cryptographic instantiations such as
Steffen Klasserta38f7902011-09-27 07:23:50 +0200138 cbc(aes).
139
Herbert Xu326a6342010-08-06 09:40:28 +0800140config CRYPTO_MANAGER_DISABLE_TESTS
141 bool "Disable run-time self tests"
Herbert Xu00ca28a2010-08-06 10:34:00 +0800142 default y
143 depends on CRYPTO_MANAGER2
Alexander Shishkin0b767f92010-06-03 20:53:43 +1000144 help
Herbert Xu326a6342010-08-06 09:40:28 +0800145 Disable run-time self tests that normally take place at
146 algorithm registration.
Alexander Shishkin0b767f92010-06-03 20:53:43 +1000147
Eric Biggers5b2706a2019-01-31 23:51:44 -0800148config CRYPTO_MANAGER_EXTRA_TESTS
149 bool "Enable extra run-time crypto self tests"
150 depends on DEBUG_KERNEL && !CRYPTO_MANAGER_DISABLE_TESTS
151 help
152 Enable extra run-time self tests of registered crypto algorithms,
153 including randomized fuzz tests.
154
155 This is intended for developer use only, as these tests take much
156 longer to run than the normal self tests.
157
Rik Snelc494e072006-11-29 18:59:44 +1100158config CRYPTO_GF128MUL
Jussi Kivilinna08c70fc2011-12-13 12:53:22 +0200159 tristate "GF(2^128) multiplication functions"
Rik Snelc494e072006-11-29 18:59:44 +1100160 help
161 Efficient table driven implementation of multiplications in the
162 field GF(2^128). This is needed by some cypher modes. This
163 option will be selected automatically if you select such a
164 cipher mode. Only select this option by hand if you expect to load
165 an external module that requires these functions.
166
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800167config CRYPTO_NULL
168 tristate "Null algorithms"
Herbert Xu149a3972015-08-13 17:28:58 +0800169 select CRYPTO_NULL2
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800170 help
171 These are 'Null' algorithms, used by IPsec, which do nothing.
172
Herbert Xu149a3972015-08-13 17:28:58 +0800173config CRYPTO_NULL2
Herbert Xudd43c4e2015-08-17 20:39:40 +0800174 tristate
Herbert Xu149a3972015-08-13 17:28:58 +0800175 select CRYPTO_ALGAPI2
176 select CRYPTO_BLKCIPHER2
177 select CRYPTO_HASH2
178
Steffen Klassert5068c7a2010-01-07 15:57:19 +1100179config CRYPTO_PCRYPT
Kees Cook3b4afaf2012-10-02 11:16:49 -0700180 tristate "Parallel crypto engine"
181 depends on SMP
Steffen Klassert5068c7a2010-01-07 15:57:19 +1100182 select PADATA
183 select CRYPTO_MANAGER
184 select CRYPTO_AEAD
185 help
186 This converts an arbitrary crypto algorithm into a parallel
187 algorithm that executes in kernel threads.
188
Huang Ying25c38d32009-02-19 14:33:40 +0800189config CRYPTO_WORKQUEUE
190 tristate
191
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800192config CRYPTO_CRYPTD
193 tristate "Software async crypto daemon"
Herbert Xudb131ef2006-09-21 11:44:08 +1000194 select CRYPTO_BLKCIPHER
Loc Hob8a28252008-05-14 21:23:00 +0800195 select CRYPTO_HASH
Herbert Xu43518402006-10-16 21:28:58 +1000196 select CRYPTO_MANAGER
Huang Ying254eff72009-02-19 14:42:19 +0800197 select CRYPTO_WORKQUEUE
Herbert Xudb131ef2006-09-21 11:44:08 +1000198 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800199 This is a generic software asynchronous crypto daemon that
200 converts an arbitrary synchronous software crypto algorithm
201 into an asynchronous algorithm that executes in a kernel thread.
202
203config CRYPTO_AUTHENC
204 tristate "Authenc support"
205 select CRYPTO_AEAD
206 select CRYPTO_BLKCIPHER
207 select CRYPTO_MANAGER
208 select CRYPTO_HASH
Herbert Xue94c6a72015-08-04 21:23:14 +0800209 select CRYPTO_NULL
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800210 help
211 Authenc: Combined mode wrapper for IPsec.
212 This is required for IPSec.
213
214config CRYPTO_TEST
215 tristate "Testing module"
216 depends on m
Herbert Xuda7f0332008-07-31 17:08:25 +0800217 select CRYPTO_MANAGER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800218 help
219 Quick & dirty crypto test module.
220
Herbert Xu266d0512016-11-22 20:08:25 +0800221config CRYPTO_SIMD
222 tristate
223 select CRYPTO_CRYPTD
224
Jussi Kivilinna596d8752012-06-18 14:07:19 +0300225config CRYPTO_GLUE_HELPER_X86
226 tristate
227 depends on X86
Herbert Xu065ce322016-11-22 20:08:29 +0800228 select CRYPTO_BLKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +0300229
Baolin Wang735d37b2016-01-26 20:25:39 +0800230config CRYPTO_ENGINE
231 tristate
232
Vitaly Chikunov3d6228a2019-04-11 18:51:18 +0300233comment "Public-key cryptography"
234
235config CRYPTO_RSA
236 tristate "RSA algorithm"
237 select CRYPTO_AKCIPHER
238 select CRYPTO_MANAGER
239 select MPILIB
240 select ASN1
241 help
242 Generic implementation of the RSA public key algorithm.
243
244config CRYPTO_DH
245 tristate "Diffie-Hellman algorithm"
246 select CRYPTO_KPP
247 select MPILIB
248 help
249 Generic implementation of the Diffie-Hellman algorithm.
250
Vitaly Chikunov4a2289d2019-04-11 18:51:19 +0300251config CRYPTO_ECC
252 tristate
253
Vitaly Chikunov3d6228a2019-04-11 18:51:18 +0300254config CRYPTO_ECDH
255 tristate "ECDH algorithm"
Vitaly Chikunov4a2289d2019-04-11 18:51:19 +0300256 select CRYPTO_ECC
Vitaly Chikunov3d6228a2019-04-11 18:51:18 +0300257 select CRYPTO_KPP
258 select CRYPTO_RNG_DEFAULT
259 help
260 Generic implementation of the ECDH algorithm
261
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800262comment "Authenticated Encryption with Associated Data"
263
264config CRYPTO_CCM
265 tristate "CCM support"
266 select CRYPTO_CTR
Ard Biesheuvelf15f05b2017-02-03 14:49:36 +0000267 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800268 select CRYPTO_AEAD
269 help
270 Support for Counter with CBC MAC. Required for IPsec.
271
272config CRYPTO_GCM
273 tristate "GCM/GMAC support"
274 select CRYPTO_CTR
275 select CRYPTO_AEAD
Huang Ying9382d972009-08-06 15:34:26 +1000276 select CRYPTO_GHASH
Jussi Kivilinna9489667d2013-04-07 16:43:41 +0300277 select CRYPTO_NULL
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800278 help
279 Support for Galois/Counter Mode (GCM) and Galois Message
280 Authentication Code (GMAC). Required for IPSec.
281
Martin Willi71ebc4d2015-06-01 13:44:00 +0200282config CRYPTO_CHACHA20POLY1305
283 tristate "ChaCha20-Poly1305 AEAD support"
284 select CRYPTO_CHACHA20
285 select CRYPTO_POLY1305
286 select CRYPTO_AEAD
287 help
288 ChaCha20-Poly1305 AEAD support, RFC7539.
289
290 Support for the AEAD wrapper using the ChaCha20 stream cipher combined
291 with the Poly1305 authenticator. It is defined in RFC7539 for use in
292 IETF protocols.
293
Ondrej Mosnacekf606a882018-05-11 14:12:49 +0200294config CRYPTO_AEGIS128
295 tristate "AEGIS-128 AEAD algorithm"
296 select CRYPTO_AEAD
297 select CRYPTO_AES # for AES S-box tables
298 help
299 Support for the AEGIS-128 dedicated AEAD algorithm.
300
301config CRYPTO_AEGIS128L
302 tristate "AEGIS-128L AEAD algorithm"
303 select CRYPTO_AEAD
304 select CRYPTO_AES # for AES S-box tables
305 help
306 Support for the AEGIS-128L dedicated AEAD algorithm.
307
308config CRYPTO_AEGIS256
309 tristate "AEGIS-256 AEAD algorithm"
310 select CRYPTO_AEAD
311 select CRYPTO_AES # for AES S-box tables
312 help
313 Support for the AEGIS-256 dedicated AEAD algorithm.
314
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200315config CRYPTO_AEGIS128_AESNI_SSE2
316 tristate "AEGIS-128 AEAD algorithm (x86_64 AESNI+SSE2 implementation)"
317 depends on X86 && 64BIT
318 select CRYPTO_AEAD
Eric Biggersde272ca2019-03-10 12:00:53 -0700319 select CRYPTO_SIMD
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200320 help
Ondrej Mosnacek4e5180e2019-03-15 08:47:25 +0100321 AESNI+SSE2 implementation of the AEGIS-128 dedicated AEAD algorithm.
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200322
323config CRYPTO_AEGIS128L_AESNI_SSE2
324 tristate "AEGIS-128L AEAD algorithm (x86_64 AESNI+SSE2 implementation)"
325 depends on X86 && 64BIT
326 select CRYPTO_AEAD
Eric Biggersd6281322019-03-10 12:00:54 -0700327 select CRYPTO_SIMD
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200328 help
Ondrej Mosnacek4e5180e2019-03-15 08:47:25 +0100329 AESNI+SSE2 implementation of the AEGIS-128L dedicated AEAD algorithm.
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200330
331config CRYPTO_AEGIS256_AESNI_SSE2
332 tristate "AEGIS-256 AEAD algorithm (x86_64 AESNI+SSE2 implementation)"
333 depends on X86 && 64BIT
334 select CRYPTO_AEAD
Eric Biggersb6708c22019-03-10 12:00:55 -0700335 select CRYPTO_SIMD
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200336 help
Ondrej Mosnacek4e5180e2019-03-15 08:47:25 +0100337 AESNI+SSE2 implementation of the AEGIS-256 dedicated AEAD algorithm.
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200338
Ondrej Mosnacek396be412018-05-11 14:19:09 +0200339config CRYPTO_MORUS640
340 tristate "MORUS-640 AEAD algorithm"
341 select CRYPTO_AEAD
342 help
343 Support for the MORUS-640 dedicated AEAD algorithm.
344
Ondrej Mosnacek56e8e572018-05-11 14:19:11 +0200345config CRYPTO_MORUS640_GLUE
Ondrej Mosnacek2808f172018-05-21 21:41:51 +0200346 tristate
347 depends on X86
Ondrej Mosnacek56e8e572018-05-11 14:19:11 +0200348 select CRYPTO_AEAD
Eric Biggers47730952019-03-10 12:00:56 -0700349 select CRYPTO_SIMD
Ondrej Mosnacek56e8e572018-05-11 14:19:11 +0200350 help
351 Common glue for SIMD optimizations of the MORUS-640 dedicated AEAD
352 algorithm.
353
Ondrej Mosnacek6ecc9d92018-05-11 14:19:12 +0200354config CRYPTO_MORUS640_SSE2
355 tristate "MORUS-640 AEAD algorithm (x86_64 SSE2 implementation)"
356 depends on X86 && 64BIT
357 select CRYPTO_AEAD
358 select CRYPTO_MORUS640_GLUE
359 help
360 SSE2 implementation of the MORUS-640 dedicated AEAD algorithm.
361
Ondrej Mosnacek396be412018-05-11 14:19:09 +0200362config CRYPTO_MORUS1280
363 tristate "MORUS-1280 AEAD algorithm"
364 select CRYPTO_AEAD
365 help
366 Support for the MORUS-1280 dedicated AEAD algorithm.
367
Ondrej Mosnacek56e8e572018-05-11 14:19:11 +0200368config CRYPTO_MORUS1280_GLUE
Ondrej Mosnacek2808f172018-05-21 21:41:51 +0200369 tristate
370 depends on X86
Ondrej Mosnacek56e8e572018-05-11 14:19:11 +0200371 select CRYPTO_AEAD
Eric Biggerse151a8d2019-03-10 12:00:57 -0700372 select CRYPTO_SIMD
Ondrej Mosnacek56e8e572018-05-11 14:19:11 +0200373 help
374 Common glue for SIMD optimizations of the MORUS-1280 dedicated AEAD
375 algorithm.
376
Ondrej Mosnacek6ecc9d92018-05-11 14:19:12 +0200377config CRYPTO_MORUS1280_SSE2
378 tristate "MORUS-1280 AEAD algorithm (x86_64 SSE2 implementation)"
379 depends on X86 && 64BIT
380 select CRYPTO_AEAD
381 select CRYPTO_MORUS1280_GLUE
382 help
383 SSE2 optimizedimplementation of the MORUS-1280 dedicated AEAD
384 algorithm.
385
386config CRYPTO_MORUS1280_AVX2
387 tristate "MORUS-1280 AEAD algorithm (x86_64 AVX2 implementation)"
388 depends on X86 && 64BIT
389 select CRYPTO_AEAD
390 select CRYPTO_MORUS1280_GLUE
391 help
392 AVX2 optimized implementation of the MORUS-1280 dedicated AEAD
393 algorithm.
394
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800395config CRYPTO_SEQIV
396 tristate "Sequence Number IV Generator"
397 select CRYPTO_AEAD
398 select CRYPTO_BLKCIPHER
Herbert Xu856e3f402015-05-21 15:11:13 +0800399 select CRYPTO_NULL
Herbert Xu401e4232015-06-03 14:49:31 +0800400 select CRYPTO_RNG_DEFAULT
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800401 help
402 This IV generator generates an IV based on a sequence number by
403 xoring it with a salt. This algorithm is mainly useful for CTR
404
Herbert Xua10f5542015-05-21 15:11:15 +0800405config CRYPTO_ECHAINIV
406 tristate "Encrypted Chain IV Generator"
407 select CRYPTO_AEAD
408 select CRYPTO_NULL
Herbert Xu401e4232015-06-03 14:49:31 +0800409 select CRYPTO_RNG_DEFAULT
Herbert Xu34912442015-06-03 14:49:29 +0800410 default m
Herbert Xua10f5542015-05-21 15:11:15 +0800411 help
412 This IV generator generates an IV based on the encryption of
413 a sequence number xored with a salt. This is the default
414 algorithm for CBC.
415
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800416comment "Block modes"
Herbert Xudb131ef2006-09-21 11:44:08 +1000417
418config CRYPTO_CBC
419 tristate "CBC support"
420 select CRYPTO_BLKCIPHER
Herbert Xu43518402006-10-16 21:28:58 +1000421 select CRYPTO_MANAGER
Herbert Xudb131ef2006-09-21 11:44:08 +1000422 help
423 CBC: Cipher Block Chaining mode
424 This block cipher algorithm is required for IPSec.
425
James Bottomleya7d85e02018-03-01 14:36:17 -0800426config CRYPTO_CFB
427 tristate "CFB support"
428 select CRYPTO_BLKCIPHER
429 select CRYPTO_MANAGER
430 help
431 CFB: Cipher FeedBack mode
432 This block cipher algorithm is required for TPM2 Cryptography.
433
Joy Latten23e353c2007-10-23 08:50:32 +0800434config CRYPTO_CTR
435 tristate "CTR support"
436 select CRYPTO_BLKCIPHER
Herbert Xu0a270322007-11-30 21:38:37 +1100437 select CRYPTO_SEQIV
Joy Latten23e353c2007-10-23 08:50:32 +0800438 select CRYPTO_MANAGER
Joy Latten23e353c2007-10-23 08:50:32 +0800439 help
440 CTR: Counter mode
441 This block cipher algorithm is required for IPSec.
442
Kevin Coffman76cb9522008-03-24 21:26:16 +0800443config CRYPTO_CTS
444 tristate "CTS support"
445 select CRYPTO_BLKCIPHER
446 help
447 CTS: Cipher Text Stealing
448 This is the Cipher Text Stealing mode as described by
Gilad Ben-Yossefecd6d5c2018-11-05 12:05:01 +0000449 Section 8 of rfc2040 and referenced by rfc3962
450 (rfc3962 includes errata information in its Appendix A) or
451 CBC-CS3 as defined by NIST in Sp800-38A addendum from Oct 2010.
Kevin Coffman76cb9522008-03-24 21:26:16 +0800452 This mode is required for Kerberos gss mechanism support
453 for AES encryption.
454
Gilad Ben-Yossefecd6d5c2018-11-05 12:05:01 +0000455 See: https://csrc.nist.gov/publications/detail/sp/800-38a/addendum/final
456
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800457config CRYPTO_ECB
458 tristate "ECB support"
Herbert Xu653ebd9c2007-11-27 19:48:27 +0800459 select CRYPTO_BLKCIPHER
Herbert Xu124b53d2007-04-16 20:49:20 +1000460 select CRYPTO_MANAGER
461 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800462 ECB: Electronic CodeBook mode
463 This is the simplest block cipher algorithm. It simply encrypts
464 the input block by block.
Herbert Xu124b53d2007-04-16 20:49:20 +1000465
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800466config CRYPTO_LRW
Jussi Kivilinna2470a2b2011-12-13 12:52:51 +0200467 tristate "LRW support"
David Howells90831632006-12-16 12:13:14 +1100468 select CRYPTO_BLKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800469 select CRYPTO_MANAGER
470 select CRYPTO_GF128MUL
David Howells90831632006-12-16 12:13:14 +1100471 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800472 LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
473 narrow block cipher mode for dm-crypt. Use it with cipher
474 specification string aes-lrw-benbi, the key must be 256, 320 or 384.
475 The first 128, 192 or 256 bits in the key are used for AES and the
476 rest is used to tie each cipher block to its logical position.
David Howells90831632006-12-16 12:13:14 +1100477
Gilad Ben-Yossefe497c512018-09-20 14:18:39 +0100478config CRYPTO_OFB
479 tristate "OFB support"
480 select CRYPTO_BLKCIPHER
481 select CRYPTO_MANAGER
482 help
483 OFB: the Output Feedback mode makes a block cipher into a synchronous
484 stream cipher. It generates keystream blocks, which are then XORed
485 with the plaintext blocks to get the ciphertext. Flipping a bit in the
486 ciphertext produces a flipped bit in the plaintext at the same
487 location. This property allows many error correcting codes to function
488 normally even when applied before encryption.
489
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800490config CRYPTO_PCBC
491 tristate "PCBC support"
492 select CRYPTO_BLKCIPHER
493 select CRYPTO_MANAGER
494 help
495 PCBC: Propagating Cipher Block Chaining mode
496 This block cipher algorithm is required for RxRPC.
497
498config CRYPTO_XTS
Jussi Kivilinna5bcf8e62011-12-13 12:52:56 +0200499 tristate "XTS support"
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800500 select CRYPTO_BLKCIPHER
501 select CRYPTO_MANAGER
Milan Broz12cb3a12017-02-23 08:38:26 +0100502 select CRYPTO_ECB
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800503 help
504 XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
505 key size 256, 384 or 512 bits. This implementation currently
506 can't handle a sectorsize which is not a multiple of 16 bytes.
507
Stephan Mueller1c49678e2015-09-21 20:58:56 +0200508config CRYPTO_KEYWRAP
509 tristate "Key wrapping support"
510 select CRYPTO_BLKCIPHER
511 help
512 Support for key wrapping (NIST SP800-38F / RFC3394) without
513 padding.
514
Eric Biggers26609a22018-11-16 17:26:29 -0800515config CRYPTO_NHPOLY1305
516 tristate
517 select CRYPTO_HASH
518 select CRYPTO_POLY1305
519
Eric Biggers012c8232018-12-04 22:20:00 -0800520config CRYPTO_NHPOLY1305_SSE2
521 tristate "NHPoly1305 hash function (x86_64 SSE2 implementation)"
522 depends on X86 && 64BIT
523 select CRYPTO_NHPOLY1305
524 help
525 SSE2 optimized implementation of the hash function used by the
526 Adiantum encryption mode.
527
Eric Biggers0f961f92018-12-04 22:20:01 -0800528config CRYPTO_NHPOLY1305_AVX2
529 tristate "NHPoly1305 hash function (x86_64 AVX2 implementation)"
530 depends on X86 && 64BIT
531 select CRYPTO_NHPOLY1305
532 help
533 AVX2 optimized implementation of the hash function used by the
534 Adiantum encryption mode.
535
Eric Biggers059c2a42018-11-16 17:26:31 -0800536config CRYPTO_ADIANTUM
537 tristate "Adiantum support"
538 select CRYPTO_CHACHA20
539 select CRYPTO_POLY1305
540 select CRYPTO_NHPOLY1305
541 help
542 Adiantum is a tweakable, length-preserving encryption mode
543 designed for fast and secure disk encryption, especially on
544 CPUs without dedicated crypto instructions. It encrypts
545 each sector using the XChaCha12 stream cipher, two passes of
546 an ε-almost-∆-universal hash function, and an invocation of
547 the AES-256 block cipher on a single 16-byte block. On CPUs
548 without AES instructions, Adiantum is much faster than
549 AES-XTS.
550
551 Adiantum's security is provably reducible to that of its
552 underlying stream and block ciphers, subject to a security
553 bound. Unlike XTS, Adiantum is a true wide-block encryption
554 mode, so it actually provides an even stronger notion of
555 security than XTS, subject to the security bound.
556
557 If unsure, say N.
558
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800559comment "Hash modes"
560
Jussi Kivilinna93b5e862013-04-08 10:48:44 +0300561config CRYPTO_CMAC
562 tristate "CMAC support"
563 select CRYPTO_HASH
564 select CRYPTO_MANAGER
565 help
566 Cipher-based Message Authentication Code (CMAC) specified by
567 The National Institute of Standards and Technology (NIST).
568
569 https://tools.ietf.org/html/rfc4493
570 http://csrc.nist.gov/publications/nistpubs/800-38B/SP_800-38B.pdf
571
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800572config CRYPTO_HMAC
573 tristate "HMAC support"
574 select CRYPTO_HASH
575 select CRYPTO_MANAGER
576 help
577 HMAC: Keyed-Hashing for Message Authentication (RFC2104).
578 This is required for IPSec.
579
580config CRYPTO_XCBC
581 tristate "XCBC support"
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800582 select CRYPTO_HASH
583 select CRYPTO_MANAGER
584 help
585 XCBC: Keyed-Hashing with encryption algorithm
586 http://www.ietf.org/rfc/rfc3566.txt
587 http://csrc.nist.gov/encryption/modes/proposedmodes/
588 xcbc-mac/xcbc-mac-spec.pdf
589
Shane Wangf1939f72009-09-02 20:05:22 +1000590config CRYPTO_VMAC
591 tristate "VMAC support"
Shane Wangf1939f72009-09-02 20:05:22 +1000592 select CRYPTO_HASH
593 select CRYPTO_MANAGER
594 help
595 VMAC is a message authentication algorithm designed for
596 very high speed on 64-bit architectures.
597
598 See also:
599 <http://fastcrypto.org/vmac>
600
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800601comment "Digest"
602
603config CRYPTO_CRC32C
604 tristate "CRC32c CRC algorithm"
Herbert Xu5773a3e2008-07-08 20:54:28 +0800605 select CRYPTO_HASH
Darrick J. Wong6a0962b2012-03-23 15:02:25 -0700606 select CRC32
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800607 help
608 Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
609 by iSCSI for header and data digests and by others.
Herbert Xu69c35ef2008-11-07 15:11:47 +0800610 See Castagnoli93. Module will be crc32c.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800611
Austin Zhang8cb51ba2008-08-07 09:57:03 +0800612config CRYPTO_CRC32C_INTEL
613 tristate "CRC32c INTEL hardware acceleration"
614 depends on X86
615 select CRYPTO_HASH
616 help
617 In Intel processor with SSE4.2 supported, the processor will
618 support CRC32C implementation using hardware accelerated CRC32
619 instruction. This option will create 'crc32c-intel' module,
620 which will enable any routine to use the CRC32 instruction to
621 gain performance compared with software implementation.
622 Module will be crc32c-intel.
623
Jean Delvare7cf31862016-11-22 10:32:44 +0100624config CRYPTO_CRC32C_VPMSUM
Anton Blanchard6dd7a822016-07-01 08:19:45 +1000625 tristate "CRC32c CRC algorithm (powerpc64)"
Michael Ellermanc12abf32016-08-09 08:46:15 +1000626 depends on PPC64 && ALTIVEC
Anton Blanchard6dd7a822016-07-01 08:19:45 +1000627 select CRYPTO_HASH
628 select CRC32
629 help
630 CRC32c algorithm implemented using vector polynomial multiply-sum
631 (vpmsum) instructions, introduced in POWER8. Enable on POWER8
632 and newer processors for improved performance.
633
634
David S. Miller442a7c42012-08-22 20:47:36 -0700635config CRYPTO_CRC32C_SPARC64
636 tristate "CRC32c CRC algorithm (SPARC64)"
637 depends on SPARC64
638 select CRYPTO_HASH
639 select CRC32
640 help
641 CRC32c CRC algorithm implemented using sparc64 crypto instructions,
642 when available.
643
Alexander Boyko78c37d12013-01-10 18:54:59 +0400644config CRYPTO_CRC32
645 tristate "CRC32 CRC algorithm"
646 select CRYPTO_HASH
647 select CRC32
648 help
649 CRC-32-IEEE 802.3 cyclic redundancy-check algorithm.
650 Shash crypto api wrappers to crc32_le function.
651
652config CRYPTO_CRC32_PCLMUL
653 tristate "CRC32 PCLMULQDQ hardware acceleration"
654 depends on X86
655 select CRYPTO_HASH
656 select CRC32
657 help
658 From Intel Westmere and AMD Bulldozer processor with SSE4.2
659 and PCLMULQDQ supported, the processor will support
660 CRC32 PCLMULQDQ implementation using hardware accelerated PCLMULQDQ
hacoaf8cb012018-12-28 10:09:40 +0000661 instruction. This option will create 'crc32-pclmul' module,
Alexander Boyko78c37d12013-01-10 18:54:59 +0400662 which will enable any routine to use the CRC-32-IEEE 802.3 checksum
663 and gain better performance as compared with the table implementation.
664
Marcin Nowakowski4a5dc512018-02-09 22:11:06 +0000665config CRYPTO_CRC32_MIPS
666 tristate "CRC32c and CRC32 CRC algorithm (MIPS)"
667 depends on MIPS_CRC_SUPPORT
668 select CRYPTO_HASH
669 help
670 CRC32c and CRC32 CRC algorithms implemented using mips crypto
671 instructions, when available.
672
673
Herbert Xu684115212013-09-07 12:56:26 +1000674config CRYPTO_CRCT10DIF
675 tristate "CRCT10DIF algorithm"
676 select CRYPTO_HASH
677 help
678 CRC T10 Data Integrity Field computation is being cast as
679 a crypto transform. This allows for faster crc t10 diff
680 transforms to be used if they are available.
681
682config CRYPTO_CRCT10DIF_PCLMUL
683 tristate "CRCT10DIF PCLMULQDQ hardware acceleration"
684 depends on X86 && 64BIT && CRC_T10DIF
685 select CRYPTO_HASH
686 help
687 For x86_64 processors with SSE4.2 and PCLMULQDQ supported,
688 CRC T10 DIF PCLMULQDQ computation can be hardware
689 accelerated PCLMULQDQ instruction. This option will create
hacoaf8cb012018-12-28 10:09:40 +0000690 'crct10dif-pclmul' module, which is faster when computing the
Herbert Xu684115212013-09-07 12:56:26 +1000691 crct10dif checksum as compared with the generic table implementation.
692
Daniel Axtensb01df1c2017-03-15 23:37:36 +1100693config CRYPTO_CRCT10DIF_VPMSUM
694 tristate "CRC32T10DIF powerpc64 hardware acceleration"
695 depends on PPC64 && ALTIVEC && CRC_T10DIF
696 select CRYPTO_HASH
697 help
698 CRC10T10DIF algorithm implemented using vector polynomial
699 multiply-sum (vpmsum) instructions, introduced in POWER8. Enable on
700 POWER8 and newer processors for improved performance.
701
Daniel Axtens146c8682017-03-15 23:37:37 +1100702config CRYPTO_VPMSUM_TESTER
703 tristate "Powerpc64 vpmsum hardware acceleration tester"
704 depends on CRYPTO_CRCT10DIF_VPMSUM && CRYPTO_CRC32C_VPMSUM
705 help
706 Stress test for CRC32c and CRC-T10DIF algorithms implemented with
707 POWER8 vpmsum instructions.
708 Unless you are testing these algorithms, you don't need this.
709
Huang Ying2cdc6892009-08-06 15:32:38 +1000710config CRYPTO_GHASH
711 tristate "GHASH digest algorithm"
Huang Ying2cdc6892009-08-06 15:32:38 +1000712 select CRYPTO_GF128MUL
Arnd Bergmann578c60f2016-01-25 17:51:21 +0100713 select CRYPTO_HASH
Huang Ying2cdc6892009-08-06 15:32:38 +1000714 help
715 GHASH is message digest algorithm for GCM (Galois/Counter Mode).
716
Martin Willif979e012015-06-01 13:43:58 +0200717config CRYPTO_POLY1305
718 tristate "Poly1305 authenticator algorithm"
Arnd Bergmann578c60f2016-01-25 17:51:21 +0100719 select CRYPTO_HASH
Martin Willif979e012015-06-01 13:43:58 +0200720 help
721 Poly1305 authenticator algorithm, RFC7539.
722
723 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
724 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
725 in IETF protocols. This is the portable C implementation of Poly1305.
726
Martin Willic70f4ab2015-07-16 19:14:06 +0200727config CRYPTO_POLY1305_X86_64
Martin Willib1ccc8f2015-07-16 19:14:08 +0200728 tristate "Poly1305 authenticator algorithm (x86_64/SSE2/AVX2)"
Martin Willic70f4ab2015-07-16 19:14:06 +0200729 depends on X86 && 64BIT
730 select CRYPTO_POLY1305
731 help
732 Poly1305 authenticator algorithm, RFC7539.
733
734 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
735 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
736 in IETF protocols. This is the x86_64 assembler implementation using SIMD
737 instructions.
738
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800739config CRYPTO_MD4
740 tristate "MD4 digest algorithm"
Adrian-Ken Rueegsegger808a1762008-12-03 19:55:27 +0800741 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700742 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800743 MD4 message digest algorithm (RFC1320).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700744
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800745config CRYPTO_MD5
746 tristate "MD5 digest algorithm"
Adrian-Ken Rueegsegger14b75ba2008-12-03 19:57:12 +0800747 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700748 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800749 MD5 message digest algorithm (RFC1321).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700750
Aaro Koskinend69e75d2014-12-21 22:54:02 +0200751config CRYPTO_MD5_OCTEON
752 tristate "MD5 digest algorithm (OCTEON)"
753 depends on CPU_CAVIUM_OCTEON
754 select CRYPTO_MD5
755 select CRYPTO_HASH
756 help
757 MD5 message digest algorithm (RFC1321) implemented
758 using OCTEON crypto instructions, when available.
759
Markus Stockhausene8e59952015-03-01 19:30:46 +0100760config CRYPTO_MD5_PPC
761 tristate "MD5 digest algorithm (PPC)"
762 depends on PPC
763 select CRYPTO_HASH
764 help
765 MD5 message digest algorithm (RFC1321) implemented
766 in PPC assembler.
767
David S. Millerfa4dfed2012-08-19 21:51:26 -0700768config CRYPTO_MD5_SPARC64
769 tristate "MD5 digest algorithm (SPARC64)"
770 depends on SPARC64
771 select CRYPTO_MD5
772 select CRYPTO_HASH
773 help
774 MD5 message digest algorithm (RFC1321) implemented
775 using sparc64 crypto instructions, when available.
776
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800777config CRYPTO_MICHAEL_MIC
778 tristate "Michael MIC keyed digest algorithm"
Adrian-Ken Rueegsegger19e2bf12008-12-07 19:35:38 +0800779 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800780 help
781 Michael MIC is used for message integrity protection in TKIP
782 (IEEE 802.11i). This algorithm is required for TKIP, but it
783 should not be used for other purposes because of the weakness
784 of the algorithm.
785
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800786config CRYPTO_RMD128
Adrian Bunkb6d44342008-07-16 19:28:00 +0800787 tristate "RIPEMD-128 digest algorithm"
Herbert Xu7c4468b2008-11-08 09:10:40 +0800788 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800789 help
790 RIPEMD-128 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800791
Adrian Bunkb6d44342008-07-16 19:28:00 +0800792 RIPEMD-128 is a 128-bit cryptographic hash function. It should only
Michael Witten35ed4b32011-07-09 04:02:31 +0000793 be used as a secure replacement for RIPEMD. For other use cases,
Adrian Bunkb6d44342008-07-16 19:28:00 +0800794 RIPEMD-160 should be used.
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800795
Adrian Bunkb6d44342008-07-16 19:28:00 +0800796 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800797 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800798
799config CRYPTO_RMD160
Adrian Bunkb6d44342008-07-16 19:28:00 +0800800 tristate "RIPEMD-160 digest algorithm"
Herbert Xue5835fb2008-11-08 09:18:51 +0800801 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800802 help
803 RIPEMD-160 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800804
Adrian Bunkb6d44342008-07-16 19:28:00 +0800805 RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
806 to be used as a secure replacement for the 128-bit hash functions
807 MD4, MD5 and it's predecessor RIPEMD
808 (not to be confused with RIPEMD-128).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800809
Adrian Bunkb6d44342008-07-16 19:28:00 +0800810 It's speed is comparable to SHA1 and there are no known attacks
811 against RIPEMD-160.
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800812
Adrian Bunkb6d44342008-07-16 19:28:00 +0800813 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800814 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800815
816config CRYPTO_RMD256
Adrian Bunkb6d44342008-07-16 19:28:00 +0800817 tristate "RIPEMD-256 digest algorithm"
Herbert Xud8a5e2e2008-11-08 09:58:10 +0800818 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800819 help
820 RIPEMD-256 is an optional extension of RIPEMD-128 with a
821 256 bit hash. It is intended for applications that require
822 longer hash-results, without needing a larger security level
823 (than RIPEMD-128).
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800824
Adrian Bunkb6d44342008-07-16 19:28:00 +0800825 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800826 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800827
828config CRYPTO_RMD320
Adrian Bunkb6d44342008-07-16 19:28:00 +0800829 tristate "RIPEMD-320 digest algorithm"
Herbert Xu3b8efb42008-11-08 10:11:09 +0800830 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800831 help
832 RIPEMD-320 is an optional extension of RIPEMD-160 with a
833 320 bit hash. It is intended for applications that require
834 longer hash-results, without needing a larger security level
835 (than RIPEMD-160).
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800836
Adrian Bunkb6d44342008-07-16 19:28:00 +0800837 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800838 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800839
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800840config CRYPTO_SHA1
841 tristate "SHA1 digest algorithm"
Adrian-Ken Rueegsegger54ccb362008-12-02 21:08:20 +0800842 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800843 help
844 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
845
Mathias Krause66be8952011-08-04 20:19:25 +0200846config CRYPTO_SHA1_SSSE3
time38b6b7f2015-09-10 15:27:26 -0700847 tristate "SHA1 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
Mathias Krause66be8952011-08-04 20:19:25 +0200848 depends on X86 && 64BIT
849 select CRYPTO_SHA1
850 select CRYPTO_HASH
851 help
852 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
853 using Supplemental SSE3 (SSSE3) instructions or Advanced Vector
time38b6b7f2015-09-10 15:27:26 -0700854 Extensions (AVX/AVX2) or SHA-NI(SHA Extensions New Instructions),
855 when available.
Mathias Krause66be8952011-08-04 20:19:25 +0200856
Tim Chen8275d1a2013-03-26 13:59:17 -0700857config CRYPTO_SHA256_SSSE3
time38b6b7f2015-09-10 15:27:26 -0700858 tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
Tim Chen8275d1a2013-03-26 13:59:17 -0700859 depends on X86 && 64BIT
860 select CRYPTO_SHA256
861 select CRYPTO_HASH
862 help
863 SHA-256 secure hash standard (DFIPS 180-2) implemented
864 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
865 Extensions version 1 (AVX1), or Advanced Vector Extensions
time38b6b7f2015-09-10 15:27:26 -0700866 version 2 (AVX2) instructions, or SHA-NI (SHA Extensions New
867 Instructions) when available.
Tim Chen8275d1a2013-03-26 13:59:17 -0700868
Tim Chen87de4572013-03-26 14:00:02 -0700869config CRYPTO_SHA512_SSSE3
870 tristate "SHA512 digest algorithm (SSSE3/AVX/AVX2)"
871 depends on X86 && 64BIT
872 select CRYPTO_SHA512
873 select CRYPTO_HASH
874 help
875 SHA-512 secure hash standard (DFIPS 180-2) implemented
876 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
877 Extensions version 1 (AVX1), or Advanced Vector Extensions
878 version 2 (AVX2) instructions, when available.
879
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200880config CRYPTO_SHA1_OCTEON
881 tristate "SHA1 digest algorithm (OCTEON)"
882 depends on CPU_CAVIUM_OCTEON
883 select CRYPTO_SHA1
884 select CRYPTO_HASH
885 help
886 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
887 using OCTEON crypto instructions, when available.
888
David S. Miller4ff28d42012-08-19 15:41:53 -0700889config CRYPTO_SHA1_SPARC64
890 tristate "SHA1 digest algorithm (SPARC64)"
891 depends on SPARC64
892 select CRYPTO_SHA1
893 select CRYPTO_HASH
894 help
895 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
896 using sparc64 crypto instructions, when available.
897
Michael Ellerman323a6bf2012-09-13 23:00:49 +0000898config CRYPTO_SHA1_PPC
899 tristate "SHA1 digest algorithm (powerpc)"
900 depends on PPC
901 help
902 This is the powerpc hardware accelerated implementation of the
903 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
904
Markus Stockhausend9850fc2015-02-24 20:36:50 +0100905config CRYPTO_SHA1_PPC_SPE
906 tristate "SHA1 digest algorithm (PPC SPE)"
907 depends on PPC && SPE
908 help
909 SHA-1 secure hash standard (DFIPS 180-4) implemented
910 using powerpc SPE SIMD instruction set.
911
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800912config CRYPTO_SHA256
913 tristate "SHA224 and SHA256 digest algorithm"
Adrian-Ken Rueegsegger50e109b52008-12-03 19:57:49 +0800914 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800915 help
916 SHA256 secure hash standard (DFIPS 180-2).
917
918 This version of SHA implements a 256 bit hash with 128 bits of
919 security against collision attacks.
920
Adrian Bunkb6d44342008-07-16 19:28:00 +0800921 This code also includes SHA-224, a 224 bit hash with 112 bits
922 of security against collision attacks.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800923
Markus Stockhausen2ecc1e92015-01-30 15:39:34 +0100924config CRYPTO_SHA256_PPC_SPE
925 tristate "SHA224 and SHA256 digest algorithm (PPC SPE)"
926 depends on PPC && SPE
927 select CRYPTO_SHA256
928 select CRYPTO_HASH
929 help
930 SHA224 and SHA256 secure hash standard (DFIPS 180-2)
931 implemented using powerpc SPE SIMD instruction set.
932
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200933config CRYPTO_SHA256_OCTEON
934 tristate "SHA224 and SHA256 digest algorithm (OCTEON)"
935 depends on CPU_CAVIUM_OCTEON
936 select CRYPTO_SHA256
937 select CRYPTO_HASH
938 help
939 SHA-256 secure hash standard (DFIPS 180-2) implemented
940 using OCTEON crypto instructions, when available.
941
David S. Miller86c93b22012-08-19 17:11:37 -0700942config CRYPTO_SHA256_SPARC64
943 tristate "SHA224 and SHA256 digest algorithm (SPARC64)"
944 depends on SPARC64
945 select CRYPTO_SHA256
946 select CRYPTO_HASH
947 help
948 SHA-256 secure hash standard (DFIPS 180-2) implemented
949 using sparc64 crypto instructions, when available.
950
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800951config CRYPTO_SHA512
952 tristate "SHA384 and SHA512 digest algorithms"
Adrian-Ken Rueegseggerbd9d20d2008-12-17 16:49:02 +1100953 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800954 help
955 SHA512 secure hash standard (DFIPS 180-2).
956
957 This version of SHA implements a 512 bit hash with 256 bits of
958 security against collision attacks.
959
960 This code also includes SHA-384, a 384 bit hash with 192 bits
961 of security against collision attacks.
962
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200963config CRYPTO_SHA512_OCTEON
964 tristate "SHA384 and SHA512 digest algorithms (OCTEON)"
965 depends on CPU_CAVIUM_OCTEON
966 select CRYPTO_SHA512
967 select CRYPTO_HASH
968 help
969 SHA-512 secure hash standard (DFIPS 180-2) implemented
970 using OCTEON crypto instructions, when available.
971
David S. Miller775e0c62012-08-19 17:37:56 -0700972config CRYPTO_SHA512_SPARC64
973 tristate "SHA384 and SHA512 digest algorithm (SPARC64)"
974 depends on SPARC64
975 select CRYPTO_SHA512
976 select CRYPTO_HASH
977 help
978 SHA-512 secure hash standard (DFIPS 180-2) implemented
979 using sparc64 crypto instructions, when available.
980
Jeff Garzik53964b92016-06-17 10:30:35 +0530981config CRYPTO_SHA3
982 tristate "SHA3 digest algorithm"
983 select CRYPTO_HASH
984 help
985 SHA-3 secure hash standard (DFIPS 202). It's based on
986 cryptographic sponge function family called Keccak.
987
988 References:
989 http://keccak.noekeon.org/
990
Gilad Ben-Yossef4f0fc162017-08-21 13:51:28 +0300991config CRYPTO_SM3
992 tristate "SM3 digest algorithm"
993 select CRYPTO_HASH
994 help
995 SM3 secure hash function as defined by OSCCA GM/T 0004-2012 SM3).
996 It is part of the Chinese Commercial Cryptography suite.
997
998 References:
999 http://www.oscca.gov.cn/UpFile/20101222141857786.pdf
1000 https://datatracker.ietf.org/doc/html/draft-shen-sm3-hash
1001
Vitaly Chikunovfe189572018-11-07 00:00:01 +03001002config CRYPTO_STREEBOG
1003 tristate "Streebog Hash Function"
1004 select CRYPTO_HASH
1005 help
1006 Streebog Hash Function (GOST R 34.11-2012, RFC 6986) is one of the Russian
1007 cryptographic standard algorithms (called GOST algorithms).
1008 This setting enables two hash algorithms with 256 and 512 bits output.
1009
1010 References:
1011 https://tc26.ru/upload/iblock/fed/feddbb4d26b685903faa2ba11aea43f6.pdf
1012 https://tools.ietf.org/html/rfc6986
1013
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001014config CRYPTO_TGR192
1015 tristate "Tiger digest algorithms"
Adrian-Ken Rueegseggerf63fbd32008-12-03 19:58:32 +08001016 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001017 help
1018 Tiger hash algorithm 192, 160 and 128-bit hashes
1019
1020 Tiger is a hash function optimized for 64-bit processors while
1021 still having decent performance on 32-bit processors.
1022 Tiger was developed by Ross Anderson and Eli Biham.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001023
1024 See also:
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001025 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
1026
1027config CRYPTO_WP512
1028 tristate "Whirlpool digest algorithms"
Adrian-Ken Rueegsegger49465102008-12-07 19:34:37 +08001029 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001030 help
1031 Whirlpool hash algorithm 512, 384 and 256-bit hashes
1032
1033 Whirlpool-512 is part of the NESSIE cryptographic primitives.
1034 Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
1035
1036 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001037 <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html>
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001038
Huang Ying0e1227d2009-10-19 11:53:06 +09001039config CRYPTO_GHASH_CLMUL_NI_INTEL
1040 tristate "GHASH digest algorithm (CLMUL-NI accelerated)"
Richard Weinberger8af00862011-06-08 20:56:29 +08001041 depends on X86 && 64BIT
Huang Ying0e1227d2009-10-19 11:53:06 +09001042 select CRYPTO_CRYPTD
1043 help
1044 GHASH is message digest algorithm for GCM (Galois/Counter Mode).
1045 The implementation is accelerated by CLMUL-NI of Intel.
1046
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001047comment "Ciphers"
Linus Torvalds1da177e2005-04-16 15:20:36 -07001048
1049config CRYPTO_AES
1050 tristate "AES cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +10001051 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -07001052 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001053 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Linus Torvalds1da177e2005-04-16 15:20:36 -07001054 algorithm.
1055
1056 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001057 both hardware and software across a wide range of computing
1058 environments regardless of its use in feedback or non-feedback
1059 modes. Its key setup time is excellent, and its key agility is
1060 good. Rijndael's very low memory requirements make it very well
1061 suited for restricted-space environments, in which it also
1062 demonstrates excellent performance. Rijndael's operations are
1063 among the easiest to defend against power and timing attacks.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001064
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001065 The AES specifies three key sizes: 128, 192 and 256 bits
Linus Torvalds1da177e2005-04-16 15:20:36 -07001066
1067 See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
1068
Ard Biesheuvelb5e0b032017-02-02 16:37:40 +00001069config CRYPTO_AES_TI
1070 tristate "Fixed time AES cipher"
1071 select CRYPTO_ALGAPI
1072 help
1073 This is a generic implementation of AES that attempts to eliminate
1074 data dependent latencies as much as possible without affecting
1075 performance too much. It is intended for use by the generic CCM
1076 and GCM drivers, and other CTR or CMAC/XCBC based modes that rely
1077 solely on encryption (although decryption is supported as well, but
1078 with a more dramatic performance hit)
1079
1080 Instead of using 16 lookup tables of 1 KB each, (8 for encryption and
1081 8 for decryption), this implementation only uses just two S-boxes of
1082 256 bytes each, and attempts to eliminate data dependent latencies by
1083 prefetching the entire table into the cache at the start of each
Eric Biggers0a6a40c2018-10-17 21:37:58 -07001084 block. Interrupts are also disabled to avoid races where cachelines
1085 are evicted when the CPU is interrupted to do something else.
Ard Biesheuvelb5e0b032017-02-02 16:37:40 +00001086
Linus Torvalds1da177e2005-04-16 15:20:36 -07001087config CRYPTO_AES_586
1088 tristate "AES cipher algorithms (i586)"
Herbert Xucce9e062006-08-21 21:08:13 +10001089 depends on (X86 || UML_X86) && !64BIT
1090 select CRYPTO_ALGAPI
Sebastian Siewior5157dea2007-11-10 19:07:16 +08001091 select CRYPTO_AES
Linus Torvalds1da177e2005-04-16 15:20:36 -07001092 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001093 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Linus Torvalds1da177e2005-04-16 15:20:36 -07001094 algorithm.
1095
1096 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001097 both hardware and software across a wide range of computing
1098 environments regardless of its use in feedback or non-feedback
1099 modes. Its key setup time is excellent, and its key agility is
1100 good. Rijndael's very low memory requirements make it very well
1101 suited for restricted-space environments, in which it also
1102 demonstrates excellent performance. Rijndael's operations are
1103 among the easiest to defend against power and timing attacks.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001104
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001105 The AES specifies three key sizes: 128, 192 and 256 bits
Linus Torvalds1da177e2005-04-16 15:20:36 -07001106
1107 See <http://csrc.nist.gov/encryption/aes/> for more information.
1108
Andreas Steinmetza2a892a2005-07-06 13:55:00 -07001109config CRYPTO_AES_X86_64
1110 tristate "AES cipher algorithms (x86_64)"
Herbert Xucce9e062006-08-21 21:08:13 +10001111 depends on (X86 || UML_X86) && 64BIT
1112 select CRYPTO_ALGAPI
Sebastian Siewior81190b32007-11-08 21:25:04 +08001113 select CRYPTO_AES
Andreas Steinmetza2a892a2005-07-06 13:55:00 -07001114 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001115 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Andreas Steinmetza2a892a2005-07-06 13:55:00 -07001116 algorithm.
1117
1118 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001119 both hardware and software across a wide range of computing
1120 environments regardless of its use in feedback or non-feedback
1121 modes. Its key setup time is excellent, and its key agility is
1122 good. Rijndael's very low memory requirements make it very well
1123 suited for restricted-space environments, in which it also
1124 demonstrates excellent performance. Rijndael's operations are
1125 among the easiest to defend against power and timing attacks.
Andreas Steinmetza2a892a2005-07-06 13:55:00 -07001126
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001127 The AES specifies three key sizes: 128, 192 and 256 bits
Andreas Steinmetza2a892a2005-07-06 13:55:00 -07001128
1129 See <http://csrc.nist.gov/encryption/aes/> for more information.
1130
Huang Ying54b6a1b2009-01-18 16:28:34 +11001131config CRYPTO_AES_NI_INTEL
1132 tristate "AES cipher algorithms (AES-NI)"
Richard Weinberger8af00862011-06-08 20:56:29 +08001133 depends on X86
Herbert Xu85671862016-11-22 20:08:33 +08001134 select CRYPTO_AEAD
Mathias Krause0d258ef2010-11-27 16:34:46 +08001135 select CRYPTO_AES_X86_64 if 64BIT
1136 select CRYPTO_AES_586 if !64BIT
Huang Ying54b6a1b2009-01-18 16:28:34 +11001137 select CRYPTO_ALGAPI
Herbert Xu85671862016-11-22 20:08:33 +08001138 select CRYPTO_BLKCIPHER
Jussi Kivilinna7643a112013-04-10 18:39:20 +03001139 select CRYPTO_GLUE_HELPER_X86 if 64BIT
Herbert Xu85671862016-11-22 20:08:33 +08001140 select CRYPTO_SIMD
Huang Ying54b6a1b2009-01-18 16:28:34 +11001141 help
1142 Use Intel AES-NI instructions for AES algorithm.
1143
1144 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1145 algorithm.
1146
1147 Rijndael appears to be consistently a very good performer in
1148 both hardware and software across a wide range of computing
1149 environments regardless of its use in feedback or non-feedback
1150 modes. Its key setup time is excellent, and its key agility is
1151 good. Rijndael's very low memory requirements make it very well
1152 suited for restricted-space environments, in which it also
1153 demonstrates excellent performance. Rijndael's operations are
1154 among the easiest to defend against power and timing attacks.
1155
1156 The AES specifies three key sizes: 128, 192 and 256 bits
1157
1158 See <http://csrc.nist.gov/encryption/aes/> for more information.
1159
Mathias Krause0d258ef2010-11-27 16:34:46 +08001160 In addition to AES cipher algorithm support, the acceleration
1161 for some popular block cipher mode is supported too, including
Ard Biesheuvel944585a2018-09-24 14:48:16 +02001162 ECB, CBC, LRW, XTS. The 64 bit version has additional
Mathias Krause0d258ef2010-11-27 16:34:46 +08001163 acceleration for CTR.
Huang Ying2cf4ac82009-03-29 15:41:20 +08001164
David S. Miller9bf48522012-08-21 03:58:13 -07001165config CRYPTO_AES_SPARC64
1166 tristate "AES cipher algorithms (SPARC64)"
1167 depends on SPARC64
1168 select CRYPTO_CRYPTD
1169 select CRYPTO_ALGAPI
1170 help
1171 Use SPARC64 crypto opcodes for AES algorithm.
1172
1173 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1174 algorithm.
1175
1176 Rijndael appears to be consistently a very good performer in
1177 both hardware and software across a wide range of computing
1178 environments regardless of its use in feedback or non-feedback
1179 modes. Its key setup time is excellent, and its key agility is
1180 good. Rijndael's very low memory requirements make it very well
1181 suited for restricted-space environments, in which it also
1182 demonstrates excellent performance. Rijndael's operations are
1183 among the easiest to defend against power and timing attacks.
1184
1185 The AES specifies three key sizes: 128, 192 and 256 bits
1186
1187 See <http://csrc.nist.gov/encryption/aes/> for more information.
1188
1189 In addition to AES cipher algorithm support, the acceleration
1190 for some popular block cipher mode is supported too, including
1191 ECB and CBC.
1192
Markus Stockhausen504c6142015-02-22 10:00:10 +01001193config CRYPTO_AES_PPC_SPE
1194 tristate "AES cipher algorithms (PPC SPE)"
1195 depends on PPC && SPE
1196 help
1197 AES cipher algorithms (FIPS-197). Additionally the acceleration
1198 for popular block cipher modes ECB, CBC, CTR and XTS is supported.
1199 This module should only be used for low power (router) devices
1200 without hardware AES acceleration (e.g. caam crypto). It reduces the
1201 size of the AES tables from 16KB to 8KB + 256 bytes and mitigates
1202 timining attacks. Nevertheless it might be not as secure as other
1203 architecture specific assembler implementations that work on 1KB
1204 tables or 256 bytes S-boxes.
1205
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001206config CRYPTO_ANUBIS
1207 tristate "Anubis cipher algorithm"
1208 select CRYPTO_ALGAPI
1209 help
1210 Anubis cipher algorithm.
1211
1212 Anubis is a variable key length cipher which can use keys from
1213 128 bits to 320 bits in length. It was evaluated as a entrant
1214 in the NESSIE competition.
1215
1216 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001217 <https://www.cosic.esat.kuleuven.be/nessie/reports/>
1218 <http://www.larc.usp.br/~pbarreto/AnubisPage.html>
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001219
1220config CRYPTO_ARC4
1221 tristate "ARC4 cipher algorithm"
Sebastian Andrzej Siewiorb9b0f082012-06-26 18:13:46 +02001222 select CRYPTO_BLKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001223 help
1224 ARC4 cipher algorithm.
1225
1226 ARC4 is a stream cipher using keys ranging from 8 bits to 2048
1227 bits in length. This algorithm is required for driver-based
1228 WEP, but it should not be for other purposes because of the
1229 weakness of the algorithm.
1230
1231config CRYPTO_BLOWFISH
1232 tristate "Blowfish cipher algorithm"
1233 select CRYPTO_ALGAPI
Jussi Kivilinna52ba8672011-09-02 01:45:07 +03001234 select CRYPTO_BLOWFISH_COMMON
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001235 help
1236 Blowfish cipher algorithm, by Bruce Schneier.
1237
1238 This is a variable key length cipher which can use keys from 32
1239 bits to 448 bits in length. It's fast, simple and specifically
1240 designed for use on "large microprocessors".
1241
1242 See also:
1243 <http://www.schneier.com/blowfish.html>
1244
Jussi Kivilinna52ba8672011-09-02 01:45:07 +03001245config CRYPTO_BLOWFISH_COMMON
1246 tristate
1247 help
1248 Common parts of the Blowfish cipher algorithm shared by the
1249 generic c and the assembler implementations.
1250
1251 See also:
1252 <http://www.schneier.com/blowfish.html>
1253
Jussi Kivilinna64b94ce2011-09-02 01:45:22 +03001254config CRYPTO_BLOWFISH_X86_64
1255 tristate "Blowfish cipher algorithm (x86_64)"
Al Virof21a7c12012-04-08 20:31:22 -04001256 depends on X86 && 64BIT
Eric Biggersc1679172018-02-19 23:48:16 -08001257 select CRYPTO_BLKCIPHER
Jussi Kivilinna64b94ce2011-09-02 01:45:22 +03001258 select CRYPTO_BLOWFISH_COMMON
1259 help
1260 Blowfish cipher algorithm (x86_64), by Bruce Schneier.
1261
1262 This is a variable key length cipher which can use keys from 32
1263 bits to 448 bits in length. It's fast, simple and specifically
1264 designed for use on "large microprocessors".
1265
1266 See also:
1267 <http://www.schneier.com/blowfish.html>
1268
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001269config CRYPTO_CAMELLIA
1270 tristate "Camellia cipher algorithms"
1271 depends on CRYPTO
1272 select CRYPTO_ALGAPI
1273 help
1274 Camellia cipher algorithms module.
1275
1276 Camellia is a symmetric key block cipher developed jointly
1277 at NTT and Mitsubishi Electric Corporation.
1278
1279 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1280
1281 See also:
1282 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1283
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001284config CRYPTO_CAMELLIA_X86_64
1285 tristate "Camellia cipher algorithm (x86_64)"
Al Virof21a7c12012-04-08 20:31:22 -04001286 depends on X86 && 64BIT
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001287 depends on CRYPTO
Eric Biggers1af6d032018-02-19 23:48:22 -08001288 select CRYPTO_BLKCIPHER
Jussi Kivilinna964263a2012-06-18 14:07:29 +03001289 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001290 help
1291 Camellia cipher algorithm module (x86_64).
1292
1293 Camellia is a symmetric key block cipher developed jointly
1294 at NTT and Mitsubishi Electric Corporation.
1295
1296 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1297
1298 See also:
1299 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1300
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001301config CRYPTO_CAMELLIA_AESNI_AVX_X86_64
1302 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)"
1303 depends on X86 && 64BIT
1304 depends on CRYPTO
Eric Biggers44893bc2018-02-19 23:48:23 -08001305 select CRYPTO_BLKCIPHER
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001306 select CRYPTO_CAMELLIA_X86_64
Eric Biggers44893bc2018-02-19 23:48:23 -08001307 select CRYPTO_GLUE_HELPER_X86
1308 select CRYPTO_SIMD
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001309 select CRYPTO_XTS
1310 help
1311 Camellia cipher algorithm module (x86_64/AES-NI/AVX).
1312
1313 Camellia is a symmetric key block cipher developed jointly
1314 at NTT and Mitsubishi Electric Corporation.
1315
1316 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1317
1318 See also:
1319 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1320
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001321config CRYPTO_CAMELLIA_AESNI_AVX2_X86_64
1322 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX2)"
1323 depends on X86 && 64BIT
1324 depends on CRYPTO
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001325 select CRYPTO_CAMELLIA_AESNI_AVX_X86_64
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001326 help
1327 Camellia cipher algorithm module (x86_64/AES-NI/AVX2).
1328
1329 Camellia is a symmetric key block cipher developed jointly
1330 at NTT and Mitsubishi Electric Corporation.
1331
1332 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1333
1334 See also:
1335 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1336
David S. Miller81658ad2012-08-28 12:05:54 -07001337config CRYPTO_CAMELLIA_SPARC64
1338 tristate "Camellia cipher algorithm (SPARC64)"
1339 depends on SPARC64
1340 depends on CRYPTO
1341 select CRYPTO_ALGAPI
1342 help
1343 Camellia cipher algorithm module (SPARC64).
1344
1345 Camellia is a symmetric key block cipher developed jointly
1346 at NTT and Mitsubishi Electric Corporation.
1347
1348 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1349
1350 See also:
1351 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1352
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001353config CRYPTO_CAST_COMMON
1354 tristate
1355 help
1356 Common parts of the CAST cipher algorithms shared by the
1357 generic c and the assembler implementations.
1358
Linus Torvalds1da177e2005-04-16 15:20:36 -07001359config CRYPTO_CAST5
1360 tristate "CAST5 (CAST-128) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001361 select CRYPTO_ALGAPI
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001362 select CRYPTO_CAST_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -07001363 help
1364 The CAST5 encryption algorithm (synonymous with CAST-128) is
1365 described in RFC2144.
1366
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001367config CRYPTO_CAST5_AVX_X86_64
1368 tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)"
1369 depends on X86 && 64BIT
Eric Biggers1e631832018-02-19 23:48:13 -08001370 select CRYPTO_BLKCIPHER
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001371 select CRYPTO_CAST5
Eric Biggers1e631832018-02-19 23:48:13 -08001372 select CRYPTO_CAST_COMMON
1373 select CRYPTO_SIMD
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001374 help
1375 The CAST5 encryption algorithm (synonymous with CAST-128) is
1376 described in RFC2144.
1377
1378 This module provides the Cast5 cipher algorithm that processes
1379 sixteen blocks parallel using the AVX instruction set.
1380
Linus Torvalds1da177e2005-04-16 15:20:36 -07001381config CRYPTO_CAST6
1382 tristate "CAST6 (CAST-256) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001383 select CRYPTO_ALGAPI
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001384 select CRYPTO_CAST_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -07001385 help
1386 The CAST6 encryption algorithm (synonymous with CAST-256) is
1387 described in RFC2612.
1388
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001389config CRYPTO_CAST6_AVX_X86_64
1390 tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)"
1391 depends on X86 && 64BIT
Eric Biggers4bd96922018-02-19 23:48:15 -08001392 select CRYPTO_BLKCIPHER
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001393 select CRYPTO_CAST6
Eric Biggers4bd96922018-02-19 23:48:15 -08001394 select CRYPTO_CAST_COMMON
1395 select CRYPTO_GLUE_HELPER_X86
1396 select CRYPTO_SIMD
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001397 select CRYPTO_XTS
1398 help
1399 The CAST6 encryption algorithm (synonymous with CAST-256) is
1400 described in RFC2612.
1401
1402 This module provides the Cast6 cipher algorithm that processes
1403 eight blocks parallel using the AVX instruction set.
1404
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001405config CRYPTO_DES
1406 tristate "DES and Triple DES EDE cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +10001407 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -07001408 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001409 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
Linus Torvalds1da177e2005-04-16 15:20:36 -07001410
David S. Millerc5aac2d2012-08-25 22:37:23 -07001411config CRYPTO_DES_SPARC64
1412 tristate "DES and Triple DES EDE cipher algorithms (SPARC64)"
Dave Jones97da37b2012-10-02 17:13:20 -04001413 depends on SPARC64
David S. Millerc5aac2d2012-08-25 22:37:23 -07001414 select CRYPTO_ALGAPI
1415 select CRYPTO_DES
1416 help
1417 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3),
1418 optimized using SPARC64 crypto opcodes.
1419
Jussi Kivilinna6574e6c2014-06-09 20:59:54 +03001420config CRYPTO_DES3_EDE_X86_64
1421 tristate "Triple DES EDE cipher algorithm (x86-64)"
1422 depends on X86 && 64BIT
Eric Biggers09c0f032018-02-19 23:48:17 -08001423 select CRYPTO_BLKCIPHER
Jussi Kivilinna6574e6c2014-06-09 20:59:54 +03001424 select CRYPTO_DES
1425 help
1426 Triple DES EDE (FIPS 46-3) algorithm.
1427
1428 This module provides implementation of the Triple DES EDE cipher
1429 algorithm that is optimized for x86-64 processors. Two versions of
1430 algorithm are provided; regular processing one input block and
1431 one that processes three blocks parallel.
1432
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001433config CRYPTO_FCRYPT
1434 tristate "FCrypt cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001435 select CRYPTO_ALGAPI
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001436 select CRYPTO_BLKCIPHER
Linus Torvalds1da177e2005-04-16 15:20:36 -07001437 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001438 FCrypt algorithm used by RxRPC.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001439
1440config CRYPTO_KHAZAD
1441 tristate "Khazad cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001442 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -07001443 help
1444 Khazad cipher algorithm.
1445
1446 Khazad was a finalist in the initial NESSIE competition. It is
1447 an algorithm optimized for 64-bit processors with good performance
1448 on 32-bit processors. Khazad uses an 128 bit key size.
1449
1450 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001451 <http://www.larc.usp.br/~pbarreto/KhazadPage.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -07001452
Tan Swee Heng2407d602007-11-23 19:45:00 +08001453config CRYPTO_SALSA20
Kees Cook3b4afaf2012-10-02 11:16:49 -07001454 tristate "Salsa20 stream cipher algorithm"
Tan Swee Heng2407d602007-11-23 19:45:00 +08001455 select CRYPTO_BLKCIPHER
1456 help
1457 Salsa20 stream cipher algorithm.
1458
1459 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1460 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1461
1462 The Salsa20 stream cipher algorithm is designed by Daniel J.
1463 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -07001464
Martin Willic08d0e62015-06-01 13:43:56 +02001465config CRYPTO_CHACHA20
Eric Biggersaa762402018-11-16 17:26:22 -08001466 tristate "ChaCha stream cipher algorithms"
Martin Willic08d0e62015-06-01 13:43:56 +02001467 select CRYPTO_BLKCIPHER
1468 help
Eric Biggersaa762402018-11-16 17:26:22 -08001469 The ChaCha20, XChaCha20, and XChaCha12 stream cipher algorithms.
Martin Willic08d0e62015-06-01 13:43:56 +02001470
1471 ChaCha20 is a 256-bit high-speed stream cipher designed by Daniel J.
1472 Bernstein and further specified in RFC7539 for use in IETF protocols.
Eric Biggersde61d7a2018-11-16 17:26:20 -08001473 This is the portable C implementation of ChaCha20. See also:
Martin Willic08d0e62015-06-01 13:43:56 +02001474 <http://cr.yp.to/chacha/chacha-20080128.pdf>
1475
Eric Biggersde61d7a2018-11-16 17:26:20 -08001476 XChaCha20 is the application of the XSalsa20 construction to ChaCha20
1477 rather than to Salsa20. XChaCha20 extends ChaCha20's nonce length
1478 from 64 bits (or 96 bits using the RFC7539 convention) to 192 bits,
1479 while provably retaining ChaCha20's security. See also:
1480 <https://cr.yp.to/snuffle/xsalsa-20081128.pdf>
1481
Eric Biggersaa762402018-11-16 17:26:22 -08001482 XChaCha12 is XChaCha20 reduced to 12 rounds, with correspondingly
1483 reduced security margin but increased performance. It can be needed
1484 in some performance-sensitive scenarios.
1485
Martin Willic9320b62015-07-16 19:14:01 +02001486config CRYPTO_CHACHA20_X86_64
Eric Biggers4af78262018-12-04 22:20:02 -08001487 tristate "ChaCha stream cipher algorithms (x86_64/SSSE3/AVX2/AVX-512VL)"
Martin Willic9320b62015-07-16 19:14:01 +02001488 depends on X86 && 64BIT
1489 select CRYPTO_BLKCIPHER
1490 select CRYPTO_CHACHA20
1491 help
Eric Biggers7a507d62018-12-04 22:20:04 -08001492 SSSE3, AVX2, and AVX-512VL optimized implementations of the ChaCha20,
1493 XChaCha20, and XChaCha12 stream ciphers.
Martin Willic9320b62015-07-16 19:14:01 +02001494
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001495config CRYPTO_SEED
1496 tristate "SEED cipher algorithm"
1497 select CRYPTO_ALGAPI
1498 help
1499 SEED cipher algorithm (RFC4269).
1500
1501 SEED is a 128-bit symmetric key block cipher that has been
1502 developed by KISA (Korea Information Security Agency) as a
1503 national standard encryption algorithm of the Republic of Korea.
1504 It is a 16 round block cipher with the key size of 128 bit.
1505
1506 See also:
1507 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
1508
1509config CRYPTO_SERPENT
1510 tristate "Serpent cipher algorithm"
1511 select CRYPTO_ALGAPI
1512 help
1513 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1514
1515 Keys are allowed to be from 0 to 256 bits in length, in steps
1516 of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
1517 variant of Serpent for compatibility with old kerneli.org code.
1518
1519 See also:
1520 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1521
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001522config CRYPTO_SERPENT_SSE2_X86_64
1523 tristate "Serpent cipher algorithm (x86_64/SSE2)"
1524 depends on X86 && 64BIT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001525 select CRYPTO_BLKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +03001526 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001527 select CRYPTO_SERPENT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001528 select CRYPTO_SIMD
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001529 help
1530 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1531
1532 Keys are allowed to be from 0 to 256 bits in length, in steps
1533 of 8 bits.
1534
Masanari Iida1e6232f2015-04-04 00:20:30 +09001535 This module provides Serpent cipher algorithm that processes eight
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001536 blocks parallel using SSE2 instruction set.
1537
1538 See also:
1539 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1540
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001541config CRYPTO_SERPENT_SSE2_586
1542 tristate "Serpent cipher algorithm (i586/SSE2)"
1543 depends on X86 && !64BIT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001544 select CRYPTO_BLKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +03001545 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001546 select CRYPTO_SERPENT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001547 select CRYPTO_SIMD
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001548 help
1549 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1550
1551 Keys are allowed to be from 0 to 256 bits in length, in steps
1552 of 8 bits.
1553
1554 This module provides Serpent cipher algorithm that processes four
1555 blocks parallel using SSE2 instruction set.
1556
1557 See also:
1558 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1559
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001560config CRYPTO_SERPENT_AVX_X86_64
1561 tristate "Serpent cipher algorithm (x86_64/AVX)"
1562 depends on X86 && 64BIT
Eric Biggerse16bf972018-02-19 23:48:06 -08001563 select CRYPTO_BLKCIPHER
Jussi Kivilinna1d0debb2012-06-18 14:07:24 +03001564 select CRYPTO_GLUE_HELPER_X86
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001565 select CRYPTO_SERPENT
Eric Biggerse16bf972018-02-19 23:48:06 -08001566 select CRYPTO_SIMD
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001567 select CRYPTO_XTS
1568 help
1569 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1570
1571 Keys are allowed to be from 0 to 256 bits in length, in steps
1572 of 8 bits.
1573
1574 This module provides the Serpent cipher algorithm that processes
1575 eight blocks parallel using the AVX instruction set.
1576
1577 See also:
1578 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1579
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001580config CRYPTO_SERPENT_AVX2_X86_64
1581 tristate "Serpent cipher algorithm (x86_64/AVX2)"
1582 depends on X86 && 64BIT
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001583 select CRYPTO_SERPENT_AVX_X86_64
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001584 help
1585 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1586
1587 Keys are allowed to be from 0 to 256 bits in length, in steps
1588 of 8 bits.
1589
1590 This module provides Serpent cipher algorithm that processes 16
1591 blocks parallel using AVX2 instruction set.
1592
1593 See also:
1594 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1595
Gilad Ben-Yossef747c8ce2018-03-06 09:44:42 +00001596config CRYPTO_SM4
1597 tristate "SM4 cipher algorithm"
1598 select CRYPTO_ALGAPI
1599 help
1600 SM4 cipher algorithms (OSCCA GB/T 32907-2016).
1601
1602 SM4 (GBT.32907-2016) is a cryptographic standard issued by the
1603 Organization of State Commercial Administration of China (OSCCA)
1604 as an authorized cryptographic algorithms for the use within China.
1605
1606 SMS4 was originally created for use in protecting wireless
1607 networks, and is mandated in the Chinese National Standard for
1608 Wireless LAN WAPI (Wired Authentication and Privacy Infrastructure)
1609 (GB.15629.11-2003).
1610
1611 The latest SM4 standard (GBT.32907-2016) was proposed by OSCCA and
1612 standardized through TC 260 of the Standardization Administration
1613 of the People's Republic of China (SAC).
1614
1615 The input, output, and key of SMS4 are each 128 bits.
1616
1617 See also: <https://eprint.iacr.org/2008/329.pdf>
1618
1619 If unsure, say N.
1620
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001621config CRYPTO_TEA
1622 tristate "TEA, XTEA and XETA cipher algorithms"
1623 select CRYPTO_ALGAPI
1624 help
1625 TEA cipher algorithm.
1626
1627 Tiny Encryption Algorithm is a simple cipher that uses
1628 many rounds for security. It is very fast and uses
1629 little memory.
1630
1631 Xtendend Tiny Encryption Algorithm is a modification to
1632 the TEA algorithm to address a potential key weakness
1633 in the TEA algorithm.
1634
1635 Xtendend Encryption Tiny Algorithm is a mis-implementation
1636 of the XTEA algorithm for compatibility purposes.
1637
1638config CRYPTO_TWOFISH
1639 tristate "Twofish cipher algorithm"
1640 select CRYPTO_ALGAPI
1641 select CRYPTO_TWOFISH_COMMON
1642 help
1643 Twofish cipher algorithm.
1644
1645 Twofish was submitted as an AES (Advanced Encryption Standard)
1646 candidate cipher by researchers at CounterPane Systems. It is a
1647 16 round block cipher supporting key sizes of 128, 192, and 256
1648 bits.
1649
1650 See also:
1651 <http://www.schneier.com/twofish.html>
1652
1653config CRYPTO_TWOFISH_COMMON
1654 tristate
1655 help
1656 Common parts of the Twofish cipher algorithm shared by the
1657 generic c and the assembler implementations.
1658
1659config CRYPTO_TWOFISH_586
1660 tristate "Twofish cipher algorithms (i586)"
1661 depends on (X86 || UML_X86) && !64BIT
1662 select CRYPTO_ALGAPI
1663 select CRYPTO_TWOFISH_COMMON
1664 help
1665 Twofish cipher algorithm.
1666
1667 Twofish was submitted as an AES (Advanced Encryption Standard)
1668 candidate cipher by researchers at CounterPane Systems. It is a
1669 16 round block cipher supporting key sizes of 128, 192, and 256
1670 bits.
1671
1672 See also:
1673 <http://www.schneier.com/twofish.html>
1674
1675config CRYPTO_TWOFISH_X86_64
1676 tristate "Twofish cipher algorithm (x86_64)"
1677 depends on (X86 || UML_X86) && 64BIT
1678 select CRYPTO_ALGAPI
1679 select CRYPTO_TWOFISH_COMMON
1680 help
1681 Twofish cipher algorithm (x86_64).
1682
1683 Twofish was submitted as an AES (Advanced Encryption Standard)
1684 candidate cipher by researchers at CounterPane Systems. It is a
1685 16 round block cipher supporting key sizes of 128, 192, and 256
1686 bits.
1687
1688 See also:
1689 <http://www.schneier.com/twofish.html>
1690
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001691config CRYPTO_TWOFISH_X86_64_3WAY
1692 tristate "Twofish cipher algorithm (x86_64, 3-way parallel)"
Al Virof21a7c12012-04-08 20:31:22 -04001693 depends on X86 && 64BIT
Eric Biggers37992fa2018-02-19 23:48:09 -08001694 select CRYPTO_BLKCIPHER
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001695 select CRYPTO_TWOFISH_COMMON
1696 select CRYPTO_TWOFISH_X86_64
Jussi Kivilinna414cb5e2012-06-18 14:07:34 +03001697 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001698 help
1699 Twofish cipher algorithm (x86_64, 3-way parallel).
1700
1701 Twofish was submitted as an AES (Advanced Encryption Standard)
1702 candidate cipher by researchers at CounterPane Systems. It is a
1703 16 round block cipher supporting key sizes of 128, 192, and 256
1704 bits.
1705
1706 This module provides Twofish cipher algorithm that processes three
1707 blocks parallel, utilizing resources of out-of-order CPUs better.
1708
1709 See also:
1710 <http://www.schneier.com/twofish.html>
1711
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001712config CRYPTO_TWOFISH_AVX_X86_64
1713 tristate "Twofish cipher algorithm (x86_64/AVX)"
1714 depends on X86 && 64BIT
Eric Biggers0e6ab462018-02-19 23:48:11 -08001715 select CRYPTO_BLKCIPHER
Jussi Kivilinnaa7378d42012-06-18 14:07:39 +03001716 select CRYPTO_GLUE_HELPER_X86
Eric Biggers0e6ab462018-02-19 23:48:11 -08001717 select CRYPTO_SIMD
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001718 select CRYPTO_TWOFISH_COMMON
1719 select CRYPTO_TWOFISH_X86_64
1720 select CRYPTO_TWOFISH_X86_64_3WAY
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001721 help
1722 Twofish cipher algorithm (x86_64/AVX).
1723
1724 Twofish was submitted as an AES (Advanced Encryption Standard)
1725 candidate cipher by researchers at CounterPane Systems. It is a
1726 16 round block cipher supporting key sizes of 128, 192, and 256
1727 bits.
1728
1729 This module provides the Twofish cipher algorithm that processes
1730 eight blocks parallel using the AVX Instruction Set.
1731
1732 See also:
1733 <http://www.schneier.com/twofish.html>
1734
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001735comment "Compression"
1736
Linus Torvalds1da177e2005-04-16 15:20:36 -07001737config CRYPTO_DEFLATE
1738 tristate "Deflate compression algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001739 select CRYPTO_ALGAPI
Giovanni Cabidduf6ded092016-10-21 13:19:53 +01001740 select CRYPTO_ACOMP2
Linus Torvalds1da177e2005-04-16 15:20:36 -07001741 select ZLIB_INFLATE
1742 select ZLIB_DEFLATE
1743 help
1744 This is the Deflate algorithm (RFC1951), specified for use in
1745 IPSec with the IPCOMP protocol (RFC3173, RFC2394).
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001746
Linus Torvalds1da177e2005-04-16 15:20:36 -07001747 You will most probably want this if using IPSec.
1748
Zoltan Sogor0b77abb2007-12-07 16:53:23 +08001749config CRYPTO_LZO
1750 tristate "LZO compression algorithm"
1751 select CRYPTO_ALGAPI
Giovanni Cabidduac9d2c42016-10-21 13:19:49 +01001752 select CRYPTO_ACOMP2
Zoltan Sogor0b77abb2007-12-07 16:53:23 +08001753 select LZO_COMPRESS
1754 select LZO_DECOMPRESS
1755 help
1756 This is the LZO algorithm.
1757
Seth Jennings35a1fc12012-07-19 09:42:41 -05001758config CRYPTO_842
1759 tristate "842 compression algorithm"
Dan Streetman2062c5b2015-05-07 13:49:15 -04001760 select CRYPTO_ALGAPI
Giovanni Cabiddu6a8de3a2016-10-21 13:19:52 +01001761 select CRYPTO_ACOMP2
Dan Streetman2062c5b2015-05-07 13:49:15 -04001762 select 842_COMPRESS
1763 select 842_DECOMPRESS
Seth Jennings35a1fc12012-07-19 09:42:41 -05001764 help
1765 This is the 842 algorithm.
1766
Chanho Min0ea85302013-07-08 16:01:51 -07001767config CRYPTO_LZ4
1768 tristate "LZ4 compression algorithm"
1769 select CRYPTO_ALGAPI
Giovanni Cabiddu8cd93302016-10-21 13:19:50 +01001770 select CRYPTO_ACOMP2
Chanho Min0ea85302013-07-08 16:01:51 -07001771 select LZ4_COMPRESS
1772 select LZ4_DECOMPRESS
1773 help
1774 This is the LZ4 algorithm.
1775
1776config CRYPTO_LZ4HC
1777 tristate "LZ4HC compression algorithm"
1778 select CRYPTO_ALGAPI
Giovanni Cabiddu91d53d92016-10-21 13:19:51 +01001779 select CRYPTO_ACOMP2
Chanho Min0ea85302013-07-08 16:01:51 -07001780 select LZ4HC_COMPRESS
1781 select LZ4_DECOMPRESS
1782 help
1783 This is the LZ4 high compression mode algorithm.
1784
Nick Terrelld28fc3d2018-03-30 12:14:53 -07001785config CRYPTO_ZSTD
1786 tristate "Zstd compression algorithm"
1787 select CRYPTO_ALGAPI
1788 select CRYPTO_ACOMP2
1789 select ZSTD_COMPRESS
1790 select ZSTD_DECOMPRESS
1791 help
1792 This is the zstd algorithm.
1793
Neil Horman17f0f4a2008-08-14 22:15:52 +10001794comment "Random Number Generation"
1795
1796config CRYPTO_ANSI_CPRNG
1797 tristate "Pseudo Random Number Generation for Cryptographic modules"
1798 select CRYPTO_AES
1799 select CRYPTO_RNG
Neil Horman17f0f4a2008-08-14 22:15:52 +10001800 help
1801 This option enables the generic pseudo random number generator
1802 for cryptographic modules. Uses the Algorithm specified in
Jiri Kosina7dd607e2010-01-27 01:00:10 +01001803 ANSI X9.31 A.2.4. Note that this option must be enabled if
1804 CRYPTO_FIPS is selected
Neil Horman17f0f4a2008-08-14 22:15:52 +10001805
Herbert Xuf2c89a12014-07-04 22:15:08 +08001806menuconfig CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001807 tristate "NIST SP800-90A DRBG"
Stephan Mueller419090c2014-05-31 17:22:31 +02001808 help
1809 NIST SP800-90A compliant DRBG. In the following submenu, one or
1810 more of the DRBG types must be selected.
1811
Herbert Xuf2c89a12014-07-04 22:15:08 +08001812if CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001813
1814config CRYPTO_DRBG_HMAC
Herbert Xu401e4232015-06-03 14:49:31 +08001815 bool
Stephan Mueller419090c2014-05-31 17:22:31 +02001816 default y
Stephan Mueller419090c2014-05-31 17:22:31 +02001817 select CRYPTO_HMAC
Herbert Xu826775b2015-06-11 08:55:10 +08001818 select CRYPTO_SHA256
Stephan Mueller419090c2014-05-31 17:22:31 +02001819
1820config CRYPTO_DRBG_HASH
1821 bool "Enable Hash DRBG"
Herbert Xu826775b2015-06-11 08:55:10 +08001822 select CRYPTO_SHA256
Stephan Mueller419090c2014-05-31 17:22:31 +02001823 help
1824 Enable the Hash DRBG variant as defined in NIST SP800-90A.
1825
1826config CRYPTO_DRBG_CTR
1827 bool "Enable CTR DRBG"
Stephan Mueller419090c2014-05-31 17:22:31 +02001828 select CRYPTO_AES
Stephan Mueller35591282016-06-14 07:34:13 +02001829 depends on CRYPTO_CTR
Stephan Mueller419090c2014-05-31 17:22:31 +02001830 help
1831 Enable the CTR DRBG variant as defined in NIST SP800-90A.
1832
Herbert Xuf2c89a12014-07-04 22:15:08 +08001833config CRYPTO_DRBG
1834 tristate
Herbert Xu401e4232015-06-03 14:49:31 +08001835 default CRYPTO_DRBG_MENU
Herbert Xuf2c89a12014-07-04 22:15:08 +08001836 select CRYPTO_RNG
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001837 select CRYPTO_JITTERENTROPY
Herbert Xuf2c89a12014-07-04 22:15:08 +08001838
1839endif # if CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001840
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001841config CRYPTO_JITTERENTROPY
1842 tristate "Jitterentropy Non-Deterministic Random Number Generator"
Arnd Bergmann2f313e02016-01-26 14:47:10 +01001843 select CRYPTO_RNG
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001844 help
1845 The Jitterentropy RNG is a noise that is intended
1846 to provide seed to another RNG. The RNG does not
1847 perform any cryptographic whitening of the generated
1848 random numbers. This Jitterentropy RNG registers with
1849 the kernel crypto API and can be used by any caller.
1850
Herbert Xu03c8efc2010-10-19 21:12:39 +08001851config CRYPTO_USER_API
1852 tristate
1853
Herbert Xufe869cd2010-10-19 21:23:00 +08001854config CRYPTO_USER_API_HASH
1855 tristate "User-space interface for hash algorithms"
Herbert Xu74517082010-11-29 22:56:03 +08001856 depends on NET
Herbert Xufe869cd2010-10-19 21:23:00 +08001857 select CRYPTO_HASH
1858 select CRYPTO_USER_API
1859 help
1860 This option enables the user-spaces interface for hash
1861 algorithms.
1862
Herbert Xu8ff59092010-10-19 21:31:55 +08001863config CRYPTO_USER_API_SKCIPHER
1864 tristate "User-space interface for symmetric key cipher algorithms"
Herbert Xu74517082010-11-29 22:56:03 +08001865 depends on NET
Herbert Xu8ff59092010-10-19 21:31:55 +08001866 select CRYPTO_BLKCIPHER
1867 select CRYPTO_USER_API
1868 help
1869 This option enables the user-spaces interface for symmetric
1870 key cipher algorithms.
1871
Stephan Mueller2f3755382014-12-25 23:00:39 +01001872config CRYPTO_USER_API_RNG
1873 tristate "User-space interface for random number generator algorithms"
1874 depends on NET
1875 select CRYPTO_RNG
1876 select CRYPTO_USER_API
1877 help
1878 This option enables the user-spaces interface for random
1879 number generator algorithms.
1880
Herbert Xub64a2d92015-05-28 11:30:35 +08001881config CRYPTO_USER_API_AEAD
1882 tristate "User-space interface for AEAD cipher algorithms"
1883 depends on NET
1884 select CRYPTO_AEAD
Stephan Mueller72548b02017-07-30 14:32:58 +02001885 select CRYPTO_BLKCIPHER
1886 select CRYPTO_NULL
Herbert Xub64a2d92015-05-28 11:30:35 +08001887 select CRYPTO_USER_API
1888 help
1889 This option enables the user-spaces interface for AEAD
1890 cipher algorithms.
1891
Corentin Labbecac58182018-09-19 10:10:54 +00001892config CRYPTO_STATS
1893 bool "Crypto usage statistics for User-space"
Corentin Labbea6a31382018-11-29 14:42:17 +00001894 depends on CRYPTO_USER
Corentin Labbecac58182018-09-19 10:10:54 +00001895 help
1896 This option enables the gathering of crypto stats.
1897 This will collect:
1898 - encrypt/decrypt size and numbers of symmeric operations
1899 - compress/decompress size and numbers of compress operations
1900 - size and numbers of hash operations
1901 - encrypt/decrypt/sign/verify numbers for asymmetric operations
1902 - generate/seed numbers for rng operations
1903
Dmitry Kasatkinee089972013-05-06 15:40:01 +03001904config CRYPTO_HASH_INFO
1905 bool
1906
Linus Torvalds1da177e2005-04-16 15:20:36 -07001907source "drivers/crypto/Kconfig"
Masahiro Yamada8636a1f2018-12-11 20:01:04 +09001908source "crypto/asymmetric_keys/Kconfig"
1909source "certs/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -07001910
Herbert Xucce9e062006-08-21 21:08:13 +10001911endif # if CRYPTO