blob: 5575d48473bd4a7fe863227cb582dcd24c6f1dab [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
Eric Biggersb95bba52019-10-25 12:41:13 -070055config CRYPTO_SKCIPHER
Herbert Xu5cde0af2006-08-22 00:07:53 +100056 tristate
Eric Biggersb95bba52019-10-25 12:41:13 -070057 select CRYPTO_SKCIPHER2
Herbert Xu5cde0af2006-08-22 00:07:53 +100058 select CRYPTO_ALGAPI
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110059
Eric Biggersb95bba52019-10-25 12:41:13 -070060config CRYPTO_SKCIPHER2
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110061 tristate
62 select CRYPTO_ALGAPI2
63 select CRYPTO_RNG2
Herbert Xu5cde0af2006-08-22 00:07:53 +100064
Herbert Xu055bcee2006-08-19 22:24:23 +100065config CRYPTO_HASH
66 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110067 select CRYPTO_HASH2
Herbert Xu055bcee2006-08-19 22:24:23 +100068 select CRYPTO_ALGAPI
69
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110070config CRYPTO_HASH2
71 tristate
72 select CRYPTO_ALGAPI2
73
Neil Horman17f0f4a2008-08-14 22:15:52 +100074config CRYPTO_RNG
75 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110076 select CRYPTO_RNG2
Neil Horman17f0f4a2008-08-14 22:15:52 +100077 select CRYPTO_ALGAPI
78
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110079config CRYPTO_RNG2
80 tristate
81 select CRYPTO_ALGAPI2
82
Herbert Xu401e4232015-06-03 14:49:31 +080083config CRYPTO_RNG_DEFAULT
84 tristate
85 select CRYPTO_DRBG_MENU
86
Tadeusz Struk3c339ab2015-06-16 10:30:55 -070087config CRYPTO_AKCIPHER2
88 tristate
89 select CRYPTO_ALGAPI2
90
91config CRYPTO_AKCIPHER
92 tristate
93 select CRYPTO_AKCIPHER2
94 select CRYPTO_ALGAPI
95
Salvatore Benedetto4e5f2c42016-06-22 17:49:13 +010096config CRYPTO_KPP2
97 tristate
98 select CRYPTO_ALGAPI2
99
100config CRYPTO_KPP
101 tristate
102 select CRYPTO_ALGAPI
103 select CRYPTO_KPP2
104
Giovanni Cabiddu2ebda742016-10-21 13:19:47 +0100105config CRYPTO_ACOMP2
106 tristate
107 select CRYPTO_ALGAPI2
Bart Van Assche8cd579d2018-01-05 08:26:47 -0800108 select SGL_ALLOC
Giovanni Cabiddu2ebda742016-10-21 13:19:47 +0100109
110config CRYPTO_ACOMP
111 tristate
112 select CRYPTO_ALGAPI
113 select CRYPTO_ACOMP2
114
Herbert Xu2b8c19d2006-09-21 11:31:44 +1000115config CRYPTO_MANAGER
116 tristate "Cryptographic algorithm manager"
Herbert Xu6a0fcbb2008-12-10 23:29:44 +1100117 select CRYPTO_MANAGER2
Herbert Xu2b8c19d2006-09-21 11:31:44 +1000118 help
119 Create default cryptographic template instantiations such as
120 cbc(aes).
121
Herbert Xu6a0fcbb2008-12-10 23:29:44 +1100122config CRYPTO_MANAGER2
123 def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y)
124 select CRYPTO_AEAD2
125 select CRYPTO_HASH2
Eric Biggersb95bba52019-10-25 12:41:13 -0700126 select CRYPTO_SKCIPHER2
Tadeusz Struk946cc462015-06-16 10:31:06 -0700127 select CRYPTO_AKCIPHER2
Salvatore Benedetto4e5f2c42016-06-22 17:49:13 +0100128 select CRYPTO_KPP2
Giovanni Cabiddu2ebda742016-10-21 13:19:47 +0100129 select CRYPTO_ACOMP2
Herbert Xu6a0fcbb2008-12-10 23:29:44 +1100130
Steffen Klasserta38f7902011-09-27 07:23:50 +0200131config CRYPTO_USER
132 tristate "Userspace cryptographic algorithm configuration"
Herbert Xu5db017a2011-11-01 12:12:43 +1100133 depends on NET
Steffen Klasserta38f7902011-09-27 07:23:50 +0200134 select CRYPTO_MANAGER
135 help
Valdis.Kletnieks@vt.edud19978f2011-11-09 01:29:20 -0500136 Userspace configuration for cryptographic instantiations such as
Steffen Klasserta38f7902011-09-27 07:23:50 +0200137 cbc(aes).
138
Eric Biggers929d34c2019-05-20 09:48:29 -0700139if CRYPTO_MANAGER2
140
Herbert Xu326a6342010-08-06 09:40:28 +0800141config CRYPTO_MANAGER_DISABLE_TESTS
142 bool "Disable run-time self tests"
Herbert Xu00ca28a2010-08-06 10:34:00 +0800143 default y
Alexander Shishkin0b767f92010-06-03 20:53:43 +1000144 help
Herbert Xu326a6342010-08-06 09:40:28 +0800145 Disable run-time self tests that normally take place at
146 algorithm registration.
Alexander Shishkin0b767f92010-06-03 20:53:43 +1000147
Eric Biggers5b2706a2019-01-31 23:51:44 -0800148config CRYPTO_MANAGER_EXTRA_TESTS
149 bool "Enable extra run-time crypto self tests"
150 depends on DEBUG_KERNEL && !CRYPTO_MANAGER_DISABLE_TESTS
151 help
152 Enable extra run-time self tests of registered crypto algorithms,
153 including randomized fuzz tests.
154
155 This is intended for developer use only, as these tests take much
156 longer to run than the normal self tests.
157
Eric Biggers929d34c2019-05-20 09:48:29 -0700158endif # if CRYPTO_MANAGER2
159
Rik Snelc494e072006-11-29 18:59:44 +1100160config CRYPTO_GF128MUL
Eric Biggerse590e132019-05-20 09:53:43 -0700161 tristate
Rik Snelc494e072006-11-29 18:59:44 +1100162
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800163config CRYPTO_NULL
164 tristate "Null algorithms"
Herbert Xu149a3972015-08-13 17:28:58 +0800165 select CRYPTO_NULL2
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800166 help
167 These are 'Null' algorithms, used by IPsec, which do nothing.
168
Herbert Xu149a3972015-08-13 17:28:58 +0800169config CRYPTO_NULL2
Herbert Xudd43c4e2015-08-17 20:39:40 +0800170 tristate
Herbert Xu149a3972015-08-13 17:28:58 +0800171 select CRYPTO_ALGAPI2
Eric Biggersb95bba52019-10-25 12:41:13 -0700172 select CRYPTO_SKCIPHER2
Herbert Xu149a3972015-08-13 17:28:58 +0800173 select CRYPTO_HASH2
174
Steffen Klassert5068c7a2010-01-07 15:57:19 +1100175config CRYPTO_PCRYPT
Kees Cook3b4afaf2012-10-02 11:16:49 -0700176 tristate "Parallel crypto engine"
177 depends on SMP
Steffen Klassert5068c7a2010-01-07 15:57:19 +1100178 select PADATA
179 select CRYPTO_MANAGER
180 select CRYPTO_AEAD
181 help
182 This converts an arbitrary crypto algorithm into a parallel
183 algorithm that executes in kernel threads.
184
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800185config CRYPTO_CRYPTD
186 tristate "Software async crypto daemon"
Eric Biggersb95bba52019-10-25 12:41:13 -0700187 select CRYPTO_SKCIPHER
Loc Hob8a28252008-05-14 21:23:00 +0800188 select CRYPTO_HASH
Herbert Xu43518402006-10-16 21:28:58 +1000189 select CRYPTO_MANAGER
Herbert Xudb131ef2006-09-21 11:44:08 +1000190 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800191 This is a generic software asynchronous crypto daemon that
192 converts an arbitrary synchronous software crypto algorithm
193 into an asynchronous algorithm that executes in a kernel thread.
194
195config CRYPTO_AUTHENC
196 tristate "Authenc support"
197 select CRYPTO_AEAD
Eric Biggersb95bba52019-10-25 12:41:13 -0700198 select CRYPTO_SKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800199 select CRYPTO_MANAGER
200 select CRYPTO_HASH
Herbert Xue94c6a72015-08-04 21:23:14 +0800201 select CRYPTO_NULL
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800202 help
203 Authenc: Combined mode wrapper for IPsec.
204 This is required for IPSec.
205
206config CRYPTO_TEST
207 tristate "Testing module"
208 depends on m
Herbert Xuda7f0332008-07-31 17:08:25 +0800209 select CRYPTO_MANAGER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800210 help
211 Quick & dirty crypto test module.
212
Herbert Xu266d0512016-11-22 20:08:25 +0800213config CRYPTO_SIMD
214 tristate
215 select CRYPTO_CRYPTD
216
Jussi Kivilinna596d8752012-06-18 14:07:19 +0300217config CRYPTO_GLUE_HELPER_X86
218 tristate
219 depends on X86
Eric Biggersb95bba52019-10-25 12:41:13 -0700220 select CRYPTO_SKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +0300221
Baolin Wang735d37b2016-01-26 20:25:39 +0800222config CRYPTO_ENGINE
223 tristate
224
Vitaly Chikunov3d6228a2019-04-11 18:51:18 +0300225comment "Public-key cryptography"
226
227config CRYPTO_RSA
228 tristate "RSA algorithm"
229 select CRYPTO_AKCIPHER
230 select CRYPTO_MANAGER
231 select MPILIB
232 select ASN1
233 help
234 Generic implementation of the RSA public key algorithm.
235
236config CRYPTO_DH
237 tristate "Diffie-Hellman algorithm"
238 select CRYPTO_KPP
239 select MPILIB
240 help
241 Generic implementation of the Diffie-Hellman algorithm.
242
Vitaly Chikunov4a2289d2019-04-11 18:51:19 +0300243config CRYPTO_ECC
244 tristate
245
Vitaly Chikunov3d6228a2019-04-11 18:51:18 +0300246config CRYPTO_ECDH
247 tristate "ECDH algorithm"
Vitaly Chikunov4a2289d2019-04-11 18:51:19 +0300248 select CRYPTO_ECC
Vitaly Chikunov3d6228a2019-04-11 18:51:18 +0300249 select CRYPTO_KPP
250 select CRYPTO_RNG_DEFAULT
251 help
252 Generic implementation of the ECDH algorithm
253
Vitaly Chikunov0d7a7862019-04-11 18:51:20 +0300254config CRYPTO_ECRDSA
255 tristate "EC-RDSA (GOST 34.10) algorithm"
256 select CRYPTO_ECC
257 select CRYPTO_AKCIPHER
258 select CRYPTO_STREEBOG
Vitaly Chikunov10366332019-04-24 04:32:40 +0300259 select OID_REGISTRY
260 select ASN1
Vitaly Chikunov0d7a7862019-04-11 18:51:20 +0300261 help
262 Elliptic Curve Russian Digital Signature Algorithm (GOST R 34.10-2012,
263 RFC 7091, ISO/IEC 14888-3:2018) is one of the Russian cryptographic
264 standard algorithms (called GOST algorithms). Only signature verification
265 is implemented.
266
Ard Biesheuvelee772cb2019-11-08 13:22:34 +0100267config CRYPTO_CURVE25519
268 tristate "Curve25519 algorithm"
269 select CRYPTO_KPP
270 select CRYPTO_LIB_CURVE25519_GENERIC
271
Jason A. Donenfeldbb611bd2019-11-08 13:22:36 +0100272config CRYPTO_CURVE25519_X86
273 tristate "x86_64 accelerated Curve25519 scalar multiplication library"
274 depends on X86 && 64BIT
275 select CRYPTO_LIB_CURVE25519_GENERIC
276 select CRYPTO_ARCH_HAVE_LIB_CURVE25519
277
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800278comment "Authenticated Encryption with Associated Data"
279
280config CRYPTO_CCM
281 tristate "CCM support"
282 select CRYPTO_CTR
Ard Biesheuvelf15f05b2017-02-03 14:49:36 +0000283 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800284 select CRYPTO_AEAD
Eric Biggersc8a33152019-05-20 09:49:46 -0700285 select CRYPTO_MANAGER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800286 help
287 Support for Counter with CBC MAC. Required for IPsec.
288
289config CRYPTO_GCM
290 tristate "GCM/GMAC support"
291 select CRYPTO_CTR
292 select CRYPTO_AEAD
Huang Ying9382d972009-08-06 15:34:26 +1000293 select CRYPTO_GHASH
Jussi Kivilinna9489667d2013-04-07 16:43:41 +0300294 select CRYPTO_NULL
Eric Biggersc8a33152019-05-20 09:49:46 -0700295 select CRYPTO_MANAGER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800296 help
297 Support for Galois/Counter Mode (GCM) and Galois Message
298 Authentication Code (GMAC). Required for IPSec.
299
Martin Willi71ebc4d2015-06-01 13:44:00 +0200300config CRYPTO_CHACHA20POLY1305
301 tristate "ChaCha20-Poly1305 AEAD support"
302 select CRYPTO_CHACHA20
303 select CRYPTO_POLY1305
304 select CRYPTO_AEAD
Eric Biggersc8a33152019-05-20 09:49:46 -0700305 select CRYPTO_MANAGER
Martin Willi71ebc4d2015-06-01 13:44:00 +0200306 help
307 ChaCha20-Poly1305 AEAD support, RFC7539.
308
309 Support for the AEAD wrapper using the ChaCha20 stream cipher combined
310 with the Poly1305 authenticator. It is defined in RFC7539 for use in
311 IETF protocols.
312
Ondrej Mosnacekf606a882018-05-11 14:12:49 +0200313config CRYPTO_AEGIS128
314 tristate "AEGIS-128 AEAD algorithm"
315 select CRYPTO_AEAD
316 select CRYPTO_AES # for AES S-box tables
317 help
318 Support for the AEGIS-128 dedicated AEAD algorithm.
319
Ard Biesheuvela4397632019-08-12 01:59:11 +0300320config CRYPTO_AEGIS128_SIMD
321 bool "Support SIMD acceleration for AEGIS-128"
322 depends on CRYPTO_AEGIS128 && ((ARM || ARM64) && KERNEL_MODE_NEON)
Ard Biesheuvel83053672019-10-02 09:54:48 +0200323 depends on !ARM || CC_IS_CLANG || GCC_VERSION >= 40800
Ard Biesheuvela4397632019-08-12 01:59:11 +0300324 default y
325
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200326config CRYPTO_AEGIS128_AESNI_SSE2
327 tristate "AEGIS-128 AEAD algorithm (x86_64 AESNI+SSE2 implementation)"
328 depends on X86 && 64BIT
329 select CRYPTO_AEAD
Eric Biggersde272ca2019-03-10 12:00:53 -0700330 select CRYPTO_SIMD
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200331 help
Ondrej Mosnacek4e5180e2019-03-15 08:47:25 +0100332 AESNI+SSE2 implementation of the AEGIS-128 dedicated AEAD algorithm.
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200333
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800334config CRYPTO_SEQIV
335 tristate "Sequence Number IV Generator"
336 select CRYPTO_AEAD
Eric Biggersb95bba52019-10-25 12:41:13 -0700337 select CRYPTO_SKCIPHER
Herbert Xu856e3f402015-05-21 15:11:13 +0800338 select CRYPTO_NULL
Herbert Xu401e4232015-06-03 14:49:31 +0800339 select CRYPTO_RNG_DEFAULT
Eric Biggersc8a33152019-05-20 09:49:46 -0700340 select CRYPTO_MANAGER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800341 help
342 This IV generator generates an IV based on a sequence number by
343 xoring it with a salt. This algorithm is mainly useful for CTR
344
Herbert Xua10f5542015-05-21 15:11:15 +0800345config CRYPTO_ECHAINIV
346 tristate "Encrypted Chain IV Generator"
347 select CRYPTO_AEAD
348 select CRYPTO_NULL
Herbert Xu401e4232015-06-03 14:49:31 +0800349 select CRYPTO_RNG_DEFAULT
Eric Biggersc8a33152019-05-20 09:49:46 -0700350 select CRYPTO_MANAGER
Herbert Xua10f5542015-05-21 15:11:15 +0800351 help
352 This IV generator generates an IV based on the encryption of
353 a sequence number xored with a salt. This is the default
354 algorithm for CBC.
355
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800356comment "Block modes"
Herbert Xudb131ef2006-09-21 11:44:08 +1000357
358config CRYPTO_CBC
359 tristate "CBC support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700360 select CRYPTO_SKCIPHER
Herbert Xu43518402006-10-16 21:28:58 +1000361 select CRYPTO_MANAGER
Herbert Xudb131ef2006-09-21 11:44:08 +1000362 help
363 CBC: Cipher Block Chaining mode
364 This block cipher algorithm is required for IPSec.
365
James Bottomleya7d85e02018-03-01 14:36:17 -0800366config CRYPTO_CFB
367 tristate "CFB support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700368 select CRYPTO_SKCIPHER
James Bottomleya7d85e02018-03-01 14:36:17 -0800369 select CRYPTO_MANAGER
370 help
371 CFB: Cipher FeedBack mode
372 This block cipher algorithm is required for TPM2 Cryptography.
373
Joy Latten23e353c2007-10-23 08:50:32 +0800374config CRYPTO_CTR
375 tristate "CTR support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700376 select CRYPTO_SKCIPHER
Herbert Xu0a270322007-11-30 21:38:37 +1100377 select CRYPTO_SEQIV
Joy Latten23e353c2007-10-23 08:50:32 +0800378 select CRYPTO_MANAGER
Joy Latten23e353c2007-10-23 08:50:32 +0800379 help
380 CTR: Counter mode
381 This block cipher algorithm is required for IPSec.
382
Kevin Coffman76cb9522008-03-24 21:26:16 +0800383config CRYPTO_CTS
384 tristate "CTS support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700385 select CRYPTO_SKCIPHER
Eric Biggersc8a33152019-05-20 09:49:46 -0700386 select CRYPTO_MANAGER
Kevin Coffman76cb9522008-03-24 21:26:16 +0800387 help
388 CTS: Cipher Text Stealing
389 This is the Cipher Text Stealing mode as described by
Gilad Ben-Yossefecd6d5c2018-11-05 12:05:01 +0000390 Section 8 of rfc2040 and referenced by rfc3962
391 (rfc3962 includes errata information in its Appendix A) or
392 CBC-CS3 as defined by NIST in Sp800-38A addendum from Oct 2010.
Kevin Coffman76cb9522008-03-24 21:26:16 +0800393 This mode is required for Kerberos gss mechanism support
394 for AES encryption.
395
Gilad Ben-Yossefecd6d5c2018-11-05 12:05:01 +0000396 See: https://csrc.nist.gov/publications/detail/sp/800-38a/addendum/final
397
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800398config CRYPTO_ECB
399 tristate "ECB support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700400 select CRYPTO_SKCIPHER
Herbert Xu124b53d2007-04-16 20:49:20 +1000401 select CRYPTO_MANAGER
402 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800403 ECB: Electronic CodeBook mode
404 This is the simplest block cipher algorithm. It simply encrypts
405 the input block by block.
Herbert Xu124b53d2007-04-16 20:49:20 +1000406
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800407config CRYPTO_LRW
Jussi Kivilinna2470a2b2011-12-13 12:52:51 +0200408 tristate "LRW support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700409 select CRYPTO_SKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800410 select CRYPTO_MANAGER
411 select CRYPTO_GF128MUL
David Howells90831632006-12-16 12:13:14 +1100412 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800413 LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
414 narrow block cipher mode for dm-crypt. Use it with cipher
415 specification string aes-lrw-benbi, the key must be 256, 320 or 384.
416 The first 128, 192 or 256 bits in the key are used for AES and the
417 rest is used to tie each cipher block to its logical position.
David Howells90831632006-12-16 12:13:14 +1100418
Gilad Ben-Yossefe497c512018-09-20 14:18:39 +0100419config CRYPTO_OFB
420 tristate "OFB support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700421 select CRYPTO_SKCIPHER
Gilad Ben-Yossefe497c512018-09-20 14:18:39 +0100422 select CRYPTO_MANAGER
423 help
424 OFB: the Output Feedback mode makes a block cipher into a synchronous
425 stream cipher. It generates keystream blocks, which are then XORed
426 with the plaintext blocks to get the ciphertext. Flipping a bit in the
427 ciphertext produces a flipped bit in the plaintext at the same
428 location. This property allows many error correcting codes to function
429 normally even when applied before encryption.
430
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800431config CRYPTO_PCBC
432 tristate "PCBC support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700433 select CRYPTO_SKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800434 select CRYPTO_MANAGER
435 help
436 PCBC: Propagating Cipher Block Chaining mode
437 This block cipher algorithm is required for RxRPC.
438
439config CRYPTO_XTS
Jussi Kivilinna5bcf8e62011-12-13 12:52:56 +0200440 tristate "XTS support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700441 select CRYPTO_SKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800442 select CRYPTO_MANAGER
Milan Broz12cb3a12017-02-23 08:38:26 +0100443 select CRYPTO_ECB
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800444 help
445 XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
446 key size 256, 384 or 512 bits. This implementation currently
447 can't handle a sectorsize which is not a multiple of 16 bytes.
448
Stephan Mueller1c49678e2015-09-21 20:58:56 +0200449config CRYPTO_KEYWRAP
450 tristate "Key wrapping support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700451 select CRYPTO_SKCIPHER
Eric Biggersc8a33152019-05-20 09:49:46 -0700452 select CRYPTO_MANAGER
Stephan Mueller1c49678e2015-09-21 20:58:56 +0200453 help
454 Support for key wrapping (NIST SP800-38F / RFC3394) without
455 padding.
456
Eric Biggers26609a22018-11-16 17:26:29 -0800457config CRYPTO_NHPOLY1305
458 tristate
459 select CRYPTO_HASH
Ard Biesheuvel48ea8c62019-11-08 13:22:19 +0100460 select CRYPTO_LIB_POLY1305_GENERIC
Eric Biggers26609a22018-11-16 17:26:29 -0800461
Eric Biggers012c8232018-12-04 22:20:00 -0800462config CRYPTO_NHPOLY1305_SSE2
463 tristate "NHPoly1305 hash function (x86_64 SSE2 implementation)"
464 depends on X86 && 64BIT
465 select CRYPTO_NHPOLY1305
466 help
467 SSE2 optimized implementation of the hash function used by the
468 Adiantum encryption mode.
469
Eric Biggers0f961f92018-12-04 22:20:01 -0800470config CRYPTO_NHPOLY1305_AVX2
471 tristate "NHPoly1305 hash function (x86_64 AVX2 implementation)"
472 depends on X86 && 64BIT
473 select CRYPTO_NHPOLY1305
474 help
475 AVX2 optimized implementation of the hash function used by the
476 Adiantum encryption mode.
477
Eric Biggers059c2a42018-11-16 17:26:31 -0800478config CRYPTO_ADIANTUM
479 tristate "Adiantum support"
480 select CRYPTO_CHACHA20
Ard Biesheuvel48ea8c62019-11-08 13:22:19 +0100481 select CRYPTO_LIB_POLY1305_GENERIC
Eric Biggers059c2a42018-11-16 17:26:31 -0800482 select CRYPTO_NHPOLY1305
Eric Biggersc8a33152019-05-20 09:49:46 -0700483 select CRYPTO_MANAGER
Eric Biggers059c2a42018-11-16 17:26:31 -0800484 help
485 Adiantum is a tweakable, length-preserving encryption mode
486 designed for fast and secure disk encryption, especially on
487 CPUs without dedicated crypto instructions. It encrypts
488 each sector using the XChaCha12 stream cipher, two passes of
489 an ε-almost-∆-universal hash function, and an invocation of
490 the AES-256 block cipher on a single 16-byte block. On CPUs
491 without AES instructions, Adiantum is much faster than
492 AES-XTS.
493
494 Adiantum's security is provably reducible to that of its
495 underlying stream and block ciphers, subject to a security
496 bound. Unlike XTS, Adiantum is a true wide-block encryption
497 mode, so it actually provides an even stronger notion of
498 security than XTS, subject to the security bound.
499
500 If unsure, say N.
501
Ard Biesheuvelbe1eb7f2019-08-19 17:17:33 +0300502config CRYPTO_ESSIV
503 tristate "ESSIV support for block encryption"
504 select CRYPTO_AUTHENC
505 help
506 Encrypted salt-sector initialization vector (ESSIV) is an IV
507 generation method that is used in some cases by fscrypt and/or
508 dm-crypt. It uses the hash of the block encryption key as the
509 symmetric key for a block encryption pass applied to the input
510 IV, making low entropy IV sources more suitable for block
511 encryption.
512
513 This driver implements a crypto API template that can be
514 instantiated either as a skcipher or as a aead (depending on the
515 type of the first template argument), and which defers encryption
516 and decryption requests to the encapsulated cipher after applying
517 ESSIV to the input IV. Note that in the aead case, it is assumed
518 that the keys are presented in the same format used by the authenc
519 template, and that the IV appears at the end of the authenticated
520 associated data (AAD) region (which is how dm-crypt uses it.)
521
522 Note that the use of ESSIV is not recommended for new deployments,
523 and so this only needs to be enabled when interoperability with
524 existing encrypted volumes of filesystems is required, or when
525 building for a particular system that requires it (e.g., when
526 the SoC in question has accelerated CBC but not XTS, making CBC
527 combined with ESSIV the only feasible mode for h/w accelerated
528 block encryption)
529
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800530comment "Hash modes"
531
Jussi Kivilinna93b5e862013-04-08 10:48:44 +0300532config CRYPTO_CMAC
533 tristate "CMAC support"
534 select CRYPTO_HASH
535 select CRYPTO_MANAGER
536 help
537 Cipher-based Message Authentication Code (CMAC) specified by
538 The National Institute of Standards and Technology (NIST).
539
540 https://tools.ietf.org/html/rfc4493
541 http://csrc.nist.gov/publications/nistpubs/800-38B/SP_800-38B.pdf
542
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800543config CRYPTO_HMAC
544 tristate "HMAC support"
545 select CRYPTO_HASH
546 select CRYPTO_MANAGER
547 help
548 HMAC: Keyed-Hashing for Message Authentication (RFC2104).
549 This is required for IPSec.
550
551config CRYPTO_XCBC
552 tristate "XCBC support"
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800553 select CRYPTO_HASH
554 select CRYPTO_MANAGER
555 help
556 XCBC: Keyed-Hashing with encryption algorithm
557 http://www.ietf.org/rfc/rfc3566.txt
558 http://csrc.nist.gov/encryption/modes/proposedmodes/
559 xcbc-mac/xcbc-mac-spec.pdf
560
Shane Wangf1939f72009-09-02 20:05:22 +1000561config CRYPTO_VMAC
562 tristate "VMAC support"
Shane Wangf1939f72009-09-02 20:05:22 +1000563 select CRYPTO_HASH
564 select CRYPTO_MANAGER
565 help
566 VMAC is a message authentication algorithm designed for
567 very high speed on 64-bit architectures.
568
569 See also:
570 <http://fastcrypto.org/vmac>
571
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800572comment "Digest"
573
574config CRYPTO_CRC32C
575 tristate "CRC32c CRC algorithm"
Herbert Xu5773a3e2008-07-08 20:54:28 +0800576 select CRYPTO_HASH
Darrick J. Wong6a0962b2012-03-23 15:02:25 -0700577 select CRC32
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800578 help
579 Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
580 by iSCSI for header and data digests and by others.
Herbert Xu69c35ef2008-11-07 15:11:47 +0800581 See Castagnoli93. Module will be crc32c.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800582
Austin Zhang8cb51ba2008-08-07 09:57:03 +0800583config CRYPTO_CRC32C_INTEL
584 tristate "CRC32c INTEL hardware acceleration"
585 depends on X86
586 select CRYPTO_HASH
587 help
588 In Intel processor with SSE4.2 supported, the processor will
589 support CRC32C implementation using hardware accelerated CRC32
590 instruction. This option will create 'crc32c-intel' module,
591 which will enable any routine to use the CRC32 instruction to
592 gain performance compared with software implementation.
593 Module will be crc32c-intel.
594
Jean Delvare7cf31862016-11-22 10:32:44 +0100595config CRYPTO_CRC32C_VPMSUM
Anton Blanchard6dd7a822016-07-01 08:19:45 +1000596 tristate "CRC32c CRC algorithm (powerpc64)"
Michael Ellermanc12abf32016-08-09 08:46:15 +1000597 depends on PPC64 && ALTIVEC
Anton Blanchard6dd7a822016-07-01 08:19:45 +1000598 select CRYPTO_HASH
599 select CRC32
600 help
601 CRC32c algorithm implemented using vector polynomial multiply-sum
602 (vpmsum) instructions, introduced in POWER8. Enable on POWER8
603 and newer processors for improved performance.
604
605
David S. Miller442a7c42012-08-22 20:47:36 -0700606config CRYPTO_CRC32C_SPARC64
607 tristate "CRC32c CRC algorithm (SPARC64)"
608 depends on SPARC64
609 select CRYPTO_HASH
610 select CRC32
611 help
612 CRC32c CRC algorithm implemented using sparc64 crypto instructions,
613 when available.
614
Alexander Boyko78c37d12013-01-10 18:54:59 +0400615config CRYPTO_CRC32
616 tristate "CRC32 CRC algorithm"
617 select CRYPTO_HASH
618 select CRC32
619 help
620 CRC-32-IEEE 802.3 cyclic redundancy-check algorithm.
621 Shash crypto api wrappers to crc32_le function.
622
623config CRYPTO_CRC32_PCLMUL
624 tristate "CRC32 PCLMULQDQ hardware acceleration"
625 depends on X86
626 select CRYPTO_HASH
627 select CRC32
628 help
629 From Intel Westmere and AMD Bulldozer processor with SSE4.2
630 and PCLMULQDQ supported, the processor will support
631 CRC32 PCLMULQDQ implementation using hardware accelerated PCLMULQDQ
hacoaf8cb012018-12-28 10:09:40 +0000632 instruction. This option will create 'crc32-pclmul' module,
Alexander Boyko78c37d12013-01-10 18:54:59 +0400633 which will enable any routine to use the CRC-32-IEEE 802.3 checksum
634 and gain better performance as compared with the table implementation.
635
Marcin Nowakowski4a5dc512018-02-09 22:11:06 +0000636config CRYPTO_CRC32_MIPS
637 tristate "CRC32c and CRC32 CRC algorithm (MIPS)"
638 depends on MIPS_CRC_SUPPORT
639 select CRYPTO_HASH
640 help
641 CRC32c and CRC32 CRC algorithms implemented using mips crypto
642 instructions, when available.
643
644
Nikolay Borisov67882e72019-05-30 09:52:57 +0300645config CRYPTO_XXHASH
646 tristate "xxHash hash algorithm"
647 select CRYPTO_HASH
648 select XXHASH
649 help
650 xxHash non-cryptographic hash algorithm. Extremely fast, working at
651 speeds close to RAM limits.
652
David Sterba91d68932019-10-24 18:28:31 +0200653config CRYPTO_BLAKE2B
654 tristate "BLAKE2b digest algorithm"
655 select CRYPTO_HASH
656 help
657 Implementation of cryptographic hash function BLAKE2b (or just BLAKE2),
658 optimized for 64bit platforms and can produce digests of any size
659 between 1 to 64. The keyed hash is also implemented.
660
661 This module provides the following algorithms:
662
663 - blake2b-160
664 - blake2b-256
665 - blake2b-384
666 - blake2b-512
667
668 See https://blake2.net for further information.
669
Ard Biesheuvel7f9b0882019-11-08 13:22:30 +0100670config CRYPTO_BLAKE2S
671 tristate "BLAKE2s digest algorithm"
672 select CRYPTO_LIB_BLAKE2S_GENERIC
673 select CRYPTO_HASH
674 help
675 Implementation of cryptographic hash function BLAKE2s
676 optimized for 8-32bit platforms and can produce digests of any size
677 between 1 to 32. The keyed hash is also implemented.
678
679 This module provides the following algorithms:
680
681 - blake2s-128
682 - blake2s-160
683 - blake2s-224
684 - blake2s-256
685
686 See https://blake2.net for further information.
687
Jason A. Donenfelded0356e2019-11-08 13:22:31 +0100688config CRYPTO_BLAKE2S_X86
689 tristate "BLAKE2s digest algorithm (x86 accelerated version)"
690 depends on X86 && 64BIT
691 select CRYPTO_LIB_BLAKE2S_GENERIC
692 select CRYPTO_ARCH_HAVE_LIB_BLAKE2S
693
Herbert Xu684115212013-09-07 12:56:26 +1000694config CRYPTO_CRCT10DIF
695 tristate "CRCT10DIF algorithm"
696 select CRYPTO_HASH
697 help
698 CRC T10 Data Integrity Field computation is being cast as
699 a crypto transform. This allows for faster crc t10 diff
700 transforms to be used if they are available.
701
702config CRYPTO_CRCT10DIF_PCLMUL
703 tristate "CRCT10DIF PCLMULQDQ hardware acceleration"
704 depends on X86 && 64BIT && CRC_T10DIF
705 select CRYPTO_HASH
706 help
707 For x86_64 processors with SSE4.2 and PCLMULQDQ supported,
708 CRC T10 DIF PCLMULQDQ computation can be hardware
709 accelerated PCLMULQDQ instruction. This option will create
hacoaf8cb012018-12-28 10:09:40 +0000710 'crct10dif-pclmul' module, which is faster when computing the
Herbert Xu684115212013-09-07 12:56:26 +1000711 crct10dif checksum as compared with the generic table implementation.
712
Daniel Axtensb01df1c2017-03-15 23:37:36 +1100713config CRYPTO_CRCT10DIF_VPMSUM
714 tristate "CRC32T10DIF powerpc64 hardware acceleration"
715 depends on PPC64 && ALTIVEC && CRC_T10DIF
716 select CRYPTO_HASH
717 help
718 CRC10T10DIF algorithm implemented using vector polynomial
719 multiply-sum (vpmsum) instructions, introduced in POWER8. Enable on
720 POWER8 and newer processors for improved performance.
721
Daniel Axtens146c8682017-03-15 23:37:37 +1100722config CRYPTO_VPMSUM_TESTER
723 tristate "Powerpc64 vpmsum hardware acceleration tester"
724 depends on CRYPTO_CRCT10DIF_VPMSUM && CRYPTO_CRC32C_VPMSUM
725 help
726 Stress test for CRC32c and CRC-T10DIF algorithms implemented with
727 POWER8 vpmsum instructions.
728 Unless you are testing these algorithms, you don't need this.
729
Huang Ying2cdc6892009-08-06 15:32:38 +1000730config CRYPTO_GHASH
Eric Biggers8dfa20f2019-07-19 23:09:18 -0700731 tristate "GHASH hash function"
Huang Ying2cdc6892009-08-06 15:32:38 +1000732 select CRYPTO_GF128MUL
Arnd Bergmann578c60f2016-01-25 17:51:21 +0100733 select CRYPTO_HASH
Huang Ying2cdc6892009-08-06 15:32:38 +1000734 help
Eric Biggers8dfa20f2019-07-19 23:09:18 -0700735 GHASH is the hash function used in GCM (Galois/Counter Mode).
736 It is not a general-purpose cryptographic hash function.
Huang Ying2cdc6892009-08-06 15:32:38 +1000737
Martin Willif979e012015-06-01 13:43:58 +0200738config CRYPTO_POLY1305
739 tristate "Poly1305 authenticator algorithm"
Arnd Bergmann578c60f2016-01-25 17:51:21 +0100740 select CRYPTO_HASH
Ard Biesheuvel48ea8c62019-11-08 13:22:19 +0100741 select CRYPTO_LIB_POLY1305_GENERIC
Martin Willif979e012015-06-01 13:43:58 +0200742 help
743 Poly1305 authenticator algorithm, RFC7539.
744
745 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
746 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
747 in IETF protocols. This is the portable C implementation of Poly1305.
748
Martin Willic70f4ab2015-07-16 19:14:06 +0200749config CRYPTO_POLY1305_X86_64
Martin Willib1ccc8f2015-07-16 19:14:08 +0200750 tristate "Poly1305 authenticator algorithm (x86_64/SSE2/AVX2)"
Martin Willic70f4ab2015-07-16 19:14:06 +0200751 depends on X86 && 64BIT
Ard Biesheuvel1b2c6a52019-11-08 13:22:22 +0100752 select CRYPTO_LIB_POLY1305_GENERIC
Ard Biesheuvelf0e89bc2019-11-08 13:22:23 +0100753 select CRYPTO_ARCH_HAVE_LIB_POLY1305
Martin Willic70f4ab2015-07-16 19:14:06 +0200754 help
755 Poly1305 authenticator algorithm, RFC7539.
756
757 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
758 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
759 in IETF protocols. This is the x86_64 assembler implementation using SIMD
760 instructions.
761
Ard Biesheuvela11d0552019-11-08 13:22:26 +0100762config CRYPTO_POLY1305_MIPS
763 tristate "Poly1305 authenticator algorithm (MIPS optimized)"
764 depends on CPU_MIPS32 || (CPU_MIPS64 && 64BIT)
765 select CRYPTO_ARCH_HAVE_LIB_POLY1305
766
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800767config CRYPTO_MD4
768 tristate "MD4 digest algorithm"
Adrian-Ken Rueegsegger808a1762008-12-03 19:55:27 +0800769 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700770 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800771 MD4 message digest algorithm (RFC1320).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700772
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800773config CRYPTO_MD5
774 tristate "MD5 digest algorithm"
Adrian-Ken Rueegsegger14b75ba2008-12-03 19:57:12 +0800775 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700776 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800777 MD5 message digest algorithm (RFC1321).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700778
Aaro Koskinend69e75d2014-12-21 22:54:02 +0200779config CRYPTO_MD5_OCTEON
780 tristate "MD5 digest algorithm (OCTEON)"
781 depends on CPU_CAVIUM_OCTEON
782 select CRYPTO_MD5
783 select CRYPTO_HASH
784 help
785 MD5 message digest algorithm (RFC1321) implemented
786 using OCTEON crypto instructions, when available.
787
Markus Stockhausene8e59952015-03-01 19:30:46 +0100788config CRYPTO_MD5_PPC
789 tristate "MD5 digest algorithm (PPC)"
790 depends on PPC
791 select CRYPTO_HASH
792 help
793 MD5 message digest algorithm (RFC1321) implemented
794 in PPC assembler.
795
David S. Millerfa4dfed2012-08-19 21:51:26 -0700796config CRYPTO_MD5_SPARC64
797 tristate "MD5 digest algorithm (SPARC64)"
798 depends on SPARC64
799 select CRYPTO_MD5
800 select CRYPTO_HASH
801 help
802 MD5 message digest algorithm (RFC1321) implemented
803 using sparc64 crypto instructions, when available.
804
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800805config CRYPTO_MICHAEL_MIC
806 tristate "Michael MIC keyed digest algorithm"
Adrian-Ken Rueegsegger19e2bf12008-12-07 19:35:38 +0800807 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800808 help
809 Michael MIC is used for message integrity protection in TKIP
810 (IEEE 802.11i). This algorithm is required for TKIP, but it
811 should not be used for other purposes because of the weakness
812 of the algorithm.
813
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800814config CRYPTO_RMD128
Adrian Bunkb6d44342008-07-16 19:28:00 +0800815 tristate "RIPEMD-128 digest algorithm"
Herbert Xu7c4468b2008-11-08 09:10:40 +0800816 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800817 help
818 RIPEMD-128 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800819
Adrian Bunkb6d44342008-07-16 19:28:00 +0800820 RIPEMD-128 is a 128-bit cryptographic hash function. It should only
Michael Witten35ed4b32011-07-09 04:02:31 +0000821 be used as a secure replacement for RIPEMD. For other use cases,
Adrian Bunkb6d44342008-07-16 19:28:00 +0800822 RIPEMD-160 should be used.
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800823
Adrian Bunkb6d44342008-07-16 19:28:00 +0800824 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800825 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800826
827config CRYPTO_RMD160
Adrian Bunkb6d44342008-07-16 19:28:00 +0800828 tristate "RIPEMD-160 digest algorithm"
Herbert Xue5835fb2008-11-08 09:18:51 +0800829 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800830 help
831 RIPEMD-160 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800832
Adrian Bunkb6d44342008-07-16 19:28:00 +0800833 RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
834 to be used as a secure replacement for the 128-bit hash functions
835 MD4, MD5 and it's predecessor RIPEMD
836 (not to be confused with RIPEMD-128).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800837
Adrian Bunkb6d44342008-07-16 19:28:00 +0800838 It's speed is comparable to SHA1 and there are no known attacks
839 against RIPEMD-160.
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800840
Adrian Bunkb6d44342008-07-16 19:28:00 +0800841 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800842 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800843
844config CRYPTO_RMD256
Adrian Bunkb6d44342008-07-16 19:28:00 +0800845 tristate "RIPEMD-256 digest algorithm"
Herbert Xud8a5e2e2008-11-08 09:58:10 +0800846 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800847 help
848 RIPEMD-256 is an optional extension of RIPEMD-128 with a
849 256 bit hash. It is intended for applications that require
850 longer hash-results, without needing a larger security level
851 (than RIPEMD-128).
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800852
Adrian Bunkb6d44342008-07-16 19:28:00 +0800853 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800854 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800855
856config CRYPTO_RMD320
Adrian Bunkb6d44342008-07-16 19:28:00 +0800857 tristate "RIPEMD-320 digest algorithm"
Herbert Xu3b8efb42008-11-08 10:11:09 +0800858 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800859 help
860 RIPEMD-320 is an optional extension of RIPEMD-160 with a
861 320 bit hash. It is intended for applications that require
862 longer hash-results, without needing a larger security level
863 (than RIPEMD-160).
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800864
Adrian Bunkb6d44342008-07-16 19:28:00 +0800865 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800866 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800867
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800868config CRYPTO_SHA1
869 tristate "SHA1 digest algorithm"
Adrian-Ken Rueegsegger54ccb362008-12-02 21:08:20 +0800870 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800871 help
872 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
873
Mathias Krause66be8952011-08-04 20:19:25 +0200874config CRYPTO_SHA1_SSSE3
time38b6b7f2015-09-10 15:27:26 -0700875 tristate "SHA1 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
Mathias Krause66be8952011-08-04 20:19:25 +0200876 depends on X86 && 64BIT
877 select CRYPTO_SHA1
878 select CRYPTO_HASH
879 help
880 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
881 using Supplemental SSE3 (SSSE3) instructions or Advanced Vector
time38b6b7f2015-09-10 15:27:26 -0700882 Extensions (AVX/AVX2) or SHA-NI(SHA Extensions New Instructions),
883 when available.
Mathias Krause66be8952011-08-04 20:19:25 +0200884
Tim Chen8275d1a2013-03-26 13:59:17 -0700885config CRYPTO_SHA256_SSSE3
time38b6b7f2015-09-10 15:27:26 -0700886 tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
Tim Chen8275d1a2013-03-26 13:59:17 -0700887 depends on X86 && 64BIT
888 select CRYPTO_SHA256
889 select CRYPTO_HASH
890 help
891 SHA-256 secure hash standard (DFIPS 180-2) implemented
892 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
893 Extensions version 1 (AVX1), or Advanced Vector Extensions
time38b6b7f2015-09-10 15:27:26 -0700894 version 2 (AVX2) instructions, or SHA-NI (SHA Extensions New
895 Instructions) when available.
Tim Chen8275d1a2013-03-26 13:59:17 -0700896
Tim Chen87de4572013-03-26 14:00:02 -0700897config CRYPTO_SHA512_SSSE3
898 tristate "SHA512 digest algorithm (SSSE3/AVX/AVX2)"
899 depends on X86 && 64BIT
900 select CRYPTO_SHA512
901 select CRYPTO_HASH
902 help
903 SHA-512 secure hash standard (DFIPS 180-2) implemented
904 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
905 Extensions version 1 (AVX1), or Advanced Vector Extensions
906 version 2 (AVX2) instructions, when available.
907
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200908config CRYPTO_SHA1_OCTEON
909 tristate "SHA1 digest algorithm (OCTEON)"
910 depends on CPU_CAVIUM_OCTEON
911 select CRYPTO_SHA1
912 select CRYPTO_HASH
913 help
914 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
915 using OCTEON crypto instructions, when available.
916
David S. Miller4ff28d42012-08-19 15:41:53 -0700917config CRYPTO_SHA1_SPARC64
918 tristate "SHA1 digest algorithm (SPARC64)"
919 depends on SPARC64
920 select CRYPTO_SHA1
921 select CRYPTO_HASH
922 help
923 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
924 using sparc64 crypto instructions, when available.
925
Michael Ellerman323a6bf2012-09-13 23:00:49 +0000926config CRYPTO_SHA1_PPC
927 tristate "SHA1 digest algorithm (powerpc)"
928 depends on PPC
929 help
930 This is the powerpc hardware accelerated implementation of the
931 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
932
Markus Stockhausend9850fc2015-02-24 20:36:50 +0100933config CRYPTO_SHA1_PPC_SPE
934 tristate "SHA1 digest algorithm (PPC SPE)"
935 depends on PPC && SPE
936 help
937 SHA-1 secure hash standard (DFIPS 180-4) implemented
938 using powerpc SPE SIMD instruction set.
939
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800940config CRYPTO_SHA256
941 tristate "SHA224 and SHA256 digest algorithm"
Adrian-Ken Rueegsegger50e109b52008-12-03 19:57:49 +0800942 select CRYPTO_HASH
Hans de Goede08c327f2019-08-17 16:24:35 +0200943 select CRYPTO_LIB_SHA256
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800944 help
945 SHA256 secure hash standard (DFIPS 180-2).
946
947 This version of SHA implements a 256 bit hash with 128 bits of
948 security against collision attacks.
949
Adrian Bunkb6d44342008-07-16 19:28:00 +0800950 This code also includes SHA-224, a 224 bit hash with 112 bits
951 of security against collision attacks.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800952
Markus Stockhausen2ecc1e92015-01-30 15:39:34 +0100953config CRYPTO_SHA256_PPC_SPE
954 tristate "SHA224 and SHA256 digest algorithm (PPC SPE)"
955 depends on PPC && SPE
956 select CRYPTO_SHA256
957 select CRYPTO_HASH
958 help
959 SHA224 and SHA256 secure hash standard (DFIPS 180-2)
960 implemented using powerpc SPE SIMD instruction set.
961
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200962config CRYPTO_SHA256_OCTEON
963 tristate "SHA224 and SHA256 digest algorithm (OCTEON)"
964 depends on CPU_CAVIUM_OCTEON
965 select CRYPTO_SHA256
966 select CRYPTO_HASH
967 help
968 SHA-256 secure hash standard (DFIPS 180-2) implemented
969 using OCTEON crypto instructions, when available.
970
David S. Miller86c93b22012-08-19 17:11:37 -0700971config CRYPTO_SHA256_SPARC64
972 tristate "SHA224 and SHA256 digest algorithm (SPARC64)"
973 depends on SPARC64
974 select CRYPTO_SHA256
975 select CRYPTO_HASH
976 help
977 SHA-256 secure hash standard (DFIPS 180-2) implemented
978 using sparc64 crypto instructions, when available.
979
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800980config CRYPTO_SHA512
981 tristate "SHA384 and SHA512 digest algorithms"
Adrian-Ken Rueegseggerbd9d20d2008-12-17 16:49:02 +1100982 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800983 help
984 SHA512 secure hash standard (DFIPS 180-2).
985
986 This version of SHA implements a 512 bit hash with 256 bits of
987 security against collision attacks.
988
989 This code also includes SHA-384, a 384 bit hash with 192 bits
990 of security against collision attacks.
991
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200992config CRYPTO_SHA512_OCTEON
993 tristate "SHA384 and SHA512 digest algorithms (OCTEON)"
994 depends on CPU_CAVIUM_OCTEON
995 select CRYPTO_SHA512
996 select CRYPTO_HASH
997 help
998 SHA-512 secure hash standard (DFIPS 180-2) implemented
999 using OCTEON crypto instructions, when available.
1000
David S. Miller775e0c62012-08-19 17:37:56 -07001001config CRYPTO_SHA512_SPARC64
1002 tristate "SHA384 and SHA512 digest algorithm (SPARC64)"
1003 depends on SPARC64
1004 select CRYPTO_SHA512
1005 select CRYPTO_HASH
1006 help
1007 SHA-512 secure hash standard (DFIPS 180-2) implemented
1008 using sparc64 crypto instructions, when available.
1009
Jeff Garzik53964b92016-06-17 10:30:35 +05301010config CRYPTO_SHA3
1011 tristate "SHA3 digest algorithm"
1012 select CRYPTO_HASH
1013 help
1014 SHA-3 secure hash standard (DFIPS 202). It's based on
1015 cryptographic sponge function family called Keccak.
1016
1017 References:
1018 http://keccak.noekeon.org/
1019
Gilad Ben-Yossef4f0fc162017-08-21 13:51:28 +03001020config CRYPTO_SM3
1021 tristate "SM3 digest algorithm"
1022 select CRYPTO_HASH
1023 help
1024 SM3 secure hash function as defined by OSCCA GM/T 0004-2012 SM3).
1025 It is part of the Chinese Commercial Cryptography suite.
1026
1027 References:
1028 http://www.oscca.gov.cn/UpFile/20101222141857786.pdf
1029 https://datatracker.ietf.org/doc/html/draft-shen-sm3-hash
1030
Vitaly Chikunovfe189572018-11-07 00:00:01 +03001031config CRYPTO_STREEBOG
1032 tristate "Streebog Hash Function"
1033 select CRYPTO_HASH
1034 help
1035 Streebog Hash Function (GOST R 34.11-2012, RFC 6986) is one of the Russian
1036 cryptographic standard algorithms (called GOST algorithms).
1037 This setting enables two hash algorithms with 256 and 512 bits output.
1038
1039 References:
1040 https://tc26.ru/upload/iblock/fed/feddbb4d26b685903faa2ba11aea43f6.pdf
1041 https://tools.ietf.org/html/rfc6986
1042
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001043config CRYPTO_TGR192
1044 tristate "Tiger digest algorithms"
Adrian-Ken Rueegseggerf63fbd32008-12-03 19:58:32 +08001045 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001046 help
1047 Tiger hash algorithm 192, 160 and 128-bit hashes
1048
1049 Tiger is a hash function optimized for 64-bit processors while
1050 still having decent performance on 32-bit processors.
1051 Tiger was developed by Ross Anderson and Eli Biham.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001052
1053 See also:
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001054 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
1055
1056config CRYPTO_WP512
1057 tristate "Whirlpool digest algorithms"
Adrian-Ken Rueegsegger49465102008-12-07 19:34:37 +08001058 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001059 help
1060 Whirlpool hash algorithm 512, 384 and 256-bit hashes
1061
1062 Whirlpool-512 is part of the NESSIE cryptographic primitives.
1063 Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
1064
1065 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001066 <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html>
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001067
Huang Ying0e1227d2009-10-19 11:53:06 +09001068config CRYPTO_GHASH_CLMUL_NI_INTEL
Eric Biggers8dfa20f2019-07-19 23:09:18 -07001069 tristate "GHASH hash function (CLMUL-NI accelerated)"
Richard Weinberger8af00862011-06-08 20:56:29 +08001070 depends on X86 && 64BIT
Huang Ying0e1227d2009-10-19 11:53:06 +09001071 select CRYPTO_CRYPTD
1072 help
Eric Biggers8dfa20f2019-07-19 23:09:18 -07001073 This is the x86_64 CLMUL-NI accelerated implementation of
1074 GHASH, the hash function used in GCM (Galois/Counter mode).
Huang Ying0e1227d2009-10-19 11:53:06 +09001075
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001076comment "Ciphers"
Linus Torvalds1da177e2005-04-16 15:20:36 -07001077
1078config CRYPTO_AES
1079 tristate "AES cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +10001080 select CRYPTO_ALGAPI
Ard Biesheuvel5bb12d72019-07-02 21:41:33 +02001081 select CRYPTO_LIB_AES
Linus Torvalds1da177e2005-04-16 15:20:36 -07001082 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001083 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Linus Torvalds1da177e2005-04-16 15:20:36 -07001084 algorithm.
1085
1086 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001087 both hardware and software across a wide range of computing
1088 environments regardless of its use in feedback or non-feedback
1089 modes. Its key setup time is excellent, and its key agility is
1090 good. Rijndael's very low memory requirements make it very well
1091 suited for restricted-space environments, in which it also
1092 demonstrates excellent performance. Rijndael's operations are
1093 among the easiest to defend against power and timing attacks.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001094
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001095 The AES specifies three key sizes: 128, 192 and 256 bits
Linus Torvalds1da177e2005-04-16 15:20:36 -07001096
1097 See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
1098
Ard Biesheuvelb5e0b032017-02-02 16:37:40 +00001099config CRYPTO_AES_TI
1100 tristate "Fixed time AES cipher"
1101 select CRYPTO_ALGAPI
Ard Biesheuvele59c1c92019-07-02 21:41:22 +02001102 select CRYPTO_LIB_AES
Ard Biesheuvelb5e0b032017-02-02 16:37:40 +00001103 help
1104 This is a generic implementation of AES that attempts to eliminate
1105 data dependent latencies as much as possible without affecting
1106 performance too much. It is intended for use by the generic CCM
1107 and GCM drivers, and other CTR or CMAC/XCBC based modes that rely
1108 solely on encryption (although decryption is supported as well, but
1109 with a more dramatic performance hit)
1110
1111 Instead of using 16 lookup tables of 1 KB each, (8 for encryption and
1112 8 for decryption), this implementation only uses just two S-boxes of
1113 256 bytes each, and attempts to eliminate data dependent latencies by
1114 prefetching the entire table into the cache at the start of each
Eric Biggers0a6a40c2018-10-17 21:37:58 -07001115 block. Interrupts are also disabled to avoid races where cachelines
1116 are evicted when the CPU is interrupted to do something else.
Ard Biesheuvelb5e0b032017-02-02 16:37:40 +00001117
Huang Ying54b6a1b2009-01-18 16:28:34 +11001118config CRYPTO_AES_NI_INTEL
1119 tristate "AES cipher algorithms (AES-NI)"
Richard Weinberger8af00862011-06-08 20:56:29 +08001120 depends on X86
Herbert Xu85671862016-11-22 20:08:33 +08001121 select CRYPTO_AEAD
Ard Biesheuvel2c53fd12019-07-02 21:41:23 +02001122 select CRYPTO_LIB_AES
Huang Ying54b6a1b2009-01-18 16:28:34 +11001123 select CRYPTO_ALGAPI
Eric Biggersb95bba52019-10-25 12:41:13 -07001124 select CRYPTO_SKCIPHER
Jussi Kivilinna7643a112013-04-10 18:39:20 +03001125 select CRYPTO_GLUE_HELPER_X86 if 64BIT
Herbert Xu85671862016-11-22 20:08:33 +08001126 select CRYPTO_SIMD
Huang Ying54b6a1b2009-01-18 16:28:34 +11001127 help
1128 Use Intel AES-NI instructions for AES algorithm.
1129
1130 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1131 algorithm.
1132
1133 Rijndael appears to be consistently a very good performer in
1134 both hardware and software across a wide range of computing
1135 environments regardless of its use in feedback or non-feedback
1136 modes. Its key setup time is excellent, and its key agility is
1137 good. Rijndael's very low memory requirements make it very well
1138 suited for restricted-space environments, in which it also
1139 demonstrates excellent performance. Rijndael's operations are
1140 among the easiest to defend against power and timing attacks.
1141
1142 The AES specifies three key sizes: 128, 192 and 256 bits
1143
1144 See <http://csrc.nist.gov/encryption/aes/> for more information.
1145
Mathias Krause0d258ef2010-11-27 16:34:46 +08001146 In addition to AES cipher algorithm support, the acceleration
1147 for some popular block cipher mode is supported too, including
Ard Biesheuvel944585a2018-09-24 14:48:16 +02001148 ECB, CBC, LRW, XTS. The 64 bit version has additional
Mathias Krause0d258ef2010-11-27 16:34:46 +08001149 acceleration for CTR.
Huang Ying2cf4ac82009-03-29 15:41:20 +08001150
David S. Miller9bf48522012-08-21 03:58:13 -07001151config CRYPTO_AES_SPARC64
1152 tristate "AES cipher algorithms (SPARC64)"
1153 depends on SPARC64
Eric Biggersb95bba52019-10-25 12:41:13 -07001154 select CRYPTO_SKCIPHER
David S. Miller9bf48522012-08-21 03:58:13 -07001155 help
1156 Use SPARC64 crypto opcodes for AES algorithm.
1157
1158 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1159 algorithm.
1160
1161 Rijndael appears to be consistently a very good performer in
1162 both hardware and software across a wide range of computing
1163 environments regardless of its use in feedback or non-feedback
1164 modes. Its key setup time is excellent, and its key agility is
1165 good. Rijndael's very low memory requirements make it very well
1166 suited for restricted-space environments, in which it also
1167 demonstrates excellent performance. Rijndael's operations are
1168 among the easiest to defend against power and timing attacks.
1169
1170 The AES specifies three key sizes: 128, 192 and 256 bits
1171
1172 See <http://csrc.nist.gov/encryption/aes/> for more information.
1173
1174 In addition to AES cipher algorithm support, the acceleration
1175 for some popular block cipher mode is supported too, including
1176 ECB and CBC.
1177
Markus Stockhausen504c6142015-02-22 10:00:10 +01001178config CRYPTO_AES_PPC_SPE
1179 tristate "AES cipher algorithms (PPC SPE)"
1180 depends on PPC && SPE
Eric Biggersb95bba52019-10-25 12:41:13 -07001181 select CRYPTO_SKCIPHER
Markus Stockhausen504c6142015-02-22 10:00:10 +01001182 help
1183 AES cipher algorithms (FIPS-197). Additionally the acceleration
1184 for popular block cipher modes ECB, CBC, CTR and XTS is supported.
1185 This module should only be used for low power (router) devices
1186 without hardware AES acceleration (e.g. caam crypto). It reduces the
1187 size of the AES tables from 16KB to 8KB + 256 bytes and mitigates
1188 timining attacks. Nevertheless it might be not as secure as other
1189 architecture specific assembler implementations that work on 1KB
1190 tables or 256 bytes S-boxes.
1191
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001192config CRYPTO_ANUBIS
1193 tristate "Anubis cipher algorithm"
1194 select CRYPTO_ALGAPI
1195 help
1196 Anubis cipher algorithm.
1197
1198 Anubis is a variable key length cipher which can use keys from
1199 128 bits to 320 bits in length. It was evaluated as a entrant
1200 in the NESSIE competition.
1201
1202 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001203 <https://www.cosic.esat.kuleuven.be/nessie/reports/>
1204 <http://www.larc.usp.br/~pbarreto/AnubisPage.html>
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001205
1206config CRYPTO_ARC4
1207 tristate "ARC4 cipher algorithm"
Eric Biggersb95bba52019-10-25 12:41:13 -07001208 select CRYPTO_SKCIPHER
Ard Biesheuveldc51f252019-06-12 18:19:53 +02001209 select CRYPTO_LIB_ARC4
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001210 help
1211 ARC4 cipher algorithm.
1212
1213 ARC4 is a stream cipher using keys ranging from 8 bits to 2048
1214 bits in length. This algorithm is required for driver-based
1215 WEP, but it should not be for other purposes because of the
1216 weakness of the algorithm.
1217
1218config CRYPTO_BLOWFISH
1219 tristate "Blowfish cipher algorithm"
1220 select CRYPTO_ALGAPI
Jussi Kivilinna52ba8672011-09-02 01:45:07 +03001221 select CRYPTO_BLOWFISH_COMMON
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001222 help
1223 Blowfish cipher algorithm, by Bruce Schneier.
1224
1225 This is a variable key length cipher which can use keys from 32
1226 bits to 448 bits in length. It's fast, simple and specifically
1227 designed for use on "large microprocessors".
1228
1229 See also:
1230 <http://www.schneier.com/blowfish.html>
1231
Jussi Kivilinna52ba8672011-09-02 01:45:07 +03001232config CRYPTO_BLOWFISH_COMMON
1233 tristate
1234 help
1235 Common parts of the Blowfish cipher algorithm shared by the
1236 generic c and the assembler implementations.
1237
1238 See also:
1239 <http://www.schneier.com/blowfish.html>
1240
Jussi Kivilinna64b94ce2011-09-02 01:45:22 +03001241config CRYPTO_BLOWFISH_X86_64
1242 tristate "Blowfish cipher algorithm (x86_64)"
Al Virof21a7c12012-04-08 20:31:22 -04001243 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001244 select CRYPTO_SKCIPHER
Jussi Kivilinna64b94ce2011-09-02 01:45:22 +03001245 select CRYPTO_BLOWFISH_COMMON
1246 help
1247 Blowfish cipher algorithm (x86_64), by Bruce Schneier.
1248
1249 This is a variable key length cipher which can use keys from 32
1250 bits to 448 bits in length. It's fast, simple and specifically
1251 designed for use on "large microprocessors".
1252
1253 See also:
1254 <http://www.schneier.com/blowfish.html>
1255
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001256config CRYPTO_CAMELLIA
1257 tristate "Camellia cipher algorithms"
1258 depends on CRYPTO
1259 select CRYPTO_ALGAPI
1260 help
1261 Camellia cipher algorithms module.
1262
1263 Camellia is a symmetric key block cipher developed jointly
1264 at NTT and Mitsubishi Electric Corporation.
1265
1266 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1267
1268 See also:
1269 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1270
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001271config CRYPTO_CAMELLIA_X86_64
1272 tristate "Camellia cipher algorithm (x86_64)"
Al Virof21a7c12012-04-08 20:31:22 -04001273 depends on X86 && 64BIT
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001274 depends on CRYPTO
Eric Biggersb95bba52019-10-25 12:41:13 -07001275 select CRYPTO_SKCIPHER
Jussi Kivilinna964263a2012-06-18 14:07:29 +03001276 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001277 help
1278 Camellia cipher algorithm module (x86_64).
1279
1280 Camellia is a symmetric key block cipher developed jointly
1281 at NTT and Mitsubishi Electric Corporation.
1282
1283 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1284
1285 See also:
1286 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1287
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001288config CRYPTO_CAMELLIA_AESNI_AVX_X86_64
1289 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)"
1290 depends on X86 && 64BIT
1291 depends on CRYPTO
Eric Biggersb95bba52019-10-25 12:41:13 -07001292 select CRYPTO_SKCIPHER
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001293 select CRYPTO_CAMELLIA_X86_64
Eric Biggers44893bc2018-02-19 23:48:23 -08001294 select CRYPTO_GLUE_HELPER_X86
1295 select CRYPTO_SIMD
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001296 select CRYPTO_XTS
1297 help
1298 Camellia cipher algorithm module (x86_64/AES-NI/AVX).
1299
1300 Camellia is a symmetric key block cipher developed jointly
1301 at NTT and Mitsubishi Electric Corporation.
1302
1303 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1304
1305 See also:
1306 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1307
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001308config CRYPTO_CAMELLIA_AESNI_AVX2_X86_64
1309 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX2)"
1310 depends on X86 && 64BIT
1311 depends on CRYPTO
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001312 select CRYPTO_CAMELLIA_AESNI_AVX_X86_64
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001313 help
1314 Camellia cipher algorithm module (x86_64/AES-NI/AVX2).
1315
1316 Camellia is a symmetric key block cipher developed jointly
1317 at NTT and Mitsubishi Electric Corporation.
1318
1319 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1320
1321 See also:
1322 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1323
David S. Miller81658ad2012-08-28 12:05:54 -07001324config CRYPTO_CAMELLIA_SPARC64
1325 tristate "Camellia cipher algorithm (SPARC64)"
1326 depends on SPARC64
1327 depends on CRYPTO
1328 select CRYPTO_ALGAPI
Eric Biggersb95bba52019-10-25 12:41:13 -07001329 select CRYPTO_SKCIPHER
David S. Miller81658ad2012-08-28 12:05:54 -07001330 help
1331 Camellia cipher algorithm module (SPARC64).
1332
1333 Camellia is a symmetric key block cipher developed jointly
1334 at NTT and Mitsubishi Electric Corporation.
1335
1336 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1337
1338 See also:
1339 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1340
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001341config CRYPTO_CAST_COMMON
1342 tristate
1343 help
1344 Common parts of the CAST cipher algorithms shared by the
1345 generic c and the assembler implementations.
1346
Linus Torvalds1da177e2005-04-16 15:20:36 -07001347config CRYPTO_CAST5
1348 tristate "CAST5 (CAST-128) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001349 select CRYPTO_ALGAPI
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001350 select CRYPTO_CAST_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -07001351 help
1352 The CAST5 encryption algorithm (synonymous with CAST-128) is
1353 described in RFC2144.
1354
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001355config CRYPTO_CAST5_AVX_X86_64
1356 tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)"
1357 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001358 select CRYPTO_SKCIPHER
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001359 select CRYPTO_CAST5
Eric Biggers1e631832018-02-19 23:48:13 -08001360 select CRYPTO_CAST_COMMON
1361 select CRYPTO_SIMD
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001362 help
1363 The CAST5 encryption algorithm (synonymous with CAST-128) is
1364 described in RFC2144.
1365
1366 This module provides the Cast5 cipher algorithm that processes
1367 sixteen blocks parallel using the AVX instruction set.
1368
Linus Torvalds1da177e2005-04-16 15:20:36 -07001369config CRYPTO_CAST6
1370 tristate "CAST6 (CAST-256) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001371 select CRYPTO_ALGAPI
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001372 select CRYPTO_CAST_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -07001373 help
1374 The CAST6 encryption algorithm (synonymous with CAST-256) is
1375 described in RFC2612.
1376
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001377config CRYPTO_CAST6_AVX_X86_64
1378 tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)"
1379 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001380 select CRYPTO_SKCIPHER
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001381 select CRYPTO_CAST6
Eric Biggers4bd96922018-02-19 23:48:15 -08001382 select CRYPTO_CAST_COMMON
1383 select CRYPTO_GLUE_HELPER_X86
1384 select CRYPTO_SIMD
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001385 select CRYPTO_XTS
1386 help
1387 The CAST6 encryption algorithm (synonymous with CAST-256) is
1388 described in RFC2612.
1389
1390 This module provides the Cast6 cipher algorithm that processes
1391 eight blocks parallel using the AVX instruction set.
1392
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001393config CRYPTO_DES
1394 tristate "DES and Triple DES EDE cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +10001395 select CRYPTO_ALGAPI
Ard Biesheuvel04007b02019-08-15 12:01:09 +03001396 select CRYPTO_LIB_DES
Linus Torvalds1da177e2005-04-16 15:20:36 -07001397 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001398 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
Linus Torvalds1da177e2005-04-16 15:20:36 -07001399
David S. Millerc5aac2d2012-08-25 22:37:23 -07001400config CRYPTO_DES_SPARC64
1401 tristate "DES and Triple DES EDE cipher algorithms (SPARC64)"
Dave Jones97da37b2012-10-02 17:13:20 -04001402 depends on SPARC64
David S. Millerc5aac2d2012-08-25 22:37:23 -07001403 select CRYPTO_ALGAPI
Ard Biesheuvel04007b02019-08-15 12:01:09 +03001404 select CRYPTO_LIB_DES
Eric Biggersb95bba52019-10-25 12:41:13 -07001405 select CRYPTO_SKCIPHER
David S. Millerc5aac2d2012-08-25 22:37:23 -07001406 help
1407 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3),
1408 optimized using SPARC64 crypto opcodes.
1409
Jussi Kivilinna6574e6c2014-06-09 20:59:54 +03001410config CRYPTO_DES3_EDE_X86_64
1411 tristate "Triple DES EDE cipher algorithm (x86-64)"
1412 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001413 select CRYPTO_SKCIPHER
Ard Biesheuvel04007b02019-08-15 12:01:09 +03001414 select CRYPTO_LIB_DES
Jussi Kivilinna6574e6c2014-06-09 20:59:54 +03001415 help
1416 Triple DES EDE (FIPS 46-3) algorithm.
1417
1418 This module provides implementation of the Triple DES EDE cipher
1419 algorithm that is optimized for x86-64 processors. Two versions of
1420 algorithm are provided; regular processing one input block and
1421 one that processes three blocks parallel.
1422
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001423config CRYPTO_FCRYPT
1424 tristate "FCrypt cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001425 select CRYPTO_ALGAPI
Eric Biggersb95bba52019-10-25 12:41:13 -07001426 select CRYPTO_SKCIPHER
Linus Torvalds1da177e2005-04-16 15:20:36 -07001427 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001428 FCrypt algorithm used by RxRPC.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001429
1430config CRYPTO_KHAZAD
1431 tristate "Khazad cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001432 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -07001433 help
1434 Khazad cipher algorithm.
1435
1436 Khazad was a finalist in the initial NESSIE competition. It is
1437 an algorithm optimized for 64-bit processors with good performance
1438 on 32-bit processors. Khazad uses an 128 bit key size.
1439
1440 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001441 <http://www.larc.usp.br/~pbarreto/KhazadPage.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -07001442
Tan Swee Heng2407d602007-11-23 19:45:00 +08001443config CRYPTO_SALSA20
Kees Cook3b4afaf2012-10-02 11:16:49 -07001444 tristate "Salsa20 stream cipher algorithm"
Eric Biggersb95bba52019-10-25 12:41:13 -07001445 select CRYPTO_SKCIPHER
Tan Swee Heng2407d602007-11-23 19:45:00 +08001446 help
1447 Salsa20 stream cipher algorithm.
1448
1449 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1450 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1451
1452 The Salsa20 stream cipher algorithm is designed by Daniel J.
1453 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -07001454
Martin Willic08d0e62015-06-01 13:43:56 +02001455config CRYPTO_CHACHA20
Eric Biggersaa762402018-11-16 17:26:22 -08001456 tristate "ChaCha stream cipher algorithms"
Ard Biesheuvel5fb8ef22019-11-08 13:22:08 +01001457 select CRYPTO_LIB_CHACHA_GENERIC
Eric Biggersb95bba52019-10-25 12:41:13 -07001458 select CRYPTO_SKCIPHER
Martin Willic08d0e62015-06-01 13:43:56 +02001459 help
Eric Biggersaa762402018-11-16 17:26:22 -08001460 The ChaCha20, XChaCha20, and XChaCha12 stream cipher algorithms.
Martin Willic08d0e62015-06-01 13:43:56 +02001461
1462 ChaCha20 is a 256-bit high-speed stream cipher designed by Daniel J.
1463 Bernstein and further specified in RFC7539 for use in IETF protocols.
Eric Biggersde61d7a2018-11-16 17:26:20 -08001464 This is the portable C implementation of ChaCha20. See also:
Martin Willic08d0e62015-06-01 13:43:56 +02001465 <http://cr.yp.to/chacha/chacha-20080128.pdf>
1466
Eric Biggersde61d7a2018-11-16 17:26:20 -08001467 XChaCha20 is the application of the XSalsa20 construction to ChaCha20
1468 rather than to Salsa20. XChaCha20 extends ChaCha20's nonce length
1469 from 64 bits (or 96 bits using the RFC7539 convention) to 192 bits,
1470 while provably retaining ChaCha20's security. See also:
1471 <https://cr.yp.to/snuffle/xsalsa-20081128.pdf>
1472
Eric Biggersaa762402018-11-16 17:26:22 -08001473 XChaCha12 is XChaCha20 reduced to 12 rounds, with correspondingly
1474 reduced security margin but increased performance. It can be needed
1475 in some performance-sensitive scenarios.
1476
Martin Willic9320b62015-07-16 19:14:01 +02001477config CRYPTO_CHACHA20_X86_64
Eric Biggers4af78262018-12-04 22:20:02 -08001478 tristate "ChaCha stream cipher algorithms (x86_64/SSSE3/AVX2/AVX-512VL)"
Martin Willic9320b62015-07-16 19:14:01 +02001479 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001480 select CRYPTO_SKCIPHER
Ard Biesheuvel28e8d892019-11-08 13:22:09 +01001481 select CRYPTO_LIB_CHACHA_GENERIC
Ard Biesheuvel84e03fa2019-11-08 13:22:10 +01001482 select CRYPTO_ARCH_HAVE_LIB_CHACHA
Martin Willic9320b62015-07-16 19:14:01 +02001483 help
Eric Biggers7a507d62018-12-04 22:20:04 -08001484 SSSE3, AVX2, and AVX-512VL optimized implementations of the ChaCha20,
1485 XChaCha20, and XChaCha12 stream ciphers.
Martin Willic9320b62015-07-16 19:14:01 +02001486
Ard Biesheuvel3a2f58f2019-11-08 13:22:17 +01001487config CRYPTO_CHACHA_MIPS
1488 tristate "ChaCha stream cipher algorithms (MIPS 32r2 optimized)"
1489 depends on CPU_MIPS32_R2
Eric Biggers660eda82019-11-16 18:53:24 -08001490 select CRYPTO_SKCIPHER
Ard Biesheuvel3a2f58f2019-11-08 13:22:17 +01001491 select CRYPTO_ARCH_HAVE_LIB_CHACHA
1492
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001493config CRYPTO_SEED
1494 tristate "SEED cipher algorithm"
1495 select CRYPTO_ALGAPI
1496 help
1497 SEED cipher algorithm (RFC4269).
1498
1499 SEED is a 128-bit symmetric key block cipher that has been
1500 developed by KISA (Korea Information Security Agency) as a
1501 national standard encryption algorithm of the Republic of Korea.
1502 It is a 16 round block cipher with the key size of 128 bit.
1503
1504 See also:
1505 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
1506
1507config CRYPTO_SERPENT
1508 tristate "Serpent cipher algorithm"
1509 select CRYPTO_ALGAPI
1510 help
1511 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1512
1513 Keys are allowed to be from 0 to 256 bits in length, in steps
1514 of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
1515 variant of Serpent for compatibility with old kerneli.org code.
1516
1517 See also:
1518 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1519
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001520config CRYPTO_SERPENT_SSE2_X86_64
1521 tristate "Serpent cipher algorithm (x86_64/SSE2)"
1522 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001523 select CRYPTO_SKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +03001524 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001525 select CRYPTO_SERPENT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001526 select CRYPTO_SIMD
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001527 help
1528 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1529
1530 Keys are allowed to be from 0 to 256 bits in length, in steps
1531 of 8 bits.
1532
Masanari Iida1e6232f2015-04-04 00:20:30 +09001533 This module provides Serpent cipher algorithm that processes eight
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001534 blocks parallel using SSE2 instruction set.
1535
1536 See also:
1537 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1538
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001539config CRYPTO_SERPENT_SSE2_586
1540 tristate "Serpent cipher algorithm (i586/SSE2)"
1541 depends on X86 && !64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001542 select CRYPTO_SKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +03001543 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001544 select CRYPTO_SERPENT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001545 select CRYPTO_SIMD
Jussi Kivilinna251496d2011-11-09 16:26:31 +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
1552 This module provides Serpent cipher algorithm that processes four
1553 blocks parallel using SSE2 instruction set.
1554
1555 See also:
1556 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1557
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001558config CRYPTO_SERPENT_AVX_X86_64
1559 tristate "Serpent cipher algorithm (x86_64/AVX)"
1560 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001561 select CRYPTO_SKCIPHER
Jussi Kivilinna1d0debb2012-06-18 14:07:24 +03001562 select CRYPTO_GLUE_HELPER_X86
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001563 select CRYPTO_SERPENT
Eric Biggerse16bf972018-02-19 23:48:06 -08001564 select CRYPTO_SIMD
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001565 select CRYPTO_XTS
1566 help
1567 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1568
1569 Keys are allowed to be from 0 to 256 bits in length, in steps
1570 of 8 bits.
1571
1572 This module provides the Serpent cipher algorithm that processes
1573 eight blocks parallel using the AVX instruction set.
1574
1575 See also:
1576 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1577
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001578config CRYPTO_SERPENT_AVX2_X86_64
1579 tristate "Serpent cipher algorithm (x86_64/AVX2)"
1580 depends on X86 && 64BIT
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001581 select CRYPTO_SERPENT_AVX_X86_64
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001582 help
1583 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1584
1585 Keys are allowed to be from 0 to 256 bits in length, in steps
1586 of 8 bits.
1587
1588 This module provides Serpent cipher algorithm that processes 16
1589 blocks parallel using AVX2 instruction set.
1590
1591 See also:
1592 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1593
Gilad Ben-Yossef747c8ce2018-03-06 09:44:42 +00001594config CRYPTO_SM4
1595 tristate "SM4 cipher algorithm"
1596 select CRYPTO_ALGAPI
1597 help
1598 SM4 cipher algorithms (OSCCA GB/T 32907-2016).
1599
1600 SM4 (GBT.32907-2016) is a cryptographic standard issued by the
1601 Organization of State Commercial Administration of China (OSCCA)
1602 as an authorized cryptographic algorithms for the use within China.
1603
1604 SMS4 was originally created for use in protecting wireless
1605 networks, and is mandated in the Chinese National Standard for
1606 Wireless LAN WAPI (Wired Authentication and Privacy Infrastructure)
1607 (GB.15629.11-2003).
1608
1609 The latest SM4 standard (GBT.32907-2016) was proposed by OSCCA and
1610 standardized through TC 260 of the Standardization Administration
1611 of the People's Republic of China (SAC).
1612
1613 The input, output, and key of SMS4 are each 128 bits.
1614
1615 See also: <https://eprint.iacr.org/2008/329.pdf>
1616
1617 If unsure, say N.
1618
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001619config CRYPTO_TEA
1620 tristate "TEA, XTEA and XETA cipher algorithms"
1621 select CRYPTO_ALGAPI
1622 help
1623 TEA cipher algorithm.
1624
1625 Tiny Encryption Algorithm is a simple cipher that uses
1626 many rounds for security. It is very fast and uses
1627 little memory.
1628
1629 Xtendend Tiny Encryption Algorithm is a modification to
1630 the TEA algorithm to address a potential key weakness
1631 in the TEA algorithm.
1632
1633 Xtendend Encryption Tiny Algorithm is a mis-implementation
1634 of the XTEA algorithm for compatibility purposes.
1635
1636config CRYPTO_TWOFISH
1637 tristate "Twofish cipher algorithm"
1638 select CRYPTO_ALGAPI
1639 select CRYPTO_TWOFISH_COMMON
1640 help
1641 Twofish cipher algorithm.
1642
1643 Twofish was submitted as an AES (Advanced Encryption Standard)
1644 candidate cipher by researchers at CounterPane Systems. It is a
1645 16 round block cipher supporting key sizes of 128, 192, and 256
1646 bits.
1647
1648 See also:
1649 <http://www.schneier.com/twofish.html>
1650
1651config CRYPTO_TWOFISH_COMMON
1652 tristate
1653 help
1654 Common parts of the Twofish cipher algorithm shared by the
1655 generic c and the assembler implementations.
1656
1657config CRYPTO_TWOFISH_586
1658 tristate "Twofish cipher algorithms (i586)"
1659 depends on (X86 || UML_X86) && !64BIT
1660 select CRYPTO_ALGAPI
1661 select CRYPTO_TWOFISH_COMMON
1662 help
1663 Twofish cipher algorithm.
1664
1665 Twofish was submitted as an AES (Advanced Encryption Standard)
1666 candidate cipher by researchers at CounterPane Systems. It is a
1667 16 round block cipher supporting key sizes of 128, 192, and 256
1668 bits.
1669
1670 See also:
1671 <http://www.schneier.com/twofish.html>
1672
1673config CRYPTO_TWOFISH_X86_64
1674 tristate "Twofish cipher algorithm (x86_64)"
1675 depends on (X86 || UML_X86) && 64BIT
1676 select CRYPTO_ALGAPI
1677 select CRYPTO_TWOFISH_COMMON
1678 help
1679 Twofish cipher algorithm (x86_64).
1680
1681 Twofish was submitted as an AES (Advanced Encryption Standard)
1682 candidate cipher by researchers at CounterPane Systems. It is a
1683 16 round block cipher supporting key sizes of 128, 192, and 256
1684 bits.
1685
1686 See also:
1687 <http://www.schneier.com/twofish.html>
1688
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001689config CRYPTO_TWOFISH_X86_64_3WAY
1690 tristate "Twofish cipher algorithm (x86_64, 3-way parallel)"
Al Virof21a7c12012-04-08 20:31:22 -04001691 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001692 select CRYPTO_SKCIPHER
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001693 select CRYPTO_TWOFISH_COMMON
1694 select CRYPTO_TWOFISH_X86_64
Jussi Kivilinna414cb5e2012-06-18 14:07:34 +03001695 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001696 help
1697 Twofish cipher algorithm (x86_64, 3-way parallel).
1698
1699 Twofish was submitted as an AES (Advanced Encryption Standard)
1700 candidate cipher by researchers at CounterPane Systems. It is a
1701 16 round block cipher supporting key sizes of 128, 192, and 256
1702 bits.
1703
1704 This module provides Twofish cipher algorithm that processes three
1705 blocks parallel, utilizing resources of out-of-order CPUs better.
1706
1707 See also:
1708 <http://www.schneier.com/twofish.html>
1709
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001710config CRYPTO_TWOFISH_AVX_X86_64
1711 tristate "Twofish cipher algorithm (x86_64/AVX)"
1712 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001713 select CRYPTO_SKCIPHER
Jussi Kivilinnaa7378d42012-06-18 14:07:39 +03001714 select CRYPTO_GLUE_HELPER_X86
Eric Biggers0e6ab462018-02-19 23:48:11 -08001715 select CRYPTO_SIMD
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001716 select CRYPTO_TWOFISH_COMMON
1717 select CRYPTO_TWOFISH_X86_64
1718 select CRYPTO_TWOFISH_X86_64_3WAY
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001719 help
1720 Twofish cipher algorithm (x86_64/AVX).
1721
1722 Twofish was submitted as an AES (Advanced Encryption Standard)
1723 candidate cipher by researchers at CounterPane Systems. It is a
1724 16 round block cipher supporting key sizes of 128, 192, and 256
1725 bits.
1726
1727 This module provides the Twofish cipher algorithm that processes
1728 eight blocks parallel using the AVX Instruction Set.
1729
1730 See also:
1731 <http://www.schneier.com/twofish.html>
1732
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001733comment "Compression"
1734
Linus Torvalds1da177e2005-04-16 15:20:36 -07001735config CRYPTO_DEFLATE
1736 tristate "Deflate compression algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001737 select CRYPTO_ALGAPI
Giovanni Cabidduf6ded092016-10-21 13:19:53 +01001738 select CRYPTO_ACOMP2
Linus Torvalds1da177e2005-04-16 15:20:36 -07001739 select ZLIB_INFLATE
1740 select ZLIB_DEFLATE
1741 help
1742 This is the Deflate algorithm (RFC1951), specified for use in
1743 IPSec with the IPCOMP protocol (RFC3173, RFC2394).
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001744
Linus Torvalds1da177e2005-04-16 15:20:36 -07001745 You will most probably want this if using IPSec.
1746
Zoltan Sogor0b77abb2007-12-07 16:53:23 +08001747config CRYPTO_LZO
1748 tristate "LZO compression algorithm"
1749 select CRYPTO_ALGAPI
Giovanni Cabidduac9d2c42016-10-21 13:19:49 +01001750 select CRYPTO_ACOMP2
Zoltan Sogor0b77abb2007-12-07 16:53:23 +08001751 select LZO_COMPRESS
1752 select LZO_DECOMPRESS
1753 help
1754 This is the LZO algorithm.
1755
Seth Jennings35a1fc12012-07-19 09:42:41 -05001756config CRYPTO_842
1757 tristate "842 compression algorithm"
Dan Streetman2062c5b2015-05-07 13:49:15 -04001758 select CRYPTO_ALGAPI
Giovanni Cabiddu6a8de3a2016-10-21 13:19:52 +01001759 select CRYPTO_ACOMP2
Dan Streetman2062c5b2015-05-07 13:49:15 -04001760 select 842_COMPRESS
1761 select 842_DECOMPRESS
Seth Jennings35a1fc12012-07-19 09:42:41 -05001762 help
1763 This is the 842 algorithm.
1764
Chanho Min0ea85302013-07-08 16:01:51 -07001765config CRYPTO_LZ4
1766 tristate "LZ4 compression algorithm"
1767 select CRYPTO_ALGAPI
Giovanni Cabiddu8cd93302016-10-21 13:19:50 +01001768 select CRYPTO_ACOMP2
Chanho Min0ea85302013-07-08 16:01:51 -07001769 select LZ4_COMPRESS
1770 select LZ4_DECOMPRESS
1771 help
1772 This is the LZ4 algorithm.
1773
1774config CRYPTO_LZ4HC
1775 tristate "LZ4HC compression algorithm"
1776 select CRYPTO_ALGAPI
Giovanni Cabiddu91d53d92016-10-21 13:19:51 +01001777 select CRYPTO_ACOMP2
Chanho Min0ea85302013-07-08 16:01:51 -07001778 select LZ4HC_COMPRESS
1779 select LZ4_DECOMPRESS
1780 help
1781 This is the LZ4 high compression mode algorithm.
1782
Nick Terrelld28fc3d2018-03-30 12:14:53 -07001783config CRYPTO_ZSTD
1784 tristate "Zstd compression algorithm"
1785 select CRYPTO_ALGAPI
1786 select CRYPTO_ACOMP2
1787 select ZSTD_COMPRESS
1788 select ZSTD_DECOMPRESS
1789 help
1790 This is the zstd algorithm.
1791
Neil Horman17f0f4a2008-08-14 22:15:52 +10001792comment "Random Number Generation"
1793
1794config CRYPTO_ANSI_CPRNG
1795 tristate "Pseudo Random Number Generation for Cryptographic modules"
1796 select CRYPTO_AES
1797 select CRYPTO_RNG
Neil Horman17f0f4a2008-08-14 22:15:52 +10001798 help
1799 This option enables the generic pseudo random number generator
1800 for cryptographic modules. Uses the Algorithm specified in
Jiri Kosina7dd607e2010-01-27 01:00:10 +01001801 ANSI X9.31 A.2.4. Note that this option must be enabled if
1802 CRYPTO_FIPS is selected
Neil Horman17f0f4a2008-08-14 22:15:52 +10001803
Herbert Xuf2c89a12014-07-04 22:15:08 +08001804menuconfig CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001805 tristate "NIST SP800-90A DRBG"
Stephan Mueller419090c2014-05-31 17:22:31 +02001806 help
1807 NIST SP800-90A compliant DRBG. In the following submenu, one or
1808 more of the DRBG types must be selected.
1809
Herbert Xuf2c89a12014-07-04 22:15:08 +08001810if CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001811
1812config CRYPTO_DRBG_HMAC
Herbert Xu401e4232015-06-03 14:49:31 +08001813 bool
Stephan Mueller419090c2014-05-31 17:22:31 +02001814 default y
Stephan Mueller419090c2014-05-31 17:22:31 +02001815 select CRYPTO_HMAC
Herbert Xu826775b2015-06-11 08:55:10 +08001816 select CRYPTO_SHA256
Stephan Mueller419090c2014-05-31 17:22:31 +02001817
1818config CRYPTO_DRBG_HASH
1819 bool "Enable Hash DRBG"
Herbert Xu826775b2015-06-11 08:55:10 +08001820 select CRYPTO_SHA256
Stephan Mueller419090c2014-05-31 17:22:31 +02001821 help
1822 Enable the Hash DRBG variant as defined in NIST SP800-90A.
1823
1824config CRYPTO_DRBG_CTR
1825 bool "Enable CTR DRBG"
Stephan Mueller419090c2014-05-31 17:22:31 +02001826 select CRYPTO_AES
Stephan Mueller35591282016-06-14 07:34:13 +02001827 depends on CRYPTO_CTR
Stephan Mueller419090c2014-05-31 17:22:31 +02001828 help
1829 Enable the CTR DRBG variant as defined in NIST SP800-90A.
1830
Herbert Xuf2c89a12014-07-04 22:15:08 +08001831config CRYPTO_DRBG
1832 tristate
Herbert Xu401e4232015-06-03 14:49:31 +08001833 default CRYPTO_DRBG_MENU
Herbert Xuf2c89a12014-07-04 22:15:08 +08001834 select CRYPTO_RNG
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001835 select CRYPTO_JITTERENTROPY
Herbert Xuf2c89a12014-07-04 22:15:08 +08001836
1837endif # if CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001838
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001839config CRYPTO_JITTERENTROPY
1840 tristate "Jitterentropy Non-Deterministic Random Number Generator"
Arnd Bergmann2f313e02016-01-26 14:47:10 +01001841 select CRYPTO_RNG
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001842 help
1843 The Jitterentropy RNG is a noise that is intended
1844 to provide seed to another RNG. The RNG does not
1845 perform any cryptographic whitening of the generated
1846 random numbers. This Jitterentropy RNG registers with
1847 the kernel crypto API and can be used by any caller.
1848
Herbert Xu03c8efc2010-10-19 21:12:39 +08001849config CRYPTO_USER_API
1850 tristate
1851
Herbert Xufe869cd2010-10-19 21:23:00 +08001852config CRYPTO_USER_API_HASH
1853 tristate "User-space interface for hash algorithms"
Herbert Xu74517082010-11-29 22:56:03 +08001854 depends on NET
Herbert Xufe869cd2010-10-19 21:23:00 +08001855 select CRYPTO_HASH
1856 select CRYPTO_USER_API
1857 help
1858 This option enables the user-spaces interface for hash
1859 algorithms.
1860
Herbert Xu8ff59092010-10-19 21:31:55 +08001861config CRYPTO_USER_API_SKCIPHER
1862 tristate "User-space interface for symmetric key cipher algorithms"
Herbert Xu74517082010-11-29 22:56:03 +08001863 depends on NET
Eric Biggersb95bba52019-10-25 12:41:13 -07001864 select CRYPTO_SKCIPHER
Herbert Xu8ff59092010-10-19 21:31:55 +08001865 select CRYPTO_USER_API
1866 help
1867 This option enables the user-spaces interface for symmetric
1868 key cipher algorithms.
1869
Stephan Mueller2f3755382014-12-25 23:00:39 +01001870config CRYPTO_USER_API_RNG
1871 tristate "User-space interface for random number generator algorithms"
1872 depends on NET
1873 select CRYPTO_RNG
1874 select CRYPTO_USER_API
1875 help
1876 This option enables the user-spaces interface for random
1877 number generator algorithms.
1878
Herbert Xub64a2d92015-05-28 11:30:35 +08001879config CRYPTO_USER_API_AEAD
1880 tristate "User-space interface for AEAD cipher algorithms"
1881 depends on NET
1882 select CRYPTO_AEAD
Eric Biggersb95bba52019-10-25 12:41:13 -07001883 select CRYPTO_SKCIPHER
Stephan Mueller72548b02017-07-30 14:32:58 +02001884 select CRYPTO_NULL
Herbert Xub64a2d92015-05-28 11:30:35 +08001885 select CRYPTO_USER_API
1886 help
1887 This option enables the user-spaces interface for AEAD
1888 cipher algorithms.
1889
Corentin Labbecac58182018-09-19 10:10:54 +00001890config CRYPTO_STATS
1891 bool "Crypto usage statistics for User-space"
Corentin Labbea6a31382018-11-29 14:42:17 +00001892 depends on CRYPTO_USER
Corentin Labbecac58182018-09-19 10:10:54 +00001893 help
1894 This option enables the gathering of crypto stats.
1895 This will collect:
1896 - encrypt/decrypt size and numbers of symmeric operations
1897 - compress/decompress size and numbers of compress operations
1898 - size and numbers of hash operations
1899 - encrypt/decrypt/sign/verify numbers for asymmetric operations
1900 - generate/seed numbers for rng operations
1901
Dmitry Kasatkinee089972013-05-06 15:40:01 +03001902config CRYPTO_HASH_INFO
1903 bool
1904
Ard Biesheuvel746b2e02019-11-08 13:22:07 +01001905source "lib/crypto/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -07001906source "drivers/crypto/Kconfig"
Masahiro Yamada8636a1f2018-12-11 20:01:04 +09001907source "crypto/asymmetric_keys/Kconfig"
1908source "certs/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -07001909
Herbert Xucce9e062006-08-21 21:08:13 +10001910endif # if CRYPTO