blob: 5350aa9368ecd694f297895394cb7144d95d59dd [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#
Dan Williams685784a2007-07-09 11:56:42 -07003# Generic algorithms support
4#
5config XOR_BLOCKS
6 tristate
7
8#
Dan Williams9bc89cd2007-01-02 11:10:44 -07009# async_tx api: hardware offloaded memory transfer/transform support
10#
11source "crypto/async_tx/Kconfig"
12
13#
Linus Torvalds1da177e2005-04-16 15:20:36 -070014# Cryptographic API Configuration
15#
Jan Engelhardt2e290f42007-05-18 15:11:01 +100016menuconfig CRYPTO
Sebastian Siewiorc3715cb92008-03-30 16:36:09 +080017 tristate "Cryptographic API"
Linus Torvalds1da177e2005-04-16 15:20:36 -070018 help
19 This option provides the core Cryptographic API.
20
Herbert Xucce9e062006-08-21 21:08:13 +100021if CRYPTO
22
Sebastian Siewior584fffc2008-04-05 21:04:48 +080023comment "Crypto core or helper"
24
Neil Hormanccb778e2008-08-05 14:13:08 +080025config CRYPTO_FIPS
26 bool "FIPS 200 compliance"
Herbert Xuf2c89a12014-07-04 22:15:08 +080027 depends on (CRYPTO_ANSI_CPRNG || CRYPTO_DRBG) && !CRYPTO_MANAGER_DISABLE_TESTS
Alec Ari1f696092016-10-04 19:34:30 -030028 depends on (MODULE_SIG || !MODULES)
Neil Hormanccb778e2008-08-05 14:13:08 +080029 help
Geert Uytterhoevend99324c2019-03-20 11:41:03 +010030 This option enables the fips boot option which is
31 required if you want the system to operate in a FIPS 200
Neil Hormanccb778e2008-08-05 14:13:08 +080032 certification. You should say no unless you know what
Chuck Ebberte84c5482010-09-03 19:17:49 +080033 this is.
Neil Hormanccb778e2008-08-05 14:13:08 +080034
Herbert Xucce9e062006-08-21 21:08:13 +100035config CRYPTO_ALGAPI
36 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110037 select CRYPTO_ALGAPI2
Herbert Xucce9e062006-08-21 21:08:13 +100038 help
39 This option provides the API for cryptographic algorithms.
40
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110041config CRYPTO_ALGAPI2
42 tristate
43
Herbert Xu1ae97822007-08-30 15:36:14 +080044config CRYPTO_AEAD
45 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110046 select CRYPTO_AEAD2
Herbert Xu1ae97822007-08-30 15:36:14 +080047 select CRYPTO_ALGAPI
48
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110049config CRYPTO_AEAD2
50 tristate
51 select CRYPTO_ALGAPI2
Herbert Xu149a3972015-08-13 17:28:58 +080052 select CRYPTO_NULL2
53 select CRYPTO_RNG2
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110054
Herbert Xu5cde0af2006-08-22 00:07:53 +100055config CRYPTO_BLKCIPHER
56 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110057 select CRYPTO_BLKCIPHER2
Herbert Xu5cde0af2006-08-22 00:07:53 +100058 select CRYPTO_ALGAPI
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110059
60config CRYPTO_BLKCIPHER2
61 tristate
62 select CRYPTO_ALGAPI2
63 select CRYPTO_RNG2
Huang Ying0a2e8212009-02-19 14:44:02 +080064 select CRYPTO_WORKQUEUE
Herbert Xu5cde0af2006-08-22 00:07:53 +100065
Herbert Xu055bcee2006-08-19 22:24:23 +100066config CRYPTO_HASH
67 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110068 select CRYPTO_HASH2
Herbert Xu055bcee2006-08-19 22:24:23 +100069 select CRYPTO_ALGAPI
70
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110071config CRYPTO_HASH2
72 tristate
73 select CRYPTO_ALGAPI2
74
Neil Horman17f0f4a2008-08-14 22:15:52 +100075config CRYPTO_RNG
76 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110077 select CRYPTO_RNG2
Neil Horman17f0f4a2008-08-14 22:15:52 +100078 select CRYPTO_ALGAPI
79
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110080config CRYPTO_RNG2
81 tristate
82 select CRYPTO_ALGAPI2
83
Herbert Xu401e4232015-06-03 14:49:31 +080084config CRYPTO_RNG_DEFAULT
85 tristate
86 select CRYPTO_DRBG_MENU
87
Tadeusz Struk3c339ab2015-06-16 10:30:55 -070088config CRYPTO_AKCIPHER2
89 tristate
90 select CRYPTO_ALGAPI2
91
92config CRYPTO_AKCIPHER
93 tristate
94 select CRYPTO_AKCIPHER2
95 select CRYPTO_ALGAPI
96
Salvatore Benedetto4e5f2c42016-06-22 17:49:13 +010097config CRYPTO_KPP2
98 tristate
99 select CRYPTO_ALGAPI2
100
101config CRYPTO_KPP
102 tristate
103 select CRYPTO_ALGAPI
104 select CRYPTO_KPP2
105
Giovanni Cabiddu2ebda742016-10-21 13:19:47 +0100106config CRYPTO_ACOMP2
107 tristate
108 select CRYPTO_ALGAPI2
Bart Van Assche8cd579d2018-01-05 08:26:47 -0800109 select SGL_ALLOC
Giovanni Cabiddu2ebda742016-10-21 13:19:47 +0100110
111config CRYPTO_ACOMP
112 tristate
113 select CRYPTO_ALGAPI
114 select CRYPTO_ACOMP2
115
Herbert Xu2b8c19d2006-09-21 11:31:44 +1000116config CRYPTO_MANAGER
117 tristate "Cryptographic algorithm manager"
Herbert Xu6a0fcbb2008-12-10 23:29:44 +1100118 select CRYPTO_MANAGER2
Herbert Xu2b8c19d2006-09-21 11:31:44 +1000119 help
120 Create default cryptographic template instantiations such as
121 cbc(aes).
122
Herbert Xu6a0fcbb2008-12-10 23:29:44 +1100123config CRYPTO_MANAGER2
124 def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y)
125 select CRYPTO_AEAD2
126 select CRYPTO_HASH2
127 select CRYPTO_BLKCIPHER2
Tadeusz Struk946cc462015-06-16 10:31:06 -0700128 select CRYPTO_AKCIPHER2
Salvatore Benedetto4e5f2c42016-06-22 17:49:13 +0100129 select CRYPTO_KPP2
Giovanni Cabiddu2ebda742016-10-21 13:19:47 +0100130 select CRYPTO_ACOMP2
Herbert Xu6a0fcbb2008-12-10 23:29:44 +1100131
Steffen Klasserta38f7902011-09-27 07:23:50 +0200132config CRYPTO_USER
133 tristate "Userspace cryptographic algorithm configuration"
Herbert Xu5db017a2011-11-01 12:12:43 +1100134 depends on NET
Steffen Klasserta38f7902011-09-27 07:23:50 +0200135 select CRYPTO_MANAGER
136 help
Valdis.Kletnieks@vt.edud19978f2011-11-09 01:29:20 -0500137 Userspace configuration for cryptographic instantiations such as
Steffen Klasserta38f7902011-09-27 07:23:50 +0200138 cbc(aes).
139
Eric Biggers929d34c2019-05-20 09:48:29 -0700140if CRYPTO_MANAGER2
141
Herbert Xu326a6342010-08-06 09:40:28 +0800142config CRYPTO_MANAGER_DISABLE_TESTS
143 bool "Disable run-time self tests"
Herbert Xu00ca28a2010-08-06 10:34:00 +0800144 default y
Alexander Shishkin0b767f92010-06-03 20:53:43 +1000145 help
Herbert Xu326a6342010-08-06 09:40:28 +0800146 Disable run-time self tests that normally take place at
147 algorithm registration.
Alexander Shishkin0b767f92010-06-03 20:53:43 +1000148
Eric Biggers5b2706a2019-01-31 23:51:44 -0800149config CRYPTO_MANAGER_EXTRA_TESTS
150 bool "Enable extra run-time crypto self tests"
151 depends on DEBUG_KERNEL && !CRYPTO_MANAGER_DISABLE_TESTS
152 help
153 Enable extra run-time self tests of registered crypto algorithms,
154 including randomized fuzz tests.
155
156 This is intended for developer use only, as these tests take much
157 longer to run than the normal self tests.
158
Eric Biggers929d34c2019-05-20 09:48:29 -0700159endif # if CRYPTO_MANAGER2
160
Rik Snelc494e072006-11-29 18:59:44 +1100161config CRYPTO_GF128MUL
Eric Biggerse590e132019-05-20 09:53:43 -0700162 tristate
Rik Snelc494e072006-11-29 18:59:44 +1100163
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800164config CRYPTO_NULL
165 tristate "Null algorithms"
Herbert Xu149a3972015-08-13 17:28:58 +0800166 select CRYPTO_NULL2
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800167 help
168 These are 'Null' algorithms, used by IPsec, which do nothing.
169
Herbert Xu149a3972015-08-13 17:28:58 +0800170config CRYPTO_NULL2
Herbert Xudd43c4e2015-08-17 20:39:40 +0800171 tristate
Herbert Xu149a3972015-08-13 17:28:58 +0800172 select CRYPTO_ALGAPI2
173 select CRYPTO_BLKCIPHER2
174 select CRYPTO_HASH2
175
Steffen Klassert5068c7a2010-01-07 15:57:19 +1100176config CRYPTO_PCRYPT
Kees Cook3b4afaf2012-10-02 11:16:49 -0700177 tristate "Parallel crypto engine"
178 depends on SMP
Steffen Klassert5068c7a2010-01-07 15:57:19 +1100179 select PADATA
180 select CRYPTO_MANAGER
181 select CRYPTO_AEAD
182 help
183 This converts an arbitrary crypto algorithm into a parallel
184 algorithm that executes in kernel threads.
185
Huang Ying25c38d32009-02-19 14:33:40 +0800186config CRYPTO_WORKQUEUE
187 tristate
188
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800189config CRYPTO_CRYPTD
190 tristate "Software async crypto daemon"
Herbert Xudb131ef2006-09-21 11:44:08 +1000191 select CRYPTO_BLKCIPHER
Loc Hob8a28252008-05-14 21:23:00 +0800192 select CRYPTO_HASH
Herbert Xu43518402006-10-16 21:28:58 +1000193 select CRYPTO_MANAGER
Huang Ying254eff72009-02-19 14:42:19 +0800194 select CRYPTO_WORKQUEUE
Herbert Xudb131ef2006-09-21 11:44:08 +1000195 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800196 This is a generic software asynchronous crypto daemon that
197 converts an arbitrary synchronous software crypto algorithm
198 into an asynchronous algorithm that executes in a kernel thread.
199
200config CRYPTO_AUTHENC
201 tristate "Authenc support"
202 select CRYPTO_AEAD
203 select CRYPTO_BLKCIPHER
204 select CRYPTO_MANAGER
205 select CRYPTO_HASH
Herbert Xue94c6a72015-08-04 21:23:14 +0800206 select CRYPTO_NULL
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800207 help
208 Authenc: Combined mode wrapper for IPsec.
209 This is required for IPSec.
210
211config CRYPTO_TEST
212 tristate "Testing module"
213 depends on m
Herbert Xuda7f0332008-07-31 17:08:25 +0800214 select CRYPTO_MANAGER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800215 help
216 Quick & dirty crypto test module.
217
Herbert Xu266d0512016-11-22 20:08:25 +0800218config CRYPTO_SIMD
219 tristate
220 select CRYPTO_CRYPTD
221
Jussi Kivilinna596d8752012-06-18 14:07:19 +0300222config CRYPTO_GLUE_HELPER_X86
223 tristate
224 depends on X86
Herbert Xu065ce322016-11-22 20:08:29 +0800225 select CRYPTO_BLKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +0300226
Baolin Wang735d37b2016-01-26 20:25:39 +0800227config CRYPTO_ENGINE
228 tristate
229
Vitaly Chikunov3d6228a2019-04-11 18:51:18 +0300230comment "Public-key cryptography"
231
232config CRYPTO_RSA
233 tristate "RSA algorithm"
234 select CRYPTO_AKCIPHER
235 select CRYPTO_MANAGER
236 select MPILIB
237 select ASN1
238 help
239 Generic implementation of the RSA public key algorithm.
240
241config CRYPTO_DH
242 tristate "Diffie-Hellman algorithm"
243 select CRYPTO_KPP
244 select MPILIB
245 help
246 Generic implementation of the Diffie-Hellman algorithm.
247
Vitaly Chikunov4a2289d2019-04-11 18:51:19 +0300248config CRYPTO_ECC
249 tristate
250
Vitaly Chikunov3d6228a2019-04-11 18:51:18 +0300251config CRYPTO_ECDH
252 tristate "ECDH algorithm"
Vitaly Chikunov4a2289d2019-04-11 18:51:19 +0300253 select CRYPTO_ECC
Vitaly Chikunov3d6228a2019-04-11 18:51:18 +0300254 select CRYPTO_KPP
255 select CRYPTO_RNG_DEFAULT
256 help
257 Generic implementation of the ECDH algorithm
258
Vitaly Chikunov0d7a7862019-04-11 18:51:20 +0300259config CRYPTO_ECRDSA
260 tristate "EC-RDSA (GOST 34.10) algorithm"
261 select CRYPTO_ECC
262 select CRYPTO_AKCIPHER
263 select CRYPTO_STREEBOG
Vitaly Chikunov10366332019-04-24 04:32:40 +0300264 select OID_REGISTRY
265 select ASN1
Vitaly Chikunov0d7a7862019-04-11 18:51:20 +0300266 help
267 Elliptic Curve Russian Digital Signature Algorithm (GOST R 34.10-2012,
268 RFC 7091, ISO/IEC 14888-3:2018) is one of the Russian cryptographic
269 standard algorithms (called GOST algorithms). Only signature verification
270 is implemented.
271
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800272comment "Authenticated Encryption with Associated Data"
273
274config CRYPTO_CCM
275 tristate "CCM support"
276 select CRYPTO_CTR
Ard Biesheuvelf15f05b2017-02-03 14:49:36 +0000277 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800278 select CRYPTO_AEAD
Eric Biggersc8a33152019-05-20 09:49:46 -0700279 select CRYPTO_MANAGER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800280 help
281 Support for Counter with CBC MAC. Required for IPsec.
282
283config CRYPTO_GCM
284 tristate "GCM/GMAC support"
285 select CRYPTO_CTR
286 select CRYPTO_AEAD
Huang Ying9382d972009-08-06 15:34:26 +1000287 select CRYPTO_GHASH
Jussi Kivilinna9489667d2013-04-07 16:43:41 +0300288 select CRYPTO_NULL
Eric Biggersc8a33152019-05-20 09:49:46 -0700289 select CRYPTO_MANAGER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800290 help
291 Support for Galois/Counter Mode (GCM) and Galois Message
292 Authentication Code (GMAC). Required for IPSec.
293
Martin Willi71ebc4d2015-06-01 13:44:00 +0200294config CRYPTO_CHACHA20POLY1305
295 tristate "ChaCha20-Poly1305 AEAD support"
296 select CRYPTO_CHACHA20
297 select CRYPTO_POLY1305
298 select CRYPTO_AEAD
Eric Biggersc8a33152019-05-20 09:49:46 -0700299 select CRYPTO_MANAGER
Martin Willi71ebc4d2015-06-01 13:44:00 +0200300 help
301 ChaCha20-Poly1305 AEAD support, RFC7539.
302
303 Support for the AEAD wrapper using the ChaCha20 stream cipher combined
304 with the Poly1305 authenticator. It is defined in RFC7539 for use in
305 IETF protocols.
306
Ondrej Mosnacekf606a882018-05-11 14:12:49 +0200307config CRYPTO_AEGIS128
308 tristate "AEGIS-128 AEAD algorithm"
309 select CRYPTO_AEAD
310 select CRYPTO_AES # for AES S-box tables
311 help
312 Support for the AEGIS-128 dedicated AEAD algorithm.
313
314config CRYPTO_AEGIS128L
315 tristate "AEGIS-128L AEAD algorithm"
316 select CRYPTO_AEAD
317 select CRYPTO_AES # for AES S-box tables
318 help
319 Support for the AEGIS-128L dedicated AEAD algorithm.
320
321config CRYPTO_AEGIS256
322 tristate "AEGIS-256 AEAD algorithm"
323 select CRYPTO_AEAD
324 select CRYPTO_AES # for AES S-box tables
325 help
326 Support for the AEGIS-256 dedicated AEAD algorithm.
327
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200328config CRYPTO_AEGIS128_AESNI_SSE2
329 tristate "AEGIS-128 AEAD algorithm (x86_64 AESNI+SSE2 implementation)"
330 depends on X86 && 64BIT
331 select CRYPTO_AEAD
Eric Biggersde272ca2019-03-10 12:00:53 -0700332 select CRYPTO_SIMD
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200333 help
Ondrej Mosnacek4e5180e2019-03-15 08:47:25 +0100334 AESNI+SSE2 implementation of the AEGIS-128 dedicated AEAD algorithm.
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200335
336config CRYPTO_AEGIS128L_AESNI_SSE2
337 tristate "AEGIS-128L AEAD algorithm (x86_64 AESNI+SSE2 implementation)"
338 depends on X86 && 64BIT
339 select CRYPTO_AEAD
Eric Biggersd6281322019-03-10 12:00:54 -0700340 select CRYPTO_SIMD
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200341 help
Ondrej Mosnacek4e5180e2019-03-15 08:47:25 +0100342 AESNI+SSE2 implementation of the AEGIS-128L dedicated AEAD algorithm.
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200343
344config CRYPTO_AEGIS256_AESNI_SSE2
345 tristate "AEGIS-256 AEAD algorithm (x86_64 AESNI+SSE2 implementation)"
346 depends on X86 && 64BIT
347 select CRYPTO_AEAD
Eric Biggersb6708c22019-03-10 12:00:55 -0700348 select CRYPTO_SIMD
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200349 help
Ondrej Mosnacek4e5180e2019-03-15 08:47:25 +0100350 AESNI+SSE2 implementation of the AEGIS-256 dedicated AEAD algorithm.
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200351
Ondrej Mosnacek396be412018-05-11 14:19:09 +0200352config CRYPTO_MORUS640
353 tristate "MORUS-640 AEAD algorithm"
354 select CRYPTO_AEAD
355 help
356 Support for the MORUS-640 dedicated AEAD algorithm.
357
Ondrej Mosnacek56e8e572018-05-11 14:19:11 +0200358config CRYPTO_MORUS640_GLUE
Ondrej Mosnacek2808f172018-05-21 21:41:51 +0200359 tristate
360 depends on X86
Ondrej Mosnacek56e8e572018-05-11 14:19:11 +0200361 select CRYPTO_AEAD
Eric Biggers47730952019-03-10 12:00:56 -0700362 select CRYPTO_SIMD
Ondrej Mosnacek56e8e572018-05-11 14:19:11 +0200363 help
364 Common glue for SIMD optimizations of the MORUS-640 dedicated AEAD
365 algorithm.
366
Ondrej Mosnacek6ecc9d92018-05-11 14:19:12 +0200367config CRYPTO_MORUS640_SSE2
368 tristate "MORUS-640 AEAD algorithm (x86_64 SSE2 implementation)"
369 depends on X86 && 64BIT
370 select CRYPTO_AEAD
371 select CRYPTO_MORUS640_GLUE
372 help
373 SSE2 implementation of the MORUS-640 dedicated AEAD algorithm.
374
Ondrej Mosnacek396be412018-05-11 14:19:09 +0200375config CRYPTO_MORUS1280
376 tristate "MORUS-1280 AEAD algorithm"
377 select CRYPTO_AEAD
378 help
379 Support for the MORUS-1280 dedicated AEAD algorithm.
380
Ondrej Mosnacek56e8e572018-05-11 14:19:11 +0200381config CRYPTO_MORUS1280_GLUE
Ondrej Mosnacek2808f172018-05-21 21:41:51 +0200382 tristate
383 depends on X86
Ondrej Mosnacek56e8e572018-05-11 14:19:11 +0200384 select CRYPTO_AEAD
Eric Biggerse151a8d2019-03-10 12:00:57 -0700385 select CRYPTO_SIMD
Ondrej Mosnacek56e8e572018-05-11 14:19:11 +0200386 help
387 Common glue for SIMD optimizations of the MORUS-1280 dedicated AEAD
388 algorithm.
389
Ondrej Mosnacek6ecc9d92018-05-11 14:19:12 +0200390config CRYPTO_MORUS1280_SSE2
391 tristate "MORUS-1280 AEAD algorithm (x86_64 SSE2 implementation)"
392 depends on X86 && 64BIT
393 select CRYPTO_AEAD
394 select CRYPTO_MORUS1280_GLUE
395 help
396 SSE2 optimizedimplementation of the MORUS-1280 dedicated AEAD
397 algorithm.
398
399config CRYPTO_MORUS1280_AVX2
400 tristate "MORUS-1280 AEAD algorithm (x86_64 AVX2 implementation)"
401 depends on X86 && 64BIT
402 select CRYPTO_AEAD
403 select CRYPTO_MORUS1280_GLUE
404 help
405 AVX2 optimized implementation of the MORUS-1280 dedicated AEAD
406 algorithm.
407
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800408config CRYPTO_SEQIV
409 tristate "Sequence Number IV Generator"
410 select CRYPTO_AEAD
411 select CRYPTO_BLKCIPHER
Herbert Xu856e3f402015-05-21 15:11:13 +0800412 select CRYPTO_NULL
Herbert Xu401e4232015-06-03 14:49:31 +0800413 select CRYPTO_RNG_DEFAULT
Eric Biggersc8a33152019-05-20 09:49:46 -0700414 select CRYPTO_MANAGER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800415 help
416 This IV generator generates an IV based on a sequence number by
417 xoring it with a salt. This algorithm is mainly useful for CTR
418
Herbert Xua10f5542015-05-21 15:11:15 +0800419config CRYPTO_ECHAINIV
420 tristate "Encrypted Chain IV Generator"
421 select CRYPTO_AEAD
422 select CRYPTO_NULL
Herbert Xu401e4232015-06-03 14:49:31 +0800423 select CRYPTO_RNG_DEFAULT
Eric Biggersc8a33152019-05-20 09:49:46 -0700424 select CRYPTO_MANAGER
Herbert Xua10f5542015-05-21 15:11:15 +0800425 help
426 This IV generator generates an IV based on the encryption of
427 a sequence number xored with a salt. This is the default
428 algorithm for CBC.
429
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800430comment "Block modes"
Herbert Xudb131ef2006-09-21 11:44:08 +1000431
432config CRYPTO_CBC
433 tristate "CBC support"
434 select CRYPTO_BLKCIPHER
Herbert Xu43518402006-10-16 21:28:58 +1000435 select CRYPTO_MANAGER
Herbert Xudb131ef2006-09-21 11:44:08 +1000436 help
437 CBC: Cipher Block Chaining mode
438 This block cipher algorithm is required for IPSec.
439
James Bottomleya7d85e02018-03-01 14:36:17 -0800440config CRYPTO_CFB
441 tristate "CFB support"
442 select CRYPTO_BLKCIPHER
443 select CRYPTO_MANAGER
444 help
445 CFB: Cipher FeedBack mode
446 This block cipher algorithm is required for TPM2 Cryptography.
447
Joy Latten23e353c2007-10-23 08:50:32 +0800448config CRYPTO_CTR
449 tristate "CTR support"
450 select CRYPTO_BLKCIPHER
Herbert Xu0a270322007-11-30 21:38:37 +1100451 select CRYPTO_SEQIV
Joy Latten23e353c2007-10-23 08:50:32 +0800452 select CRYPTO_MANAGER
Joy Latten23e353c2007-10-23 08:50:32 +0800453 help
454 CTR: Counter mode
455 This block cipher algorithm is required for IPSec.
456
Kevin Coffman76cb9522008-03-24 21:26:16 +0800457config CRYPTO_CTS
458 tristate "CTS support"
459 select CRYPTO_BLKCIPHER
Eric Biggersc8a33152019-05-20 09:49:46 -0700460 select CRYPTO_MANAGER
Kevin Coffman76cb9522008-03-24 21:26:16 +0800461 help
462 CTS: Cipher Text Stealing
463 This is the Cipher Text Stealing mode as described by
Gilad Ben-Yossefecd6d5c2018-11-05 12:05:01 +0000464 Section 8 of rfc2040 and referenced by rfc3962
465 (rfc3962 includes errata information in its Appendix A) or
466 CBC-CS3 as defined by NIST in Sp800-38A addendum from Oct 2010.
Kevin Coffman76cb9522008-03-24 21:26:16 +0800467 This mode is required for Kerberos gss mechanism support
468 for AES encryption.
469
Gilad Ben-Yossefecd6d5c2018-11-05 12:05:01 +0000470 See: https://csrc.nist.gov/publications/detail/sp/800-38a/addendum/final
471
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800472config CRYPTO_ECB
473 tristate "ECB support"
Herbert Xu653ebd9c2007-11-27 19:48:27 +0800474 select CRYPTO_BLKCIPHER
Herbert Xu124b53d2007-04-16 20:49:20 +1000475 select CRYPTO_MANAGER
476 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800477 ECB: Electronic CodeBook mode
478 This is the simplest block cipher algorithm. It simply encrypts
479 the input block by block.
Herbert Xu124b53d2007-04-16 20:49:20 +1000480
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800481config CRYPTO_LRW
Jussi Kivilinna2470a2b2011-12-13 12:52:51 +0200482 tristate "LRW support"
David Howells90831632006-12-16 12:13:14 +1100483 select CRYPTO_BLKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800484 select CRYPTO_MANAGER
485 select CRYPTO_GF128MUL
David Howells90831632006-12-16 12:13:14 +1100486 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800487 LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
488 narrow block cipher mode for dm-crypt. Use it with cipher
489 specification string aes-lrw-benbi, the key must be 256, 320 or 384.
490 The first 128, 192 or 256 bits in the key are used for AES and the
491 rest is used to tie each cipher block to its logical position.
David Howells90831632006-12-16 12:13:14 +1100492
Gilad Ben-Yossefe497c512018-09-20 14:18:39 +0100493config CRYPTO_OFB
494 tristate "OFB support"
495 select CRYPTO_BLKCIPHER
496 select CRYPTO_MANAGER
497 help
498 OFB: the Output Feedback mode makes a block cipher into a synchronous
499 stream cipher. It generates keystream blocks, which are then XORed
500 with the plaintext blocks to get the ciphertext. Flipping a bit in the
501 ciphertext produces a flipped bit in the plaintext at the same
502 location. This property allows many error correcting codes to function
503 normally even when applied before encryption.
504
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800505config CRYPTO_PCBC
506 tristate "PCBC support"
507 select CRYPTO_BLKCIPHER
508 select CRYPTO_MANAGER
509 help
510 PCBC: Propagating Cipher Block Chaining mode
511 This block cipher algorithm is required for RxRPC.
512
513config CRYPTO_XTS
Jussi Kivilinna5bcf8e62011-12-13 12:52:56 +0200514 tristate "XTS support"
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800515 select CRYPTO_BLKCIPHER
516 select CRYPTO_MANAGER
Milan Broz12cb3a12017-02-23 08:38:26 +0100517 select CRYPTO_ECB
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800518 help
519 XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
520 key size 256, 384 or 512 bits. This implementation currently
521 can't handle a sectorsize which is not a multiple of 16 bytes.
522
Stephan Mueller1c49678e2015-09-21 20:58:56 +0200523config CRYPTO_KEYWRAP
524 tristate "Key wrapping support"
525 select CRYPTO_BLKCIPHER
Eric Biggersc8a33152019-05-20 09:49:46 -0700526 select CRYPTO_MANAGER
Stephan Mueller1c49678e2015-09-21 20:58:56 +0200527 help
528 Support for key wrapping (NIST SP800-38F / RFC3394) without
529 padding.
530
Eric Biggers26609a22018-11-16 17:26:29 -0800531config CRYPTO_NHPOLY1305
532 tristate
533 select CRYPTO_HASH
534 select CRYPTO_POLY1305
535
Eric Biggers012c8232018-12-04 22:20:00 -0800536config CRYPTO_NHPOLY1305_SSE2
537 tristate "NHPoly1305 hash function (x86_64 SSE2 implementation)"
538 depends on X86 && 64BIT
539 select CRYPTO_NHPOLY1305
540 help
541 SSE2 optimized implementation of the hash function used by the
542 Adiantum encryption mode.
543
Eric Biggers0f961f92018-12-04 22:20:01 -0800544config CRYPTO_NHPOLY1305_AVX2
545 tristate "NHPoly1305 hash function (x86_64 AVX2 implementation)"
546 depends on X86 && 64BIT
547 select CRYPTO_NHPOLY1305
548 help
549 AVX2 optimized implementation of the hash function used by the
550 Adiantum encryption mode.
551
Eric Biggers059c2a42018-11-16 17:26:31 -0800552config CRYPTO_ADIANTUM
553 tristate "Adiantum support"
554 select CRYPTO_CHACHA20
555 select CRYPTO_POLY1305
556 select CRYPTO_NHPOLY1305
Eric Biggersc8a33152019-05-20 09:49:46 -0700557 select CRYPTO_MANAGER
Eric Biggers059c2a42018-11-16 17:26:31 -0800558 help
559 Adiantum is a tweakable, length-preserving encryption mode
560 designed for fast and secure disk encryption, especially on
561 CPUs without dedicated crypto instructions. It encrypts
562 each sector using the XChaCha12 stream cipher, two passes of
563 an ε-almost-∆-universal hash function, and an invocation of
564 the AES-256 block cipher on a single 16-byte block. On CPUs
565 without AES instructions, Adiantum is much faster than
566 AES-XTS.
567
568 Adiantum's security is provably reducible to that of its
569 underlying stream and block ciphers, subject to a security
570 bound. Unlike XTS, Adiantum is a true wide-block encryption
571 mode, so it actually provides an even stronger notion of
572 security than XTS, subject to the security bound.
573
574 If unsure, say N.
575
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800576comment "Hash modes"
577
Jussi Kivilinna93b5e862013-04-08 10:48:44 +0300578config CRYPTO_CMAC
579 tristate "CMAC support"
580 select CRYPTO_HASH
581 select CRYPTO_MANAGER
582 help
583 Cipher-based Message Authentication Code (CMAC) specified by
584 The National Institute of Standards and Technology (NIST).
585
586 https://tools.ietf.org/html/rfc4493
587 http://csrc.nist.gov/publications/nistpubs/800-38B/SP_800-38B.pdf
588
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800589config CRYPTO_HMAC
590 tristate "HMAC support"
591 select CRYPTO_HASH
592 select CRYPTO_MANAGER
593 help
594 HMAC: Keyed-Hashing for Message Authentication (RFC2104).
595 This is required for IPSec.
596
597config CRYPTO_XCBC
598 tristate "XCBC support"
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800599 select CRYPTO_HASH
600 select CRYPTO_MANAGER
601 help
602 XCBC: Keyed-Hashing with encryption algorithm
603 http://www.ietf.org/rfc/rfc3566.txt
604 http://csrc.nist.gov/encryption/modes/proposedmodes/
605 xcbc-mac/xcbc-mac-spec.pdf
606
Shane Wangf1939f72009-09-02 20:05:22 +1000607config CRYPTO_VMAC
608 tristate "VMAC support"
Shane Wangf1939f72009-09-02 20:05:22 +1000609 select CRYPTO_HASH
610 select CRYPTO_MANAGER
611 help
612 VMAC is a message authentication algorithm designed for
613 very high speed on 64-bit architectures.
614
615 See also:
616 <http://fastcrypto.org/vmac>
617
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800618comment "Digest"
619
620config CRYPTO_CRC32C
621 tristate "CRC32c CRC algorithm"
Herbert Xu5773a3e2008-07-08 20:54:28 +0800622 select CRYPTO_HASH
Darrick J. Wong6a0962b2012-03-23 15:02:25 -0700623 select CRC32
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800624 help
625 Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
626 by iSCSI for header and data digests and by others.
Herbert Xu69c35ef2008-11-07 15:11:47 +0800627 See Castagnoli93. Module will be crc32c.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800628
Austin Zhang8cb51ba2008-08-07 09:57:03 +0800629config CRYPTO_CRC32C_INTEL
630 tristate "CRC32c INTEL hardware acceleration"
631 depends on X86
632 select CRYPTO_HASH
633 help
634 In Intel processor with SSE4.2 supported, the processor will
635 support CRC32C implementation using hardware accelerated CRC32
636 instruction. This option will create 'crc32c-intel' module,
637 which will enable any routine to use the CRC32 instruction to
638 gain performance compared with software implementation.
639 Module will be crc32c-intel.
640
Jean Delvare7cf31862016-11-22 10:32:44 +0100641config CRYPTO_CRC32C_VPMSUM
Anton Blanchard6dd7a822016-07-01 08:19:45 +1000642 tristate "CRC32c CRC algorithm (powerpc64)"
Michael Ellermanc12abf32016-08-09 08:46:15 +1000643 depends on PPC64 && ALTIVEC
Anton Blanchard6dd7a822016-07-01 08:19:45 +1000644 select CRYPTO_HASH
645 select CRC32
646 help
647 CRC32c algorithm implemented using vector polynomial multiply-sum
648 (vpmsum) instructions, introduced in POWER8. Enable on POWER8
649 and newer processors for improved performance.
650
651
David S. Miller442a7c42012-08-22 20:47:36 -0700652config CRYPTO_CRC32C_SPARC64
653 tristate "CRC32c CRC algorithm (SPARC64)"
654 depends on SPARC64
655 select CRYPTO_HASH
656 select CRC32
657 help
658 CRC32c CRC algorithm implemented using sparc64 crypto instructions,
659 when available.
660
Alexander Boyko78c37d12013-01-10 18:54:59 +0400661config CRYPTO_CRC32
662 tristate "CRC32 CRC algorithm"
663 select CRYPTO_HASH
664 select CRC32
665 help
666 CRC-32-IEEE 802.3 cyclic redundancy-check algorithm.
667 Shash crypto api wrappers to crc32_le function.
668
669config CRYPTO_CRC32_PCLMUL
670 tristate "CRC32 PCLMULQDQ hardware acceleration"
671 depends on X86
672 select CRYPTO_HASH
673 select CRC32
674 help
675 From Intel Westmere and AMD Bulldozer processor with SSE4.2
676 and PCLMULQDQ supported, the processor will support
677 CRC32 PCLMULQDQ implementation using hardware accelerated PCLMULQDQ
hacoaf8cb012018-12-28 10:09:40 +0000678 instruction. This option will create 'crc32-pclmul' module,
Alexander Boyko78c37d12013-01-10 18:54:59 +0400679 which will enable any routine to use the CRC-32-IEEE 802.3 checksum
680 and gain better performance as compared with the table implementation.
681
Marcin Nowakowski4a5dc512018-02-09 22:11:06 +0000682config CRYPTO_CRC32_MIPS
683 tristate "CRC32c and CRC32 CRC algorithm (MIPS)"
684 depends on MIPS_CRC_SUPPORT
685 select CRYPTO_HASH
686 help
687 CRC32c and CRC32 CRC algorithms implemented using mips crypto
688 instructions, when available.
689
690
Herbert Xu684115212013-09-07 12:56:26 +1000691config CRYPTO_CRCT10DIF
692 tristate "CRCT10DIF algorithm"
693 select CRYPTO_HASH
694 help
695 CRC T10 Data Integrity Field computation is being cast as
696 a crypto transform. This allows for faster crc t10 diff
697 transforms to be used if they are available.
698
699config CRYPTO_CRCT10DIF_PCLMUL
700 tristate "CRCT10DIF PCLMULQDQ hardware acceleration"
701 depends on X86 && 64BIT && CRC_T10DIF
702 select CRYPTO_HASH
703 help
704 For x86_64 processors with SSE4.2 and PCLMULQDQ supported,
705 CRC T10 DIF PCLMULQDQ computation can be hardware
706 accelerated PCLMULQDQ instruction. This option will create
hacoaf8cb012018-12-28 10:09:40 +0000707 'crct10dif-pclmul' module, which is faster when computing the
Herbert Xu684115212013-09-07 12:56:26 +1000708 crct10dif checksum as compared with the generic table implementation.
709
Daniel Axtensb01df1c2017-03-15 23:37:36 +1100710config CRYPTO_CRCT10DIF_VPMSUM
711 tristate "CRC32T10DIF powerpc64 hardware acceleration"
712 depends on PPC64 && ALTIVEC && CRC_T10DIF
713 select CRYPTO_HASH
714 help
715 CRC10T10DIF algorithm implemented using vector polynomial
716 multiply-sum (vpmsum) instructions, introduced in POWER8. Enable on
717 POWER8 and newer processors for improved performance.
718
Daniel Axtens146c8682017-03-15 23:37:37 +1100719config CRYPTO_VPMSUM_TESTER
720 tristate "Powerpc64 vpmsum hardware acceleration tester"
721 depends on CRYPTO_CRCT10DIF_VPMSUM && CRYPTO_CRC32C_VPMSUM
722 help
723 Stress test for CRC32c and CRC-T10DIF algorithms implemented with
724 POWER8 vpmsum instructions.
725 Unless you are testing these algorithms, you don't need this.
726
Huang Ying2cdc6892009-08-06 15:32:38 +1000727config CRYPTO_GHASH
728 tristate "GHASH digest algorithm"
Huang Ying2cdc6892009-08-06 15:32:38 +1000729 select CRYPTO_GF128MUL
Arnd Bergmann578c60f2016-01-25 17:51:21 +0100730 select CRYPTO_HASH
Huang Ying2cdc6892009-08-06 15:32:38 +1000731 help
732 GHASH is message digest algorithm for GCM (Galois/Counter Mode).
733
Martin Willif979e012015-06-01 13:43:58 +0200734config CRYPTO_POLY1305
735 tristate "Poly1305 authenticator algorithm"
Arnd Bergmann578c60f2016-01-25 17:51:21 +0100736 select CRYPTO_HASH
Martin Willif979e012015-06-01 13:43:58 +0200737 help
738 Poly1305 authenticator algorithm, RFC7539.
739
740 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
741 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
742 in IETF protocols. This is the portable C implementation of Poly1305.
743
Martin Willic70f4ab2015-07-16 19:14:06 +0200744config CRYPTO_POLY1305_X86_64
Martin Willib1ccc8f2015-07-16 19:14:08 +0200745 tristate "Poly1305 authenticator algorithm (x86_64/SSE2/AVX2)"
Martin Willic70f4ab2015-07-16 19:14:06 +0200746 depends on X86 && 64BIT
747 select CRYPTO_POLY1305
748 help
749 Poly1305 authenticator algorithm, RFC7539.
750
751 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
752 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
753 in IETF protocols. This is the x86_64 assembler implementation using SIMD
754 instructions.
755
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800756config CRYPTO_MD4
757 tristate "MD4 digest algorithm"
Adrian-Ken Rueegsegger808a1762008-12-03 19:55:27 +0800758 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700759 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800760 MD4 message digest algorithm (RFC1320).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700761
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800762config CRYPTO_MD5
763 tristate "MD5 digest algorithm"
Adrian-Ken Rueegsegger14b75ba2008-12-03 19:57:12 +0800764 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700765 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800766 MD5 message digest algorithm (RFC1321).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700767
Aaro Koskinend69e75d2014-12-21 22:54:02 +0200768config CRYPTO_MD5_OCTEON
769 tristate "MD5 digest algorithm (OCTEON)"
770 depends on CPU_CAVIUM_OCTEON
771 select CRYPTO_MD5
772 select CRYPTO_HASH
773 help
774 MD5 message digest algorithm (RFC1321) implemented
775 using OCTEON crypto instructions, when available.
776
Markus Stockhausene8e59952015-03-01 19:30:46 +0100777config CRYPTO_MD5_PPC
778 tristate "MD5 digest algorithm (PPC)"
779 depends on PPC
780 select CRYPTO_HASH
781 help
782 MD5 message digest algorithm (RFC1321) implemented
783 in PPC assembler.
784
David S. Millerfa4dfed2012-08-19 21:51:26 -0700785config CRYPTO_MD5_SPARC64
786 tristate "MD5 digest algorithm (SPARC64)"
787 depends on SPARC64
788 select CRYPTO_MD5
789 select CRYPTO_HASH
790 help
791 MD5 message digest algorithm (RFC1321) implemented
792 using sparc64 crypto instructions, when available.
793
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800794config CRYPTO_MICHAEL_MIC
795 tristate "Michael MIC keyed digest algorithm"
Adrian-Ken Rueegsegger19e2bf12008-12-07 19:35:38 +0800796 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800797 help
798 Michael MIC is used for message integrity protection in TKIP
799 (IEEE 802.11i). This algorithm is required for TKIP, but it
800 should not be used for other purposes because of the weakness
801 of the algorithm.
802
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800803config CRYPTO_RMD128
Adrian Bunkb6d44342008-07-16 19:28:00 +0800804 tristate "RIPEMD-128 digest algorithm"
Herbert Xu7c4468b2008-11-08 09:10:40 +0800805 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800806 help
807 RIPEMD-128 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800808
Adrian Bunkb6d44342008-07-16 19:28:00 +0800809 RIPEMD-128 is a 128-bit cryptographic hash function. It should only
Michael Witten35ed4b32011-07-09 04:02:31 +0000810 be used as a secure replacement for RIPEMD. For other use cases,
Adrian Bunkb6d44342008-07-16 19:28:00 +0800811 RIPEMD-160 should be used.
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800812
Adrian Bunkb6d44342008-07-16 19:28:00 +0800813 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800814 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800815
816config CRYPTO_RMD160
Adrian Bunkb6d44342008-07-16 19:28:00 +0800817 tristate "RIPEMD-160 digest algorithm"
Herbert Xue5835fb2008-11-08 09:18:51 +0800818 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800819 help
820 RIPEMD-160 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800821
Adrian Bunkb6d44342008-07-16 19:28:00 +0800822 RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
823 to be used as a secure replacement for the 128-bit hash functions
824 MD4, MD5 and it's predecessor RIPEMD
825 (not to be confused with RIPEMD-128).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800826
Adrian Bunkb6d44342008-07-16 19:28:00 +0800827 It's speed is comparable to SHA1 and there are no known attacks
828 against RIPEMD-160.
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800829
Adrian Bunkb6d44342008-07-16 19:28:00 +0800830 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800831 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800832
833config CRYPTO_RMD256
Adrian Bunkb6d44342008-07-16 19:28:00 +0800834 tristate "RIPEMD-256 digest algorithm"
Herbert Xud8a5e2e2008-11-08 09:58:10 +0800835 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800836 help
837 RIPEMD-256 is an optional extension of RIPEMD-128 with a
838 256 bit hash. It is intended for applications that require
839 longer hash-results, without needing a larger security level
840 (than RIPEMD-128).
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800841
Adrian Bunkb6d44342008-07-16 19:28:00 +0800842 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800843 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800844
845config CRYPTO_RMD320
Adrian Bunkb6d44342008-07-16 19:28:00 +0800846 tristate "RIPEMD-320 digest algorithm"
Herbert Xu3b8efb42008-11-08 10:11:09 +0800847 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800848 help
849 RIPEMD-320 is an optional extension of RIPEMD-160 with a
850 320 bit hash. It is intended for applications that require
851 longer hash-results, without needing a larger security level
852 (than RIPEMD-160).
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800853
Adrian Bunkb6d44342008-07-16 19:28:00 +0800854 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800855 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800856
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800857config CRYPTO_SHA1
858 tristate "SHA1 digest algorithm"
Adrian-Ken Rueegsegger54ccb362008-12-02 21:08:20 +0800859 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800860 help
861 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
862
Mathias Krause66be8952011-08-04 20:19:25 +0200863config CRYPTO_SHA1_SSSE3
time38b6b7f2015-09-10 15:27:26 -0700864 tristate "SHA1 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
Mathias Krause66be8952011-08-04 20:19:25 +0200865 depends on X86 && 64BIT
866 select CRYPTO_SHA1
867 select CRYPTO_HASH
868 help
869 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
870 using Supplemental SSE3 (SSSE3) instructions or Advanced Vector
time38b6b7f2015-09-10 15:27:26 -0700871 Extensions (AVX/AVX2) or SHA-NI(SHA Extensions New Instructions),
872 when available.
Mathias Krause66be8952011-08-04 20:19:25 +0200873
Tim Chen8275d1a2013-03-26 13:59:17 -0700874config CRYPTO_SHA256_SSSE3
time38b6b7f2015-09-10 15:27:26 -0700875 tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
Tim Chen8275d1a2013-03-26 13:59:17 -0700876 depends on X86 && 64BIT
877 select CRYPTO_SHA256
878 select CRYPTO_HASH
879 help
880 SHA-256 secure hash standard (DFIPS 180-2) implemented
881 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
882 Extensions version 1 (AVX1), or Advanced Vector Extensions
time38b6b7f2015-09-10 15:27:26 -0700883 version 2 (AVX2) instructions, or SHA-NI (SHA Extensions New
884 Instructions) when available.
Tim Chen8275d1a2013-03-26 13:59:17 -0700885
Tim Chen87de4572013-03-26 14:00:02 -0700886config CRYPTO_SHA512_SSSE3
887 tristate "SHA512 digest algorithm (SSSE3/AVX/AVX2)"
888 depends on X86 && 64BIT
889 select CRYPTO_SHA512
890 select CRYPTO_HASH
891 help
892 SHA-512 secure hash standard (DFIPS 180-2) implemented
893 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
894 Extensions version 1 (AVX1), or Advanced Vector Extensions
895 version 2 (AVX2) instructions, when available.
896
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200897config CRYPTO_SHA1_OCTEON
898 tristate "SHA1 digest algorithm (OCTEON)"
899 depends on CPU_CAVIUM_OCTEON
900 select CRYPTO_SHA1
901 select CRYPTO_HASH
902 help
903 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
904 using OCTEON crypto instructions, when available.
905
David S. Miller4ff28d42012-08-19 15:41:53 -0700906config CRYPTO_SHA1_SPARC64
907 tristate "SHA1 digest algorithm (SPARC64)"
908 depends on SPARC64
909 select CRYPTO_SHA1
910 select CRYPTO_HASH
911 help
912 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
913 using sparc64 crypto instructions, when available.
914
Michael Ellerman323a6bf2012-09-13 23:00:49 +0000915config CRYPTO_SHA1_PPC
916 tristate "SHA1 digest algorithm (powerpc)"
917 depends on PPC
918 help
919 This is the powerpc hardware accelerated implementation of the
920 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
921
Markus Stockhausend9850fc2015-02-24 20:36:50 +0100922config CRYPTO_SHA1_PPC_SPE
923 tristate "SHA1 digest algorithm (PPC SPE)"
924 depends on PPC && SPE
925 help
926 SHA-1 secure hash standard (DFIPS 180-4) implemented
927 using powerpc SPE SIMD instruction set.
928
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800929config CRYPTO_SHA256
930 tristate "SHA224 and SHA256 digest algorithm"
Adrian-Ken Rueegsegger50e109b52008-12-03 19:57:49 +0800931 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800932 help
933 SHA256 secure hash standard (DFIPS 180-2).
934
935 This version of SHA implements a 256 bit hash with 128 bits of
936 security against collision attacks.
937
Adrian Bunkb6d44342008-07-16 19:28:00 +0800938 This code also includes SHA-224, a 224 bit hash with 112 bits
939 of security against collision attacks.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800940
Markus Stockhausen2ecc1e92015-01-30 15:39:34 +0100941config CRYPTO_SHA256_PPC_SPE
942 tristate "SHA224 and SHA256 digest algorithm (PPC SPE)"
943 depends on PPC && SPE
944 select CRYPTO_SHA256
945 select CRYPTO_HASH
946 help
947 SHA224 and SHA256 secure hash standard (DFIPS 180-2)
948 implemented using powerpc SPE SIMD instruction set.
949
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200950config CRYPTO_SHA256_OCTEON
951 tristate "SHA224 and SHA256 digest algorithm (OCTEON)"
952 depends on CPU_CAVIUM_OCTEON
953 select CRYPTO_SHA256
954 select CRYPTO_HASH
955 help
956 SHA-256 secure hash standard (DFIPS 180-2) implemented
957 using OCTEON crypto instructions, when available.
958
David S. Miller86c93b22012-08-19 17:11:37 -0700959config CRYPTO_SHA256_SPARC64
960 tristate "SHA224 and SHA256 digest algorithm (SPARC64)"
961 depends on SPARC64
962 select CRYPTO_SHA256
963 select CRYPTO_HASH
964 help
965 SHA-256 secure hash standard (DFIPS 180-2) implemented
966 using sparc64 crypto instructions, when available.
967
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800968config CRYPTO_SHA512
969 tristate "SHA384 and SHA512 digest algorithms"
Adrian-Ken Rueegseggerbd9d20d2008-12-17 16:49:02 +1100970 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800971 help
972 SHA512 secure hash standard (DFIPS 180-2).
973
974 This version of SHA implements a 512 bit hash with 256 bits of
975 security against collision attacks.
976
977 This code also includes SHA-384, a 384 bit hash with 192 bits
978 of security against collision attacks.
979
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200980config CRYPTO_SHA512_OCTEON
981 tristate "SHA384 and SHA512 digest algorithms (OCTEON)"
982 depends on CPU_CAVIUM_OCTEON
983 select CRYPTO_SHA512
984 select CRYPTO_HASH
985 help
986 SHA-512 secure hash standard (DFIPS 180-2) implemented
987 using OCTEON crypto instructions, when available.
988
David S. Miller775e0c62012-08-19 17:37:56 -0700989config CRYPTO_SHA512_SPARC64
990 tristate "SHA384 and SHA512 digest algorithm (SPARC64)"
991 depends on SPARC64
992 select CRYPTO_SHA512
993 select CRYPTO_HASH
994 help
995 SHA-512 secure hash standard (DFIPS 180-2) implemented
996 using sparc64 crypto instructions, when available.
997
Jeff Garzik53964b92016-06-17 10:30:35 +0530998config CRYPTO_SHA3
999 tristate "SHA3 digest algorithm"
1000 select CRYPTO_HASH
1001 help
1002 SHA-3 secure hash standard (DFIPS 202). It's based on
1003 cryptographic sponge function family called Keccak.
1004
1005 References:
1006 http://keccak.noekeon.org/
1007
Gilad Ben-Yossef4f0fc162017-08-21 13:51:28 +03001008config CRYPTO_SM3
1009 tristate "SM3 digest algorithm"
1010 select CRYPTO_HASH
1011 help
1012 SM3 secure hash function as defined by OSCCA GM/T 0004-2012 SM3).
1013 It is part of the Chinese Commercial Cryptography suite.
1014
1015 References:
1016 http://www.oscca.gov.cn/UpFile/20101222141857786.pdf
1017 https://datatracker.ietf.org/doc/html/draft-shen-sm3-hash
1018
Vitaly Chikunovfe189572018-11-07 00:00:01 +03001019config CRYPTO_STREEBOG
1020 tristate "Streebog Hash Function"
1021 select CRYPTO_HASH
1022 help
1023 Streebog Hash Function (GOST R 34.11-2012, RFC 6986) is one of the Russian
1024 cryptographic standard algorithms (called GOST algorithms).
1025 This setting enables two hash algorithms with 256 and 512 bits output.
1026
1027 References:
1028 https://tc26.ru/upload/iblock/fed/feddbb4d26b685903faa2ba11aea43f6.pdf
1029 https://tools.ietf.org/html/rfc6986
1030
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001031config CRYPTO_TGR192
1032 tristate "Tiger digest algorithms"
Adrian-Ken Rueegseggerf63fbd32008-12-03 19:58:32 +08001033 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001034 help
1035 Tiger hash algorithm 192, 160 and 128-bit hashes
1036
1037 Tiger is a hash function optimized for 64-bit processors while
1038 still having decent performance on 32-bit processors.
1039 Tiger was developed by Ross Anderson and Eli Biham.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001040
1041 See also:
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001042 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
1043
1044config CRYPTO_WP512
1045 tristate "Whirlpool digest algorithms"
Adrian-Ken Rueegsegger49465102008-12-07 19:34:37 +08001046 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001047 help
1048 Whirlpool hash algorithm 512, 384 and 256-bit hashes
1049
1050 Whirlpool-512 is part of the NESSIE cryptographic primitives.
1051 Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
1052
1053 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001054 <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html>
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001055
Huang Ying0e1227d2009-10-19 11:53:06 +09001056config CRYPTO_GHASH_CLMUL_NI_INTEL
1057 tristate "GHASH digest algorithm (CLMUL-NI accelerated)"
Richard Weinberger8af00862011-06-08 20:56:29 +08001058 depends on X86 && 64BIT
Huang Ying0e1227d2009-10-19 11:53:06 +09001059 select CRYPTO_CRYPTD
1060 help
1061 GHASH is message digest algorithm for GCM (Galois/Counter Mode).
1062 The implementation is accelerated by CLMUL-NI of Intel.
1063
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001064comment "Ciphers"
Linus Torvalds1da177e2005-04-16 15:20:36 -07001065
1066config CRYPTO_AES
1067 tristate "AES cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +10001068 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -07001069 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001070 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Linus Torvalds1da177e2005-04-16 15:20:36 -07001071 algorithm.
1072
1073 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001074 both hardware and software across a wide range of computing
1075 environments regardless of its use in feedback or non-feedback
1076 modes. Its key setup time is excellent, and its key agility is
1077 good. Rijndael's very low memory requirements make it very well
1078 suited for restricted-space environments, in which it also
1079 demonstrates excellent performance. Rijndael's operations are
1080 among the easiest to defend against power and timing attacks.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001081
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001082 The AES specifies three key sizes: 128, 192 and 256 bits
Linus Torvalds1da177e2005-04-16 15:20:36 -07001083
1084 See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
1085
Ard Biesheuvelb5e0b032017-02-02 16:37:40 +00001086config CRYPTO_AES_TI
1087 tristate "Fixed time AES cipher"
1088 select CRYPTO_ALGAPI
1089 help
1090 This is a generic implementation of AES that attempts to eliminate
1091 data dependent latencies as much as possible without affecting
1092 performance too much. It is intended for use by the generic CCM
1093 and GCM drivers, and other CTR or CMAC/XCBC based modes that rely
1094 solely on encryption (although decryption is supported as well, but
1095 with a more dramatic performance hit)
1096
1097 Instead of using 16 lookup tables of 1 KB each, (8 for encryption and
1098 8 for decryption), this implementation only uses just two S-boxes of
1099 256 bytes each, and attempts to eliminate data dependent latencies by
1100 prefetching the entire table into the cache at the start of each
Eric Biggers0a6a40c2018-10-17 21:37:58 -07001101 block. Interrupts are also disabled to avoid races where cachelines
1102 are evicted when the CPU is interrupted to do something else.
Ard Biesheuvelb5e0b032017-02-02 16:37:40 +00001103
Linus Torvalds1da177e2005-04-16 15:20:36 -07001104config CRYPTO_AES_586
1105 tristate "AES cipher algorithms (i586)"
Herbert Xucce9e062006-08-21 21:08:13 +10001106 depends on (X86 || UML_X86) && !64BIT
1107 select CRYPTO_ALGAPI
Sebastian Siewior5157dea2007-11-10 19:07:16 +08001108 select CRYPTO_AES
Linus Torvalds1da177e2005-04-16 15:20:36 -07001109 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001110 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Linus Torvalds1da177e2005-04-16 15:20:36 -07001111 algorithm.
1112
1113 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001114 both hardware and software across a wide range of computing
1115 environments regardless of its use in feedback or non-feedback
1116 modes. Its key setup time is excellent, and its key agility is
1117 good. Rijndael's very low memory requirements make it very well
1118 suited for restricted-space environments, in which it also
1119 demonstrates excellent performance. Rijndael's operations are
1120 among the easiest to defend against power and timing attacks.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001121
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001122 The AES specifies three key sizes: 128, 192 and 256 bits
Linus Torvalds1da177e2005-04-16 15:20:36 -07001123
1124 See <http://csrc.nist.gov/encryption/aes/> for more information.
1125
Andreas Steinmetza2a892a2005-07-06 13:55:00 -07001126config CRYPTO_AES_X86_64
1127 tristate "AES cipher algorithms (x86_64)"
Herbert Xucce9e062006-08-21 21:08:13 +10001128 depends on (X86 || UML_X86) && 64BIT
1129 select CRYPTO_ALGAPI
Sebastian Siewior81190b32007-11-08 21:25:04 +08001130 select CRYPTO_AES
Andreas Steinmetza2a892a2005-07-06 13:55:00 -07001131 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001132 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Andreas Steinmetza2a892a2005-07-06 13:55:00 -07001133 algorithm.
1134
1135 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001136 both hardware and software across a wide range of computing
1137 environments regardless of its use in feedback or non-feedback
1138 modes. Its key setup time is excellent, and its key agility is
1139 good. Rijndael's very low memory requirements make it very well
1140 suited for restricted-space environments, in which it also
1141 demonstrates excellent performance. Rijndael's operations are
1142 among the easiest to defend against power and timing attacks.
Andreas Steinmetza2a892a2005-07-06 13:55:00 -07001143
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001144 The AES specifies three key sizes: 128, 192 and 256 bits
Andreas Steinmetza2a892a2005-07-06 13:55:00 -07001145
1146 See <http://csrc.nist.gov/encryption/aes/> for more information.
1147
Huang Ying54b6a1b2009-01-18 16:28:34 +11001148config CRYPTO_AES_NI_INTEL
1149 tristate "AES cipher algorithms (AES-NI)"
Richard Weinberger8af00862011-06-08 20:56:29 +08001150 depends on X86
Herbert Xu85671862016-11-22 20:08:33 +08001151 select CRYPTO_AEAD
Mathias Krause0d258ef2010-11-27 16:34:46 +08001152 select CRYPTO_AES_X86_64 if 64BIT
1153 select CRYPTO_AES_586 if !64BIT
Huang Ying54b6a1b2009-01-18 16:28:34 +11001154 select CRYPTO_ALGAPI
Herbert Xu85671862016-11-22 20:08:33 +08001155 select CRYPTO_BLKCIPHER
Jussi Kivilinna7643a112013-04-10 18:39:20 +03001156 select CRYPTO_GLUE_HELPER_X86 if 64BIT
Herbert Xu85671862016-11-22 20:08:33 +08001157 select CRYPTO_SIMD
Huang Ying54b6a1b2009-01-18 16:28:34 +11001158 help
1159 Use Intel AES-NI instructions for AES algorithm.
1160
1161 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1162 algorithm.
1163
1164 Rijndael appears to be consistently a very good performer in
1165 both hardware and software across a wide range of computing
1166 environments regardless of its use in feedback or non-feedback
1167 modes. Its key setup time is excellent, and its key agility is
1168 good. Rijndael's very low memory requirements make it very well
1169 suited for restricted-space environments, in which it also
1170 demonstrates excellent performance. Rijndael's operations are
1171 among the easiest to defend against power and timing attacks.
1172
1173 The AES specifies three key sizes: 128, 192 and 256 bits
1174
1175 See <http://csrc.nist.gov/encryption/aes/> for more information.
1176
Mathias Krause0d258ef2010-11-27 16:34:46 +08001177 In addition to AES cipher algorithm support, the acceleration
1178 for some popular block cipher mode is supported too, including
Ard Biesheuvel944585a2018-09-24 14:48:16 +02001179 ECB, CBC, LRW, XTS. The 64 bit version has additional
Mathias Krause0d258ef2010-11-27 16:34:46 +08001180 acceleration for CTR.
Huang Ying2cf4ac82009-03-29 15:41:20 +08001181
David S. Miller9bf48522012-08-21 03:58:13 -07001182config CRYPTO_AES_SPARC64
1183 tristate "AES cipher algorithms (SPARC64)"
1184 depends on SPARC64
1185 select CRYPTO_CRYPTD
1186 select CRYPTO_ALGAPI
1187 help
1188 Use SPARC64 crypto opcodes for AES algorithm.
1189
1190 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1191 algorithm.
1192
1193 Rijndael appears to be consistently a very good performer in
1194 both hardware and software across a wide range of computing
1195 environments regardless of its use in feedback or non-feedback
1196 modes. Its key setup time is excellent, and its key agility is
1197 good. Rijndael's very low memory requirements make it very well
1198 suited for restricted-space environments, in which it also
1199 demonstrates excellent performance. Rijndael's operations are
1200 among the easiest to defend against power and timing attacks.
1201
1202 The AES specifies three key sizes: 128, 192 and 256 bits
1203
1204 See <http://csrc.nist.gov/encryption/aes/> for more information.
1205
1206 In addition to AES cipher algorithm support, the acceleration
1207 for some popular block cipher mode is supported too, including
1208 ECB and CBC.
1209
Markus Stockhausen504c6142015-02-22 10:00:10 +01001210config CRYPTO_AES_PPC_SPE
1211 tristate "AES cipher algorithms (PPC SPE)"
1212 depends on PPC && SPE
1213 help
1214 AES cipher algorithms (FIPS-197). Additionally the acceleration
1215 for popular block cipher modes ECB, CBC, CTR and XTS is supported.
1216 This module should only be used for low power (router) devices
1217 without hardware AES acceleration (e.g. caam crypto). It reduces the
1218 size of the AES tables from 16KB to 8KB + 256 bytes and mitigates
1219 timining attacks. Nevertheless it might be not as secure as other
1220 architecture specific assembler implementations that work on 1KB
1221 tables or 256 bytes S-boxes.
1222
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001223config CRYPTO_ANUBIS
1224 tristate "Anubis cipher algorithm"
1225 select CRYPTO_ALGAPI
1226 help
1227 Anubis cipher algorithm.
1228
1229 Anubis is a variable key length cipher which can use keys from
1230 128 bits to 320 bits in length. It was evaluated as a entrant
1231 in the NESSIE competition.
1232
1233 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001234 <https://www.cosic.esat.kuleuven.be/nessie/reports/>
1235 <http://www.larc.usp.br/~pbarreto/AnubisPage.html>
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001236
1237config CRYPTO_ARC4
1238 tristate "ARC4 cipher algorithm"
Sebastian Andrzej Siewiorb9b0f082012-06-26 18:13:46 +02001239 select CRYPTO_BLKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001240 help
1241 ARC4 cipher algorithm.
1242
1243 ARC4 is a stream cipher using keys ranging from 8 bits to 2048
1244 bits in length. This algorithm is required for driver-based
1245 WEP, but it should not be for other purposes because of the
1246 weakness of the algorithm.
1247
1248config CRYPTO_BLOWFISH
1249 tristate "Blowfish cipher algorithm"
1250 select CRYPTO_ALGAPI
Jussi Kivilinna52ba8672011-09-02 01:45:07 +03001251 select CRYPTO_BLOWFISH_COMMON
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001252 help
1253 Blowfish cipher algorithm, by Bruce Schneier.
1254
1255 This is a variable key length cipher which can use keys from 32
1256 bits to 448 bits in length. It's fast, simple and specifically
1257 designed for use on "large microprocessors".
1258
1259 See also:
1260 <http://www.schneier.com/blowfish.html>
1261
Jussi Kivilinna52ba8672011-09-02 01:45:07 +03001262config CRYPTO_BLOWFISH_COMMON
1263 tristate
1264 help
1265 Common parts of the Blowfish cipher algorithm shared by the
1266 generic c and the assembler implementations.
1267
1268 See also:
1269 <http://www.schneier.com/blowfish.html>
1270
Jussi Kivilinna64b94ce2011-09-02 01:45:22 +03001271config CRYPTO_BLOWFISH_X86_64
1272 tristate "Blowfish cipher algorithm (x86_64)"
Al Virof21a7c12012-04-08 20:31:22 -04001273 depends on X86 && 64BIT
Eric Biggersc1679172018-02-19 23:48:16 -08001274 select CRYPTO_BLKCIPHER
Jussi Kivilinna64b94ce2011-09-02 01:45:22 +03001275 select CRYPTO_BLOWFISH_COMMON
1276 help
1277 Blowfish cipher algorithm (x86_64), by Bruce Schneier.
1278
1279 This is a variable key length cipher which can use keys from 32
1280 bits to 448 bits in length. It's fast, simple and specifically
1281 designed for use on "large microprocessors".
1282
1283 See also:
1284 <http://www.schneier.com/blowfish.html>
1285
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001286config CRYPTO_CAMELLIA
1287 tristate "Camellia cipher algorithms"
1288 depends on CRYPTO
1289 select CRYPTO_ALGAPI
1290 help
1291 Camellia cipher algorithms module.
1292
1293 Camellia is a symmetric key block cipher developed jointly
1294 at NTT and Mitsubishi Electric Corporation.
1295
1296 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1297
1298 See also:
1299 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1300
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001301config CRYPTO_CAMELLIA_X86_64
1302 tristate "Camellia cipher algorithm (x86_64)"
Al Virof21a7c12012-04-08 20:31:22 -04001303 depends on X86 && 64BIT
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001304 depends on CRYPTO
Eric Biggers1af6d032018-02-19 23:48:22 -08001305 select CRYPTO_BLKCIPHER
Jussi Kivilinna964263a2012-06-18 14:07:29 +03001306 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001307 help
1308 Camellia cipher algorithm module (x86_64).
1309
1310 Camellia is a symmetric key block cipher developed jointly
1311 at NTT and Mitsubishi Electric Corporation.
1312
1313 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1314
1315 See also:
1316 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1317
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001318config CRYPTO_CAMELLIA_AESNI_AVX_X86_64
1319 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)"
1320 depends on X86 && 64BIT
1321 depends on CRYPTO
Eric Biggers44893bc2018-02-19 23:48:23 -08001322 select CRYPTO_BLKCIPHER
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001323 select CRYPTO_CAMELLIA_X86_64
Eric Biggers44893bc2018-02-19 23:48:23 -08001324 select CRYPTO_GLUE_HELPER_X86
1325 select CRYPTO_SIMD
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001326 select CRYPTO_XTS
1327 help
1328 Camellia cipher algorithm module (x86_64/AES-NI/AVX).
1329
1330 Camellia is a symmetric key block cipher developed jointly
1331 at NTT and Mitsubishi Electric Corporation.
1332
1333 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1334
1335 See also:
1336 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1337
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001338config CRYPTO_CAMELLIA_AESNI_AVX2_X86_64
1339 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX2)"
1340 depends on X86 && 64BIT
1341 depends on CRYPTO
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001342 select CRYPTO_CAMELLIA_AESNI_AVX_X86_64
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001343 help
1344 Camellia cipher algorithm module (x86_64/AES-NI/AVX2).
1345
1346 Camellia is a symmetric key block cipher developed jointly
1347 at NTT and Mitsubishi Electric Corporation.
1348
1349 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1350
1351 See also:
1352 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1353
David S. Miller81658ad2012-08-28 12:05:54 -07001354config CRYPTO_CAMELLIA_SPARC64
1355 tristate "Camellia cipher algorithm (SPARC64)"
1356 depends on SPARC64
1357 depends on CRYPTO
1358 select CRYPTO_ALGAPI
1359 help
1360 Camellia cipher algorithm module (SPARC64).
1361
1362 Camellia is a symmetric key block cipher developed jointly
1363 at NTT and Mitsubishi Electric Corporation.
1364
1365 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1366
1367 See also:
1368 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1369
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001370config CRYPTO_CAST_COMMON
1371 tristate
1372 help
1373 Common parts of the CAST cipher algorithms shared by the
1374 generic c and the assembler implementations.
1375
Linus Torvalds1da177e2005-04-16 15:20:36 -07001376config CRYPTO_CAST5
1377 tristate "CAST5 (CAST-128) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001378 select CRYPTO_ALGAPI
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001379 select CRYPTO_CAST_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -07001380 help
1381 The CAST5 encryption algorithm (synonymous with CAST-128) is
1382 described in RFC2144.
1383
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001384config CRYPTO_CAST5_AVX_X86_64
1385 tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)"
1386 depends on X86 && 64BIT
Eric Biggers1e631832018-02-19 23:48:13 -08001387 select CRYPTO_BLKCIPHER
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001388 select CRYPTO_CAST5
Eric Biggers1e631832018-02-19 23:48:13 -08001389 select CRYPTO_CAST_COMMON
1390 select CRYPTO_SIMD
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001391 help
1392 The CAST5 encryption algorithm (synonymous with CAST-128) is
1393 described in RFC2144.
1394
1395 This module provides the Cast5 cipher algorithm that processes
1396 sixteen blocks parallel using the AVX instruction set.
1397
Linus Torvalds1da177e2005-04-16 15:20:36 -07001398config CRYPTO_CAST6
1399 tristate "CAST6 (CAST-256) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001400 select CRYPTO_ALGAPI
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001401 select CRYPTO_CAST_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -07001402 help
1403 The CAST6 encryption algorithm (synonymous with CAST-256) is
1404 described in RFC2612.
1405
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001406config CRYPTO_CAST6_AVX_X86_64
1407 tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)"
1408 depends on X86 && 64BIT
Eric Biggers4bd96922018-02-19 23:48:15 -08001409 select CRYPTO_BLKCIPHER
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001410 select CRYPTO_CAST6
Eric Biggers4bd96922018-02-19 23:48:15 -08001411 select CRYPTO_CAST_COMMON
1412 select CRYPTO_GLUE_HELPER_X86
1413 select CRYPTO_SIMD
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001414 select CRYPTO_XTS
1415 help
1416 The CAST6 encryption algorithm (synonymous with CAST-256) is
1417 described in RFC2612.
1418
1419 This module provides the Cast6 cipher algorithm that processes
1420 eight blocks parallel using the AVX instruction set.
1421
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001422config CRYPTO_DES
1423 tristate "DES and Triple DES EDE cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +10001424 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -07001425 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001426 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
Linus Torvalds1da177e2005-04-16 15:20:36 -07001427
David S. Millerc5aac2d2012-08-25 22:37:23 -07001428config CRYPTO_DES_SPARC64
1429 tristate "DES and Triple DES EDE cipher algorithms (SPARC64)"
Dave Jones97da37b2012-10-02 17:13:20 -04001430 depends on SPARC64
David S. Millerc5aac2d2012-08-25 22:37:23 -07001431 select CRYPTO_ALGAPI
1432 select CRYPTO_DES
1433 help
1434 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3),
1435 optimized using SPARC64 crypto opcodes.
1436
Jussi Kivilinna6574e6c2014-06-09 20:59:54 +03001437config CRYPTO_DES3_EDE_X86_64
1438 tristate "Triple DES EDE cipher algorithm (x86-64)"
1439 depends on X86 && 64BIT
Eric Biggers09c0f032018-02-19 23:48:17 -08001440 select CRYPTO_BLKCIPHER
Jussi Kivilinna6574e6c2014-06-09 20:59:54 +03001441 select CRYPTO_DES
1442 help
1443 Triple DES EDE (FIPS 46-3) algorithm.
1444
1445 This module provides implementation of the Triple DES EDE cipher
1446 algorithm that is optimized for x86-64 processors. Two versions of
1447 algorithm are provided; regular processing one input block and
1448 one that processes three blocks parallel.
1449
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001450config CRYPTO_FCRYPT
1451 tristate "FCrypt cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001452 select CRYPTO_ALGAPI
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001453 select CRYPTO_BLKCIPHER
Linus Torvalds1da177e2005-04-16 15:20:36 -07001454 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001455 FCrypt algorithm used by RxRPC.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001456
1457config CRYPTO_KHAZAD
1458 tristate "Khazad cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001459 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -07001460 help
1461 Khazad cipher algorithm.
1462
1463 Khazad was a finalist in the initial NESSIE competition. It is
1464 an algorithm optimized for 64-bit processors with good performance
1465 on 32-bit processors. Khazad uses an 128 bit key size.
1466
1467 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001468 <http://www.larc.usp.br/~pbarreto/KhazadPage.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -07001469
Tan Swee Heng2407d602007-11-23 19:45:00 +08001470config CRYPTO_SALSA20
Kees Cook3b4afaf2012-10-02 11:16:49 -07001471 tristate "Salsa20 stream cipher algorithm"
Tan Swee Heng2407d602007-11-23 19:45:00 +08001472 select CRYPTO_BLKCIPHER
1473 help
1474 Salsa20 stream cipher algorithm.
1475
1476 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1477 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1478
1479 The Salsa20 stream cipher algorithm is designed by Daniel J.
1480 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -07001481
Martin Willic08d0e62015-06-01 13:43:56 +02001482config CRYPTO_CHACHA20
Eric Biggersaa762402018-11-16 17:26:22 -08001483 tristate "ChaCha stream cipher algorithms"
Martin Willic08d0e62015-06-01 13:43:56 +02001484 select CRYPTO_BLKCIPHER
1485 help
Eric Biggersaa762402018-11-16 17:26:22 -08001486 The ChaCha20, XChaCha20, and XChaCha12 stream cipher algorithms.
Martin Willic08d0e62015-06-01 13:43:56 +02001487
1488 ChaCha20 is a 256-bit high-speed stream cipher designed by Daniel J.
1489 Bernstein and further specified in RFC7539 for use in IETF protocols.
Eric Biggersde61d7a2018-11-16 17:26:20 -08001490 This is the portable C implementation of ChaCha20. See also:
Martin Willic08d0e62015-06-01 13:43:56 +02001491 <http://cr.yp.to/chacha/chacha-20080128.pdf>
1492
Eric Biggersde61d7a2018-11-16 17:26:20 -08001493 XChaCha20 is the application of the XSalsa20 construction to ChaCha20
1494 rather than to Salsa20. XChaCha20 extends ChaCha20's nonce length
1495 from 64 bits (or 96 bits using the RFC7539 convention) to 192 bits,
1496 while provably retaining ChaCha20's security. See also:
1497 <https://cr.yp.to/snuffle/xsalsa-20081128.pdf>
1498
Eric Biggersaa762402018-11-16 17:26:22 -08001499 XChaCha12 is XChaCha20 reduced to 12 rounds, with correspondingly
1500 reduced security margin but increased performance. It can be needed
1501 in some performance-sensitive scenarios.
1502
Martin Willic9320b62015-07-16 19:14:01 +02001503config CRYPTO_CHACHA20_X86_64
Eric Biggers4af78262018-12-04 22:20:02 -08001504 tristate "ChaCha stream cipher algorithms (x86_64/SSSE3/AVX2/AVX-512VL)"
Martin Willic9320b62015-07-16 19:14:01 +02001505 depends on X86 && 64BIT
1506 select CRYPTO_BLKCIPHER
1507 select CRYPTO_CHACHA20
1508 help
Eric Biggers7a507d62018-12-04 22:20:04 -08001509 SSSE3, AVX2, and AVX-512VL optimized implementations of the ChaCha20,
1510 XChaCha20, and XChaCha12 stream ciphers.
Martin Willic9320b62015-07-16 19:14:01 +02001511
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001512config CRYPTO_SEED
1513 tristate "SEED cipher algorithm"
1514 select CRYPTO_ALGAPI
1515 help
1516 SEED cipher algorithm (RFC4269).
1517
1518 SEED is a 128-bit symmetric key block cipher that has been
1519 developed by KISA (Korea Information Security Agency) as a
1520 national standard encryption algorithm of the Republic of Korea.
1521 It is a 16 round block cipher with the key size of 128 bit.
1522
1523 See also:
1524 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
1525
1526config CRYPTO_SERPENT
1527 tristate "Serpent cipher algorithm"
1528 select CRYPTO_ALGAPI
1529 help
1530 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1531
1532 Keys are allowed to be from 0 to 256 bits in length, in steps
1533 of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
1534 variant of Serpent for compatibility with old kerneli.org code.
1535
1536 See also:
1537 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1538
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001539config CRYPTO_SERPENT_SSE2_X86_64
1540 tristate "Serpent cipher algorithm (x86_64/SSE2)"
1541 depends on X86 && 64BIT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001542 select CRYPTO_BLKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +03001543 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001544 select CRYPTO_SERPENT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001545 select CRYPTO_SIMD
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001546 help
1547 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1548
1549 Keys are allowed to be from 0 to 256 bits in length, in steps
1550 of 8 bits.
1551
Masanari Iida1e6232f2015-04-04 00:20:30 +09001552 This module provides Serpent cipher algorithm that processes eight
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001553 blocks parallel using SSE2 instruction set.
1554
1555 See also:
1556 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1557
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001558config CRYPTO_SERPENT_SSE2_586
1559 tristate "Serpent cipher algorithm (i586/SSE2)"
1560 depends on X86 && !64BIT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001561 select CRYPTO_BLKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +03001562 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001563 select CRYPTO_SERPENT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001564 select CRYPTO_SIMD
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001565 help
1566 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1567
1568 Keys are allowed to be from 0 to 256 bits in length, in steps
1569 of 8 bits.
1570
1571 This module provides Serpent cipher algorithm that processes four
1572 blocks parallel using SSE2 instruction set.
1573
1574 See also:
1575 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1576
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001577config CRYPTO_SERPENT_AVX_X86_64
1578 tristate "Serpent cipher algorithm (x86_64/AVX)"
1579 depends on X86 && 64BIT
Eric Biggerse16bf972018-02-19 23:48:06 -08001580 select CRYPTO_BLKCIPHER
Jussi Kivilinna1d0debb2012-06-18 14:07:24 +03001581 select CRYPTO_GLUE_HELPER_X86
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001582 select CRYPTO_SERPENT
Eric Biggerse16bf972018-02-19 23:48:06 -08001583 select CRYPTO_SIMD
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001584 select CRYPTO_XTS
1585 help
1586 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1587
1588 Keys are allowed to be from 0 to 256 bits in length, in steps
1589 of 8 bits.
1590
1591 This module provides the Serpent cipher algorithm that processes
1592 eight blocks parallel using the AVX instruction set.
1593
1594 See also:
1595 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1596
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001597config CRYPTO_SERPENT_AVX2_X86_64
1598 tristate "Serpent cipher algorithm (x86_64/AVX2)"
1599 depends on X86 && 64BIT
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001600 select CRYPTO_SERPENT_AVX_X86_64
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001601 help
1602 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1603
1604 Keys are allowed to be from 0 to 256 bits in length, in steps
1605 of 8 bits.
1606
1607 This module provides Serpent cipher algorithm that processes 16
1608 blocks parallel using AVX2 instruction set.
1609
1610 See also:
1611 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1612
Gilad Ben-Yossef747c8ce2018-03-06 09:44:42 +00001613config CRYPTO_SM4
1614 tristate "SM4 cipher algorithm"
1615 select CRYPTO_ALGAPI
1616 help
1617 SM4 cipher algorithms (OSCCA GB/T 32907-2016).
1618
1619 SM4 (GBT.32907-2016) is a cryptographic standard issued by the
1620 Organization of State Commercial Administration of China (OSCCA)
1621 as an authorized cryptographic algorithms for the use within China.
1622
1623 SMS4 was originally created for use in protecting wireless
1624 networks, and is mandated in the Chinese National Standard for
1625 Wireless LAN WAPI (Wired Authentication and Privacy Infrastructure)
1626 (GB.15629.11-2003).
1627
1628 The latest SM4 standard (GBT.32907-2016) was proposed by OSCCA and
1629 standardized through TC 260 of the Standardization Administration
1630 of the People's Republic of China (SAC).
1631
1632 The input, output, and key of SMS4 are each 128 bits.
1633
1634 See also: <https://eprint.iacr.org/2008/329.pdf>
1635
1636 If unsure, say N.
1637
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001638config CRYPTO_TEA
1639 tristate "TEA, XTEA and XETA cipher algorithms"
1640 select CRYPTO_ALGAPI
1641 help
1642 TEA cipher algorithm.
1643
1644 Tiny Encryption Algorithm is a simple cipher that uses
1645 many rounds for security. It is very fast and uses
1646 little memory.
1647
1648 Xtendend Tiny Encryption Algorithm is a modification to
1649 the TEA algorithm to address a potential key weakness
1650 in the TEA algorithm.
1651
1652 Xtendend Encryption Tiny Algorithm is a mis-implementation
1653 of the XTEA algorithm for compatibility purposes.
1654
1655config CRYPTO_TWOFISH
1656 tristate "Twofish cipher algorithm"
1657 select CRYPTO_ALGAPI
1658 select CRYPTO_TWOFISH_COMMON
1659 help
1660 Twofish cipher algorithm.
1661
1662 Twofish was submitted as an AES (Advanced Encryption Standard)
1663 candidate cipher by researchers at CounterPane Systems. It is a
1664 16 round block cipher supporting key sizes of 128, 192, and 256
1665 bits.
1666
1667 See also:
1668 <http://www.schneier.com/twofish.html>
1669
1670config CRYPTO_TWOFISH_COMMON
1671 tristate
1672 help
1673 Common parts of the Twofish cipher algorithm shared by the
1674 generic c and the assembler implementations.
1675
1676config CRYPTO_TWOFISH_586
1677 tristate "Twofish cipher algorithms (i586)"
1678 depends on (X86 || UML_X86) && !64BIT
1679 select CRYPTO_ALGAPI
1680 select CRYPTO_TWOFISH_COMMON
1681 help
1682 Twofish cipher algorithm.
1683
1684 Twofish was submitted as an AES (Advanced Encryption Standard)
1685 candidate cipher by researchers at CounterPane Systems. It is a
1686 16 round block cipher supporting key sizes of 128, 192, and 256
1687 bits.
1688
1689 See also:
1690 <http://www.schneier.com/twofish.html>
1691
1692config CRYPTO_TWOFISH_X86_64
1693 tristate "Twofish cipher algorithm (x86_64)"
1694 depends on (X86 || UML_X86) && 64BIT
1695 select CRYPTO_ALGAPI
1696 select CRYPTO_TWOFISH_COMMON
1697 help
1698 Twofish cipher algorithm (x86_64).
1699
1700 Twofish was submitted as an AES (Advanced Encryption Standard)
1701 candidate cipher by researchers at CounterPane Systems. It is a
1702 16 round block cipher supporting key sizes of 128, 192, and 256
1703 bits.
1704
1705 See also:
1706 <http://www.schneier.com/twofish.html>
1707
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001708config CRYPTO_TWOFISH_X86_64_3WAY
1709 tristate "Twofish cipher algorithm (x86_64, 3-way parallel)"
Al Virof21a7c12012-04-08 20:31:22 -04001710 depends on X86 && 64BIT
Eric Biggers37992fa2018-02-19 23:48:09 -08001711 select CRYPTO_BLKCIPHER
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001712 select CRYPTO_TWOFISH_COMMON
1713 select CRYPTO_TWOFISH_X86_64
Jussi Kivilinna414cb5e2012-06-18 14:07:34 +03001714 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001715 help
1716 Twofish cipher algorithm (x86_64, 3-way parallel).
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 Twofish cipher algorithm that processes three
1724 blocks parallel, utilizing resources of out-of-order CPUs better.
1725
1726 See also:
1727 <http://www.schneier.com/twofish.html>
1728
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001729config CRYPTO_TWOFISH_AVX_X86_64
1730 tristate "Twofish cipher algorithm (x86_64/AVX)"
1731 depends on X86 && 64BIT
Eric Biggers0e6ab462018-02-19 23:48:11 -08001732 select CRYPTO_BLKCIPHER
Jussi Kivilinnaa7378d42012-06-18 14:07:39 +03001733 select CRYPTO_GLUE_HELPER_X86
Eric Biggers0e6ab462018-02-19 23:48:11 -08001734 select CRYPTO_SIMD
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001735 select CRYPTO_TWOFISH_COMMON
1736 select CRYPTO_TWOFISH_X86_64
1737 select CRYPTO_TWOFISH_X86_64_3WAY
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001738 help
1739 Twofish cipher algorithm (x86_64/AVX).
1740
1741 Twofish was submitted as an AES (Advanced Encryption Standard)
1742 candidate cipher by researchers at CounterPane Systems. It is a
1743 16 round block cipher supporting key sizes of 128, 192, and 256
1744 bits.
1745
1746 This module provides the Twofish cipher algorithm that processes
1747 eight blocks parallel using the AVX Instruction Set.
1748
1749 See also:
1750 <http://www.schneier.com/twofish.html>
1751
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001752comment "Compression"
1753
Linus Torvalds1da177e2005-04-16 15:20:36 -07001754config CRYPTO_DEFLATE
1755 tristate "Deflate compression algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001756 select CRYPTO_ALGAPI
Giovanni Cabidduf6ded092016-10-21 13:19:53 +01001757 select CRYPTO_ACOMP2
Linus Torvalds1da177e2005-04-16 15:20:36 -07001758 select ZLIB_INFLATE
1759 select ZLIB_DEFLATE
1760 help
1761 This is the Deflate algorithm (RFC1951), specified for use in
1762 IPSec with the IPCOMP protocol (RFC3173, RFC2394).
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001763
Linus Torvalds1da177e2005-04-16 15:20:36 -07001764 You will most probably want this if using IPSec.
1765
Zoltan Sogor0b77abb2007-12-07 16:53:23 +08001766config CRYPTO_LZO
1767 tristate "LZO compression algorithm"
1768 select CRYPTO_ALGAPI
Giovanni Cabidduac9d2c42016-10-21 13:19:49 +01001769 select CRYPTO_ACOMP2
Zoltan Sogor0b77abb2007-12-07 16:53:23 +08001770 select LZO_COMPRESS
1771 select LZO_DECOMPRESS
1772 help
1773 This is the LZO algorithm.
1774
Seth Jennings35a1fc12012-07-19 09:42:41 -05001775config CRYPTO_842
1776 tristate "842 compression algorithm"
Dan Streetman2062c5b2015-05-07 13:49:15 -04001777 select CRYPTO_ALGAPI
Giovanni Cabiddu6a8de3a2016-10-21 13:19:52 +01001778 select CRYPTO_ACOMP2
Dan Streetman2062c5b2015-05-07 13:49:15 -04001779 select 842_COMPRESS
1780 select 842_DECOMPRESS
Seth Jennings35a1fc12012-07-19 09:42:41 -05001781 help
1782 This is the 842 algorithm.
1783
Chanho Min0ea85302013-07-08 16:01:51 -07001784config CRYPTO_LZ4
1785 tristate "LZ4 compression algorithm"
1786 select CRYPTO_ALGAPI
Giovanni Cabiddu8cd93302016-10-21 13:19:50 +01001787 select CRYPTO_ACOMP2
Chanho Min0ea85302013-07-08 16:01:51 -07001788 select LZ4_COMPRESS
1789 select LZ4_DECOMPRESS
1790 help
1791 This is the LZ4 algorithm.
1792
1793config CRYPTO_LZ4HC
1794 tristate "LZ4HC compression algorithm"
1795 select CRYPTO_ALGAPI
Giovanni Cabiddu91d53d92016-10-21 13:19:51 +01001796 select CRYPTO_ACOMP2
Chanho Min0ea85302013-07-08 16:01:51 -07001797 select LZ4HC_COMPRESS
1798 select LZ4_DECOMPRESS
1799 help
1800 This is the LZ4 high compression mode algorithm.
1801
Nick Terrelld28fc3d2018-03-30 12:14:53 -07001802config CRYPTO_ZSTD
1803 tristate "Zstd compression algorithm"
1804 select CRYPTO_ALGAPI
1805 select CRYPTO_ACOMP2
1806 select ZSTD_COMPRESS
1807 select ZSTD_DECOMPRESS
1808 help
1809 This is the zstd algorithm.
1810
Neil Horman17f0f4a2008-08-14 22:15:52 +10001811comment "Random Number Generation"
1812
1813config CRYPTO_ANSI_CPRNG
1814 tristate "Pseudo Random Number Generation for Cryptographic modules"
1815 select CRYPTO_AES
1816 select CRYPTO_RNG
Neil Horman17f0f4a2008-08-14 22:15:52 +10001817 help
1818 This option enables the generic pseudo random number generator
1819 for cryptographic modules. Uses the Algorithm specified in
Jiri Kosina7dd607e2010-01-27 01:00:10 +01001820 ANSI X9.31 A.2.4. Note that this option must be enabled if
1821 CRYPTO_FIPS is selected
Neil Horman17f0f4a2008-08-14 22:15:52 +10001822
Herbert Xuf2c89a12014-07-04 22:15:08 +08001823menuconfig CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001824 tristate "NIST SP800-90A DRBG"
Stephan Mueller419090c2014-05-31 17:22:31 +02001825 help
1826 NIST SP800-90A compliant DRBG. In the following submenu, one or
1827 more of the DRBG types must be selected.
1828
Herbert Xuf2c89a12014-07-04 22:15:08 +08001829if CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001830
1831config CRYPTO_DRBG_HMAC
Herbert Xu401e4232015-06-03 14:49:31 +08001832 bool
Stephan Mueller419090c2014-05-31 17:22:31 +02001833 default y
Stephan Mueller419090c2014-05-31 17:22:31 +02001834 select CRYPTO_HMAC
Herbert Xu826775b2015-06-11 08:55:10 +08001835 select CRYPTO_SHA256
Stephan Mueller419090c2014-05-31 17:22:31 +02001836
1837config CRYPTO_DRBG_HASH
1838 bool "Enable Hash DRBG"
Herbert Xu826775b2015-06-11 08:55:10 +08001839 select CRYPTO_SHA256
Stephan Mueller419090c2014-05-31 17:22:31 +02001840 help
1841 Enable the Hash DRBG variant as defined in NIST SP800-90A.
1842
1843config CRYPTO_DRBG_CTR
1844 bool "Enable CTR DRBG"
Stephan Mueller419090c2014-05-31 17:22:31 +02001845 select CRYPTO_AES
Stephan Mueller35591282016-06-14 07:34:13 +02001846 depends on CRYPTO_CTR
Stephan Mueller419090c2014-05-31 17:22:31 +02001847 help
1848 Enable the CTR DRBG variant as defined in NIST SP800-90A.
1849
Herbert Xuf2c89a12014-07-04 22:15:08 +08001850config CRYPTO_DRBG
1851 tristate
Herbert Xu401e4232015-06-03 14:49:31 +08001852 default CRYPTO_DRBG_MENU
Herbert Xuf2c89a12014-07-04 22:15:08 +08001853 select CRYPTO_RNG
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001854 select CRYPTO_JITTERENTROPY
Herbert Xuf2c89a12014-07-04 22:15:08 +08001855
1856endif # if CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001857
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001858config CRYPTO_JITTERENTROPY
1859 tristate "Jitterentropy Non-Deterministic Random Number Generator"
Arnd Bergmann2f313e02016-01-26 14:47:10 +01001860 select CRYPTO_RNG
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001861 help
1862 The Jitterentropy RNG is a noise that is intended
1863 to provide seed to another RNG. The RNG does not
1864 perform any cryptographic whitening of the generated
1865 random numbers. This Jitterentropy RNG registers with
1866 the kernel crypto API and can be used by any caller.
1867
Herbert Xu03c8efc2010-10-19 21:12:39 +08001868config CRYPTO_USER_API
1869 tristate
1870
Herbert Xufe869cd2010-10-19 21:23:00 +08001871config CRYPTO_USER_API_HASH
1872 tristate "User-space interface for hash algorithms"
Herbert Xu74517082010-11-29 22:56:03 +08001873 depends on NET
Herbert Xufe869cd2010-10-19 21:23:00 +08001874 select CRYPTO_HASH
1875 select CRYPTO_USER_API
1876 help
1877 This option enables the user-spaces interface for hash
1878 algorithms.
1879
Herbert Xu8ff59092010-10-19 21:31:55 +08001880config CRYPTO_USER_API_SKCIPHER
1881 tristate "User-space interface for symmetric key cipher algorithms"
Herbert Xu74517082010-11-29 22:56:03 +08001882 depends on NET
Herbert Xu8ff59092010-10-19 21:31:55 +08001883 select CRYPTO_BLKCIPHER
1884 select CRYPTO_USER_API
1885 help
1886 This option enables the user-spaces interface for symmetric
1887 key cipher algorithms.
1888
Stephan Mueller2f3755382014-12-25 23:00:39 +01001889config CRYPTO_USER_API_RNG
1890 tristate "User-space interface for random number generator algorithms"
1891 depends on NET
1892 select CRYPTO_RNG
1893 select CRYPTO_USER_API
1894 help
1895 This option enables the user-spaces interface for random
1896 number generator algorithms.
1897
Herbert Xub64a2d92015-05-28 11:30:35 +08001898config CRYPTO_USER_API_AEAD
1899 tristate "User-space interface for AEAD cipher algorithms"
1900 depends on NET
1901 select CRYPTO_AEAD
Stephan Mueller72548b02017-07-30 14:32:58 +02001902 select CRYPTO_BLKCIPHER
1903 select CRYPTO_NULL
Herbert Xub64a2d92015-05-28 11:30:35 +08001904 select CRYPTO_USER_API
1905 help
1906 This option enables the user-spaces interface for AEAD
1907 cipher algorithms.
1908
Corentin Labbecac58182018-09-19 10:10:54 +00001909config CRYPTO_STATS
1910 bool "Crypto usage statistics for User-space"
Corentin Labbea6a31382018-11-29 14:42:17 +00001911 depends on CRYPTO_USER
Corentin Labbecac58182018-09-19 10:10:54 +00001912 help
1913 This option enables the gathering of crypto stats.
1914 This will collect:
1915 - encrypt/decrypt size and numbers of symmeric operations
1916 - compress/decompress size and numbers of compress operations
1917 - size and numbers of hash operations
1918 - encrypt/decrypt/sign/verify numbers for asymmetric operations
1919 - generate/seed numbers for rng operations
1920
Dmitry Kasatkinee089972013-05-06 15:40:01 +03001921config CRYPTO_HASH_INFO
1922 bool
1923
Linus Torvalds1da177e2005-04-16 15:20:36 -07001924source "drivers/crypto/Kconfig"
Masahiro Yamada8636a1f2018-12-11 20:01:04 +09001925source "crypto/asymmetric_keys/Kconfig"
1926source "certs/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -07001927
Herbert Xucce9e062006-08-21 21:08:13 +10001928endif # if CRYPTO