blob: 1b7238e05cf1544f6a567b164fb9a7d8a1e463fe [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
30 This options enables the fips boot option which is
31 required if you want to system to operate in a FIPS 200
32 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
Tadeusz Strukcfc2bb32015-06-16 10:31:01 -0700116config CRYPTO_RSA
117 tristate "RSA algorithm"
Tadeusz Struk425e0172015-06-19 10:27:39 -0700118 select CRYPTO_AKCIPHER
Tadeusz Struk58446fe2016-05-04 06:38:46 -0700119 select CRYPTO_MANAGER
Tadeusz Strukcfc2bb32015-06-16 10:31:01 -0700120 select MPILIB
121 select ASN1
122 help
123 Generic implementation of the RSA public key algorithm.
124
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100125config CRYPTO_DH
126 tristate "Diffie-Hellman algorithm"
127 select CRYPTO_KPP
128 select MPILIB
129 help
130 Generic implementation of the Diffie-Hellman algorithm.
131
Salvatore Benedetto3c4b2392016-06-22 17:49:15 +0100132config CRYPTO_ECDH
133 tristate "ECDH algorithm"
Hauke Mehrtensb5b90072017-11-26 00:16:46 +0100134 select CRYPTO_KPP
Tudor-Dan Ambarus6755fd22017-05-30 17:52:48 +0300135 select CRYPTO_RNG_DEFAULT
Salvatore Benedetto3c4b2392016-06-22 17:49:15 +0100136 help
137 Generic implementation of the ECDH algorithm
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100138
Herbert Xu2b8c19d2006-09-21 11:31:44 +1000139config CRYPTO_MANAGER
140 tristate "Cryptographic algorithm manager"
Herbert Xu6a0fcbb2008-12-10 23:29:44 +1100141 select CRYPTO_MANAGER2
Herbert Xu2b8c19d2006-09-21 11:31:44 +1000142 help
143 Create default cryptographic template instantiations such as
144 cbc(aes).
145
Herbert Xu6a0fcbb2008-12-10 23:29:44 +1100146config CRYPTO_MANAGER2
147 def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y)
148 select CRYPTO_AEAD2
149 select CRYPTO_HASH2
150 select CRYPTO_BLKCIPHER2
Tadeusz Struk946cc462015-06-16 10:31:06 -0700151 select CRYPTO_AKCIPHER2
Salvatore Benedetto4e5f2c42016-06-22 17:49:13 +0100152 select CRYPTO_KPP2
Giovanni Cabiddu2ebda742016-10-21 13:19:47 +0100153 select CRYPTO_ACOMP2
Herbert Xu6a0fcbb2008-12-10 23:29:44 +1100154
Steffen Klasserta38f7902011-09-27 07:23:50 +0200155config CRYPTO_USER
156 tristate "Userspace cryptographic algorithm configuration"
Herbert Xu5db017a2011-11-01 12:12:43 +1100157 depends on NET
Steffen Klasserta38f7902011-09-27 07:23:50 +0200158 select CRYPTO_MANAGER
159 help
Valdis.Kletnieks@vt.edud19978f2011-11-09 01:29:20 -0500160 Userspace configuration for cryptographic instantiations such as
Steffen Klasserta38f7902011-09-27 07:23:50 +0200161 cbc(aes).
162
Herbert Xu326a6342010-08-06 09:40:28 +0800163config CRYPTO_MANAGER_DISABLE_TESTS
164 bool "Disable run-time self tests"
Herbert Xu00ca28a2010-08-06 10:34:00 +0800165 default y
166 depends on CRYPTO_MANAGER2
Alexander Shishkin0b767f92010-06-03 20:53:43 +1000167 help
Herbert Xu326a6342010-08-06 09:40:28 +0800168 Disable run-time self tests that normally take place at
169 algorithm registration.
Alexander Shishkin0b767f92010-06-03 20:53:43 +1000170
Eric Biggers5b2706a2019-01-31 23:51:44 -0800171config CRYPTO_MANAGER_EXTRA_TESTS
172 bool "Enable extra run-time crypto self tests"
173 depends on DEBUG_KERNEL && !CRYPTO_MANAGER_DISABLE_TESTS
174 help
175 Enable extra run-time self tests of registered crypto algorithms,
176 including randomized fuzz tests.
177
178 This is intended for developer use only, as these tests take much
179 longer to run than the normal self tests.
180
Rik Snelc494e072006-11-29 18:59:44 +1100181config CRYPTO_GF128MUL
Jussi Kivilinna08c70fc2011-12-13 12:53:22 +0200182 tristate "GF(2^128) multiplication functions"
Rik Snelc494e072006-11-29 18:59:44 +1100183 help
184 Efficient table driven implementation of multiplications in the
185 field GF(2^128). This is needed by some cypher modes. This
186 option will be selected automatically if you select such a
187 cipher mode. Only select this option by hand if you expect to load
188 an external module that requires these functions.
189
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800190config CRYPTO_NULL
191 tristate "Null algorithms"
Herbert Xu149a3972015-08-13 17:28:58 +0800192 select CRYPTO_NULL2
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800193 help
194 These are 'Null' algorithms, used by IPsec, which do nothing.
195
Herbert Xu149a3972015-08-13 17:28:58 +0800196config CRYPTO_NULL2
Herbert Xudd43c4e2015-08-17 20:39:40 +0800197 tristate
Herbert Xu149a3972015-08-13 17:28:58 +0800198 select CRYPTO_ALGAPI2
199 select CRYPTO_BLKCIPHER2
200 select CRYPTO_HASH2
201
Steffen Klassert5068c7a2010-01-07 15:57:19 +1100202config CRYPTO_PCRYPT
Kees Cook3b4afaf2012-10-02 11:16:49 -0700203 tristate "Parallel crypto engine"
204 depends on SMP
Steffen Klassert5068c7a2010-01-07 15:57:19 +1100205 select PADATA
206 select CRYPTO_MANAGER
207 select CRYPTO_AEAD
208 help
209 This converts an arbitrary crypto algorithm into a parallel
210 algorithm that executes in kernel threads.
211
Huang Ying25c38d32009-02-19 14:33:40 +0800212config CRYPTO_WORKQUEUE
213 tristate
214
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800215config CRYPTO_CRYPTD
216 tristate "Software async crypto daemon"
Herbert Xudb131ef2006-09-21 11:44:08 +1000217 select CRYPTO_BLKCIPHER
Loc Hob8a28252008-05-14 21:23:00 +0800218 select CRYPTO_HASH
Herbert Xu43518402006-10-16 21:28:58 +1000219 select CRYPTO_MANAGER
Huang Ying254eff72009-02-19 14:42:19 +0800220 select CRYPTO_WORKQUEUE
Herbert Xudb131ef2006-09-21 11:44:08 +1000221 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800222 This is a generic software asynchronous crypto daemon that
223 converts an arbitrary synchronous software crypto algorithm
224 into an asynchronous algorithm that executes in a kernel thread.
225
226config CRYPTO_AUTHENC
227 tristate "Authenc support"
228 select CRYPTO_AEAD
229 select CRYPTO_BLKCIPHER
230 select CRYPTO_MANAGER
231 select CRYPTO_HASH
Herbert Xue94c6a72015-08-04 21:23:14 +0800232 select CRYPTO_NULL
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800233 help
234 Authenc: Combined mode wrapper for IPsec.
235 This is required for IPSec.
236
237config CRYPTO_TEST
238 tristate "Testing module"
239 depends on m
Herbert Xuda7f0332008-07-31 17:08:25 +0800240 select CRYPTO_MANAGER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800241 help
242 Quick & dirty crypto test module.
243
Herbert Xu266d0512016-11-22 20:08:25 +0800244config CRYPTO_SIMD
245 tristate
246 select CRYPTO_CRYPTD
247
Jussi Kivilinna596d8752012-06-18 14:07:19 +0300248config CRYPTO_GLUE_HELPER_X86
249 tristate
250 depends on X86
Herbert Xu065ce322016-11-22 20:08:29 +0800251 select CRYPTO_BLKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +0300252
Baolin Wang735d37b2016-01-26 20:25:39 +0800253config CRYPTO_ENGINE
254 tristate
255
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800256comment "Authenticated Encryption with Associated Data"
257
258config CRYPTO_CCM
259 tristate "CCM support"
260 select CRYPTO_CTR
Ard Biesheuvelf15f05b2017-02-03 14:49:36 +0000261 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800262 select CRYPTO_AEAD
263 help
264 Support for Counter with CBC MAC. Required for IPsec.
265
266config CRYPTO_GCM
267 tristate "GCM/GMAC support"
268 select CRYPTO_CTR
269 select CRYPTO_AEAD
Huang Ying9382d972009-08-06 15:34:26 +1000270 select CRYPTO_GHASH
Jussi Kivilinna9489667d2013-04-07 16:43:41 +0300271 select CRYPTO_NULL
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800272 help
273 Support for Galois/Counter Mode (GCM) and Galois Message
274 Authentication Code (GMAC). Required for IPSec.
275
Martin Willi71ebc4d2015-06-01 13:44:00 +0200276config CRYPTO_CHACHA20POLY1305
277 tristate "ChaCha20-Poly1305 AEAD support"
278 select CRYPTO_CHACHA20
279 select CRYPTO_POLY1305
280 select CRYPTO_AEAD
281 help
282 ChaCha20-Poly1305 AEAD support, RFC7539.
283
284 Support for the AEAD wrapper using the ChaCha20 stream cipher combined
285 with the Poly1305 authenticator. It is defined in RFC7539 for use in
286 IETF protocols.
287
Ondrej Mosnacekf606a882018-05-11 14:12:49 +0200288config CRYPTO_AEGIS128
289 tristate "AEGIS-128 AEAD algorithm"
290 select CRYPTO_AEAD
291 select CRYPTO_AES # for AES S-box tables
292 help
293 Support for the AEGIS-128 dedicated AEAD algorithm.
294
295config CRYPTO_AEGIS128L
296 tristate "AEGIS-128L AEAD algorithm"
297 select CRYPTO_AEAD
298 select CRYPTO_AES # for AES S-box tables
299 help
300 Support for the AEGIS-128L dedicated AEAD algorithm.
301
302config CRYPTO_AEGIS256
303 tristate "AEGIS-256 AEAD algorithm"
304 select CRYPTO_AEAD
305 select CRYPTO_AES # for AES S-box tables
306 help
307 Support for the AEGIS-256 dedicated AEAD algorithm.
308
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200309config CRYPTO_AEGIS128_AESNI_SSE2
310 tristate "AEGIS-128 AEAD algorithm (x86_64 AESNI+SSE2 implementation)"
311 depends on X86 && 64BIT
312 select CRYPTO_AEAD
Eric Biggersde272ca2019-03-10 12:00:53 -0700313 select CRYPTO_SIMD
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200314 help
315 AESNI+SSE2 implementation of the AEGSI-128 dedicated AEAD algorithm.
316
317config CRYPTO_AEGIS128L_AESNI_SSE2
318 tristate "AEGIS-128L AEAD algorithm (x86_64 AESNI+SSE2 implementation)"
319 depends on X86 && 64BIT
320 select CRYPTO_AEAD
Eric Biggersd6281322019-03-10 12:00:54 -0700321 select CRYPTO_SIMD
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200322 help
323 AESNI+SSE2 implementation of the AEGSI-128L dedicated AEAD algorithm.
324
325config CRYPTO_AEGIS256_AESNI_SSE2
326 tristate "AEGIS-256 AEAD algorithm (x86_64 AESNI+SSE2 implementation)"
327 depends on X86 && 64BIT
328 select CRYPTO_AEAD
Eric Biggersb6708c22019-03-10 12:00:55 -0700329 select CRYPTO_SIMD
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200330 help
331 AESNI+SSE2 implementation of the AEGSI-256 dedicated AEAD algorithm.
332
Ondrej Mosnacek396be412018-05-11 14:19:09 +0200333config CRYPTO_MORUS640
334 tristate "MORUS-640 AEAD algorithm"
335 select CRYPTO_AEAD
336 help
337 Support for the MORUS-640 dedicated AEAD algorithm.
338
Ondrej Mosnacek56e8e572018-05-11 14:19:11 +0200339config CRYPTO_MORUS640_GLUE
Ondrej Mosnacek2808f172018-05-21 21:41:51 +0200340 tristate
341 depends on X86
Ondrej Mosnacek56e8e572018-05-11 14:19:11 +0200342 select CRYPTO_AEAD
343 select CRYPTO_CRYPTD
344 help
345 Common glue for SIMD optimizations of the MORUS-640 dedicated AEAD
346 algorithm.
347
Ondrej Mosnacek6ecc9d92018-05-11 14:19:12 +0200348config CRYPTO_MORUS640_SSE2
349 tristate "MORUS-640 AEAD algorithm (x86_64 SSE2 implementation)"
350 depends on X86 && 64BIT
351 select CRYPTO_AEAD
352 select CRYPTO_MORUS640_GLUE
353 help
354 SSE2 implementation of the MORUS-640 dedicated AEAD algorithm.
355
Ondrej Mosnacek396be412018-05-11 14:19:09 +0200356config CRYPTO_MORUS1280
357 tristate "MORUS-1280 AEAD algorithm"
358 select CRYPTO_AEAD
359 help
360 Support for the MORUS-1280 dedicated AEAD algorithm.
361
Ondrej Mosnacek56e8e572018-05-11 14:19:11 +0200362config CRYPTO_MORUS1280_GLUE
Ondrej Mosnacek2808f172018-05-21 21:41:51 +0200363 tristate
364 depends on X86
Ondrej Mosnacek56e8e572018-05-11 14:19:11 +0200365 select CRYPTO_AEAD
366 select CRYPTO_CRYPTD
367 help
368 Common glue for SIMD optimizations of the MORUS-1280 dedicated AEAD
369 algorithm.
370
Ondrej Mosnacek6ecc9d92018-05-11 14:19:12 +0200371config CRYPTO_MORUS1280_SSE2
372 tristate "MORUS-1280 AEAD algorithm (x86_64 SSE2 implementation)"
373 depends on X86 && 64BIT
374 select CRYPTO_AEAD
375 select CRYPTO_MORUS1280_GLUE
376 help
377 SSE2 optimizedimplementation of the MORUS-1280 dedicated AEAD
378 algorithm.
379
380config CRYPTO_MORUS1280_AVX2
381 tristate "MORUS-1280 AEAD algorithm (x86_64 AVX2 implementation)"
382 depends on X86 && 64BIT
383 select CRYPTO_AEAD
384 select CRYPTO_MORUS1280_GLUE
385 help
386 AVX2 optimized implementation of the MORUS-1280 dedicated AEAD
387 algorithm.
388
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800389config CRYPTO_SEQIV
390 tristate "Sequence Number IV Generator"
391 select CRYPTO_AEAD
392 select CRYPTO_BLKCIPHER
Herbert Xu856e3f402015-05-21 15:11:13 +0800393 select CRYPTO_NULL
Herbert Xu401e4232015-06-03 14:49:31 +0800394 select CRYPTO_RNG_DEFAULT
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800395 help
396 This IV generator generates an IV based on a sequence number by
397 xoring it with a salt. This algorithm is mainly useful for CTR
398
Herbert Xua10f5542015-05-21 15:11:15 +0800399config CRYPTO_ECHAINIV
400 tristate "Encrypted Chain IV Generator"
401 select CRYPTO_AEAD
402 select CRYPTO_NULL
Herbert Xu401e4232015-06-03 14:49:31 +0800403 select CRYPTO_RNG_DEFAULT
Herbert Xu34912442015-06-03 14:49:29 +0800404 default m
Herbert Xua10f5542015-05-21 15:11:15 +0800405 help
406 This IV generator generates an IV based on the encryption of
407 a sequence number xored with a salt. This is the default
408 algorithm for CBC.
409
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800410comment "Block modes"
Herbert Xudb131ef2006-09-21 11:44:08 +1000411
412config CRYPTO_CBC
413 tristate "CBC support"
414 select CRYPTO_BLKCIPHER
Herbert Xu43518402006-10-16 21:28:58 +1000415 select CRYPTO_MANAGER
Herbert Xudb131ef2006-09-21 11:44:08 +1000416 help
417 CBC: Cipher Block Chaining mode
418 This block cipher algorithm is required for IPSec.
419
James Bottomleya7d85e02018-03-01 14:36:17 -0800420config CRYPTO_CFB
421 tristate "CFB support"
422 select CRYPTO_BLKCIPHER
423 select CRYPTO_MANAGER
424 help
425 CFB: Cipher FeedBack mode
426 This block cipher algorithm is required for TPM2 Cryptography.
427
Joy Latten23e353c2007-10-23 08:50:32 +0800428config CRYPTO_CTR
429 tristate "CTR support"
430 select CRYPTO_BLKCIPHER
Herbert Xu0a270322007-11-30 21:38:37 +1100431 select CRYPTO_SEQIV
Joy Latten23e353c2007-10-23 08:50:32 +0800432 select CRYPTO_MANAGER
Joy Latten23e353c2007-10-23 08:50:32 +0800433 help
434 CTR: Counter mode
435 This block cipher algorithm is required for IPSec.
436
Kevin Coffman76cb9522008-03-24 21:26:16 +0800437config CRYPTO_CTS
438 tristate "CTS support"
439 select CRYPTO_BLKCIPHER
440 help
441 CTS: Cipher Text Stealing
442 This is the Cipher Text Stealing mode as described by
Gilad Ben-Yossefecd6d5c2018-11-05 12:05:01 +0000443 Section 8 of rfc2040 and referenced by rfc3962
444 (rfc3962 includes errata information in its Appendix A) or
445 CBC-CS3 as defined by NIST in Sp800-38A addendum from Oct 2010.
Kevin Coffman76cb9522008-03-24 21:26:16 +0800446 This mode is required for Kerberos gss mechanism support
447 for AES encryption.
448
Gilad Ben-Yossefecd6d5c2018-11-05 12:05:01 +0000449 See: https://csrc.nist.gov/publications/detail/sp/800-38a/addendum/final
450
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800451config CRYPTO_ECB
452 tristate "ECB support"
Herbert Xu653ebd9c2007-11-27 19:48:27 +0800453 select CRYPTO_BLKCIPHER
Herbert Xu124b53d2007-04-16 20:49:20 +1000454 select CRYPTO_MANAGER
455 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800456 ECB: Electronic CodeBook mode
457 This is the simplest block cipher algorithm. It simply encrypts
458 the input block by block.
Herbert Xu124b53d2007-04-16 20:49:20 +1000459
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800460config CRYPTO_LRW
Jussi Kivilinna2470a2b2011-12-13 12:52:51 +0200461 tristate "LRW support"
David Howells90831632006-12-16 12:13:14 +1100462 select CRYPTO_BLKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800463 select CRYPTO_MANAGER
464 select CRYPTO_GF128MUL
David Howells90831632006-12-16 12:13:14 +1100465 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800466 LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
467 narrow block cipher mode for dm-crypt. Use it with cipher
468 specification string aes-lrw-benbi, the key must be 256, 320 or 384.
469 The first 128, 192 or 256 bits in the key are used for AES and the
470 rest is used to tie each cipher block to its logical position.
David Howells90831632006-12-16 12:13:14 +1100471
Gilad Ben-Yossefe497c512018-09-20 14:18:39 +0100472config CRYPTO_OFB
473 tristate "OFB support"
474 select CRYPTO_BLKCIPHER
475 select CRYPTO_MANAGER
476 help
477 OFB: the Output Feedback mode makes a block cipher into a synchronous
478 stream cipher. It generates keystream blocks, which are then XORed
479 with the plaintext blocks to get the ciphertext. Flipping a bit in the
480 ciphertext produces a flipped bit in the plaintext at the same
481 location. This property allows many error correcting codes to function
482 normally even when applied before encryption.
483
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800484config CRYPTO_PCBC
485 tristate "PCBC support"
486 select CRYPTO_BLKCIPHER
487 select CRYPTO_MANAGER
488 help
489 PCBC: Propagating Cipher Block Chaining mode
490 This block cipher algorithm is required for RxRPC.
491
492config CRYPTO_XTS
Jussi Kivilinna5bcf8e62011-12-13 12:52:56 +0200493 tristate "XTS support"
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800494 select CRYPTO_BLKCIPHER
495 select CRYPTO_MANAGER
Milan Broz12cb3a12017-02-23 08:38:26 +0100496 select CRYPTO_ECB
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800497 help
498 XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
499 key size 256, 384 or 512 bits. This implementation currently
500 can't handle a sectorsize which is not a multiple of 16 bytes.
501
Stephan Mueller1c49678e2015-09-21 20:58:56 +0200502config CRYPTO_KEYWRAP
503 tristate "Key wrapping support"
504 select CRYPTO_BLKCIPHER
505 help
506 Support for key wrapping (NIST SP800-38F / RFC3394) without
507 padding.
508
Eric Biggers26609a22018-11-16 17:26:29 -0800509config CRYPTO_NHPOLY1305
510 tristate
511 select CRYPTO_HASH
512 select CRYPTO_POLY1305
513
Eric Biggers012c8232018-12-04 22:20:00 -0800514config CRYPTO_NHPOLY1305_SSE2
515 tristate "NHPoly1305 hash function (x86_64 SSE2 implementation)"
516 depends on X86 && 64BIT
517 select CRYPTO_NHPOLY1305
518 help
519 SSE2 optimized implementation of the hash function used by the
520 Adiantum encryption mode.
521
Eric Biggers0f961f92018-12-04 22:20:01 -0800522config CRYPTO_NHPOLY1305_AVX2
523 tristate "NHPoly1305 hash function (x86_64 AVX2 implementation)"
524 depends on X86 && 64BIT
525 select CRYPTO_NHPOLY1305
526 help
527 AVX2 optimized implementation of the hash function used by the
528 Adiantum encryption mode.
529
Eric Biggers059c2a42018-11-16 17:26:31 -0800530config CRYPTO_ADIANTUM
531 tristate "Adiantum support"
532 select CRYPTO_CHACHA20
533 select CRYPTO_POLY1305
534 select CRYPTO_NHPOLY1305
535 help
536 Adiantum is a tweakable, length-preserving encryption mode
537 designed for fast and secure disk encryption, especially on
538 CPUs without dedicated crypto instructions. It encrypts
539 each sector using the XChaCha12 stream cipher, two passes of
540 an ε-almost-∆-universal hash function, and an invocation of
541 the AES-256 block cipher on a single 16-byte block. On CPUs
542 without AES instructions, Adiantum is much faster than
543 AES-XTS.
544
545 Adiantum's security is provably reducible to that of its
546 underlying stream and block ciphers, subject to a security
547 bound. Unlike XTS, Adiantum is a true wide-block encryption
548 mode, so it actually provides an even stronger notion of
549 security than XTS, subject to the security bound.
550
551 If unsure, say N.
552
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800553comment "Hash modes"
554
Jussi Kivilinna93b5e862013-04-08 10:48:44 +0300555config CRYPTO_CMAC
556 tristate "CMAC support"
557 select CRYPTO_HASH
558 select CRYPTO_MANAGER
559 help
560 Cipher-based Message Authentication Code (CMAC) specified by
561 The National Institute of Standards and Technology (NIST).
562
563 https://tools.ietf.org/html/rfc4493
564 http://csrc.nist.gov/publications/nistpubs/800-38B/SP_800-38B.pdf
565
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800566config CRYPTO_HMAC
567 tristate "HMAC support"
568 select CRYPTO_HASH
569 select CRYPTO_MANAGER
570 help
571 HMAC: Keyed-Hashing for Message Authentication (RFC2104).
572 This is required for IPSec.
573
574config CRYPTO_XCBC
575 tristate "XCBC support"
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800576 select CRYPTO_HASH
577 select CRYPTO_MANAGER
578 help
579 XCBC: Keyed-Hashing with encryption algorithm
580 http://www.ietf.org/rfc/rfc3566.txt
581 http://csrc.nist.gov/encryption/modes/proposedmodes/
582 xcbc-mac/xcbc-mac-spec.pdf
583
Shane Wangf1939f72009-09-02 20:05:22 +1000584config CRYPTO_VMAC
585 tristate "VMAC support"
Shane Wangf1939f72009-09-02 20:05:22 +1000586 select CRYPTO_HASH
587 select CRYPTO_MANAGER
588 help
589 VMAC is a message authentication algorithm designed for
590 very high speed on 64-bit architectures.
591
592 See also:
593 <http://fastcrypto.org/vmac>
594
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800595comment "Digest"
596
597config CRYPTO_CRC32C
598 tristate "CRC32c CRC algorithm"
Herbert Xu5773a3e2008-07-08 20:54:28 +0800599 select CRYPTO_HASH
Darrick J. Wong6a0962b2012-03-23 15:02:25 -0700600 select CRC32
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800601 help
602 Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
603 by iSCSI for header and data digests and by others.
Herbert Xu69c35ef2008-11-07 15:11:47 +0800604 See Castagnoli93. Module will be crc32c.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800605
Austin Zhang8cb51ba2008-08-07 09:57:03 +0800606config CRYPTO_CRC32C_INTEL
607 tristate "CRC32c INTEL hardware acceleration"
608 depends on X86
609 select CRYPTO_HASH
610 help
611 In Intel processor with SSE4.2 supported, the processor will
612 support CRC32C implementation using hardware accelerated CRC32
613 instruction. This option will create 'crc32c-intel' module,
614 which will enable any routine to use the CRC32 instruction to
615 gain performance compared with software implementation.
616 Module will be crc32c-intel.
617
Jean Delvare7cf31862016-11-22 10:32:44 +0100618config CRYPTO_CRC32C_VPMSUM
Anton Blanchard6dd7a822016-07-01 08:19:45 +1000619 tristate "CRC32c CRC algorithm (powerpc64)"
Michael Ellermanc12abf32016-08-09 08:46:15 +1000620 depends on PPC64 && ALTIVEC
Anton Blanchard6dd7a822016-07-01 08:19:45 +1000621 select CRYPTO_HASH
622 select CRC32
623 help
624 CRC32c algorithm implemented using vector polynomial multiply-sum
625 (vpmsum) instructions, introduced in POWER8. Enable on POWER8
626 and newer processors for improved performance.
627
628
David S. Miller442a7c42012-08-22 20:47:36 -0700629config CRYPTO_CRC32C_SPARC64
630 tristate "CRC32c CRC algorithm (SPARC64)"
631 depends on SPARC64
632 select CRYPTO_HASH
633 select CRC32
634 help
635 CRC32c CRC algorithm implemented using sparc64 crypto instructions,
636 when available.
637
Alexander Boyko78c37d12013-01-10 18:54:59 +0400638config CRYPTO_CRC32
639 tristate "CRC32 CRC algorithm"
640 select CRYPTO_HASH
641 select CRC32
642 help
643 CRC-32-IEEE 802.3 cyclic redundancy-check algorithm.
644 Shash crypto api wrappers to crc32_le function.
645
646config CRYPTO_CRC32_PCLMUL
647 tristate "CRC32 PCLMULQDQ hardware acceleration"
648 depends on X86
649 select CRYPTO_HASH
650 select CRC32
651 help
652 From Intel Westmere and AMD Bulldozer processor with SSE4.2
653 and PCLMULQDQ supported, the processor will support
654 CRC32 PCLMULQDQ implementation using hardware accelerated PCLMULQDQ
hacoaf8cb012018-12-28 10:09:40 +0000655 instruction. This option will create 'crc32-pclmul' module,
Alexander Boyko78c37d12013-01-10 18:54:59 +0400656 which will enable any routine to use the CRC-32-IEEE 802.3 checksum
657 and gain better performance as compared with the table implementation.
658
Marcin Nowakowski4a5dc512018-02-09 22:11:06 +0000659config CRYPTO_CRC32_MIPS
660 tristate "CRC32c and CRC32 CRC algorithm (MIPS)"
661 depends on MIPS_CRC_SUPPORT
662 select CRYPTO_HASH
663 help
664 CRC32c and CRC32 CRC algorithms implemented using mips crypto
665 instructions, when available.
666
667
Herbert Xu684115212013-09-07 12:56:26 +1000668config CRYPTO_CRCT10DIF
669 tristate "CRCT10DIF algorithm"
670 select CRYPTO_HASH
671 help
672 CRC T10 Data Integrity Field computation is being cast as
673 a crypto transform. This allows for faster crc t10 diff
674 transforms to be used if they are available.
675
676config CRYPTO_CRCT10DIF_PCLMUL
677 tristate "CRCT10DIF PCLMULQDQ hardware acceleration"
678 depends on X86 && 64BIT && CRC_T10DIF
679 select CRYPTO_HASH
680 help
681 For x86_64 processors with SSE4.2 and PCLMULQDQ supported,
682 CRC T10 DIF PCLMULQDQ computation can be hardware
683 accelerated PCLMULQDQ instruction. This option will create
hacoaf8cb012018-12-28 10:09:40 +0000684 'crct10dif-pclmul' module, which is faster when computing the
Herbert Xu684115212013-09-07 12:56:26 +1000685 crct10dif checksum as compared with the generic table implementation.
686
Daniel Axtensb01df1c2017-03-15 23:37:36 +1100687config CRYPTO_CRCT10DIF_VPMSUM
688 tristate "CRC32T10DIF powerpc64 hardware acceleration"
689 depends on PPC64 && ALTIVEC && CRC_T10DIF
690 select CRYPTO_HASH
691 help
692 CRC10T10DIF algorithm implemented using vector polynomial
693 multiply-sum (vpmsum) instructions, introduced in POWER8. Enable on
694 POWER8 and newer processors for improved performance.
695
Daniel Axtens146c8682017-03-15 23:37:37 +1100696config CRYPTO_VPMSUM_TESTER
697 tristate "Powerpc64 vpmsum hardware acceleration tester"
698 depends on CRYPTO_CRCT10DIF_VPMSUM && CRYPTO_CRC32C_VPMSUM
699 help
700 Stress test for CRC32c and CRC-T10DIF algorithms implemented with
701 POWER8 vpmsum instructions.
702 Unless you are testing these algorithms, you don't need this.
703
Huang Ying2cdc6892009-08-06 15:32:38 +1000704config CRYPTO_GHASH
705 tristate "GHASH digest algorithm"
Huang Ying2cdc6892009-08-06 15:32:38 +1000706 select CRYPTO_GF128MUL
Arnd Bergmann578c60f2016-01-25 17:51:21 +0100707 select CRYPTO_HASH
Huang Ying2cdc6892009-08-06 15:32:38 +1000708 help
709 GHASH is message digest algorithm for GCM (Galois/Counter Mode).
710
Martin Willif979e012015-06-01 13:43:58 +0200711config CRYPTO_POLY1305
712 tristate "Poly1305 authenticator algorithm"
Arnd Bergmann578c60f2016-01-25 17:51:21 +0100713 select CRYPTO_HASH
Martin Willif979e012015-06-01 13:43:58 +0200714 help
715 Poly1305 authenticator algorithm, RFC7539.
716
717 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
718 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
719 in IETF protocols. This is the portable C implementation of Poly1305.
720
Martin Willic70f4ab2015-07-16 19:14:06 +0200721config CRYPTO_POLY1305_X86_64
Martin Willib1ccc8f2015-07-16 19:14:08 +0200722 tristate "Poly1305 authenticator algorithm (x86_64/SSE2/AVX2)"
Martin Willic70f4ab2015-07-16 19:14:06 +0200723 depends on X86 && 64BIT
724 select CRYPTO_POLY1305
725 help
726 Poly1305 authenticator algorithm, RFC7539.
727
728 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
729 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
730 in IETF protocols. This is the x86_64 assembler implementation using SIMD
731 instructions.
732
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800733config CRYPTO_MD4
734 tristate "MD4 digest algorithm"
Adrian-Ken Rueegsegger808a1762008-12-03 19:55:27 +0800735 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700736 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800737 MD4 message digest algorithm (RFC1320).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700738
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800739config CRYPTO_MD5
740 tristate "MD5 digest algorithm"
Adrian-Ken Rueegsegger14b75ba2008-12-03 19:57:12 +0800741 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700742 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800743 MD5 message digest algorithm (RFC1321).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700744
Aaro Koskinend69e75d2014-12-21 22:54:02 +0200745config CRYPTO_MD5_OCTEON
746 tristate "MD5 digest algorithm (OCTEON)"
747 depends on CPU_CAVIUM_OCTEON
748 select CRYPTO_MD5
749 select CRYPTO_HASH
750 help
751 MD5 message digest algorithm (RFC1321) implemented
752 using OCTEON crypto instructions, when available.
753
Markus Stockhausene8e59952015-03-01 19:30:46 +0100754config CRYPTO_MD5_PPC
755 tristate "MD5 digest algorithm (PPC)"
756 depends on PPC
757 select CRYPTO_HASH
758 help
759 MD5 message digest algorithm (RFC1321) implemented
760 in PPC assembler.
761
David S. Millerfa4dfed2012-08-19 21:51:26 -0700762config CRYPTO_MD5_SPARC64
763 tristate "MD5 digest algorithm (SPARC64)"
764 depends on SPARC64
765 select CRYPTO_MD5
766 select CRYPTO_HASH
767 help
768 MD5 message digest algorithm (RFC1321) implemented
769 using sparc64 crypto instructions, when available.
770
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800771config CRYPTO_MICHAEL_MIC
772 tristate "Michael MIC keyed digest algorithm"
Adrian-Ken Rueegsegger19e2bf12008-12-07 19:35:38 +0800773 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800774 help
775 Michael MIC is used for message integrity protection in TKIP
776 (IEEE 802.11i). This algorithm is required for TKIP, but it
777 should not be used for other purposes because of the weakness
778 of the algorithm.
779
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800780config CRYPTO_RMD128
Adrian Bunkb6d44342008-07-16 19:28:00 +0800781 tristate "RIPEMD-128 digest algorithm"
Herbert Xu7c4468b2008-11-08 09:10:40 +0800782 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800783 help
784 RIPEMD-128 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800785
Adrian Bunkb6d44342008-07-16 19:28:00 +0800786 RIPEMD-128 is a 128-bit cryptographic hash function. It should only
Michael Witten35ed4b32011-07-09 04:02:31 +0000787 be used as a secure replacement for RIPEMD. For other use cases,
Adrian Bunkb6d44342008-07-16 19:28:00 +0800788 RIPEMD-160 should be used.
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800789
Adrian Bunkb6d44342008-07-16 19:28:00 +0800790 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800791 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800792
793config CRYPTO_RMD160
Adrian Bunkb6d44342008-07-16 19:28:00 +0800794 tristate "RIPEMD-160 digest algorithm"
Herbert Xue5835fb2008-11-08 09:18:51 +0800795 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800796 help
797 RIPEMD-160 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800798
Adrian Bunkb6d44342008-07-16 19:28:00 +0800799 RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
800 to be used as a secure replacement for the 128-bit hash functions
801 MD4, MD5 and it's predecessor RIPEMD
802 (not to be confused with RIPEMD-128).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800803
Adrian Bunkb6d44342008-07-16 19:28:00 +0800804 It's speed is comparable to SHA1 and there are no known attacks
805 against RIPEMD-160.
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800806
Adrian Bunkb6d44342008-07-16 19:28:00 +0800807 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800808 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800809
810config CRYPTO_RMD256
Adrian Bunkb6d44342008-07-16 19:28:00 +0800811 tristate "RIPEMD-256 digest algorithm"
Herbert Xud8a5e2e2008-11-08 09:58:10 +0800812 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800813 help
814 RIPEMD-256 is an optional extension of RIPEMD-128 with a
815 256 bit hash. It is intended for applications that require
816 longer hash-results, without needing a larger security level
817 (than RIPEMD-128).
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800818
Adrian Bunkb6d44342008-07-16 19:28:00 +0800819 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800820 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800821
822config CRYPTO_RMD320
Adrian Bunkb6d44342008-07-16 19:28:00 +0800823 tristate "RIPEMD-320 digest algorithm"
Herbert Xu3b8efb42008-11-08 10:11:09 +0800824 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800825 help
826 RIPEMD-320 is an optional extension of RIPEMD-160 with a
827 320 bit hash. It is intended for applications that require
828 longer hash-results, without needing a larger security level
829 (than RIPEMD-160).
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800830
Adrian Bunkb6d44342008-07-16 19:28:00 +0800831 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800832 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800833
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800834config CRYPTO_SHA1
835 tristate "SHA1 digest algorithm"
Adrian-Ken Rueegsegger54ccb362008-12-02 21:08:20 +0800836 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800837 help
838 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
839
Mathias Krause66be8952011-08-04 20:19:25 +0200840config CRYPTO_SHA1_SSSE3
time38b6b7f2015-09-10 15:27:26 -0700841 tristate "SHA1 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
Mathias Krause66be8952011-08-04 20:19:25 +0200842 depends on X86 && 64BIT
843 select CRYPTO_SHA1
844 select CRYPTO_HASH
845 help
846 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
847 using Supplemental SSE3 (SSSE3) instructions or Advanced Vector
time38b6b7f2015-09-10 15:27:26 -0700848 Extensions (AVX/AVX2) or SHA-NI(SHA Extensions New Instructions),
849 when available.
Mathias Krause66be8952011-08-04 20:19:25 +0200850
Tim Chen8275d1a2013-03-26 13:59:17 -0700851config CRYPTO_SHA256_SSSE3
time38b6b7f2015-09-10 15:27:26 -0700852 tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
Tim Chen8275d1a2013-03-26 13:59:17 -0700853 depends on X86 && 64BIT
854 select CRYPTO_SHA256
855 select CRYPTO_HASH
856 help
857 SHA-256 secure hash standard (DFIPS 180-2) implemented
858 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
859 Extensions version 1 (AVX1), or Advanced Vector Extensions
time38b6b7f2015-09-10 15:27:26 -0700860 version 2 (AVX2) instructions, or SHA-NI (SHA Extensions New
861 Instructions) when available.
Tim Chen8275d1a2013-03-26 13:59:17 -0700862
Tim Chen87de4572013-03-26 14:00:02 -0700863config CRYPTO_SHA512_SSSE3
864 tristate "SHA512 digest algorithm (SSSE3/AVX/AVX2)"
865 depends on X86 && 64BIT
866 select CRYPTO_SHA512
867 select CRYPTO_HASH
868 help
869 SHA-512 secure hash standard (DFIPS 180-2) implemented
870 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
871 Extensions version 1 (AVX1), or Advanced Vector Extensions
872 version 2 (AVX2) instructions, when available.
873
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200874config CRYPTO_SHA1_OCTEON
875 tristate "SHA1 digest algorithm (OCTEON)"
876 depends on CPU_CAVIUM_OCTEON
877 select CRYPTO_SHA1
878 select CRYPTO_HASH
879 help
880 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
881 using OCTEON crypto instructions, when available.
882
David S. Miller4ff28d42012-08-19 15:41:53 -0700883config CRYPTO_SHA1_SPARC64
884 tristate "SHA1 digest algorithm (SPARC64)"
885 depends on SPARC64
886 select CRYPTO_SHA1
887 select CRYPTO_HASH
888 help
889 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
890 using sparc64 crypto instructions, when available.
891
Michael Ellerman323a6bf2012-09-13 23:00:49 +0000892config CRYPTO_SHA1_PPC
893 tristate "SHA1 digest algorithm (powerpc)"
894 depends on PPC
895 help
896 This is the powerpc hardware accelerated implementation of the
897 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
898
Markus Stockhausend9850fc2015-02-24 20:36:50 +0100899config CRYPTO_SHA1_PPC_SPE
900 tristate "SHA1 digest algorithm (PPC SPE)"
901 depends on PPC && SPE
902 help
903 SHA-1 secure hash standard (DFIPS 180-4) implemented
904 using powerpc SPE SIMD instruction set.
905
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800906config CRYPTO_SHA256
907 tristate "SHA224 and SHA256 digest algorithm"
Adrian-Ken Rueegsegger50e109b52008-12-03 19:57:49 +0800908 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800909 help
910 SHA256 secure hash standard (DFIPS 180-2).
911
912 This version of SHA implements a 256 bit hash with 128 bits of
913 security against collision attacks.
914
Adrian Bunkb6d44342008-07-16 19:28:00 +0800915 This code also includes SHA-224, a 224 bit hash with 112 bits
916 of security against collision attacks.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800917
Markus Stockhausen2ecc1e92015-01-30 15:39:34 +0100918config CRYPTO_SHA256_PPC_SPE
919 tristate "SHA224 and SHA256 digest algorithm (PPC SPE)"
920 depends on PPC && SPE
921 select CRYPTO_SHA256
922 select CRYPTO_HASH
923 help
924 SHA224 and SHA256 secure hash standard (DFIPS 180-2)
925 implemented using powerpc SPE SIMD instruction set.
926
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200927config CRYPTO_SHA256_OCTEON
928 tristate "SHA224 and SHA256 digest algorithm (OCTEON)"
929 depends on CPU_CAVIUM_OCTEON
930 select CRYPTO_SHA256
931 select CRYPTO_HASH
932 help
933 SHA-256 secure hash standard (DFIPS 180-2) implemented
934 using OCTEON crypto instructions, when available.
935
David S. Miller86c93b22012-08-19 17:11:37 -0700936config CRYPTO_SHA256_SPARC64
937 tristate "SHA224 and SHA256 digest algorithm (SPARC64)"
938 depends on SPARC64
939 select CRYPTO_SHA256
940 select CRYPTO_HASH
941 help
942 SHA-256 secure hash standard (DFIPS 180-2) implemented
943 using sparc64 crypto instructions, when available.
944
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800945config CRYPTO_SHA512
946 tristate "SHA384 and SHA512 digest algorithms"
Adrian-Ken Rueegseggerbd9d20d2008-12-17 16:49:02 +1100947 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800948 help
949 SHA512 secure hash standard (DFIPS 180-2).
950
951 This version of SHA implements a 512 bit hash with 256 bits of
952 security against collision attacks.
953
954 This code also includes SHA-384, a 384 bit hash with 192 bits
955 of security against collision attacks.
956
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200957config CRYPTO_SHA512_OCTEON
958 tristate "SHA384 and SHA512 digest algorithms (OCTEON)"
959 depends on CPU_CAVIUM_OCTEON
960 select CRYPTO_SHA512
961 select CRYPTO_HASH
962 help
963 SHA-512 secure hash standard (DFIPS 180-2) implemented
964 using OCTEON crypto instructions, when available.
965
David S. Miller775e0c62012-08-19 17:37:56 -0700966config CRYPTO_SHA512_SPARC64
967 tristate "SHA384 and SHA512 digest algorithm (SPARC64)"
968 depends on SPARC64
969 select CRYPTO_SHA512
970 select CRYPTO_HASH
971 help
972 SHA-512 secure hash standard (DFIPS 180-2) implemented
973 using sparc64 crypto instructions, when available.
974
Jeff Garzik53964b92016-06-17 10:30:35 +0530975config CRYPTO_SHA3
976 tristate "SHA3 digest algorithm"
977 select CRYPTO_HASH
978 help
979 SHA-3 secure hash standard (DFIPS 202). It's based on
980 cryptographic sponge function family called Keccak.
981
982 References:
983 http://keccak.noekeon.org/
984
Gilad Ben-Yossef4f0fc162017-08-21 13:51:28 +0300985config CRYPTO_SM3
986 tristate "SM3 digest algorithm"
987 select CRYPTO_HASH
988 help
989 SM3 secure hash function as defined by OSCCA GM/T 0004-2012 SM3).
990 It is part of the Chinese Commercial Cryptography suite.
991
992 References:
993 http://www.oscca.gov.cn/UpFile/20101222141857786.pdf
994 https://datatracker.ietf.org/doc/html/draft-shen-sm3-hash
995
Vitaly Chikunovfe189572018-11-07 00:00:01 +0300996config CRYPTO_STREEBOG
997 tristate "Streebog Hash Function"
998 select CRYPTO_HASH
999 help
1000 Streebog Hash Function (GOST R 34.11-2012, RFC 6986) is one of the Russian
1001 cryptographic standard algorithms (called GOST algorithms).
1002 This setting enables two hash algorithms with 256 and 512 bits output.
1003
1004 References:
1005 https://tc26.ru/upload/iblock/fed/feddbb4d26b685903faa2ba11aea43f6.pdf
1006 https://tools.ietf.org/html/rfc6986
1007
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001008config CRYPTO_TGR192
1009 tristate "Tiger digest algorithms"
Adrian-Ken Rueegseggerf63fbd32008-12-03 19:58:32 +08001010 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001011 help
1012 Tiger hash algorithm 192, 160 and 128-bit hashes
1013
1014 Tiger is a hash function optimized for 64-bit processors while
1015 still having decent performance on 32-bit processors.
1016 Tiger was developed by Ross Anderson and Eli Biham.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001017
1018 See also:
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001019 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
1020
1021config CRYPTO_WP512
1022 tristate "Whirlpool digest algorithms"
Adrian-Ken Rueegsegger49465102008-12-07 19:34:37 +08001023 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001024 help
1025 Whirlpool hash algorithm 512, 384 and 256-bit hashes
1026
1027 Whirlpool-512 is part of the NESSIE cryptographic primitives.
1028 Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
1029
1030 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001031 <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html>
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001032
Huang Ying0e1227d2009-10-19 11:53:06 +09001033config CRYPTO_GHASH_CLMUL_NI_INTEL
1034 tristate "GHASH digest algorithm (CLMUL-NI accelerated)"
Richard Weinberger8af00862011-06-08 20:56:29 +08001035 depends on X86 && 64BIT
Huang Ying0e1227d2009-10-19 11:53:06 +09001036 select CRYPTO_CRYPTD
1037 help
1038 GHASH is message digest algorithm for GCM (Galois/Counter Mode).
1039 The implementation is accelerated by CLMUL-NI of Intel.
1040
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001041comment "Ciphers"
Linus Torvalds1da177e2005-04-16 15:20:36 -07001042
1043config CRYPTO_AES
1044 tristate "AES cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +10001045 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -07001046 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001047 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Linus Torvalds1da177e2005-04-16 15:20:36 -07001048 algorithm.
1049
1050 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001051 both hardware and software across a wide range of computing
1052 environments regardless of its use in feedback or non-feedback
1053 modes. Its key setup time is excellent, and its key agility is
1054 good. Rijndael's very low memory requirements make it very well
1055 suited for restricted-space environments, in which it also
1056 demonstrates excellent performance. Rijndael's operations are
1057 among the easiest to defend against power and timing attacks.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001058
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001059 The AES specifies three key sizes: 128, 192 and 256 bits
Linus Torvalds1da177e2005-04-16 15:20:36 -07001060
1061 See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
1062
Ard Biesheuvelb5e0b032017-02-02 16:37:40 +00001063config CRYPTO_AES_TI
1064 tristate "Fixed time AES cipher"
1065 select CRYPTO_ALGAPI
1066 help
1067 This is a generic implementation of AES that attempts to eliminate
1068 data dependent latencies as much as possible without affecting
1069 performance too much. It is intended for use by the generic CCM
1070 and GCM drivers, and other CTR or CMAC/XCBC based modes that rely
1071 solely on encryption (although decryption is supported as well, but
1072 with a more dramatic performance hit)
1073
1074 Instead of using 16 lookup tables of 1 KB each, (8 for encryption and
1075 8 for decryption), this implementation only uses just two S-boxes of
1076 256 bytes each, and attempts to eliminate data dependent latencies by
1077 prefetching the entire table into the cache at the start of each
Eric Biggers0a6a40c2018-10-17 21:37:58 -07001078 block. Interrupts are also disabled to avoid races where cachelines
1079 are evicted when the CPU is interrupted to do something else.
Ard Biesheuvelb5e0b032017-02-02 16:37:40 +00001080
Linus Torvalds1da177e2005-04-16 15:20:36 -07001081config CRYPTO_AES_586
1082 tristate "AES cipher algorithms (i586)"
Herbert Xucce9e062006-08-21 21:08:13 +10001083 depends on (X86 || UML_X86) && !64BIT
1084 select CRYPTO_ALGAPI
Sebastian Siewior5157dea2007-11-10 19:07:16 +08001085 select CRYPTO_AES
Linus Torvalds1da177e2005-04-16 15:20:36 -07001086 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001087 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Linus Torvalds1da177e2005-04-16 15:20:36 -07001088 algorithm.
1089
1090 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001091 both hardware and software across a wide range of computing
1092 environments regardless of its use in feedback or non-feedback
1093 modes. Its key setup time is excellent, and its key agility is
1094 good. Rijndael's very low memory requirements make it very well
1095 suited for restricted-space environments, in which it also
1096 demonstrates excellent performance. Rijndael's operations are
1097 among the easiest to defend against power and timing attacks.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001098
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001099 The AES specifies three key sizes: 128, 192 and 256 bits
Linus Torvalds1da177e2005-04-16 15:20:36 -07001100
1101 See <http://csrc.nist.gov/encryption/aes/> for more information.
1102
Andreas Steinmetza2a892a2005-07-06 13:55:00 -07001103config CRYPTO_AES_X86_64
1104 tristate "AES cipher algorithms (x86_64)"
Herbert Xucce9e062006-08-21 21:08:13 +10001105 depends on (X86 || UML_X86) && 64BIT
1106 select CRYPTO_ALGAPI
Sebastian Siewior81190b32007-11-08 21:25:04 +08001107 select CRYPTO_AES
Andreas Steinmetza2a892a2005-07-06 13:55:00 -07001108 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001109 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Andreas Steinmetza2a892a2005-07-06 13:55:00 -07001110 algorithm.
1111
1112 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001113 both hardware and software across a wide range of computing
1114 environments regardless of its use in feedback or non-feedback
1115 modes. Its key setup time is excellent, and its key agility is
1116 good. Rijndael's very low memory requirements make it very well
1117 suited for restricted-space environments, in which it also
1118 demonstrates excellent performance. Rijndael's operations are
1119 among the easiest to defend against power and timing attacks.
Andreas Steinmetza2a892a2005-07-06 13:55:00 -07001120
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001121 The AES specifies three key sizes: 128, 192 and 256 bits
Andreas Steinmetza2a892a2005-07-06 13:55:00 -07001122
1123 See <http://csrc.nist.gov/encryption/aes/> for more information.
1124
Huang Ying54b6a1b2009-01-18 16:28:34 +11001125config CRYPTO_AES_NI_INTEL
1126 tristate "AES cipher algorithms (AES-NI)"
Richard Weinberger8af00862011-06-08 20:56:29 +08001127 depends on X86
Herbert Xu85671862016-11-22 20:08:33 +08001128 select CRYPTO_AEAD
Mathias Krause0d258ef2010-11-27 16:34:46 +08001129 select CRYPTO_AES_X86_64 if 64BIT
1130 select CRYPTO_AES_586 if !64BIT
Huang Ying54b6a1b2009-01-18 16:28:34 +11001131 select CRYPTO_ALGAPI
Herbert Xu85671862016-11-22 20:08:33 +08001132 select CRYPTO_BLKCIPHER
Jussi Kivilinna7643a112013-04-10 18:39:20 +03001133 select CRYPTO_GLUE_HELPER_X86 if 64BIT
Herbert Xu85671862016-11-22 20:08:33 +08001134 select CRYPTO_SIMD
Huang Ying54b6a1b2009-01-18 16:28:34 +11001135 help
1136 Use Intel AES-NI instructions for AES algorithm.
1137
1138 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1139 algorithm.
1140
1141 Rijndael appears to be consistently a very good performer in
1142 both hardware and software across a wide range of computing
1143 environments regardless of its use in feedback or non-feedback
1144 modes. Its key setup time is excellent, and its key agility is
1145 good. Rijndael's very low memory requirements make it very well
1146 suited for restricted-space environments, in which it also
1147 demonstrates excellent performance. Rijndael's operations are
1148 among the easiest to defend against power and timing attacks.
1149
1150 The AES specifies three key sizes: 128, 192 and 256 bits
1151
1152 See <http://csrc.nist.gov/encryption/aes/> for more information.
1153
Mathias Krause0d258ef2010-11-27 16:34:46 +08001154 In addition to AES cipher algorithm support, the acceleration
1155 for some popular block cipher mode is supported too, including
Ard Biesheuvel944585a2018-09-24 14:48:16 +02001156 ECB, CBC, LRW, XTS. The 64 bit version has additional
Mathias Krause0d258ef2010-11-27 16:34:46 +08001157 acceleration for CTR.
Huang Ying2cf4ac82009-03-29 15:41:20 +08001158
David S. Miller9bf48522012-08-21 03:58:13 -07001159config CRYPTO_AES_SPARC64
1160 tristate "AES cipher algorithms (SPARC64)"
1161 depends on SPARC64
1162 select CRYPTO_CRYPTD
1163 select CRYPTO_ALGAPI
1164 help
1165 Use SPARC64 crypto opcodes for AES algorithm.
1166
1167 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1168 algorithm.
1169
1170 Rijndael appears to be consistently a very good performer in
1171 both hardware and software across a wide range of computing
1172 environments regardless of its use in feedback or non-feedback
1173 modes. Its key setup time is excellent, and its key agility is
1174 good. Rijndael's very low memory requirements make it very well
1175 suited for restricted-space environments, in which it also
1176 demonstrates excellent performance. Rijndael's operations are
1177 among the easiest to defend against power and timing attacks.
1178
1179 The AES specifies three key sizes: 128, 192 and 256 bits
1180
1181 See <http://csrc.nist.gov/encryption/aes/> for more information.
1182
1183 In addition to AES cipher algorithm support, the acceleration
1184 for some popular block cipher mode is supported too, including
1185 ECB and CBC.
1186
Markus Stockhausen504c6142015-02-22 10:00:10 +01001187config CRYPTO_AES_PPC_SPE
1188 tristate "AES cipher algorithms (PPC SPE)"
1189 depends on PPC && SPE
1190 help
1191 AES cipher algorithms (FIPS-197). Additionally the acceleration
1192 for popular block cipher modes ECB, CBC, CTR and XTS is supported.
1193 This module should only be used for low power (router) devices
1194 without hardware AES acceleration (e.g. caam crypto). It reduces the
1195 size of the AES tables from 16KB to 8KB + 256 bytes and mitigates
1196 timining attacks. Nevertheless it might be not as secure as other
1197 architecture specific assembler implementations that work on 1KB
1198 tables or 256 bytes S-boxes.
1199
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001200config CRYPTO_ANUBIS
1201 tristate "Anubis cipher algorithm"
1202 select CRYPTO_ALGAPI
1203 help
1204 Anubis cipher algorithm.
1205
1206 Anubis is a variable key length cipher which can use keys from
1207 128 bits to 320 bits in length. It was evaluated as a entrant
1208 in the NESSIE competition.
1209
1210 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001211 <https://www.cosic.esat.kuleuven.be/nessie/reports/>
1212 <http://www.larc.usp.br/~pbarreto/AnubisPage.html>
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001213
1214config CRYPTO_ARC4
1215 tristate "ARC4 cipher algorithm"
Sebastian Andrzej Siewiorb9b0f082012-06-26 18:13:46 +02001216 select CRYPTO_BLKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001217 help
1218 ARC4 cipher algorithm.
1219
1220 ARC4 is a stream cipher using keys ranging from 8 bits to 2048
1221 bits in length. This algorithm is required for driver-based
1222 WEP, but it should not be for other purposes because of the
1223 weakness of the algorithm.
1224
1225config CRYPTO_BLOWFISH
1226 tristate "Blowfish cipher algorithm"
1227 select CRYPTO_ALGAPI
Jussi Kivilinna52ba8672011-09-02 01:45:07 +03001228 select CRYPTO_BLOWFISH_COMMON
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001229 help
1230 Blowfish cipher algorithm, by Bruce Schneier.
1231
1232 This is a variable key length cipher which can use keys from 32
1233 bits to 448 bits in length. It's fast, simple and specifically
1234 designed for use on "large microprocessors".
1235
1236 See also:
1237 <http://www.schneier.com/blowfish.html>
1238
Jussi Kivilinna52ba8672011-09-02 01:45:07 +03001239config CRYPTO_BLOWFISH_COMMON
1240 tristate
1241 help
1242 Common parts of the Blowfish cipher algorithm shared by the
1243 generic c and the assembler implementations.
1244
1245 See also:
1246 <http://www.schneier.com/blowfish.html>
1247
Jussi Kivilinna64b94ce2011-09-02 01:45:22 +03001248config CRYPTO_BLOWFISH_X86_64
1249 tristate "Blowfish cipher algorithm (x86_64)"
Al Virof21a7c12012-04-08 20:31:22 -04001250 depends on X86 && 64BIT
Eric Biggersc1679172018-02-19 23:48:16 -08001251 select CRYPTO_BLKCIPHER
Jussi Kivilinna64b94ce2011-09-02 01:45:22 +03001252 select CRYPTO_BLOWFISH_COMMON
1253 help
1254 Blowfish cipher algorithm (x86_64), by Bruce Schneier.
1255
1256 This is a variable key length cipher which can use keys from 32
1257 bits to 448 bits in length. It's fast, simple and specifically
1258 designed for use on "large microprocessors".
1259
1260 See also:
1261 <http://www.schneier.com/blowfish.html>
1262
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001263config CRYPTO_CAMELLIA
1264 tristate "Camellia cipher algorithms"
1265 depends on CRYPTO
1266 select CRYPTO_ALGAPI
1267 help
1268 Camellia cipher algorithms module.
1269
1270 Camellia is a symmetric key block cipher developed jointly
1271 at NTT and Mitsubishi Electric Corporation.
1272
1273 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1274
1275 See also:
1276 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1277
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001278config CRYPTO_CAMELLIA_X86_64
1279 tristate "Camellia cipher algorithm (x86_64)"
Al Virof21a7c12012-04-08 20:31:22 -04001280 depends on X86 && 64BIT
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001281 depends on CRYPTO
Eric Biggers1af6d032018-02-19 23:48:22 -08001282 select CRYPTO_BLKCIPHER
Jussi Kivilinna964263a2012-06-18 14:07:29 +03001283 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001284 help
1285 Camellia cipher algorithm module (x86_64).
1286
1287 Camellia is a symmetric key block cipher developed jointly
1288 at NTT and Mitsubishi Electric Corporation.
1289
1290 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1291
1292 See also:
1293 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1294
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001295config CRYPTO_CAMELLIA_AESNI_AVX_X86_64
1296 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)"
1297 depends on X86 && 64BIT
1298 depends on CRYPTO
Eric Biggers44893bc2018-02-19 23:48:23 -08001299 select CRYPTO_BLKCIPHER
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001300 select CRYPTO_CAMELLIA_X86_64
Eric Biggers44893bc2018-02-19 23:48:23 -08001301 select CRYPTO_GLUE_HELPER_X86
1302 select CRYPTO_SIMD
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001303 select CRYPTO_XTS
1304 help
1305 Camellia cipher algorithm module (x86_64/AES-NI/AVX).
1306
1307 Camellia is a symmetric key block cipher developed jointly
1308 at NTT and Mitsubishi Electric Corporation.
1309
1310 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1311
1312 See also:
1313 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1314
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001315config CRYPTO_CAMELLIA_AESNI_AVX2_X86_64
1316 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX2)"
1317 depends on X86 && 64BIT
1318 depends on CRYPTO
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001319 select CRYPTO_CAMELLIA_AESNI_AVX_X86_64
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001320 help
1321 Camellia cipher algorithm module (x86_64/AES-NI/AVX2).
1322
1323 Camellia is a symmetric key block cipher developed jointly
1324 at NTT and Mitsubishi Electric Corporation.
1325
1326 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1327
1328 See also:
1329 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1330
David S. Miller81658ad2012-08-28 12:05:54 -07001331config CRYPTO_CAMELLIA_SPARC64
1332 tristate "Camellia cipher algorithm (SPARC64)"
1333 depends on SPARC64
1334 depends on CRYPTO
1335 select CRYPTO_ALGAPI
1336 help
1337 Camellia cipher algorithm module (SPARC64).
1338
1339 Camellia is a symmetric key block cipher developed jointly
1340 at NTT and Mitsubishi Electric Corporation.
1341
1342 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1343
1344 See also:
1345 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1346
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001347config CRYPTO_CAST_COMMON
1348 tristate
1349 help
1350 Common parts of the CAST cipher algorithms shared by the
1351 generic c and the assembler implementations.
1352
Linus Torvalds1da177e2005-04-16 15:20:36 -07001353config CRYPTO_CAST5
1354 tristate "CAST5 (CAST-128) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001355 select CRYPTO_ALGAPI
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001356 select CRYPTO_CAST_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -07001357 help
1358 The CAST5 encryption algorithm (synonymous with CAST-128) is
1359 described in RFC2144.
1360
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001361config CRYPTO_CAST5_AVX_X86_64
1362 tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)"
1363 depends on X86 && 64BIT
Eric Biggers1e631832018-02-19 23:48:13 -08001364 select CRYPTO_BLKCIPHER
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001365 select CRYPTO_CAST5
Eric Biggers1e631832018-02-19 23:48:13 -08001366 select CRYPTO_CAST_COMMON
1367 select CRYPTO_SIMD
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001368 help
1369 The CAST5 encryption algorithm (synonymous with CAST-128) is
1370 described in RFC2144.
1371
1372 This module provides the Cast5 cipher algorithm that processes
1373 sixteen blocks parallel using the AVX instruction set.
1374
Linus Torvalds1da177e2005-04-16 15:20:36 -07001375config CRYPTO_CAST6
1376 tristate "CAST6 (CAST-256) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001377 select CRYPTO_ALGAPI
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001378 select CRYPTO_CAST_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -07001379 help
1380 The CAST6 encryption algorithm (synonymous with CAST-256) is
1381 described in RFC2612.
1382
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001383config CRYPTO_CAST6_AVX_X86_64
1384 tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)"
1385 depends on X86 && 64BIT
Eric Biggers4bd96922018-02-19 23:48:15 -08001386 select CRYPTO_BLKCIPHER
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001387 select CRYPTO_CAST6
Eric Biggers4bd96922018-02-19 23:48:15 -08001388 select CRYPTO_CAST_COMMON
1389 select CRYPTO_GLUE_HELPER_X86
1390 select CRYPTO_SIMD
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001391 select CRYPTO_XTS
1392 help
1393 The CAST6 encryption algorithm (synonymous with CAST-256) is
1394 described in RFC2612.
1395
1396 This module provides the Cast6 cipher algorithm that processes
1397 eight blocks parallel using the AVX instruction set.
1398
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001399config CRYPTO_DES
1400 tristate "DES and Triple DES EDE cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +10001401 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -07001402 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001403 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
Linus Torvalds1da177e2005-04-16 15:20:36 -07001404
David S. Millerc5aac2d2012-08-25 22:37:23 -07001405config CRYPTO_DES_SPARC64
1406 tristate "DES and Triple DES EDE cipher algorithms (SPARC64)"
Dave Jones97da37b2012-10-02 17:13:20 -04001407 depends on SPARC64
David S. Millerc5aac2d2012-08-25 22:37:23 -07001408 select CRYPTO_ALGAPI
1409 select CRYPTO_DES
1410 help
1411 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3),
1412 optimized using SPARC64 crypto opcodes.
1413
Jussi Kivilinna6574e6c2014-06-09 20:59:54 +03001414config CRYPTO_DES3_EDE_X86_64
1415 tristate "Triple DES EDE cipher algorithm (x86-64)"
1416 depends on X86 && 64BIT
Eric Biggers09c0f032018-02-19 23:48:17 -08001417 select CRYPTO_BLKCIPHER
Jussi Kivilinna6574e6c2014-06-09 20:59:54 +03001418 select CRYPTO_DES
1419 help
1420 Triple DES EDE (FIPS 46-3) algorithm.
1421
1422 This module provides implementation of the Triple DES EDE cipher
1423 algorithm that is optimized for x86-64 processors. Two versions of
1424 algorithm are provided; regular processing one input block and
1425 one that processes three blocks parallel.
1426
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001427config CRYPTO_FCRYPT
1428 tristate "FCrypt cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001429 select CRYPTO_ALGAPI
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001430 select CRYPTO_BLKCIPHER
Linus Torvalds1da177e2005-04-16 15:20:36 -07001431 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001432 FCrypt algorithm used by RxRPC.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001433
1434config CRYPTO_KHAZAD
1435 tristate "Khazad cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001436 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -07001437 help
1438 Khazad cipher algorithm.
1439
1440 Khazad was a finalist in the initial NESSIE competition. It is
1441 an algorithm optimized for 64-bit processors with good performance
1442 on 32-bit processors. Khazad uses an 128 bit key size.
1443
1444 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001445 <http://www.larc.usp.br/~pbarreto/KhazadPage.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -07001446
Tan Swee Heng2407d602007-11-23 19:45:00 +08001447config CRYPTO_SALSA20
Kees Cook3b4afaf2012-10-02 11:16:49 -07001448 tristate "Salsa20 stream cipher algorithm"
Tan Swee Heng2407d602007-11-23 19:45:00 +08001449 select CRYPTO_BLKCIPHER
1450 help
1451 Salsa20 stream cipher algorithm.
1452
1453 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1454 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1455
1456 The Salsa20 stream cipher algorithm is designed by Daniel J.
1457 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -07001458
Martin Willic08d0e62015-06-01 13:43:56 +02001459config CRYPTO_CHACHA20
Eric Biggersaa762402018-11-16 17:26:22 -08001460 tristate "ChaCha stream cipher algorithms"
Martin Willic08d0e62015-06-01 13:43:56 +02001461 select CRYPTO_BLKCIPHER
1462 help
Eric Biggersaa762402018-11-16 17:26:22 -08001463 The ChaCha20, XChaCha20, and XChaCha12 stream cipher algorithms.
Martin Willic08d0e62015-06-01 13:43:56 +02001464
1465 ChaCha20 is a 256-bit high-speed stream cipher designed by Daniel J.
1466 Bernstein and further specified in RFC7539 for use in IETF protocols.
Eric Biggersde61d7a2018-11-16 17:26:20 -08001467 This is the portable C implementation of ChaCha20. See also:
Martin Willic08d0e62015-06-01 13:43:56 +02001468 <http://cr.yp.to/chacha/chacha-20080128.pdf>
1469
Eric Biggersde61d7a2018-11-16 17:26:20 -08001470 XChaCha20 is the application of the XSalsa20 construction to ChaCha20
1471 rather than to Salsa20. XChaCha20 extends ChaCha20's nonce length
1472 from 64 bits (or 96 bits using the RFC7539 convention) to 192 bits,
1473 while provably retaining ChaCha20's security. See also:
1474 <https://cr.yp.to/snuffle/xsalsa-20081128.pdf>
1475
Eric Biggersaa762402018-11-16 17:26:22 -08001476 XChaCha12 is XChaCha20 reduced to 12 rounds, with correspondingly
1477 reduced security margin but increased performance. It can be needed
1478 in some performance-sensitive scenarios.
1479
Martin Willic9320b62015-07-16 19:14:01 +02001480config CRYPTO_CHACHA20_X86_64
Eric Biggers4af78262018-12-04 22:20:02 -08001481 tristate "ChaCha stream cipher algorithms (x86_64/SSSE3/AVX2/AVX-512VL)"
Martin Willic9320b62015-07-16 19:14:01 +02001482 depends on X86 && 64BIT
1483 select CRYPTO_BLKCIPHER
1484 select CRYPTO_CHACHA20
1485 help
Eric Biggers7a507d62018-12-04 22:20:04 -08001486 SSSE3, AVX2, and AVX-512VL optimized implementations of the ChaCha20,
1487 XChaCha20, and XChaCha12 stream ciphers.
Martin Willic9320b62015-07-16 19:14:01 +02001488
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001489config CRYPTO_SEED
1490 tristate "SEED cipher algorithm"
1491 select CRYPTO_ALGAPI
1492 help
1493 SEED cipher algorithm (RFC4269).
1494
1495 SEED is a 128-bit symmetric key block cipher that has been
1496 developed by KISA (Korea Information Security Agency) as a
1497 national standard encryption algorithm of the Republic of Korea.
1498 It is a 16 round block cipher with the key size of 128 bit.
1499
1500 See also:
1501 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
1502
1503config CRYPTO_SERPENT
1504 tristate "Serpent cipher algorithm"
1505 select CRYPTO_ALGAPI
1506 help
1507 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1508
1509 Keys are allowed to be from 0 to 256 bits in length, in steps
1510 of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
1511 variant of Serpent for compatibility with old kerneli.org code.
1512
1513 See also:
1514 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1515
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001516config CRYPTO_SERPENT_SSE2_X86_64
1517 tristate "Serpent cipher algorithm (x86_64/SSE2)"
1518 depends on X86 && 64BIT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001519 select CRYPTO_BLKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +03001520 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001521 select CRYPTO_SERPENT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001522 select CRYPTO_SIMD
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001523 help
1524 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1525
1526 Keys are allowed to be from 0 to 256 bits in length, in steps
1527 of 8 bits.
1528
Masanari Iida1e6232f2015-04-04 00:20:30 +09001529 This module provides Serpent cipher algorithm that processes eight
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001530 blocks parallel using SSE2 instruction set.
1531
1532 See also:
1533 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1534
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001535config CRYPTO_SERPENT_SSE2_586
1536 tristate "Serpent cipher algorithm (i586/SSE2)"
1537 depends on X86 && !64BIT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001538 select CRYPTO_BLKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +03001539 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001540 select CRYPTO_SERPENT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001541 select CRYPTO_SIMD
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001542 help
1543 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1544
1545 Keys are allowed to be from 0 to 256 bits in length, in steps
1546 of 8 bits.
1547
1548 This module provides Serpent cipher algorithm that processes four
1549 blocks parallel using SSE2 instruction set.
1550
1551 See also:
1552 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1553
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001554config CRYPTO_SERPENT_AVX_X86_64
1555 tristate "Serpent cipher algorithm (x86_64/AVX)"
1556 depends on X86 && 64BIT
Eric Biggerse16bf972018-02-19 23:48:06 -08001557 select CRYPTO_BLKCIPHER
Jussi Kivilinna1d0debb2012-06-18 14:07:24 +03001558 select CRYPTO_GLUE_HELPER_X86
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001559 select CRYPTO_SERPENT
Eric Biggerse16bf972018-02-19 23:48:06 -08001560 select CRYPTO_SIMD
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001561 select CRYPTO_XTS
1562 help
1563 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1564
1565 Keys are allowed to be from 0 to 256 bits in length, in steps
1566 of 8 bits.
1567
1568 This module provides the Serpent cipher algorithm that processes
1569 eight blocks parallel using the AVX instruction set.
1570
1571 See also:
1572 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1573
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001574config CRYPTO_SERPENT_AVX2_X86_64
1575 tristate "Serpent cipher algorithm (x86_64/AVX2)"
1576 depends on X86 && 64BIT
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001577 select CRYPTO_SERPENT_AVX_X86_64
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001578 help
1579 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1580
1581 Keys are allowed to be from 0 to 256 bits in length, in steps
1582 of 8 bits.
1583
1584 This module provides Serpent cipher algorithm that processes 16
1585 blocks parallel using AVX2 instruction set.
1586
1587 See also:
1588 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1589
Gilad Ben-Yossef747c8ce2018-03-06 09:44:42 +00001590config CRYPTO_SM4
1591 tristate "SM4 cipher algorithm"
1592 select CRYPTO_ALGAPI
1593 help
1594 SM4 cipher algorithms (OSCCA GB/T 32907-2016).
1595
1596 SM4 (GBT.32907-2016) is a cryptographic standard issued by the
1597 Organization of State Commercial Administration of China (OSCCA)
1598 as an authorized cryptographic algorithms for the use within China.
1599
1600 SMS4 was originally created for use in protecting wireless
1601 networks, and is mandated in the Chinese National Standard for
1602 Wireless LAN WAPI (Wired Authentication and Privacy Infrastructure)
1603 (GB.15629.11-2003).
1604
1605 The latest SM4 standard (GBT.32907-2016) was proposed by OSCCA and
1606 standardized through TC 260 of the Standardization Administration
1607 of the People's Republic of China (SAC).
1608
1609 The input, output, and key of SMS4 are each 128 bits.
1610
1611 See also: <https://eprint.iacr.org/2008/329.pdf>
1612
1613 If unsure, say N.
1614
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001615config CRYPTO_TEA
1616 tristate "TEA, XTEA and XETA cipher algorithms"
1617 select CRYPTO_ALGAPI
1618 help
1619 TEA cipher algorithm.
1620
1621 Tiny Encryption Algorithm is a simple cipher that uses
1622 many rounds for security. It is very fast and uses
1623 little memory.
1624
1625 Xtendend Tiny Encryption Algorithm is a modification to
1626 the TEA algorithm to address a potential key weakness
1627 in the TEA algorithm.
1628
1629 Xtendend Encryption Tiny Algorithm is a mis-implementation
1630 of the XTEA algorithm for compatibility purposes.
1631
1632config CRYPTO_TWOFISH
1633 tristate "Twofish cipher algorithm"
1634 select CRYPTO_ALGAPI
1635 select CRYPTO_TWOFISH_COMMON
1636 help
1637 Twofish cipher algorithm.
1638
1639 Twofish was submitted as an AES (Advanced Encryption Standard)
1640 candidate cipher by researchers at CounterPane Systems. It is a
1641 16 round block cipher supporting key sizes of 128, 192, and 256
1642 bits.
1643
1644 See also:
1645 <http://www.schneier.com/twofish.html>
1646
1647config CRYPTO_TWOFISH_COMMON
1648 tristate
1649 help
1650 Common parts of the Twofish cipher algorithm shared by the
1651 generic c and the assembler implementations.
1652
1653config CRYPTO_TWOFISH_586
1654 tristate "Twofish cipher algorithms (i586)"
1655 depends on (X86 || UML_X86) && !64BIT
1656 select CRYPTO_ALGAPI
1657 select CRYPTO_TWOFISH_COMMON
1658 help
1659 Twofish cipher algorithm.
1660
1661 Twofish was submitted as an AES (Advanced Encryption Standard)
1662 candidate cipher by researchers at CounterPane Systems. It is a
1663 16 round block cipher supporting key sizes of 128, 192, and 256
1664 bits.
1665
1666 See also:
1667 <http://www.schneier.com/twofish.html>
1668
1669config CRYPTO_TWOFISH_X86_64
1670 tristate "Twofish cipher algorithm (x86_64)"
1671 depends on (X86 || UML_X86) && 64BIT
1672 select CRYPTO_ALGAPI
1673 select CRYPTO_TWOFISH_COMMON
1674 help
1675 Twofish cipher algorithm (x86_64).
1676
1677 Twofish was submitted as an AES (Advanced Encryption Standard)
1678 candidate cipher by researchers at CounterPane Systems. It is a
1679 16 round block cipher supporting key sizes of 128, 192, and 256
1680 bits.
1681
1682 See also:
1683 <http://www.schneier.com/twofish.html>
1684
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001685config CRYPTO_TWOFISH_X86_64_3WAY
1686 tristate "Twofish cipher algorithm (x86_64, 3-way parallel)"
Al Virof21a7c12012-04-08 20:31:22 -04001687 depends on X86 && 64BIT
Eric Biggers37992fa2018-02-19 23:48:09 -08001688 select CRYPTO_BLKCIPHER
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001689 select CRYPTO_TWOFISH_COMMON
1690 select CRYPTO_TWOFISH_X86_64
Jussi Kivilinna414cb5e2012-06-18 14:07:34 +03001691 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001692 help
1693 Twofish cipher algorithm (x86_64, 3-way parallel).
1694
1695 Twofish was submitted as an AES (Advanced Encryption Standard)
1696 candidate cipher by researchers at CounterPane Systems. It is a
1697 16 round block cipher supporting key sizes of 128, 192, and 256
1698 bits.
1699
1700 This module provides Twofish cipher algorithm that processes three
1701 blocks parallel, utilizing resources of out-of-order CPUs better.
1702
1703 See also:
1704 <http://www.schneier.com/twofish.html>
1705
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001706config CRYPTO_TWOFISH_AVX_X86_64
1707 tristate "Twofish cipher algorithm (x86_64/AVX)"
1708 depends on X86 && 64BIT
Eric Biggers0e6ab462018-02-19 23:48:11 -08001709 select CRYPTO_BLKCIPHER
Jussi Kivilinnaa7378d42012-06-18 14:07:39 +03001710 select CRYPTO_GLUE_HELPER_X86
Eric Biggers0e6ab462018-02-19 23:48:11 -08001711 select CRYPTO_SIMD
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001712 select CRYPTO_TWOFISH_COMMON
1713 select CRYPTO_TWOFISH_X86_64
1714 select CRYPTO_TWOFISH_X86_64_3WAY
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001715 help
1716 Twofish cipher algorithm (x86_64/AVX).
1717
1718 Twofish was submitted as an AES (Advanced Encryption Standard)
1719 candidate cipher by researchers at CounterPane Systems. It is a
1720 16 round block cipher supporting key sizes of 128, 192, and 256
1721 bits.
1722
1723 This module provides the Twofish cipher algorithm that processes
1724 eight blocks parallel using the AVX Instruction Set.
1725
1726 See also:
1727 <http://www.schneier.com/twofish.html>
1728
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001729comment "Compression"
1730
Linus Torvalds1da177e2005-04-16 15:20:36 -07001731config CRYPTO_DEFLATE
1732 tristate "Deflate compression algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001733 select CRYPTO_ALGAPI
Giovanni Cabidduf6ded092016-10-21 13:19:53 +01001734 select CRYPTO_ACOMP2
Linus Torvalds1da177e2005-04-16 15:20:36 -07001735 select ZLIB_INFLATE
1736 select ZLIB_DEFLATE
1737 help
1738 This is the Deflate algorithm (RFC1951), specified for use in
1739 IPSec with the IPCOMP protocol (RFC3173, RFC2394).
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001740
Linus Torvalds1da177e2005-04-16 15:20:36 -07001741 You will most probably want this if using IPSec.
1742
Zoltan Sogor0b77abb2007-12-07 16:53:23 +08001743config CRYPTO_LZO
1744 tristate "LZO compression algorithm"
1745 select CRYPTO_ALGAPI
Giovanni Cabidduac9d2c42016-10-21 13:19:49 +01001746 select CRYPTO_ACOMP2
Zoltan Sogor0b77abb2007-12-07 16:53:23 +08001747 select LZO_COMPRESS
1748 select LZO_DECOMPRESS
1749 help
1750 This is the LZO algorithm.
1751
Seth Jennings35a1fc12012-07-19 09:42:41 -05001752config CRYPTO_842
1753 tristate "842 compression algorithm"
Dan Streetman2062c5b2015-05-07 13:49:15 -04001754 select CRYPTO_ALGAPI
Giovanni Cabiddu6a8de3a2016-10-21 13:19:52 +01001755 select CRYPTO_ACOMP2
Dan Streetman2062c5b2015-05-07 13:49:15 -04001756 select 842_COMPRESS
1757 select 842_DECOMPRESS
Seth Jennings35a1fc12012-07-19 09:42:41 -05001758 help
1759 This is the 842 algorithm.
1760
Chanho Min0ea85302013-07-08 16:01:51 -07001761config CRYPTO_LZ4
1762 tristate "LZ4 compression algorithm"
1763 select CRYPTO_ALGAPI
Giovanni Cabiddu8cd93302016-10-21 13:19:50 +01001764 select CRYPTO_ACOMP2
Chanho Min0ea85302013-07-08 16:01:51 -07001765 select LZ4_COMPRESS
1766 select LZ4_DECOMPRESS
1767 help
1768 This is the LZ4 algorithm.
1769
1770config CRYPTO_LZ4HC
1771 tristate "LZ4HC compression algorithm"
1772 select CRYPTO_ALGAPI
Giovanni Cabiddu91d53d92016-10-21 13:19:51 +01001773 select CRYPTO_ACOMP2
Chanho Min0ea85302013-07-08 16:01:51 -07001774 select LZ4HC_COMPRESS
1775 select LZ4_DECOMPRESS
1776 help
1777 This is the LZ4 high compression mode algorithm.
1778
Nick Terrelld28fc3d2018-03-30 12:14:53 -07001779config CRYPTO_ZSTD
1780 tristate "Zstd compression algorithm"
1781 select CRYPTO_ALGAPI
1782 select CRYPTO_ACOMP2
1783 select ZSTD_COMPRESS
1784 select ZSTD_DECOMPRESS
1785 help
1786 This is the zstd algorithm.
1787
Neil Horman17f0f4a2008-08-14 22:15:52 +10001788comment "Random Number Generation"
1789
1790config CRYPTO_ANSI_CPRNG
1791 tristate "Pseudo Random Number Generation for Cryptographic modules"
1792 select CRYPTO_AES
1793 select CRYPTO_RNG
Neil Horman17f0f4a2008-08-14 22:15:52 +10001794 help
1795 This option enables the generic pseudo random number generator
1796 for cryptographic modules. Uses the Algorithm specified in
Jiri Kosina7dd607e2010-01-27 01:00:10 +01001797 ANSI X9.31 A.2.4. Note that this option must be enabled if
1798 CRYPTO_FIPS is selected
Neil Horman17f0f4a2008-08-14 22:15:52 +10001799
Herbert Xuf2c89a12014-07-04 22:15:08 +08001800menuconfig CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001801 tristate "NIST SP800-90A DRBG"
Stephan Mueller419090c2014-05-31 17:22:31 +02001802 help
1803 NIST SP800-90A compliant DRBG. In the following submenu, one or
1804 more of the DRBG types must be selected.
1805
Herbert Xuf2c89a12014-07-04 22:15:08 +08001806if CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001807
1808config CRYPTO_DRBG_HMAC
Herbert Xu401e4232015-06-03 14:49:31 +08001809 bool
Stephan Mueller419090c2014-05-31 17:22:31 +02001810 default y
Stephan Mueller419090c2014-05-31 17:22:31 +02001811 select CRYPTO_HMAC
Herbert Xu826775b2015-06-11 08:55:10 +08001812 select CRYPTO_SHA256
Stephan Mueller419090c2014-05-31 17:22:31 +02001813
1814config CRYPTO_DRBG_HASH
1815 bool "Enable Hash DRBG"
Herbert Xu826775b2015-06-11 08:55:10 +08001816 select CRYPTO_SHA256
Stephan Mueller419090c2014-05-31 17:22:31 +02001817 help
1818 Enable the Hash DRBG variant as defined in NIST SP800-90A.
1819
1820config CRYPTO_DRBG_CTR
1821 bool "Enable CTR DRBG"
Stephan Mueller419090c2014-05-31 17:22:31 +02001822 select CRYPTO_AES
Stephan Mueller35591282016-06-14 07:34:13 +02001823 depends on CRYPTO_CTR
Stephan Mueller419090c2014-05-31 17:22:31 +02001824 help
1825 Enable the CTR DRBG variant as defined in NIST SP800-90A.
1826
Herbert Xuf2c89a12014-07-04 22:15:08 +08001827config CRYPTO_DRBG
1828 tristate
Herbert Xu401e4232015-06-03 14:49:31 +08001829 default CRYPTO_DRBG_MENU
Herbert Xuf2c89a12014-07-04 22:15:08 +08001830 select CRYPTO_RNG
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001831 select CRYPTO_JITTERENTROPY
Herbert Xuf2c89a12014-07-04 22:15:08 +08001832
1833endif # if CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001834
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001835config CRYPTO_JITTERENTROPY
1836 tristate "Jitterentropy Non-Deterministic Random Number Generator"
Arnd Bergmann2f313e02016-01-26 14:47:10 +01001837 select CRYPTO_RNG
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001838 help
1839 The Jitterentropy RNG is a noise that is intended
1840 to provide seed to another RNG. The RNG does not
1841 perform any cryptographic whitening of the generated
1842 random numbers. This Jitterentropy RNG registers with
1843 the kernel crypto API and can be used by any caller.
1844
Herbert Xu03c8efc2010-10-19 21:12:39 +08001845config CRYPTO_USER_API
1846 tristate
1847
Herbert Xufe869cd2010-10-19 21:23:00 +08001848config CRYPTO_USER_API_HASH
1849 tristate "User-space interface for hash algorithms"
Herbert Xu74517082010-11-29 22:56:03 +08001850 depends on NET
Herbert Xufe869cd2010-10-19 21:23:00 +08001851 select CRYPTO_HASH
1852 select CRYPTO_USER_API
1853 help
1854 This option enables the user-spaces interface for hash
1855 algorithms.
1856
Herbert Xu8ff59092010-10-19 21:31:55 +08001857config CRYPTO_USER_API_SKCIPHER
1858 tristate "User-space interface for symmetric key cipher algorithms"
Herbert Xu74517082010-11-29 22:56:03 +08001859 depends on NET
Herbert Xu8ff59092010-10-19 21:31:55 +08001860 select CRYPTO_BLKCIPHER
1861 select CRYPTO_USER_API
1862 help
1863 This option enables the user-spaces interface for symmetric
1864 key cipher algorithms.
1865
Stephan Mueller2f3755382014-12-25 23:00:39 +01001866config CRYPTO_USER_API_RNG
1867 tristate "User-space interface for random number generator algorithms"
1868 depends on NET
1869 select CRYPTO_RNG
1870 select CRYPTO_USER_API
1871 help
1872 This option enables the user-spaces interface for random
1873 number generator algorithms.
1874
Herbert Xub64a2d92015-05-28 11:30:35 +08001875config CRYPTO_USER_API_AEAD
1876 tristate "User-space interface for AEAD cipher algorithms"
1877 depends on NET
1878 select CRYPTO_AEAD
Stephan Mueller72548b02017-07-30 14:32:58 +02001879 select CRYPTO_BLKCIPHER
1880 select CRYPTO_NULL
Herbert Xub64a2d92015-05-28 11:30:35 +08001881 select CRYPTO_USER_API
1882 help
1883 This option enables the user-spaces interface for AEAD
1884 cipher algorithms.
1885
Corentin Labbecac58182018-09-19 10:10:54 +00001886config CRYPTO_STATS
1887 bool "Crypto usage statistics for User-space"
Corentin Labbea6a31382018-11-29 14:42:17 +00001888 depends on CRYPTO_USER
Corentin Labbecac58182018-09-19 10:10:54 +00001889 help
1890 This option enables the gathering of crypto stats.
1891 This will collect:
1892 - encrypt/decrypt size and numbers of symmeric operations
1893 - compress/decompress size and numbers of compress operations
1894 - size and numbers of hash operations
1895 - encrypt/decrypt/sign/verify numbers for asymmetric operations
1896 - generate/seed numbers for rng operations
1897
Dmitry Kasatkinee089972013-05-06 15:40:01 +03001898config CRYPTO_HASH_INFO
1899 bool
1900
Linus Torvalds1da177e2005-04-16 15:20:36 -07001901source "drivers/crypto/Kconfig"
Masahiro Yamada8636a1f2018-12-11 20:01:04 +09001902source "crypto/asymmetric_keys/Kconfig"
1903source "certs/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -07001904
Herbert Xucce9e062006-08-21 21:08:13 +10001905endif # if CRYPTO