blob: d0bff6ea6b10a839cc36d0051ef3ac14ed43a8c1 [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
Rik Snelc494e072006-11-29 18:59:44 +1100171config CRYPTO_GF128MUL
Jussi Kivilinna08c70fc2011-12-13 12:53:22 +0200172 tristate "GF(2^128) multiplication functions"
Rik Snelc494e072006-11-29 18:59:44 +1100173 help
174 Efficient table driven implementation of multiplications in the
175 field GF(2^128). This is needed by some cypher modes. This
176 option will be selected automatically if you select such a
177 cipher mode. Only select this option by hand if you expect to load
178 an external module that requires these functions.
179
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800180config CRYPTO_NULL
181 tristate "Null algorithms"
Herbert Xu149a3972015-08-13 17:28:58 +0800182 select CRYPTO_NULL2
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800183 help
184 These are 'Null' algorithms, used by IPsec, which do nothing.
185
Herbert Xu149a3972015-08-13 17:28:58 +0800186config CRYPTO_NULL2
Herbert Xudd43c4e2015-08-17 20:39:40 +0800187 tristate
Herbert Xu149a3972015-08-13 17:28:58 +0800188 select CRYPTO_ALGAPI2
189 select CRYPTO_BLKCIPHER2
190 select CRYPTO_HASH2
191
Steffen Klassert5068c7a2010-01-07 15:57:19 +1100192config CRYPTO_PCRYPT
Kees Cook3b4afaf2012-10-02 11:16:49 -0700193 tristate "Parallel crypto engine"
194 depends on SMP
Steffen Klassert5068c7a2010-01-07 15:57:19 +1100195 select PADATA
196 select CRYPTO_MANAGER
197 select CRYPTO_AEAD
198 help
199 This converts an arbitrary crypto algorithm into a parallel
200 algorithm that executes in kernel threads.
201
Huang Ying25c38d32009-02-19 14:33:40 +0800202config CRYPTO_WORKQUEUE
203 tristate
204
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800205config CRYPTO_CRYPTD
206 tristate "Software async crypto daemon"
Herbert Xudb131ef2006-09-21 11:44:08 +1000207 select CRYPTO_BLKCIPHER
Loc Hob8a28252008-05-14 21:23:00 +0800208 select CRYPTO_HASH
Herbert Xu43518402006-10-16 21:28:58 +1000209 select CRYPTO_MANAGER
Huang Ying254eff72009-02-19 14:42:19 +0800210 select CRYPTO_WORKQUEUE
Herbert Xudb131ef2006-09-21 11:44:08 +1000211 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800212 This is a generic software asynchronous crypto daemon that
213 converts an arbitrary synchronous software crypto algorithm
214 into an asynchronous algorithm that executes in a kernel thread.
215
216config CRYPTO_AUTHENC
217 tristate "Authenc support"
218 select CRYPTO_AEAD
219 select CRYPTO_BLKCIPHER
220 select CRYPTO_MANAGER
221 select CRYPTO_HASH
Herbert Xue94c6a72015-08-04 21:23:14 +0800222 select CRYPTO_NULL
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800223 help
224 Authenc: Combined mode wrapper for IPsec.
225 This is required for IPSec.
226
227config CRYPTO_TEST
228 tristate "Testing module"
229 depends on m
Herbert Xuda7f0332008-07-31 17:08:25 +0800230 select CRYPTO_MANAGER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800231 help
232 Quick & dirty crypto test module.
233
Herbert Xu266d0512016-11-22 20:08:25 +0800234config CRYPTO_SIMD
235 tristate
236 select CRYPTO_CRYPTD
237
Jussi Kivilinna596d8752012-06-18 14:07:19 +0300238config CRYPTO_GLUE_HELPER_X86
239 tristate
240 depends on X86
Herbert Xu065ce322016-11-22 20:08:29 +0800241 select CRYPTO_BLKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +0300242
Baolin Wang735d37b2016-01-26 20:25:39 +0800243config CRYPTO_ENGINE
244 tristate
245
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800246comment "Authenticated Encryption with Associated Data"
247
248config CRYPTO_CCM
249 tristate "CCM support"
250 select CRYPTO_CTR
Ard Biesheuvelf15f05b2017-02-03 14:49:36 +0000251 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800252 select CRYPTO_AEAD
253 help
254 Support for Counter with CBC MAC. Required for IPsec.
255
256config CRYPTO_GCM
257 tristate "GCM/GMAC support"
258 select CRYPTO_CTR
259 select CRYPTO_AEAD
Huang Ying9382d972009-08-06 15:34:26 +1000260 select CRYPTO_GHASH
Jussi Kivilinna9489667d2013-04-07 16:43:41 +0300261 select CRYPTO_NULL
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800262 help
263 Support for Galois/Counter Mode (GCM) and Galois Message
264 Authentication Code (GMAC). Required for IPSec.
265
Martin Willi71ebc4d2015-06-01 13:44:00 +0200266config CRYPTO_CHACHA20POLY1305
267 tristate "ChaCha20-Poly1305 AEAD support"
268 select CRYPTO_CHACHA20
269 select CRYPTO_POLY1305
270 select CRYPTO_AEAD
271 help
272 ChaCha20-Poly1305 AEAD support, RFC7539.
273
274 Support for the AEAD wrapper using the ChaCha20 stream cipher combined
275 with the Poly1305 authenticator. It is defined in RFC7539 for use in
276 IETF protocols.
277
Ondrej Mosnacekf606a882018-05-11 14:12:49 +0200278config CRYPTO_AEGIS128
279 tristate "AEGIS-128 AEAD algorithm"
280 select CRYPTO_AEAD
281 select CRYPTO_AES # for AES S-box tables
282 help
283 Support for the AEGIS-128 dedicated AEAD algorithm.
284
285config CRYPTO_AEGIS128L
286 tristate "AEGIS-128L AEAD algorithm"
287 select CRYPTO_AEAD
288 select CRYPTO_AES # for AES S-box tables
289 help
290 Support for the AEGIS-128L dedicated AEAD algorithm.
291
292config CRYPTO_AEGIS256
293 tristate "AEGIS-256 AEAD algorithm"
294 select CRYPTO_AEAD
295 select CRYPTO_AES # for AES S-box tables
296 help
297 Support for the AEGIS-256 dedicated AEAD algorithm.
298
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200299config CRYPTO_AEGIS128_AESNI_SSE2
300 tristate "AEGIS-128 AEAD algorithm (x86_64 AESNI+SSE2 implementation)"
301 depends on X86 && 64BIT
302 select CRYPTO_AEAD
303 select CRYPTO_CRYPTD
304 help
305 AESNI+SSE2 implementation of the AEGSI-128 dedicated AEAD algorithm.
306
307config CRYPTO_AEGIS128L_AESNI_SSE2
308 tristate "AEGIS-128L AEAD algorithm (x86_64 AESNI+SSE2 implementation)"
309 depends on X86 && 64BIT
310 select CRYPTO_AEAD
311 select CRYPTO_CRYPTD
312 help
313 AESNI+SSE2 implementation of the AEGSI-128L dedicated AEAD algorithm.
314
315config CRYPTO_AEGIS256_AESNI_SSE2
316 tristate "AEGIS-256 AEAD algorithm (x86_64 AESNI+SSE2 implementation)"
317 depends on X86 && 64BIT
318 select CRYPTO_AEAD
319 select CRYPTO_CRYPTD
320 help
321 AESNI+SSE2 implementation of the AEGSI-256 dedicated AEAD algorithm.
322
Ondrej Mosnacek396be412018-05-11 14:19:09 +0200323config CRYPTO_MORUS640
324 tristate "MORUS-640 AEAD algorithm"
325 select CRYPTO_AEAD
326 help
327 Support for the MORUS-640 dedicated AEAD algorithm.
328
Ondrej Mosnacek56e8e572018-05-11 14:19:11 +0200329config CRYPTO_MORUS640_GLUE
Ondrej Mosnacek2808f172018-05-21 21:41:51 +0200330 tristate
331 depends on X86
Ondrej Mosnacek56e8e572018-05-11 14:19:11 +0200332 select CRYPTO_AEAD
333 select CRYPTO_CRYPTD
334 help
335 Common glue for SIMD optimizations of the MORUS-640 dedicated AEAD
336 algorithm.
337
Ondrej Mosnacek6ecc9d92018-05-11 14:19:12 +0200338config CRYPTO_MORUS640_SSE2
339 tristate "MORUS-640 AEAD algorithm (x86_64 SSE2 implementation)"
340 depends on X86 && 64BIT
341 select CRYPTO_AEAD
342 select CRYPTO_MORUS640_GLUE
343 help
344 SSE2 implementation of the MORUS-640 dedicated AEAD algorithm.
345
Ondrej Mosnacek396be412018-05-11 14:19:09 +0200346config CRYPTO_MORUS1280
347 tristate "MORUS-1280 AEAD algorithm"
348 select CRYPTO_AEAD
349 help
350 Support for the MORUS-1280 dedicated AEAD algorithm.
351
Ondrej Mosnacek56e8e572018-05-11 14:19:11 +0200352config CRYPTO_MORUS1280_GLUE
Ondrej Mosnacek2808f172018-05-21 21:41:51 +0200353 tristate
354 depends on X86
Ondrej Mosnacek56e8e572018-05-11 14:19:11 +0200355 select CRYPTO_AEAD
356 select CRYPTO_CRYPTD
357 help
358 Common glue for SIMD optimizations of the MORUS-1280 dedicated AEAD
359 algorithm.
360
Ondrej Mosnacek6ecc9d92018-05-11 14:19:12 +0200361config CRYPTO_MORUS1280_SSE2
362 tristate "MORUS-1280 AEAD algorithm (x86_64 SSE2 implementation)"
363 depends on X86 && 64BIT
364 select CRYPTO_AEAD
365 select CRYPTO_MORUS1280_GLUE
366 help
367 SSE2 optimizedimplementation of the MORUS-1280 dedicated AEAD
368 algorithm.
369
370config CRYPTO_MORUS1280_AVX2
371 tristate "MORUS-1280 AEAD algorithm (x86_64 AVX2 implementation)"
372 depends on X86 && 64BIT
373 select CRYPTO_AEAD
374 select CRYPTO_MORUS1280_GLUE
375 help
376 AVX2 optimized implementation of the MORUS-1280 dedicated AEAD
377 algorithm.
378
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800379config CRYPTO_SEQIV
380 tristate "Sequence Number IV Generator"
381 select CRYPTO_AEAD
382 select CRYPTO_BLKCIPHER
Herbert Xu856e3f402015-05-21 15:11:13 +0800383 select CRYPTO_NULL
Herbert Xu401e4232015-06-03 14:49:31 +0800384 select CRYPTO_RNG_DEFAULT
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800385 help
386 This IV generator generates an IV based on a sequence number by
387 xoring it with a salt. This algorithm is mainly useful for CTR
388
Herbert Xua10f5542015-05-21 15:11:15 +0800389config CRYPTO_ECHAINIV
390 tristate "Encrypted Chain IV Generator"
391 select CRYPTO_AEAD
392 select CRYPTO_NULL
Herbert Xu401e4232015-06-03 14:49:31 +0800393 select CRYPTO_RNG_DEFAULT
Herbert Xu34912442015-06-03 14:49:29 +0800394 default m
Herbert Xua10f5542015-05-21 15:11:15 +0800395 help
396 This IV generator generates an IV based on the encryption of
397 a sequence number xored with a salt. This is the default
398 algorithm for CBC.
399
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800400comment "Block modes"
Herbert Xudb131ef2006-09-21 11:44:08 +1000401
402config CRYPTO_CBC
403 tristate "CBC support"
404 select CRYPTO_BLKCIPHER
Herbert Xu43518402006-10-16 21:28:58 +1000405 select CRYPTO_MANAGER
Herbert Xudb131ef2006-09-21 11:44:08 +1000406 help
407 CBC: Cipher Block Chaining mode
408 This block cipher algorithm is required for IPSec.
409
James Bottomleya7d85e02018-03-01 14:36:17 -0800410config CRYPTO_CFB
411 tristate "CFB support"
412 select CRYPTO_BLKCIPHER
413 select CRYPTO_MANAGER
414 help
415 CFB: Cipher FeedBack mode
416 This block cipher algorithm is required for TPM2 Cryptography.
417
Joy Latten23e353c2007-10-23 08:50:32 +0800418config CRYPTO_CTR
419 tristate "CTR support"
420 select CRYPTO_BLKCIPHER
Herbert Xu0a270322007-11-30 21:38:37 +1100421 select CRYPTO_SEQIV
Joy Latten23e353c2007-10-23 08:50:32 +0800422 select CRYPTO_MANAGER
Joy Latten23e353c2007-10-23 08:50:32 +0800423 help
424 CTR: Counter mode
425 This block cipher algorithm is required for IPSec.
426
Kevin Coffman76cb9522008-03-24 21:26:16 +0800427config CRYPTO_CTS
428 tristate "CTS support"
429 select CRYPTO_BLKCIPHER
430 help
431 CTS: Cipher Text Stealing
432 This is the Cipher Text Stealing mode as described by
Gilad Ben-Yossefecd6d5c2018-11-05 12:05:01 +0000433 Section 8 of rfc2040 and referenced by rfc3962
434 (rfc3962 includes errata information in its Appendix A) or
435 CBC-CS3 as defined by NIST in Sp800-38A addendum from Oct 2010.
Kevin Coffman76cb9522008-03-24 21:26:16 +0800436 This mode is required for Kerberos gss mechanism support
437 for AES encryption.
438
Gilad Ben-Yossefecd6d5c2018-11-05 12:05:01 +0000439 See: https://csrc.nist.gov/publications/detail/sp/800-38a/addendum/final
440
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800441config CRYPTO_ECB
442 tristate "ECB support"
Herbert Xu653ebd9c2007-11-27 19:48:27 +0800443 select CRYPTO_BLKCIPHER
Herbert Xu124b53d2007-04-16 20:49:20 +1000444 select CRYPTO_MANAGER
445 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800446 ECB: Electronic CodeBook mode
447 This is the simplest block cipher algorithm. It simply encrypts
448 the input block by block.
Herbert Xu124b53d2007-04-16 20:49:20 +1000449
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800450config CRYPTO_LRW
Jussi Kivilinna2470a2b2011-12-13 12:52:51 +0200451 tristate "LRW support"
David Howells90831632006-12-16 12:13:14 +1100452 select CRYPTO_BLKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800453 select CRYPTO_MANAGER
454 select CRYPTO_GF128MUL
David Howells90831632006-12-16 12:13:14 +1100455 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800456 LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
457 narrow block cipher mode for dm-crypt. Use it with cipher
458 specification string aes-lrw-benbi, the key must be 256, 320 or 384.
459 The first 128, 192 or 256 bits in the key are used for AES and the
460 rest is used to tie each cipher block to its logical position.
David Howells90831632006-12-16 12:13:14 +1100461
Gilad Ben-Yossefe497c512018-09-20 14:18:39 +0100462config CRYPTO_OFB
463 tristate "OFB support"
464 select CRYPTO_BLKCIPHER
465 select CRYPTO_MANAGER
466 help
467 OFB: the Output Feedback mode makes a block cipher into a synchronous
468 stream cipher. It generates keystream blocks, which are then XORed
469 with the plaintext blocks to get the ciphertext. Flipping a bit in the
470 ciphertext produces a flipped bit in the plaintext at the same
471 location. This property allows many error correcting codes to function
472 normally even when applied before encryption.
473
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800474config CRYPTO_PCBC
475 tristate "PCBC support"
476 select CRYPTO_BLKCIPHER
477 select CRYPTO_MANAGER
478 help
479 PCBC: Propagating Cipher Block Chaining mode
480 This block cipher algorithm is required for RxRPC.
481
482config CRYPTO_XTS
Jussi Kivilinna5bcf8e62011-12-13 12:52:56 +0200483 tristate "XTS support"
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800484 select CRYPTO_BLKCIPHER
485 select CRYPTO_MANAGER
Milan Broz12cb3a12017-02-23 08:38:26 +0100486 select CRYPTO_ECB
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800487 help
488 XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
489 key size 256, 384 or 512 bits. This implementation currently
490 can't handle a sectorsize which is not a multiple of 16 bytes.
491
Stephan Mueller1c49678e2015-09-21 20:58:56 +0200492config CRYPTO_KEYWRAP
493 tristate "Key wrapping support"
494 select CRYPTO_BLKCIPHER
495 help
496 Support for key wrapping (NIST SP800-38F / RFC3394) without
497 padding.
498
Eric Biggers26609a22018-11-16 17:26:29 -0800499config CRYPTO_NHPOLY1305
500 tristate
501 select CRYPTO_HASH
502 select CRYPTO_POLY1305
503
Eric Biggers012c8232018-12-04 22:20:00 -0800504config CRYPTO_NHPOLY1305_SSE2
505 tristate "NHPoly1305 hash function (x86_64 SSE2 implementation)"
506 depends on X86 && 64BIT
507 select CRYPTO_NHPOLY1305
508 help
509 SSE2 optimized implementation of the hash function used by the
510 Adiantum encryption mode.
511
Eric Biggers0f961f92018-12-04 22:20:01 -0800512config CRYPTO_NHPOLY1305_AVX2
513 tristate "NHPoly1305 hash function (x86_64 AVX2 implementation)"
514 depends on X86 && 64BIT
515 select CRYPTO_NHPOLY1305
516 help
517 AVX2 optimized implementation of the hash function used by the
518 Adiantum encryption mode.
519
Eric Biggers059c2a42018-11-16 17:26:31 -0800520config CRYPTO_ADIANTUM
521 tristate "Adiantum support"
522 select CRYPTO_CHACHA20
523 select CRYPTO_POLY1305
524 select CRYPTO_NHPOLY1305
525 help
526 Adiantum is a tweakable, length-preserving encryption mode
527 designed for fast and secure disk encryption, especially on
528 CPUs without dedicated crypto instructions. It encrypts
529 each sector using the XChaCha12 stream cipher, two passes of
530 an ε-almost-∆-universal hash function, and an invocation of
531 the AES-256 block cipher on a single 16-byte block. On CPUs
532 without AES instructions, Adiantum is much faster than
533 AES-XTS.
534
535 Adiantum's security is provably reducible to that of its
536 underlying stream and block ciphers, subject to a security
537 bound. Unlike XTS, Adiantum is a true wide-block encryption
538 mode, so it actually provides an even stronger notion of
539 security than XTS, subject to the security bound.
540
541 If unsure, say N.
542
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800543comment "Hash modes"
544
Jussi Kivilinna93b5e862013-04-08 10:48:44 +0300545config CRYPTO_CMAC
546 tristate "CMAC support"
547 select CRYPTO_HASH
548 select CRYPTO_MANAGER
549 help
550 Cipher-based Message Authentication Code (CMAC) specified by
551 The National Institute of Standards and Technology (NIST).
552
553 https://tools.ietf.org/html/rfc4493
554 http://csrc.nist.gov/publications/nistpubs/800-38B/SP_800-38B.pdf
555
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800556config CRYPTO_HMAC
557 tristate "HMAC support"
558 select CRYPTO_HASH
559 select CRYPTO_MANAGER
560 help
561 HMAC: Keyed-Hashing for Message Authentication (RFC2104).
562 This is required for IPSec.
563
564config CRYPTO_XCBC
565 tristate "XCBC support"
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800566 select CRYPTO_HASH
567 select CRYPTO_MANAGER
568 help
569 XCBC: Keyed-Hashing with encryption algorithm
570 http://www.ietf.org/rfc/rfc3566.txt
571 http://csrc.nist.gov/encryption/modes/proposedmodes/
572 xcbc-mac/xcbc-mac-spec.pdf
573
Shane Wangf1939f72009-09-02 20:05:22 +1000574config CRYPTO_VMAC
575 tristate "VMAC support"
Shane Wangf1939f72009-09-02 20:05:22 +1000576 select CRYPTO_HASH
577 select CRYPTO_MANAGER
578 help
579 VMAC is a message authentication algorithm designed for
580 very high speed on 64-bit architectures.
581
582 See also:
583 <http://fastcrypto.org/vmac>
584
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800585comment "Digest"
586
587config CRYPTO_CRC32C
588 tristate "CRC32c CRC algorithm"
Herbert Xu5773a3e2008-07-08 20:54:28 +0800589 select CRYPTO_HASH
Darrick J. Wong6a0962b2012-03-23 15:02:25 -0700590 select CRC32
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800591 help
592 Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
593 by iSCSI for header and data digests and by others.
Herbert Xu69c35ef2008-11-07 15:11:47 +0800594 See Castagnoli93. Module will be crc32c.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800595
Austin Zhang8cb51ba2008-08-07 09:57:03 +0800596config CRYPTO_CRC32C_INTEL
597 tristate "CRC32c INTEL hardware acceleration"
598 depends on X86
599 select CRYPTO_HASH
600 help
601 In Intel processor with SSE4.2 supported, the processor will
602 support CRC32C implementation using hardware accelerated CRC32
603 instruction. This option will create 'crc32c-intel' module,
604 which will enable any routine to use the CRC32 instruction to
605 gain performance compared with software implementation.
606 Module will be crc32c-intel.
607
Jean Delvare7cf31862016-11-22 10:32:44 +0100608config CRYPTO_CRC32C_VPMSUM
Anton Blanchard6dd7a822016-07-01 08:19:45 +1000609 tristate "CRC32c CRC algorithm (powerpc64)"
Michael Ellermanc12abf32016-08-09 08:46:15 +1000610 depends on PPC64 && ALTIVEC
Anton Blanchard6dd7a822016-07-01 08:19:45 +1000611 select CRYPTO_HASH
612 select CRC32
613 help
614 CRC32c algorithm implemented using vector polynomial multiply-sum
615 (vpmsum) instructions, introduced in POWER8. Enable on POWER8
616 and newer processors for improved performance.
617
618
David S. Miller442a7c42012-08-22 20:47:36 -0700619config CRYPTO_CRC32C_SPARC64
620 tristate "CRC32c CRC algorithm (SPARC64)"
621 depends on SPARC64
622 select CRYPTO_HASH
623 select CRC32
624 help
625 CRC32c CRC algorithm implemented using sparc64 crypto instructions,
626 when available.
627
Alexander Boyko78c37d12013-01-10 18:54:59 +0400628config CRYPTO_CRC32
629 tristate "CRC32 CRC algorithm"
630 select CRYPTO_HASH
631 select CRC32
632 help
633 CRC-32-IEEE 802.3 cyclic redundancy-check algorithm.
634 Shash crypto api wrappers to crc32_le function.
635
636config CRYPTO_CRC32_PCLMUL
637 tristate "CRC32 PCLMULQDQ hardware acceleration"
638 depends on X86
639 select CRYPTO_HASH
640 select CRC32
641 help
642 From Intel Westmere and AMD Bulldozer processor with SSE4.2
643 and PCLMULQDQ supported, the processor will support
644 CRC32 PCLMULQDQ implementation using hardware accelerated PCLMULQDQ
645 instruction. This option will create 'crc32-plcmul' module,
646 which will enable any routine to use the CRC-32-IEEE 802.3 checksum
647 and gain better performance as compared with the table implementation.
648
Marcin Nowakowski4a5dc512018-02-09 22:11:06 +0000649config CRYPTO_CRC32_MIPS
650 tristate "CRC32c and CRC32 CRC algorithm (MIPS)"
651 depends on MIPS_CRC_SUPPORT
652 select CRYPTO_HASH
653 help
654 CRC32c and CRC32 CRC algorithms implemented using mips crypto
655 instructions, when available.
656
657
Herbert Xu684115212013-09-07 12:56:26 +1000658config CRYPTO_CRCT10DIF
659 tristate "CRCT10DIF algorithm"
660 select CRYPTO_HASH
661 help
662 CRC T10 Data Integrity Field computation is being cast as
663 a crypto transform. This allows for faster crc t10 diff
664 transforms to be used if they are available.
665
666config CRYPTO_CRCT10DIF_PCLMUL
667 tristate "CRCT10DIF PCLMULQDQ hardware acceleration"
668 depends on X86 && 64BIT && CRC_T10DIF
669 select CRYPTO_HASH
670 help
671 For x86_64 processors with SSE4.2 and PCLMULQDQ supported,
672 CRC T10 DIF PCLMULQDQ computation can be hardware
673 accelerated PCLMULQDQ instruction. This option will create
674 'crct10dif-plcmul' module, which is faster when computing the
675 crct10dif checksum as compared with the generic table implementation.
676
Daniel Axtensb01df1c2017-03-15 23:37:36 +1100677config CRYPTO_CRCT10DIF_VPMSUM
678 tristate "CRC32T10DIF powerpc64 hardware acceleration"
679 depends on PPC64 && ALTIVEC && CRC_T10DIF
680 select CRYPTO_HASH
681 help
682 CRC10T10DIF algorithm implemented using vector polynomial
683 multiply-sum (vpmsum) instructions, introduced in POWER8. Enable on
684 POWER8 and newer processors for improved performance.
685
Daniel Axtens146c8682017-03-15 23:37:37 +1100686config CRYPTO_VPMSUM_TESTER
687 tristate "Powerpc64 vpmsum hardware acceleration tester"
688 depends on CRYPTO_CRCT10DIF_VPMSUM && CRYPTO_CRC32C_VPMSUM
689 help
690 Stress test for CRC32c and CRC-T10DIF algorithms implemented with
691 POWER8 vpmsum instructions.
692 Unless you are testing these algorithms, you don't need this.
693
Huang Ying2cdc6892009-08-06 15:32:38 +1000694config CRYPTO_GHASH
695 tristate "GHASH digest algorithm"
Huang Ying2cdc6892009-08-06 15:32:38 +1000696 select CRYPTO_GF128MUL
Arnd Bergmann578c60f2016-01-25 17:51:21 +0100697 select CRYPTO_HASH
Huang Ying2cdc6892009-08-06 15:32:38 +1000698 help
699 GHASH is message digest algorithm for GCM (Galois/Counter Mode).
700
Martin Willif979e012015-06-01 13:43:58 +0200701config CRYPTO_POLY1305
702 tristate "Poly1305 authenticator algorithm"
Arnd Bergmann578c60f2016-01-25 17:51:21 +0100703 select CRYPTO_HASH
Martin Willif979e012015-06-01 13:43:58 +0200704 help
705 Poly1305 authenticator algorithm, RFC7539.
706
707 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
708 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
709 in IETF protocols. This is the portable C implementation of Poly1305.
710
Martin Willic70f4ab2015-07-16 19:14:06 +0200711config CRYPTO_POLY1305_X86_64
Martin Willib1ccc8f2015-07-16 19:14:08 +0200712 tristate "Poly1305 authenticator algorithm (x86_64/SSE2/AVX2)"
Martin Willic70f4ab2015-07-16 19:14:06 +0200713 depends on X86 && 64BIT
714 select CRYPTO_POLY1305
715 help
716 Poly1305 authenticator algorithm, RFC7539.
717
718 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
719 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
720 in IETF protocols. This is the x86_64 assembler implementation using SIMD
721 instructions.
722
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800723config CRYPTO_MD4
724 tristate "MD4 digest algorithm"
Adrian-Ken Rueegsegger808a1762008-12-03 19:55:27 +0800725 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700726 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800727 MD4 message digest algorithm (RFC1320).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700728
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800729config CRYPTO_MD5
730 tristate "MD5 digest algorithm"
Adrian-Ken Rueegsegger14b75ba2008-12-03 19:57:12 +0800731 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700732 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800733 MD5 message digest algorithm (RFC1321).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700734
Aaro Koskinend69e75d2014-12-21 22:54:02 +0200735config CRYPTO_MD5_OCTEON
736 tristate "MD5 digest algorithm (OCTEON)"
737 depends on CPU_CAVIUM_OCTEON
738 select CRYPTO_MD5
739 select CRYPTO_HASH
740 help
741 MD5 message digest algorithm (RFC1321) implemented
742 using OCTEON crypto instructions, when available.
743
Markus Stockhausene8e59952015-03-01 19:30:46 +0100744config CRYPTO_MD5_PPC
745 tristate "MD5 digest algorithm (PPC)"
746 depends on PPC
747 select CRYPTO_HASH
748 help
749 MD5 message digest algorithm (RFC1321) implemented
750 in PPC assembler.
751
David S. Millerfa4dfed2012-08-19 21:51:26 -0700752config CRYPTO_MD5_SPARC64
753 tristate "MD5 digest algorithm (SPARC64)"
754 depends on SPARC64
755 select CRYPTO_MD5
756 select CRYPTO_HASH
757 help
758 MD5 message digest algorithm (RFC1321) implemented
759 using sparc64 crypto instructions, when available.
760
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800761config CRYPTO_MICHAEL_MIC
762 tristate "Michael MIC keyed digest algorithm"
Adrian-Ken Rueegsegger19e2bf12008-12-07 19:35:38 +0800763 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800764 help
765 Michael MIC is used for message integrity protection in TKIP
766 (IEEE 802.11i). This algorithm is required for TKIP, but it
767 should not be used for other purposes because of the weakness
768 of the algorithm.
769
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800770config CRYPTO_RMD128
Adrian Bunkb6d44342008-07-16 19:28:00 +0800771 tristate "RIPEMD-128 digest algorithm"
Herbert Xu7c4468b2008-11-08 09:10:40 +0800772 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800773 help
774 RIPEMD-128 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800775
Adrian Bunkb6d44342008-07-16 19:28:00 +0800776 RIPEMD-128 is a 128-bit cryptographic hash function. It should only
Michael Witten35ed4b32011-07-09 04:02:31 +0000777 be used as a secure replacement for RIPEMD. For other use cases,
Adrian Bunkb6d44342008-07-16 19:28:00 +0800778 RIPEMD-160 should be used.
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800779
Adrian Bunkb6d44342008-07-16 19:28:00 +0800780 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800781 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800782
783config CRYPTO_RMD160
Adrian Bunkb6d44342008-07-16 19:28:00 +0800784 tristate "RIPEMD-160 digest algorithm"
Herbert Xue5835fb2008-11-08 09:18:51 +0800785 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800786 help
787 RIPEMD-160 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800788
Adrian Bunkb6d44342008-07-16 19:28:00 +0800789 RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
790 to be used as a secure replacement for the 128-bit hash functions
791 MD4, MD5 and it's predecessor RIPEMD
792 (not to be confused with RIPEMD-128).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800793
Adrian Bunkb6d44342008-07-16 19:28:00 +0800794 It's speed is comparable to SHA1 and there are no known attacks
795 against RIPEMD-160.
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800796
Adrian Bunkb6d44342008-07-16 19:28:00 +0800797 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800798 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800799
800config CRYPTO_RMD256
Adrian Bunkb6d44342008-07-16 19:28:00 +0800801 tristate "RIPEMD-256 digest algorithm"
Herbert Xud8a5e2e2008-11-08 09:58:10 +0800802 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800803 help
804 RIPEMD-256 is an optional extension of RIPEMD-128 with a
805 256 bit hash. It is intended for applications that require
806 longer hash-results, without needing a larger security level
807 (than RIPEMD-128).
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800808
Adrian Bunkb6d44342008-07-16 19:28:00 +0800809 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800810 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800811
812config CRYPTO_RMD320
Adrian Bunkb6d44342008-07-16 19:28:00 +0800813 tristate "RIPEMD-320 digest algorithm"
Herbert Xu3b8efb42008-11-08 10:11:09 +0800814 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800815 help
816 RIPEMD-320 is an optional extension of RIPEMD-160 with a
817 320 bit hash. It is intended for applications that require
818 longer hash-results, without needing a larger security level
819 (than RIPEMD-160).
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800820
Adrian Bunkb6d44342008-07-16 19:28:00 +0800821 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800822 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800823
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800824config CRYPTO_SHA1
825 tristate "SHA1 digest algorithm"
Adrian-Ken Rueegsegger54ccb362008-12-02 21:08:20 +0800826 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800827 help
828 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
829
Mathias Krause66be8952011-08-04 20:19:25 +0200830config CRYPTO_SHA1_SSSE3
time38b6b7f2015-09-10 15:27:26 -0700831 tristate "SHA1 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
Mathias Krause66be8952011-08-04 20:19:25 +0200832 depends on X86 && 64BIT
833 select CRYPTO_SHA1
834 select CRYPTO_HASH
835 help
836 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
837 using Supplemental SSE3 (SSSE3) instructions or Advanced Vector
time38b6b7f2015-09-10 15:27:26 -0700838 Extensions (AVX/AVX2) or SHA-NI(SHA Extensions New Instructions),
839 when available.
Mathias Krause66be8952011-08-04 20:19:25 +0200840
Tim Chen8275d1a2013-03-26 13:59:17 -0700841config CRYPTO_SHA256_SSSE3
time38b6b7f2015-09-10 15:27:26 -0700842 tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
Tim Chen8275d1a2013-03-26 13:59:17 -0700843 depends on X86 && 64BIT
844 select CRYPTO_SHA256
845 select CRYPTO_HASH
846 help
847 SHA-256 secure hash standard (DFIPS 180-2) implemented
848 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
849 Extensions version 1 (AVX1), or Advanced Vector Extensions
time38b6b7f2015-09-10 15:27:26 -0700850 version 2 (AVX2) instructions, or SHA-NI (SHA Extensions New
851 Instructions) when available.
Tim Chen8275d1a2013-03-26 13:59:17 -0700852
Tim Chen87de4572013-03-26 14:00:02 -0700853config CRYPTO_SHA512_SSSE3
854 tristate "SHA512 digest algorithm (SSSE3/AVX/AVX2)"
855 depends on X86 && 64BIT
856 select CRYPTO_SHA512
857 select CRYPTO_HASH
858 help
859 SHA-512 secure hash standard (DFIPS 180-2) implemented
860 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
861 Extensions version 1 (AVX1), or Advanced Vector Extensions
862 version 2 (AVX2) instructions, when available.
863
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200864config CRYPTO_SHA1_OCTEON
865 tristate "SHA1 digest algorithm (OCTEON)"
866 depends on CPU_CAVIUM_OCTEON
867 select CRYPTO_SHA1
868 select CRYPTO_HASH
869 help
870 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
871 using OCTEON crypto instructions, when available.
872
David S. Miller4ff28d42012-08-19 15:41:53 -0700873config CRYPTO_SHA1_SPARC64
874 tristate "SHA1 digest algorithm (SPARC64)"
875 depends on SPARC64
876 select CRYPTO_SHA1
877 select CRYPTO_HASH
878 help
879 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
880 using sparc64 crypto instructions, when available.
881
Michael Ellerman323a6bf2012-09-13 23:00:49 +0000882config CRYPTO_SHA1_PPC
883 tristate "SHA1 digest algorithm (powerpc)"
884 depends on PPC
885 help
886 This is the powerpc hardware accelerated implementation of the
887 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
888
Markus Stockhausend9850fc2015-02-24 20:36:50 +0100889config CRYPTO_SHA1_PPC_SPE
890 tristate "SHA1 digest algorithm (PPC SPE)"
891 depends on PPC && SPE
892 help
893 SHA-1 secure hash standard (DFIPS 180-4) implemented
894 using powerpc SPE SIMD instruction set.
895
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800896config CRYPTO_SHA256
897 tristate "SHA224 and SHA256 digest algorithm"
Adrian-Ken Rueegsegger50e109b52008-12-03 19:57:49 +0800898 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800899 help
900 SHA256 secure hash standard (DFIPS 180-2).
901
902 This version of SHA implements a 256 bit hash with 128 bits of
903 security against collision attacks.
904
Adrian Bunkb6d44342008-07-16 19:28:00 +0800905 This code also includes SHA-224, a 224 bit hash with 112 bits
906 of security against collision attacks.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800907
Markus Stockhausen2ecc1e92015-01-30 15:39:34 +0100908config CRYPTO_SHA256_PPC_SPE
909 tristate "SHA224 and SHA256 digest algorithm (PPC SPE)"
910 depends on PPC && SPE
911 select CRYPTO_SHA256
912 select CRYPTO_HASH
913 help
914 SHA224 and SHA256 secure hash standard (DFIPS 180-2)
915 implemented using powerpc SPE SIMD instruction set.
916
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200917config CRYPTO_SHA256_OCTEON
918 tristate "SHA224 and SHA256 digest algorithm (OCTEON)"
919 depends on CPU_CAVIUM_OCTEON
920 select CRYPTO_SHA256
921 select CRYPTO_HASH
922 help
923 SHA-256 secure hash standard (DFIPS 180-2) implemented
924 using OCTEON crypto instructions, when available.
925
David S. Miller86c93b22012-08-19 17:11:37 -0700926config CRYPTO_SHA256_SPARC64
927 tristate "SHA224 and SHA256 digest algorithm (SPARC64)"
928 depends on SPARC64
929 select CRYPTO_SHA256
930 select CRYPTO_HASH
931 help
932 SHA-256 secure hash standard (DFIPS 180-2) implemented
933 using sparc64 crypto instructions, when available.
934
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800935config CRYPTO_SHA512
936 tristate "SHA384 and SHA512 digest algorithms"
Adrian-Ken Rueegseggerbd9d20d2008-12-17 16:49:02 +1100937 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800938 help
939 SHA512 secure hash standard (DFIPS 180-2).
940
941 This version of SHA implements a 512 bit hash with 256 bits of
942 security against collision attacks.
943
944 This code also includes SHA-384, a 384 bit hash with 192 bits
945 of security against collision attacks.
946
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200947config CRYPTO_SHA512_OCTEON
948 tristate "SHA384 and SHA512 digest algorithms (OCTEON)"
949 depends on CPU_CAVIUM_OCTEON
950 select CRYPTO_SHA512
951 select CRYPTO_HASH
952 help
953 SHA-512 secure hash standard (DFIPS 180-2) implemented
954 using OCTEON crypto instructions, when available.
955
David S. Miller775e0c62012-08-19 17:37:56 -0700956config CRYPTO_SHA512_SPARC64
957 tristate "SHA384 and SHA512 digest algorithm (SPARC64)"
958 depends on SPARC64
959 select CRYPTO_SHA512
960 select CRYPTO_HASH
961 help
962 SHA-512 secure hash standard (DFIPS 180-2) implemented
963 using sparc64 crypto instructions, when available.
964
Jeff Garzik53964b92016-06-17 10:30:35 +0530965config CRYPTO_SHA3
966 tristate "SHA3 digest algorithm"
967 select CRYPTO_HASH
968 help
969 SHA-3 secure hash standard (DFIPS 202). It's based on
970 cryptographic sponge function family called Keccak.
971
972 References:
973 http://keccak.noekeon.org/
974
Gilad Ben-Yossef4f0fc162017-08-21 13:51:28 +0300975config CRYPTO_SM3
976 tristate "SM3 digest algorithm"
977 select CRYPTO_HASH
978 help
979 SM3 secure hash function as defined by OSCCA GM/T 0004-2012 SM3).
980 It is part of the Chinese Commercial Cryptography suite.
981
982 References:
983 http://www.oscca.gov.cn/UpFile/20101222141857786.pdf
984 https://datatracker.ietf.org/doc/html/draft-shen-sm3-hash
985
Vitaly Chikunovfe189572018-11-07 00:00:01 +0300986config CRYPTO_STREEBOG
987 tristate "Streebog Hash Function"
988 select CRYPTO_HASH
989 help
990 Streebog Hash Function (GOST R 34.11-2012, RFC 6986) is one of the Russian
991 cryptographic standard algorithms (called GOST algorithms).
992 This setting enables two hash algorithms with 256 and 512 bits output.
993
994 References:
995 https://tc26.ru/upload/iblock/fed/feddbb4d26b685903faa2ba11aea43f6.pdf
996 https://tools.ietf.org/html/rfc6986
997
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800998config CRYPTO_TGR192
999 tristate "Tiger digest algorithms"
Adrian-Ken Rueegseggerf63fbd32008-12-03 19:58:32 +08001000 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001001 help
1002 Tiger hash algorithm 192, 160 and 128-bit hashes
1003
1004 Tiger is a hash function optimized for 64-bit processors while
1005 still having decent performance on 32-bit processors.
1006 Tiger was developed by Ross Anderson and Eli Biham.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001007
1008 See also:
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001009 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
1010
1011config CRYPTO_WP512
1012 tristate "Whirlpool digest algorithms"
Adrian-Ken Rueegsegger49465102008-12-07 19:34:37 +08001013 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001014 help
1015 Whirlpool hash algorithm 512, 384 and 256-bit hashes
1016
1017 Whirlpool-512 is part of the NESSIE cryptographic primitives.
1018 Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
1019
1020 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001021 <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html>
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001022
Huang Ying0e1227d2009-10-19 11:53:06 +09001023config CRYPTO_GHASH_CLMUL_NI_INTEL
1024 tristate "GHASH digest algorithm (CLMUL-NI accelerated)"
Richard Weinberger8af00862011-06-08 20:56:29 +08001025 depends on X86 && 64BIT
Huang Ying0e1227d2009-10-19 11:53:06 +09001026 select CRYPTO_CRYPTD
1027 help
1028 GHASH is message digest algorithm for GCM (Galois/Counter Mode).
1029 The implementation is accelerated by CLMUL-NI of Intel.
1030
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001031comment "Ciphers"
Linus Torvalds1da177e2005-04-16 15:20:36 -07001032
1033config CRYPTO_AES
1034 tristate "AES cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +10001035 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -07001036 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001037 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Linus Torvalds1da177e2005-04-16 15:20:36 -07001038 algorithm.
1039
1040 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001041 both hardware and software across a wide range of computing
1042 environments regardless of its use in feedback or non-feedback
1043 modes. Its key setup time is excellent, and its key agility is
1044 good. Rijndael's very low memory requirements make it very well
1045 suited for restricted-space environments, in which it also
1046 demonstrates excellent performance. Rijndael's operations are
1047 among the easiest to defend against power and timing attacks.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001048
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001049 The AES specifies three key sizes: 128, 192 and 256 bits
Linus Torvalds1da177e2005-04-16 15:20:36 -07001050
1051 See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
1052
Ard Biesheuvelb5e0b032017-02-02 16:37:40 +00001053config CRYPTO_AES_TI
1054 tristate "Fixed time AES cipher"
1055 select CRYPTO_ALGAPI
1056 help
1057 This is a generic implementation of AES that attempts to eliminate
1058 data dependent latencies as much as possible without affecting
1059 performance too much. It is intended for use by the generic CCM
1060 and GCM drivers, and other CTR or CMAC/XCBC based modes that rely
1061 solely on encryption (although decryption is supported as well, but
1062 with a more dramatic performance hit)
1063
1064 Instead of using 16 lookup tables of 1 KB each, (8 for encryption and
1065 8 for decryption), this implementation only uses just two S-boxes of
1066 256 bytes each, and attempts to eliminate data dependent latencies by
1067 prefetching the entire table into the cache at the start of each
Eric Biggers0a6a40c2018-10-17 21:37:58 -07001068 block. Interrupts are also disabled to avoid races where cachelines
1069 are evicted when the CPU is interrupted to do something else.
Ard Biesheuvelb5e0b032017-02-02 16:37:40 +00001070
Linus Torvalds1da177e2005-04-16 15:20:36 -07001071config CRYPTO_AES_586
1072 tristate "AES cipher algorithms (i586)"
Herbert Xucce9e062006-08-21 21:08:13 +10001073 depends on (X86 || UML_X86) && !64BIT
1074 select CRYPTO_ALGAPI
Sebastian Siewior5157dea2007-11-10 19:07:16 +08001075 select CRYPTO_AES
Linus Torvalds1da177e2005-04-16 15:20:36 -07001076 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001077 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Linus Torvalds1da177e2005-04-16 15:20:36 -07001078 algorithm.
1079
1080 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001081 both hardware and software across a wide range of computing
1082 environments regardless of its use in feedback or non-feedback
1083 modes. Its key setup time is excellent, and its key agility is
1084 good. Rijndael's very low memory requirements make it very well
1085 suited for restricted-space environments, in which it also
1086 demonstrates excellent performance. Rijndael's operations are
1087 among the easiest to defend against power and timing attacks.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001088
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001089 The AES specifies three key sizes: 128, 192 and 256 bits
Linus Torvalds1da177e2005-04-16 15:20:36 -07001090
1091 See <http://csrc.nist.gov/encryption/aes/> for more information.
1092
Andreas Steinmetza2a892a2005-07-06 13:55:00 -07001093config CRYPTO_AES_X86_64
1094 tristate "AES cipher algorithms (x86_64)"
Herbert Xucce9e062006-08-21 21:08:13 +10001095 depends on (X86 || UML_X86) && 64BIT
1096 select CRYPTO_ALGAPI
Sebastian Siewior81190b32007-11-08 21:25:04 +08001097 select CRYPTO_AES
Andreas Steinmetza2a892a2005-07-06 13:55:00 -07001098 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001099 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Andreas Steinmetza2a892a2005-07-06 13:55:00 -07001100 algorithm.
1101
1102 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001103 both hardware and software across a wide range of computing
1104 environments regardless of its use in feedback or non-feedback
1105 modes. Its key setup time is excellent, and its key agility is
1106 good. Rijndael's very low memory requirements make it very well
1107 suited for restricted-space environments, in which it also
1108 demonstrates excellent performance. Rijndael's operations are
1109 among the easiest to defend against power and timing attacks.
Andreas Steinmetza2a892a2005-07-06 13:55:00 -07001110
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001111 The AES specifies three key sizes: 128, 192 and 256 bits
Andreas Steinmetza2a892a2005-07-06 13:55:00 -07001112
1113 See <http://csrc.nist.gov/encryption/aes/> for more information.
1114
Huang Ying54b6a1b2009-01-18 16:28:34 +11001115config CRYPTO_AES_NI_INTEL
1116 tristate "AES cipher algorithms (AES-NI)"
Richard Weinberger8af00862011-06-08 20:56:29 +08001117 depends on X86
Herbert Xu85671862016-11-22 20:08:33 +08001118 select CRYPTO_AEAD
Mathias Krause0d258ef2010-11-27 16:34:46 +08001119 select CRYPTO_AES_X86_64 if 64BIT
1120 select CRYPTO_AES_586 if !64BIT
Huang Ying54b6a1b2009-01-18 16:28:34 +11001121 select CRYPTO_ALGAPI
Herbert Xu85671862016-11-22 20:08:33 +08001122 select CRYPTO_BLKCIPHER
Jussi Kivilinna7643a112013-04-10 18:39:20 +03001123 select CRYPTO_GLUE_HELPER_X86 if 64BIT
Herbert Xu85671862016-11-22 20:08:33 +08001124 select CRYPTO_SIMD
Huang Ying54b6a1b2009-01-18 16:28:34 +11001125 help
1126 Use Intel AES-NI instructions for AES algorithm.
1127
1128 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1129 algorithm.
1130
1131 Rijndael appears to be consistently a very good performer in
1132 both hardware and software across a wide range of computing
1133 environments regardless of its use in feedback or non-feedback
1134 modes. Its key setup time is excellent, and its key agility is
1135 good. Rijndael's very low memory requirements make it very well
1136 suited for restricted-space environments, in which it also
1137 demonstrates excellent performance. Rijndael's operations are
1138 among the easiest to defend against power and timing attacks.
1139
1140 The AES specifies three key sizes: 128, 192 and 256 bits
1141
1142 See <http://csrc.nist.gov/encryption/aes/> for more information.
1143
Mathias Krause0d258ef2010-11-27 16:34:46 +08001144 In addition to AES cipher algorithm support, the acceleration
1145 for some popular block cipher mode is supported too, including
Ard Biesheuvel944585a2018-09-24 14:48:16 +02001146 ECB, CBC, LRW, XTS. The 64 bit version has additional
Mathias Krause0d258ef2010-11-27 16:34:46 +08001147 acceleration for CTR.
Huang Ying2cf4ac82009-03-29 15:41:20 +08001148
David S. Miller9bf48522012-08-21 03:58:13 -07001149config CRYPTO_AES_SPARC64
1150 tristate "AES cipher algorithms (SPARC64)"
1151 depends on SPARC64
1152 select CRYPTO_CRYPTD
1153 select CRYPTO_ALGAPI
1154 help
1155 Use SPARC64 crypto opcodes for AES algorithm.
1156
1157 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1158 algorithm.
1159
1160 Rijndael appears to be consistently a very good performer in
1161 both hardware and software across a wide range of computing
1162 environments regardless of its use in feedback or non-feedback
1163 modes. Its key setup time is excellent, and its key agility is
1164 good. Rijndael's very low memory requirements make it very well
1165 suited for restricted-space environments, in which it also
1166 demonstrates excellent performance. Rijndael's operations are
1167 among the easiest to defend against power and timing attacks.
1168
1169 The AES specifies three key sizes: 128, 192 and 256 bits
1170
1171 See <http://csrc.nist.gov/encryption/aes/> for more information.
1172
1173 In addition to AES cipher algorithm support, the acceleration
1174 for some popular block cipher mode is supported too, including
1175 ECB and CBC.
1176
Markus Stockhausen504c6142015-02-22 10:00:10 +01001177config CRYPTO_AES_PPC_SPE
1178 tristate "AES cipher algorithms (PPC SPE)"
1179 depends on PPC && SPE
1180 help
1181 AES cipher algorithms (FIPS-197). Additionally the acceleration
1182 for popular block cipher modes ECB, CBC, CTR and XTS is supported.
1183 This module should only be used for low power (router) devices
1184 without hardware AES acceleration (e.g. caam crypto). It reduces the
1185 size of the AES tables from 16KB to 8KB + 256 bytes and mitigates
1186 timining attacks. Nevertheless it might be not as secure as other
1187 architecture specific assembler implementations that work on 1KB
1188 tables or 256 bytes S-boxes.
1189
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001190config CRYPTO_ANUBIS
1191 tristate "Anubis cipher algorithm"
1192 select CRYPTO_ALGAPI
1193 help
1194 Anubis cipher algorithm.
1195
1196 Anubis is a variable key length cipher which can use keys from
1197 128 bits to 320 bits in length. It was evaluated as a entrant
1198 in the NESSIE competition.
1199
1200 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001201 <https://www.cosic.esat.kuleuven.be/nessie/reports/>
1202 <http://www.larc.usp.br/~pbarreto/AnubisPage.html>
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001203
1204config CRYPTO_ARC4
1205 tristate "ARC4 cipher algorithm"
Sebastian Andrzej Siewiorb9b0f082012-06-26 18:13:46 +02001206 select CRYPTO_BLKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001207 help
1208 ARC4 cipher algorithm.
1209
1210 ARC4 is a stream cipher using keys ranging from 8 bits to 2048
1211 bits in length. This algorithm is required for driver-based
1212 WEP, but it should not be for other purposes because of the
1213 weakness of the algorithm.
1214
1215config CRYPTO_BLOWFISH
1216 tristate "Blowfish cipher algorithm"
1217 select CRYPTO_ALGAPI
Jussi Kivilinna52ba8672011-09-02 01:45:07 +03001218 select CRYPTO_BLOWFISH_COMMON
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001219 help
1220 Blowfish cipher algorithm, by Bruce Schneier.
1221
1222 This is a variable key length cipher which can use keys from 32
1223 bits to 448 bits in length. It's fast, simple and specifically
1224 designed for use on "large microprocessors".
1225
1226 See also:
1227 <http://www.schneier.com/blowfish.html>
1228
Jussi Kivilinna52ba8672011-09-02 01:45:07 +03001229config CRYPTO_BLOWFISH_COMMON
1230 tristate
1231 help
1232 Common parts of the Blowfish cipher algorithm shared by the
1233 generic c and the assembler implementations.
1234
1235 See also:
1236 <http://www.schneier.com/blowfish.html>
1237
Jussi Kivilinna64b94ce2011-09-02 01:45:22 +03001238config CRYPTO_BLOWFISH_X86_64
1239 tristate "Blowfish cipher algorithm (x86_64)"
Al Virof21a7c12012-04-08 20:31:22 -04001240 depends on X86 && 64BIT
Eric Biggersc1679172018-02-19 23:48:16 -08001241 select CRYPTO_BLKCIPHER
Jussi Kivilinna64b94ce2011-09-02 01:45:22 +03001242 select CRYPTO_BLOWFISH_COMMON
1243 help
1244 Blowfish cipher algorithm (x86_64), by Bruce Schneier.
1245
1246 This is a variable key length cipher which can use keys from 32
1247 bits to 448 bits in length. It's fast, simple and specifically
1248 designed for use on "large microprocessors".
1249
1250 See also:
1251 <http://www.schneier.com/blowfish.html>
1252
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001253config CRYPTO_CAMELLIA
1254 tristate "Camellia cipher algorithms"
1255 depends on CRYPTO
1256 select CRYPTO_ALGAPI
1257 help
1258 Camellia cipher algorithms module.
1259
1260 Camellia is a symmetric key block cipher developed jointly
1261 at NTT and Mitsubishi Electric Corporation.
1262
1263 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1264
1265 See also:
1266 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1267
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001268config CRYPTO_CAMELLIA_X86_64
1269 tristate "Camellia cipher algorithm (x86_64)"
Al Virof21a7c12012-04-08 20:31:22 -04001270 depends on X86 && 64BIT
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001271 depends on CRYPTO
Eric Biggers1af6d032018-02-19 23:48:22 -08001272 select CRYPTO_BLKCIPHER
Jussi Kivilinna964263a2012-06-18 14:07:29 +03001273 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001274 help
1275 Camellia cipher algorithm module (x86_64).
1276
1277 Camellia is a symmetric key block cipher developed jointly
1278 at NTT and Mitsubishi Electric Corporation.
1279
1280 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1281
1282 See also:
1283 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1284
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001285config CRYPTO_CAMELLIA_AESNI_AVX_X86_64
1286 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)"
1287 depends on X86 && 64BIT
1288 depends on CRYPTO
Eric Biggers44893bc2018-02-19 23:48:23 -08001289 select CRYPTO_BLKCIPHER
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001290 select CRYPTO_CAMELLIA_X86_64
Eric Biggers44893bc2018-02-19 23:48:23 -08001291 select CRYPTO_GLUE_HELPER_X86
1292 select CRYPTO_SIMD
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001293 select CRYPTO_XTS
1294 help
1295 Camellia cipher algorithm module (x86_64/AES-NI/AVX).
1296
1297 Camellia is a symmetric key block cipher developed jointly
1298 at NTT and Mitsubishi Electric Corporation.
1299
1300 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1301
1302 See also:
1303 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1304
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001305config CRYPTO_CAMELLIA_AESNI_AVX2_X86_64
1306 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX2)"
1307 depends on X86 && 64BIT
1308 depends on CRYPTO
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001309 select CRYPTO_CAMELLIA_AESNI_AVX_X86_64
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001310 help
1311 Camellia cipher algorithm module (x86_64/AES-NI/AVX2).
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
David S. Miller81658ad2012-08-28 12:05:54 -07001321config CRYPTO_CAMELLIA_SPARC64
1322 tristate "Camellia cipher algorithm (SPARC64)"
1323 depends on SPARC64
1324 depends on CRYPTO
1325 select CRYPTO_ALGAPI
1326 help
1327 Camellia cipher algorithm module (SPARC64).
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
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001337config CRYPTO_CAST_COMMON
1338 tristate
1339 help
1340 Common parts of the CAST cipher algorithms shared by the
1341 generic c and the assembler implementations.
1342
Linus Torvalds1da177e2005-04-16 15:20:36 -07001343config CRYPTO_CAST5
1344 tristate "CAST5 (CAST-128) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001345 select CRYPTO_ALGAPI
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001346 select CRYPTO_CAST_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -07001347 help
1348 The CAST5 encryption algorithm (synonymous with CAST-128) is
1349 described in RFC2144.
1350
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001351config CRYPTO_CAST5_AVX_X86_64
1352 tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)"
1353 depends on X86 && 64BIT
Eric Biggers1e631832018-02-19 23:48:13 -08001354 select CRYPTO_BLKCIPHER
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001355 select CRYPTO_CAST5
Eric Biggers1e631832018-02-19 23:48:13 -08001356 select CRYPTO_CAST_COMMON
1357 select CRYPTO_SIMD
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001358 help
1359 The CAST5 encryption algorithm (synonymous with CAST-128) is
1360 described in RFC2144.
1361
1362 This module provides the Cast5 cipher algorithm that processes
1363 sixteen blocks parallel using the AVX instruction set.
1364
Linus Torvalds1da177e2005-04-16 15:20:36 -07001365config CRYPTO_CAST6
1366 tristate "CAST6 (CAST-256) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001367 select CRYPTO_ALGAPI
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001368 select CRYPTO_CAST_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -07001369 help
1370 The CAST6 encryption algorithm (synonymous with CAST-256) is
1371 described in RFC2612.
1372
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001373config CRYPTO_CAST6_AVX_X86_64
1374 tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)"
1375 depends on X86 && 64BIT
Eric Biggers4bd96922018-02-19 23:48:15 -08001376 select CRYPTO_BLKCIPHER
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001377 select CRYPTO_CAST6
Eric Biggers4bd96922018-02-19 23:48:15 -08001378 select CRYPTO_CAST_COMMON
1379 select CRYPTO_GLUE_HELPER_X86
1380 select CRYPTO_SIMD
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001381 select CRYPTO_XTS
1382 help
1383 The CAST6 encryption algorithm (synonymous with CAST-256) is
1384 described in RFC2612.
1385
1386 This module provides the Cast6 cipher algorithm that processes
1387 eight blocks parallel using the AVX instruction set.
1388
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001389config CRYPTO_DES
1390 tristate "DES and Triple DES EDE cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +10001391 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -07001392 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001393 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
Linus Torvalds1da177e2005-04-16 15:20:36 -07001394
David S. Millerc5aac2d2012-08-25 22:37:23 -07001395config CRYPTO_DES_SPARC64
1396 tristate "DES and Triple DES EDE cipher algorithms (SPARC64)"
Dave Jones97da37b2012-10-02 17:13:20 -04001397 depends on SPARC64
David S. Millerc5aac2d2012-08-25 22:37:23 -07001398 select CRYPTO_ALGAPI
1399 select CRYPTO_DES
1400 help
1401 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3),
1402 optimized using SPARC64 crypto opcodes.
1403
Jussi Kivilinna6574e6c2014-06-09 20:59:54 +03001404config CRYPTO_DES3_EDE_X86_64
1405 tristate "Triple DES EDE cipher algorithm (x86-64)"
1406 depends on X86 && 64BIT
Eric Biggers09c0f032018-02-19 23:48:17 -08001407 select CRYPTO_BLKCIPHER
Jussi Kivilinna6574e6c2014-06-09 20:59:54 +03001408 select CRYPTO_DES
1409 help
1410 Triple DES EDE (FIPS 46-3) algorithm.
1411
1412 This module provides implementation of the Triple DES EDE cipher
1413 algorithm that is optimized for x86-64 processors. Two versions of
1414 algorithm are provided; regular processing one input block and
1415 one that processes three blocks parallel.
1416
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001417config CRYPTO_FCRYPT
1418 tristate "FCrypt cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001419 select CRYPTO_ALGAPI
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001420 select CRYPTO_BLKCIPHER
Linus Torvalds1da177e2005-04-16 15:20:36 -07001421 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001422 FCrypt algorithm used by RxRPC.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001423
1424config CRYPTO_KHAZAD
1425 tristate "Khazad cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001426 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -07001427 help
1428 Khazad cipher algorithm.
1429
1430 Khazad was a finalist in the initial NESSIE competition. It is
1431 an algorithm optimized for 64-bit processors with good performance
1432 on 32-bit processors. Khazad uses an 128 bit key size.
1433
1434 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001435 <http://www.larc.usp.br/~pbarreto/KhazadPage.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -07001436
Tan Swee Heng2407d602007-11-23 19:45:00 +08001437config CRYPTO_SALSA20
Kees Cook3b4afaf2012-10-02 11:16:49 -07001438 tristate "Salsa20 stream cipher algorithm"
Tan Swee Heng2407d602007-11-23 19:45:00 +08001439 select CRYPTO_BLKCIPHER
1440 help
1441 Salsa20 stream cipher algorithm.
1442
1443 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1444 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1445
1446 The Salsa20 stream cipher algorithm is designed by Daniel J.
1447 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -07001448
Martin Willic08d0e62015-06-01 13:43:56 +02001449config CRYPTO_CHACHA20
Eric Biggersaa762402018-11-16 17:26:22 -08001450 tristate "ChaCha stream cipher algorithms"
Martin Willic08d0e62015-06-01 13:43:56 +02001451 select CRYPTO_BLKCIPHER
1452 help
Eric Biggersaa762402018-11-16 17:26:22 -08001453 The ChaCha20, XChaCha20, and XChaCha12 stream cipher algorithms.
Martin Willic08d0e62015-06-01 13:43:56 +02001454
1455 ChaCha20 is a 256-bit high-speed stream cipher designed by Daniel J.
1456 Bernstein and further specified in RFC7539 for use in IETF protocols.
Eric Biggersde61d7a2018-11-16 17:26:20 -08001457 This is the portable C implementation of ChaCha20. See also:
Martin Willic08d0e62015-06-01 13:43:56 +02001458 <http://cr.yp.to/chacha/chacha-20080128.pdf>
1459
Eric Biggersde61d7a2018-11-16 17:26:20 -08001460 XChaCha20 is the application of the XSalsa20 construction to ChaCha20
1461 rather than to Salsa20. XChaCha20 extends ChaCha20's nonce length
1462 from 64 bits (or 96 bits using the RFC7539 convention) to 192 bits,
1463 while provably retaining ChaCha20's security. See also:
1464 <https://cr.yp.to/snuffle/xsalsa-20081128.pdf>
1465
Eric Biggersaa762402018-11-16 17:26:22 -08001466 XChaCha12 is XChaCha20 reduced to 12 rounds, with correspondingly
1467 reduced security margin but increased performance. It can be needed
1468 in some performance-sensitive scenarios.
1469
Martin Willic9320b62015-07-16 19:14:01 +02001470config CRYPTO_CHACHA20_X86_64
Martin Willi3d1e93c2015-07-16 19:14:03 +02001471 tristate "ChaCha20 cipher algorithm (x86_64/SSSE3/AVX2)"
Martin Willic9320b62015-07-16 19:14:01 +02001472 depends on X86 && 64BIT
1473 select CRYPTO_BLKCIPHER
1474 select CRYPTO_CHACHA20
1475 help
1476 ChaCha20 cipher algorithm, RFC7539.
1477
1478 ChaCha20 is a 256-bit high-speed stream cipher designed by Daniel J.
1479 Bernstein and further specified in RFC7539 for use in IETF protocols.
1480 This is the x86_64 assembler implementation using SIMD instructions.
1481
1482 See also:
1483 <http://cr.yp.to/chacha/chacha-20080128.pdf>
1484
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001485config CRYPTO_SEED
1486 tristate "SEED cipher algorithm"
1487 select CRYPTO_ALGAPI
1488 help
1489 SEED cipher algorithm (RFC4269).
1490
1491 SEED is a 128-bit symmetric key block cipher that has been
1492 developed by KISA (Korea Information Security Agency) as a
1493 national standard encryption algorithm of the Republic of Korea.
1494 It is a 16 round block cipher with the key size of 128 bit.
1495
1496 See also:
1497 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
1498
1499config CRYPTO_SERPENT
1500 tristate "Serpent cipher algorithm"
1501 select CRYPTO_ALGAPI
1502 help
1503 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1504
1505 Keys are allowed to be from 0 to 256 bits in length, in steps
1506 of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
1507 variant of Serpent for compatibility with old kerneli.org code.
1508
1509 See also:
1510 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1511
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001512config CRYPTO_SERPENT_SSE2_X86_64
1513 tristate "Serpent cipher algorithm (x86_64/SSE2)"
1514 depends on X86 && 64BIT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001515 select CRYPTO_BLKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +03001516 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001517 select CRYPTO_SERPENT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001518 select CRYPTO_SIMD
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001519 help
1520 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1521
1522 Keys are allowed to be from 0 to 256 bits in length, in steps
1523 of 8 bits.
1524
Masanari Iida1e6232f2015-04-04 00:20:30 +09001525 This module provides Serpent cipher algorithm that processes eight
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001526 blocks parallel using SSE2 instruction set.
1527
1528 See also:
1529 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1530
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001531config CRYPTO_SERPENT_SSE2_586
1532 tristate "Serpent cipher algorithm (i586/SSE2)"
1533 depends on X86 && !64BIT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001534 select CRYPTO_BLKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +03001535 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001536 select CRYPTO_SERPENT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001537 select CRYPTO_SIMD
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001538 help
1539 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1540
1541 Keys are allowed to be from 0 to 256 bits in length, in steps
1542 of 8 bits.
1543
1544 This module provides Serpent cipher algorithm that processes four
1545 blocks parallel using SSE2 instruction set.
1546
1547 See also:
1548 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1549
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001550config CRYPTO_SERPENT_AVX_X86_64
1551 tristate "Serpent cipher algorithm (x86_64/AVX)"
1552 depends on X86 && 64BIT
Eric Biggerse16bf972018-02-19 23:48:06 -08001553 select CRYPTO_BLKCIPHER
Jussi Kivilinna1d0debb2012-06-18 14:07:24 +03001554 select CRYPTO_GLUE_HELPER_X86
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001555 select CRYPTO_SERPENT
Eric Biggerse16bf972018-02-19 23:48:06 -08001556 select CRYPTO_SIMD
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001557 select CRYPTO_XTS
1558 help
1559 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1560
1561 Keys are allowed to be from 0 to 256 bits in length, in steps
1562 of 8 bits.
1563
1564 This module provides the Serpent cipher algorithm that processes
1565 eight blocks parallel using the AVX instruction set.
1566
1567 See also:
1568 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1569
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001570config CRYPTO_SERPENT_AVX2_X86_64
1571 tristate "Serpent cipher algorithm (x86_64/AVX2)"
1572 depends on X86 && 64BIT
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001573 select CRYPTO_SERPENT_AVX_X86_64
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001574 help
1575 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1576
1577 Keys are allowed to be from 0 to 256 bits in length, in steps
1578 of 8 bits.
1579
1580 This module provides Serpent cipher algorithm that processes 16
1581 blocks parallel using AVX2 instruction set.
1582
1583 See also:
1584 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1585
Gilad Ben-Yossef747c8ce2018-03-06 09:44:42 +00001586config CRYPTO_SM4
1587 tristate "SM4 cipher algorithm"
1588 select CRYPTO_ALGAPI
1589 help
1590 SM4 cipher algorithms (OSCCA GB/T 32907-2016).
1591
1592 SM4 (GBT.32907-2016) is a cryptographic standard issued by the
1593 Organization of State Commercial Administration of China (OSCCA)
1594 as an authorized cryptographic algorithms for the use within China.
1595
1596 SMS4 was originally created for use in protecting wireless
1597 networks, and is mandated in the Chinese National Standard for
1598 Wireless LAN WAPI (Wired Authentication and Privacy Infrastructure)
1599 (GB.15629.11-2003).
1600
1601 The latest SM4 standard (GBT.32907-2016) was proposed by OSCCA and
1602 standardized through TC 260 of the Standardization Administration
1603 of the People's Republic of China (SAC).
1604
1605 The input, output, and key of SMS4 are each 128 bits.
1606
1607 See also: <https://eprint.iacr.org/2008/329.pdf>
1608
1609 If unsure, say N.
1610
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001611config CRYPTO_TEA
1612 tristate "TEA, XTEA and XETA cipher algorithms"
1613 select CRYPTO_ALGAPI
1614 help
1615 TEA cipher algorithm.
1616
1617 Tiny Encryption Algorithm is a simple cipher that uses
1618 many rounds for security. It is very fast and uses
1619 little memory.
1620
1621 Xtendend Tiny Encryption Algorithm is a modification to
1622 the TEA algorithm to address a potential key weakness
1623 in the TEA algorithm.
1624
1625 Xtendend Encryption Tiny Algorithm is a mis-implementation
1626 of the XTEA algorithm for compatibility purposes.
1627
1628config CRYPTO_TWOFISH
1629 tristate "Twofish cipher algorithm"
1630 select CRYPTO_ALGAPI
1631 select CRYPTO_TWOFISH_COMMON
1632 help
1633 Twofish cipher algorithm.
1634
1635 Twofish was submitted as an AES (Advanced Encryption Standard)
1636 candidate cipher by researchers at CounterPane Systems. It is a
1637 16 round block cipher supporting key sizes of 128, 192, and 256
1638 bits.
1639
1640 See also:
1641 <http://www.schneier.com/twofish.html>
1642
1643config CRYPTO_TWOFISH_COMMON
1644 tristate
1645 help
1646 Common parts of the Twofish cipher algorithm shared by the
1647 generic c and the assembler implementations.
1648
1649config CRYPTO_TWOFISH_586
1650 tristate "Twofish cipher algorithms (i586)"
1651 depends on (X86 || UML_X86) && !64BIT
1652 select CRYPTO_ALGAPI
1653 select CRYPTO_TWOFISH_COMMON
1654 help
1655 Twofish cipher algorithm.
1656
1657 Twofish was submitted as an AES (Advanced Encryption Standard)
1658 candidate cipher by researchers at CounterPane Systems. It is a
1659 16 round block cipher supporting key sizes of 128, 192, and 256
1660 bits.
1661
1662 See also:
1663 <http://www.schneier.com/twofish.html>
1664
1665config CRYPTO_TWOFISH_X86_64
1666 tristate "Twofish cipher algorithm (x86_64)"
1667 depends on (X86 || UML_X86) && 64BIT
1668 select CRYPTO_ALGAPI
1669 select CRYPTO_TWOFISH_COMMON
1670 help
1671 Twofish cipher algorithm (x86_64).
1672
1673 Twofish was submitted as an AES (Advanced Encryption Standard)
1674 candidate cipher by researchers at CounterPane Systems. It is a
1675 16 round block cipher supporting key sizes of 128, 192, and 256
1676 bits.
1677
1678 See also:
1679 <http://www.schneier.com/twofish.html>
1680
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001681config CRYPTO_TWOFISH_X86_64_3WAY
1682 tristate "Twofish cipher algorithm (x86_64, 3-way parallel)"
Al Virof21a7c12012-04-08 20:31:22 -04001683 depends on X86 && 64BIT
Eric Biggers37992fa2018-02-19 23:48:09 -08001684 select CRYPTO_BLKCIPHER
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001685 select CRYPTO_TWOFISH_COMMON
1686 select CRYPTO_TWOFISH_X86_64
Jussi Kivilinna414cb5e2012-06-18 14:07:34 +03001687 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001688 help
1689 Twofish cipher algorithm (x86_64, 3-way parallel).
1690
1691 Twofish was submitted as an AES (Advanced Encryption Standard)
1692 candidate cipher by researchers at CounterPane Systems. It is a
1693 16 round block cipher supporting key sizes of 128, 192, and 256
1694 bits.
1695
1696 This module provides Twofish cipher algorithm that processes three
1697 blocks parallel, utilizing resources of out-of-order CPUs better.
1698
1699 See also:
1700 <http://www.schneier.com/twofish.html>
1701
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001702config CRYPTO_TWOFISH_AVX_X86_64
1703 tristate "Twofish cipher algorithm (x86_64/AVX)"
1704 depends on X86 && 64BIT
Eric Biggers0e6ab462018-02-19 23:48:11 -08001705 select CRYPTO_BLKCIPHER
Jussi Kivilinnaa7378d42012-06-18 14:07:39 +03001706 select CRYPTO_GLUE_HELPER_X86
Eric Biggers0e6ab462018-02-19 23:48:11 -08001707 select CRYPTO_SIMD
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001708 select CRYPTO_TWOFISH_COMMON
1709 select CRYPTO_TWOFISH_X86_64
1710 select CRYPTO_TWOFISH_X86_64_3WAY
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001711 help
1712 Twofish cipher algorithm (x86_64/AVX).
1713
1714 Twofish was submitted as an AES (Advanced Encryption Standard)
1715 candidate cipher by researchers at CounterPane Systems. It is a
1716 16 round block cipher supporting key sizes of 128, 192, and 256
1717 bits.
1718
1719 This module provides the Twofish cipher algorithm that processes
1720 eight blocks parallel using the AVX Instruction Set.
1721
1722 See also:
1723 <http://www.schneier.com/twofish.html>
1724
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001725comment "Compression"
1726
Linus Torvalds1da177e2005-04-16 15:20:36 -07001727config CRYPTO_DEFLATE
1728 tristate "Deflate compression algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001729 select CRYPTO_ALGAPI
Giovanni Cabidduf6ded092016-10-21 13:19:53 +01001730 select CRYPTO_ACOMP2
Linus Torvalds1da177e2005-04-16 15:20:36 -07001731 select ZLIB_INFLATE
1732 select ZLIB_DEFLATE
1733 help
1734 This is the Deflate algorithm (RFC1951), specified for use in
1735 IPSec with the IPCOMP protocol (RFC3173, RFC2394).
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001736
Linus Torvalds1da177e2005-04-16 15:20:36 -07001737 You will most probably want this if using IPSec.
1738
Zoltan Sogor0b77abb2007-12-07 16:53:23 +08001739config CRYPTO_LZO
1740 tristate "LZO compression algorithm"
1741 select CRYPTO_ALGAPI
Giovanni Cabidduac9d2c42016-10-21 13:19:49 +01001742 select CRYPTO_ACOMP2
Zoltan Sogor0b77abb2007-12-07 16:53:23 +08001743 select LZO_COMPRESS
1744 select LZO_DECOMPRESS
1745 help
1746 This is the LZO algorithm.
1747
Seth Jennings35a1fc12012-07-19 09:42:41 -05001748config CRYPTO_842
1749 tristate "842 compression algorithm"
Dan Streetman2062c5b2015-05-07 13:49:15 -04001750 select CRYPTO_ALGAPI
Giovanni Cabiddu6a8de3a2016-10-21 13:19:52 +01001751 select CRYPTO_ACOMP2
Dan Streetman2062c5b2015-05-07 13:49:15 -04001752 select 842_COMPRESS
1753 select 842_DECOMPRESS
Seth Jennings35a1fc12012-07-19 09:42:41 -05001754 help
1755 This is the 842 algorithm.
1756
Chanho Min0ea85302013-07-08 16:01:51 -07001757config CRYPTO_LZ4
1758 tristate "LZ4 compression algorithm"
1759 select CRYPTO_ALGAPI
Giovanni Cabiddu8cd93302016-10-21 13:19:50 +01001760 select CRYPTO_ACOMP2
Chanho Min0ea85302013-07-08 16:01:51 -07001761 select LZ4_COMPRESS
1762 select LZ4_DECOMPRESS
1763 help
1764 This is the LZ4 algorithm.
1765
1766config CRYPTO_LZ4HC
1767 tristate "LZ4HC compression algorithm"
1768 select CRYPTO_ALGAPI
Giovanni Cabiddu91d53d92016-10-21 13:19:51 +01001769 select CRYPTO_ACOMP2
Chanho Min0ea85302013-07-08 16:01:51 -07001770 select LZ4HC_COMPRESS
1771 select LZ4_DECOMPRESS
1772 help
1773 This is the LZ4 high compression mode algorithm.
1774
Nick Terrelld28fc3d2018-03-30 12:14:53 -07001775config CRYPTO_ZSTD
1776 tristate "Zstd compression algorithm"
1777 select CRYPTO_ALGAPI
1778 select CRYPTO_ACOMP2
1779 select ZSTD_COMPRESS
1780 select ZSTD_DECOMPRESS
1781 help
1782 This is the zstd algorithm.
1783
Neil Horman17f0f4a2008-08-14 22:15:52 +10001784comment "Random Number Generation"
1785
1786config CRYPTO_ANSI_CPRNG
1787 tristate "Pseudo Random Number Generation for Cryptographic modules"
1788 select CRYPTO_AES
1789 select CRYPTO_RNG
Neil Horman17f0f4a2008-08-14 22:15:52 +10001790 help
1791 This option enables the generic pseudo random number generator
1792 for cryptographic modules. Uses the Algorithm specified in
Jiri Kosina7dd607e2010-01-27 01:00:10 +01001793 ANSI X9.31 A.2.4. Note that this option must be enabled if
1794 CRYPTO_FIPS is selected
Neil Horman17f0f4a2008-08-14 22:15:52 +10001795
Herbert Xuf2c89a12014-07-04 22:15:08 +08001796menuconfig CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001797 tristate "NIST SP800-90A DRBG"
Stephan Mueller419090c2014-05-31 17:22:31 +02001798 help
1799 NIST SP800-90A compliant DRBG. In the following submenu, one or
1800 more of the DRBG types must be selected.
1801
Herbert Xuf2c89a12014-07-04 22:15:08 +08001802if CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001803
1804config CRYPTO_DRBG_HMAC
Herbert Xu401e4232015-06-03 14:49:31 +08001805 bool
Stephan Mueller419090c2014-05-31 17:22:31 +02001806 default y
Stephan Mueller419090c2014-05-31 17:22:31 +02001807 select CRYPTO_HMAC
Herbert Xu826775b2015-06-11 08:55:10 +08001808 select CRYPTO_SHA256
Stephan Mueller419090c2014-05-31 17:22:31 +02001809
1810config CRYPTO_DRBG_HASH
1811 bool "Enable Hash DRBG"
Herbert Xu826775b2015-06-11 08:55:10 +08001812 select CRYPTO_SHA256
Stephan Mueller419090c2014-05-31 17:22:31 +02001813 help
1814 Enable the Hash DRBG variant as defined in NIST SP800-90A.
1815
1816config CRYPTO_DRBG_CTR
1817 bool "Enable CTR DRBG"
Stephan Mueller419090c2014-05-31 17:22:31 +02001818 select CRYPTO_AES
Stephan Mueller35591282016-06-14 07:34:13 +02001819 depends on CRYPTO_CTR
Stephan Mueller419090c2014-05-31 17:22:31 +02001820 help
1821 Enable the CTR DRBG variant as defined in NIST SP800-90A.
1822
Herbert Xuf2c89a12014-07-04 22:15:08 +08001823config CRYPTO_DRBG
1824 tristate
Herbert Xu401e4232015-06-03 14:49:31 +08001825 default CRYPTO_DRBG_MENU
Herbert Xuf2c89a12014-07-04 22:15:08 +08001826 select CRYPTO_RNG
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001827 select CRYPTO_JITTERENTROPY
Herbert Xuf2c89a12014-07-04 22:15:08 +08001828
1829endif # if CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001830
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001831config CRYPTO_JITTERENTROPY
1832 tristate "Jitterentropy Non-Deterministic Random Number Generator"
Arnd Bergmann2f313e02016-01-26 14:47:10 +01001833 select CRYPTO_RNG
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001834 help
1835 The Jitterentropy RNG is a noise that is intended
1836 to provide seed to another RNG. The RNG does not
1837 perform any cryptographic whitening of the generated
1838 random numbers. This Jitterentropy RNG registers with
1839 the kernel crypto API and can be used by any caller.
1840
Herbert Xu03c8efc2010-10-19 21:12:39 +08001841config CRYPTO_USER_API
1842 tristate
1843
Herbert Xufe869cd2010-10-19 21:23:00 +08001844config CRYPTO_USER_API_HASH
1845 tristate "User-space interface for hash algorithms"
Herbert Xu74517082010-11-29 22:56:03 +08001846 depends on NET
Herbert Xufe869cd2010-10-19 21:23:00 +08001847 select CRYPTO_HASH
1848 select CRYPTO_USER_API
1849 help
1850 This option enables the user-spaces interface for hash
1851 algorithms.
1852
Herbert Xu8ff59092010-10-19 21:31:55 +08001853config CRYPTO_USER_API_SKCIPHER
1854 tristate "User-space interface for symmetric key cipher algorithms"
Herbert Xu74517082010-11-29 22:56:03 +08001855 depends on NET
Herbert Xu8ff59092010-10-19 21:31:55 +08001856 select CRYPTO_BLKCIPHER
1857 select CRYPTO_USER_API
1858 help
1859 This option enables the user-spaces interface for symmetric
1860 key cipher algorithms.
1861
Stephan Mueller2f3755382014-12-25 23:00:39 +01001862config CRYPTO_USER_API_RNG
1863 tristate "User-space interface for random number generator algorithms"
1864 depends on NET
1865 select CRYPTO_RNG
1866 select CRYPTO_USER_API
1867 help
1868 This option enables the user-spaces interface for random
1869 number generator algorithms.
1870
Herbert Xub64a2d92015-05-28 11:30:35 +08001871config CRYPTO_USER_API_AEAD
1872 tristate "User-space interface for AEAD cipher algorithms"
1873 depends on NET
1874 select CRYPTO_AEAD
Stephan Mueller72548b02017-07-30 14:32:58 +02001875 select CRYPTO_BLKCIPHER
1876 select CRYPTO_NULL
Herbert Xub64a2d92015-05-28 11:30:35 +08001877 select CRYPTO_USER_API
1878 help
1879 This option enables the user-spaces interface for AEAD
1880 cipher algorithms.
1881
Corentin Labbecac58182018-09-19 10:10:54 +00001882config CRYPTO_STATS
1883 bool "Crypto usage statistics for User-space"
Corentin Labbea6a31382018-11-29 14:42:17 +00001884 depends on CRYPTO_USER
Corentin Labbecac58182018-09-19 10:10:54 +00001885 help
1886 This option enables the gathering of crypto stats.
1887 This will collect:
1888 - encrypt/decrypt size and numbers of symmeric operations
1889 - compress/decompress size and numbers of compress operations
1890 - size and numbers of hash operations
1891 - encrypt/decrypt/sign/verify numbers for asymmetric operations
1892 - generate/seed numbers for rng operations
1893
Dmitry Kasatkinee089972013-05-06 15:40:01 +03001894config CRYPTO_HASH_INFO
1895 bool
1896
Linus Torvalds1da177e2005-04-16 15:20:36 -07001897source "drivers/crypto/Kconfig"
David Howells964f3b32012-09-13 15:17:21 +01001898source crypto/asymmetric_keys/Kconfig
David Howellscfc411e2015-08-14 15:20:41 +01001899source certs/Kconfig
Linus Torvalds1da177e2005-04-16 15:20:36 -07001900
Herbert Xucce9e062006-08-21 21:08:13 +10001901endif # if CRYPTO